NeilMadden / salty-coffee

A pure-Java implementation of the NaCl cryptography library
Apache License 2.0
28 stars 5 forks source link

X25519 KeyPairGenerator not available #28

Open bhatman opened 1 year ago

bhatman commented 1 year ago

I'm get this error when calling CryptoBox.keyPair() on a device running Android 13. Is there any workaround for this, or perhaps some other configuration I might be missing?


Caused by: java.security.NoSuchAlgorithmException: X25519 KeyPairGenerator not available
        at java.security.KeyPairGenerator.getInstance(KeyPairGenerator.java:253)
        at software.pando.crypto.nacl.CryptoBox.keyPair(CryptoBox.java:107)```
NeilMadden commented 1 year ago

That's probably not something that can be worked around without pulling in an alternative implementation of X25519 key agreement (e.g. from Tink).