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
ECUtil.getCurveName() does not recognize Ed25519 curves #1087
Comments
It's a little more complicated than that... while they're both EC algorithms the mathematical presentation for them is different, so while there's an overlap as one curve X25519 is specified in both forms, the regular EC curves and the Ed curves are not quite the same thing. I've added a method on PGPUtil for looking up the curve name - it will return a name in the same way as the OID is described in the draft RFC. |
Okay, this should now be in place. The new method is at:
I think it should do the trick. Now also up in https://www.bouncycastle.org/betas 171 b04 or later. |
Apparently the patch does use some wrong curve OIDs. See #1142 for details. |
When calling
I get
null
as curveName while I expect "ed25519".See http://oid-info.com/get/1.3.6.1.4.1.11591.15.1
The curve is likely not properly entered into BCs curve tables.
The text was updated successfully, but these errors were encountered: