-
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 EVP API Support for ED25519ph #2144
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2144 +/- ##
==========================================
+ Coverage 78.97% 78.99% +0.01%
==========================================
Files 611 612 +1
Lines 105552 105744 +192
Branches 14951 14960 +9
==========================================
+ Hits 83356 83528 +172
- Misses 21542 21563 +21
+ Partials 654 653 -1 ☔ View full report in Codecov by Sentry. |
54203b9
to
8a4c1c3
Compare
8a4c1c3
to
2399cc2
Compare
Reworked per our meeting to remove the keygen and ASN.1 serialization/deserialization support for ED25519ph. Should simplify the review some now. |
2399cc2
to
2b9bb6c
Compare
2b9bb6c
to
d6d83f7
Compare
crypto/evp_extra/p_ed25519_asn1.c
Outdated
|
||
const EVP_PKEY_ASN1_METHOD ed25519ph_asn1_meth = { | ||
EVP_PKEY_ED25519PH, | ||
{}, /* oid */ |
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.
Windows compilers doesn't seem to like this notation.
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.
Might explain why similar ASN.1 setups filled this in with a dummy value like {0xFF}
even though the length is set to zero. Will give that a shot.
Description of changes:
Add support for HashEdDSA (Ed25519ph) to EVP APIs with support for setting the associated signature context. Opting not to expose Ed25519ctx explicitly at this time since there hasn't been an ask for it. Worse case scenario a user desiring it will have access to the low-level APIs where it is available.
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.