diff options
Diffstat (limited to 'src/lib/compat/sodium/sodium_25519.cpp')
-rw-r--r-- | src/lib/compat/sodium/sodium_25519.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/compat/sodium/sodium_25519.cpp b/src/lib/compat/sodium/sodium_25519.cpp index 1d520d7a3..e8cce34e5 100644 --- a/src/lib/compat/sodium/sodium_25519.cpp +++ b/src/lib/compat/sodium/sodium_25519.cpp @@ -27,7 +27,7 @@ int Sodium::crypto_sign_ed25519_detached(uint8_t sig[], size_t msg_len, const uint8_t sk[32]) { - ed25519_sign(sig, msg, msg_len, sk); + ed25519_sign(sig, msg, msg_len, sk, nullptr, 0); if(sig_len) *sig_len = 64; @@ -39,7 +39,7 @@ int Sodium::crypto_sign_ed25519_verify_detached(const uint8_t sig[64], size_t msg_len, const uint8_t pk[32]) { - const bool ok = ed25519_verify(msg, msg_len, sig, pk); + const bool ok = ed25519_verify(msg, msg_len, sig, pk, nullptr, 0); return ok ? 0 : -1; } |