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 NID constants for Brainpool curves #1714

Merged
merged 1 commit into from
Oct 28, 2022

Conversation

wiktor-k
Copy link
Contributor

Brainpool curves are used by European government organizations that are suspicious of the NIST curves. Brainpool curves are very similar to NIST curves with one critical difference: the parameters to Brainpool are nothing-up-my-sleeve numbers.

The actual values of the NID constants have been taken from the OpenSSL source code.

@sfackler
Copy link
Owner

It looks like they're not present in 1.0.1. LGTM otherwise!

@wiktor-k
Copy link
Contributor Author

Thanks for the hint the error messages can be a little bit confusing at first...

Is there a way to check which version of OpenSSL introduced which curves? I've tried to get the cfg(ossl...) version correct but it seems it's not that easy (or I'm holding the search engine wrong 😅 ).

Brainpool curves are used by European government organizations that are
suspicious of the NIST curves. Brainpool curves are very similar to NIST
curves with one critical difference: the parameters to Brainpool are
nothing-up-my-sleeve numbers [0].

The actual values of the NID constants have been taken from the OpenSSL
source code [1].

[0]: https://github.com/veorq/numsgen#seeds

[1]: https://github.com/openssl/openssl/blob/4e6647506331fc3b3ef5b23e5dbe188279ddd575/include/openssl/obj_mac.h#L4759
@sfackler
Copy link
Owner

I usually just look through the releases manually to see when they ended up in the headers the first time.

@sfackler sfackler merged commit 6d55631 into sfackler:master Oct 28, 2022
@wiktor-k wiktor-k deleted the add-brainpool branch November 14, 2022 12:21
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.

2 participants