From d5634850e4add1ee0d16095484d70e407849c9c2 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Tue, 14 Nov 2017 23:11:16 +0100 Subject: [PATCH] Consistency check --- src/libsodium/crypto_core/ed25519/ref10/ed25519_ref10.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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);