diff --git a/src/libsodium/crypto_scalarmult/ed25519/ref10/scalarmult_ed25519_ref10.c b/src/libsodium/crypto_scalarmult/ed25519/ref10/scalarmult_ed25519_ref10.c index bcbaefb9..ca77f799 100644 --- a/src/libsodium/crypto_scalarmult/ed25519/ref10/scalarmult_ed25519_ref10.c +++ b/src/libsodium/crypto_scalarmult/ed25519/ref10/scalarmult_ed25519_ref10.c @@ -69,7 +69,9 @@ crypto_scalarmult_ed25519_base(unsigned char *q, _crypto_scalarmult_ed25519_clamp(t); ge_scalarmult_base(&Q, t); ge_p3_tobytes(q, &Q); - + if (sodium_is_zero(t, 32) != 0) { + return -1; + } return 0; }