1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-19 18:15:18 -07:00

Consistency check

This commit is contained in:
Frank Denis 2017-11-14 23:11:16 +01:00
parent 150de39b2b
commit d5634850e4

View File

@ -1,5 +1,6 @@
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#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);