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

Encryption/decryption using Ed25519. #2272

Open
rahulksnv opened this issue Jul 29, 2024 · 5 comments
Open

Encryption/decryption using Ed25519. #2272

rahulksnv opened this issue Jul 29, 2024 · 5 comments

Comments

@rahulksnv
Copy link

I am trying to encrypt using Ed25519, I ran into this error:

ErrorStack([Error { code: 50331798, library: "digital envelope routines", function: "evp_pkey_asym_cipher_init", reason: "operation not supported for this keytype", file: "crypto/evp/asymcipher.c", line: 189 }])

From looking around previous reports on this error, I am not sure if encryption/decryption is even supported for Ed25519, as it is primarily intended for signatures. Please let mw know.

Some context on why Ed25519 is being used: we have existing infra that uses biscuit_auth for authentication, and biscuit is primarily based on Ed25519. Ideally, would like to use the same key pair for the encrypt/decrypt as well.

Thanks.

@alex
Copy link
Collaborator

alex commented Jul 29, 2024 via email

@rahulksnv
Copy link
Author

Thanks for confirming. In this case, what are the choices apart from RSA for the asymmetric encryption? Any EC based ones that should be preferred?

@alex
Copy link
Collaborator

alex commented Jul 29, 2024 via email

@rahulksnv
Copy link
Author

From what I understand, ECIES is not something openssl supports as is. We would need to add some layers on top for the hybrid scheme. Is this correct?

@alex
Copy link
Collaborator

alex commented Jul 29, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants