Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

skmcgrail
Copy link
Member

@skmcgrail skmcgrail commented Jan 28, 2025

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.

@skmcgrail skmcgrail changed the title Add EVP API Support for ED25519ph [Draft] Add EVP API Support for ED25519ph Jan 28, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jan 28, 2025

Codecov Report

Attention: Patch coverage is 89.09091% with 24 lines in your changes missing coverage. Please review.

Project coverage is 79.00%. Comparing base (d15dc5c) to head (54203b9).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
crypto/evp_extra/p_ed25519ph.c 75.28% 22 Missing ⚠️
crypto/fipsmodule/evp/evp.c 94.44% 1 Missing ⚠️
crypto/fipsmodule/evp/p_ed25519.c 90.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2144      +/-   ##
==========================================
+ Coverage   78.97%   79.00%   +0.02%     
==========================================
  Files         611      612       +1     
  Lines      105500   105724     +224     
  Branches    14939    14951      +12     
==========================================
+ Hits        83317    83523     +206     
- Misses      21532    21550      +18     
  Partials      651      651              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@skmcgrail skmcgrail changed the title [Draft] Add EVP API Support for ED25519ph Add EVP API Support for ED25519ph Jan 29, 2025
@skmcgrail skmcgrail marked this pull request as ready for review January 29, 2025 00:42
@skmcgrail skmcgrail requested a review from a team as a code owner January 29, 2025 00:42
crypto/fipsmodule/evp/p_ed25519.c Outdated Show resolved Hide resolved
EVP_PKEY_ED25519PH,
{0x2b, 0x65, 0x70},
3,
pem_str,
Copy link
Contributor

Choose a reason for hiding this comment

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

Not "ED25519ph"?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, Ed25519ph is not a type of key, its a signing method. That and there is no official OID either that's been adopted. I don't want to arbitrarily introduce a key type / format for a signing method that nobody else supports.

crypto/evp_extra/p_ed25519ph.c Outdated Show resolved Hide resolved
crypto/evp_extra/p_ed25519ph.c Outdated Show resolved Hide resolved
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.

3 participants