Skip to content

support explicit curves mapping to named curves (for some curves) #12916

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

reaperhulk
Copy link
Member

@reaperhulk reaperhulk commented May 16, 2025

We now support loading EC keys with explicit encodings of named curves. This requires that the explicit curve encoding match exactly (but allows the omission of the seed parameter to maintain compatibility with the -no_seed OpenSSL flag). This is only supported for secp256r1, secp384r1, secp521r1, and secp256k1 at this time.

This is not arbitrary explicit curve support; we still have no plans to implement that.

This PR also updates MSRV to 1.83 as we need that version for Option::unwrap() in const contexts and thus is blocked until we feel comfortable with that bump (As of late May 2025 75% of our sdist downloads have 1.83+)

@reaperhulk
Copy link
Member Author

We're going to need a 1.83 MSRV due to needing Option::unwrap in const context or else we'll have to change the approach to avoid use const values.

We now support loading EC keys with explicit encodings of named
curves.  This requires that the explicit curve encoding match
exactly (but allows the omission of the seed parameter to maintain
compatibility with the -no_seed OpenSSL flag). This is only supported
for secp256r1, secp384r1, secp521r1, and secp256k1 at this time.

This is not arbitrary explicit curve support; we still have no plans to
implement that.

This PR also updates MSRV to 1.83 as we need that version for
Option::unwrap() in const contexts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

1 participant