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
Node.js node-v16.13.1-x64
(Also tried openpgp5.0.1 using Windows 11 (same results))
I am getting an error using these ECC types:
Summary: Support for ecdsa keys using curve brainpoolP256r1,'brainpoolP384r1','brainpoolP512r1','secp256k1' is disabled
ie if I tried to use brainpoolP256r1 I would get the error : Support for ecdsa keys using curve brainpoolP256r1 is disabled.
These curves work: ['curve25519','ed25519','p256','p384','p521']
Is this a bug?
Error: Error generating keypair: Support for ecdsa keys using curve brainpoolP256r1 is disabled.
at ec (D:\node\node_modules\openpgp\dist\node\openpgp.min.js:2:314252)
at D:\node\node_modules\openpgp\dist\node\openpgp.min.js:16:137932
at Array.forEach ()
at exports.generateKey (D:\node\node_modules\openpgp\dist\node\openpgp.min.js:16:137906)
at async keygen (D:\node\server\generateKeys.js:37:15)
at async D:\node\server\index.js:439:23
The text was updated successfully, but these errors were encountered:
Hey 👋 It's not really a bug in the sense that it was intentional, because these curves weren't in the specification; however, the Brainpool curves have now been added to the crypto refresh draft, so we'll enable them by default in the next release (#1563). The secp256k1 curve will remain disabled by default, as it's not specified for use with OpenPGP anywhere.
(Also tried openpgp5.0.1 using Windows 11 (same results))
I am getting an error using these ECC types:
Summary: Support for ecdsa keys using curve brainpoolP256r1,'brainpoolP384r1','brainpoolP512r1','secp256k1' is disabled
ie if I tried to use brainpoolP256r1 I would get the error : Support for ecdsa keys using curve brainpoolP256r1 is disabled.
`options = {
type: 'ecc',
curve: curveName,
userIDs: userIDs,
passphrase: passphrase,
}
const keys = await openpgp.generateKey(options);
`
These curves work:
['curve25519','ed25519','p256','p384','p521']
Is this a bug?
Error: Error generating keypair: Support for ecdsa keys using curve brainpoolP256r1 is disabled.
at ec (D:\node\node_modules\openpgp\dist\node\openpgp.min.js:2:314252)
at D:\node\node_modules\openpgp\dist\node\openpgp.min.js:16:137932
at Array.forEach ()
at exports.generateKey (D:\node\node_modules\openpgp\dist\node\openpgp.min.js:16:137906)
at async keygen (D:\node\server\generateKeys.js:37:15)
at async D:\node\server\index.js:439:23
The text was updated successfully, but these errors were encountered: