react-native-rsa-native icon indicating copy to clipboard operation
react-native-rsa-native copied to clipboard

Using RSA.signWithAlgorithm throws an error with some algorithms

Open pbclyde opened this issue 3 years ago • 0 comments

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)

pbclyde avatar Mar 14 '22 16:03 pbclyde