Skip to content

Can guarantee not to modify arguments of mp_isodd and mp_iszero#6940

Merged
JacobBarthelmeh merged 1 commit intowolfSSL:masterfrom
bandi13:takeInConstParameters
Nov 2, 2023
Merged

Can guarantee not to modify arguments of mp_isodd and mp_iszero#6940
JacobBarthelmeh merged 1 commit intowolfSSL:masterfrom
bandi13:takeInConstParameters

Conversation

@bandi13
Copy link
Copy Markdown
Contributor

@bandi13 bandi13 commented Nov 2, 2023

Some tests fail when using code that passes a const value to a non-const function.

@bandi13 bandi13 requested a review from dgarske November 2, 2023 20:02
@bandi13 bandi13 self-assigned this Nov 2, 2023
@dgarske dgarske requested review from JacobBarthelmeh and removed request for dgarske November 2, 2023 20:02
Copy link
Copy Markdown
Member

@dgarske dgarske left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about the other two math implementations?

@bandi13
Copy link
Copy Markdown
Contributor Author

bandi13 commented Nov 2, 2023

Looks like this fixes the issue when running on boz-xeon3.

@bandi13
Copy link
Copy Markdown
Contributor Author

bandi13 commented Nov 2, 2023

The other two implementations use macros

@bandi13 bandi13 assigned wolfSSL-Bot and unassigned bandi13 Nov 2, 2023
@JacobBarthelmeh JacobBarthelmeh merged commit c8af4ed into wolfSSL:master Nov 2, 2023
@bandi13 bandi13 deleted the takeInConstParameters branch November 13, 2023 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants