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

Using RSA.signWithAlgorithm throws an error with some algorithms #131

Open
pbclyde opened this issue Mar 14, 2022 · 0 comments
Open

Using RSA.signWithAlgorithm throws an error with some algorithms #131

pbclyde opened this issue Mar 14, 2022 · 0 comments

Comments

@pbclyde
Copy link

pbclyde commented Mar 14, 2022

const { private: privateKey, public: publicKey } = await RSA.generateKeys(2048)
const signature = await RSA.signWithAlgorithm('test', privateKey, 'SHA256withECDSA')

On an Android emulator SHA256withRSA works but I'd like to use SHA256withECDSA

When I do though, it immediately throws an error

signature initialized as EC (not EC)

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

1 participant