You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When generating EC-512 keys intuitively you would want to use JWK.generate('EC','P-512'). However if you look at the evaluation of the second parameter (crvToDSA) in the file /lib/jwk/key/ec.js (line 29) you have to use P-521. Not sure if it's a typo or a bug.
To Reproduce
Try running JWK.generate('EC','P-512'). It will give this exception: JOSENotSupported: unsupported EC key curve: P-512
Environment:
@panva/jose version: v1.2.0
node version: v12.4.0
the bug is happening on latest @panva/jose too.
i have searched the issues tracker on github for similar issues and couldn't find anything related.
The text was updated successfully, but these errors were encountered:
Describe the bug
When generating EC-512 keys intuitively you would want to use
JWK.generate('EC','P-512')
. However if you look at the evaluation of the second parameter (crvToDSA
) in the file /lib/jwk/key/ec.js (line 29) you have to useP-521
. Not sure if it's a typo or a bug.To Reproduce
Try running
JWK.generate('EC','P-512')
. It will give this exception:JOSENotSupported: unsupported EC key curve: P-512
Environment:
@panva/jose version: v1.2.0
node version: v12.4.0
the bug is happening on latest @panva/jose too.
i have searched the issues tracker on github for similar issues and couldn't find anything related.
The text was updated successfully, but these errors were encountered: