diff --git a/src/libsodium/crypto_core/ed25519/ref10/ed25519_ref10.c b/src/libsodium/crypto_core/ed25519/ref10/ed25519_ref10.c index 5fc48edb..89a531fe 100644 --- a/src/libsodium/crypto_core/ed25519/ref10/ed25519_ref10.c +++ b/src/libsodium/crypto_core/ed25519/ref10/ed25519_ref10.c @@ -1,5 +1,6 @@ #include #include +#include #include #include "crypto_verify_32.h" @@ -1960,7 +1961,9 @@ ge25519_from_uniform(unsigned char s[32], const unsigned char r[32]) /* recover x */ s[31] |= x_sign; - ge25519_frombytes(&p3, s); + if (ge25519_frombytes(&p3, s) != 0) { + abort(); + } /* multiply by the cofactor */ ge25519_p3_dbl(&p1, &p3);