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

crypto.generateKeyPairSync: The operation is not supported. x25519 #13795

Open
jlucaso1 opened this issue Sep 7, 2024 · 2 comments
Open

crypto.generateKeyPairSync: The operation is not supported. x25519 #13795

jlucaso1 opened this issue Sep 7, 2024 · 2 comments
Labels
bug Something isn't working needs triage

Comments

@jlucaso1
Copy link
Contributor

jlucaso1 commented Sep 7, 2024

What version of Bun is running?

1.1.27+267afa293

What platform is your computer?

Linux 6.8.0-40-generic x86_64 x86_64

What steps can reproduce the bug?

import {generateKeyPairSync} from "crypto"

generateKeyPairSync(
  'x25519',
  {
      publicKeyEncoding: { format: 'der', type: 'spki' },
      privateKeyEncoding: { format: 'der', type: 'pkcs8' }
  }
);

What is the expected behavior?

Don't throw error

What do you see instead?

NotSupportedError: The operation is not supported.
      at node:crypto:66

Additional information

at https://bun.sh/docs/runtime/nodejs-apis#node-crypto shows that generateKeyPairSync is implemented, but is it only partial?

@jlucaso1 jlucaso1 added bug Something isn't working needs triage labels Sep 7, 2024
@jlucaso1 jlucaso1 changed the title crypto.generateKeyPairSync: The operation is not supported. crypto.generateKeyPairSync: The operation is not supported. x25519 Sep 7, 2024
@roysG
Copy link

roysG commented Sep 10, 2024

any update?

@jlucaso1
Copy link
Contributor Author

any update?

I'm trying to implement, but with no success
#13798

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

2 participants