-
Notifications
You must be signed in to change notification settings - Fork 121
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
Add point add/dbl to ec_nistp_felem_meth and rename it to ec_nistp_meth #1654
Conversation
@@ -34,7 +34,7 @@ typedef uint64_t ec_nistp_felem_limb; | |||
typedef uint32_t ec_nistp_felem_limb; | |||
#endif | |||
|
|||
// ec_nistp_felem_meth is a struct that holds pointers to implementations of field | |||
// ec_nistp_meth is a struct that holds pointers to implementations of field |
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.
The rest of the documentation would need to be adjusted to not only mention field arithmetic functions.
crypto/fipsmodule/ec/ec_nistp.h
Outdated
void ec_nistp_point_double(const ec_nistp_felem_meth *ctx, | ||
} ec_nistp_meth; | ||
|
||
const ec_nistp_meth *p256_felem_methods(void); |
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.
If the methods contain more than felem
now, maybe you'd want to rename them.
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.
right, thanks for noticing!
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1654 +/- ##
=======================================
Coverage ? 78.21%
=======================================
Files ? 566
Lines ? 95175
Branches ? 13661
=======================================
Hits ? 74443
Misses ? 20137
Partials ? 595 ☔ View full report in Codecov by Sentry. |
Issues:
N/A
Description of changes:
Add point add/dbl to ec_nistp_felem_meth and rename it to ec_nistp_meth.
Call-outs:
Point out areas that need special attention or support during the review process. Discuss architecture or design changes.
Testing:
How is this change tested (unit tests, fuzz tests, etc.)? Are there any testing steps to be verified by the reviewer?
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.