ed25519PkToCurve25519 was calling libsodium sk_to_curve in both native and jvm platforms. Fixed so it calls appropriate pk_to_curve. Fixes #20
This commit is contained in:
3 files changed
+5
-6
No files matched your search
+1
-1
@@ -159,7 +159,7 @@ actual object Signature {
|
||||
*/
|
||||
actual fun ed25519PkToCurve25519(ed25519PublicKey: UByteArray) : UByteArray {
|
||||
val x25519PublicKey = UByteArray(crypto_scalarmult_curve25519_BYTES)
|
||||
sodiumJna.crypto_sign_ed25519_sk_to_curve25519(
|
||||
sodiumJna.crypto_sign_ed25519_pk_to_curve25519(
|
||||
x25519PublicKey.asByteArray(),
|
||||
ed25519PublicKey.asByteArray()
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user