-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
ECCurve friendly names are not cross platform #36342
Comments
Realted to #36002 |
Some more common names could be added to the static lookup table in OidLookup.cs but there will always be platform differences for what are accepted as friendly names since this API defers to CAPI / OpenSSL. For example, "prime256v1" will work on Linux but fail on Windows in your test case. |
I think that "prime256v1" is unique to OpenSSL, so I'm OK with leaving it out. (Or including it, whichever). the |
Is this document public? If so I can go through it and backfill the lookup table with whatever is missing unless one of y'all wanted to this. |
https://docs.microsoft.com/en-us/windows/win32/seccng/cng-named-elliptic-curves But I think we only need to do special work for the "original 3" curves; after those everything seems to have only ever gotten one name, so it'll either map (and work) or is unknown to the receiving OS (and won't). |
Consider the following reproduction on Linux:
The first two identifiers will fail with the following exception:
Note that all three identifiers are recognized on Windows, so we should probably attempt to do the same in the OpenSSL implementation for the sake of consistency?
The text was updated successfully, but these errors were encountered: