-
Notifications
You must be signed in to change notification settings - Fork 909
[sw,cryptolib] Update ECC random scalar gen function header #28612
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[sw,cryptolib] Update ECC random scalar gen function header #28612
Conversation
sw/otbn/crypto/p256_base.s
Outdated
| * d = (d0 + d1) mod n | ||
| * ...where n is the curve order. | ||
| * | ||
| * This implementation follows FIPS 186-4 section B.4.1, where we |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we update this as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I think so, thanks for flagging this @johannheyszl !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes definitely, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please check the PR again @h-filali ? I can't see this change. Only the p384 file is modified currently.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vogelpi you're right. It's added now.
sw/otbn/crypto/p256_base.s
Outdated
| * d = (d0 + d1) mod n | ||
| * ...where n is the curve order. | ||
| * | ||
| * This implementation follows FIPS 186-4 section B.4.1, where we |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * This implementation follows FIPS 186-5 section A.2.1, where we |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @h-filali
2817b23 to
086b5b1
Compare
|
I rebased and addressed the comments. Thanks for reviewing @johannheyszl ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
|
Thanks @johannheyszl @andrea-caforio. Merging this. |
This commit updates the ECC random secret scalar generation function header. I checked the implementation for FIPS 186-5 compliance and updated the header comment accordingly. Signed-off-by: Hakim Filali <[email protected]>
086b5b1 to
012d8ae
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
|
Successfully created backport PR for |
This commit updates the ECC random secret scalar generation function header.
I checked the implementation for FIPS 186-5 compliance and updated the header comment accordingly.
In case anyone wants to double check: FIPS 186-5