react-native-quick-crypto icon indicating copy to clipboard operation
react-native-quick-crypto copied to clipboard

feat: generateKeyPairSync for x25519

Open SamuelScheit opened this issue 1 year ago • 3 comments

  • [x] Added support for generateKeyPairSync x25519
  • [x] Added unit test
  • [x] Works on iOS
  • [x] Works on Android

Example code:

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

SamuelScheit avatar May 05 '23 21:05 SamuelScheit

Hey! Thank you for your PR! ❤️

This looks amazing, let us test a bit and see if everything works as expected!

mrousavy avatar May 10 '23 08:05 mrousavy

Any chance this could also include ed25519?

EternalDeiwos avatar Jul 02 '23 08:07 EternalDeiwos

@SamuelScheit hiya, any chance you could rebase this onto main? I'm actively working issues/PRs now, so would love to get this in! 💪

FYI, I'm using some of your ideas in #304 (i.e. KeyVariant) so there may be conflicts.

boorad avatar May 06 '24 22:05 boorad