X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/403e8ab1a17561b95d70cf307aa4f3a87d53decc..d1db98ddea35a5ff79d59c98e6b8ae5bed3796c0:/math/f25519.c diff --git a/math/f25519.c b/math/f25519.c index e9a91f41..b33005bc 100644 --- a/math/f25519.c +++ b/math/f25519.c @@ -756,7 +756,7 @@ static void carry_reduce(dblpiece x[NPIECE]) * signed. */ - /*For each piece, we bias it so that floor division (as done by an + /* For each piece, we bias it so that floor division (as done by an * arithmetic right shift) and modulus (as done by bitwise-AND) does the * right thing. */ @@ -1178,6 +1178,7 @@ int f25519_quosqrt(f25519 *z, const f25519 *x, const f25519 *y) #ifdef TEST_RIG +#include #include #include #include @@ -1218,7 +1219,7 @@ static void dump_f25519_ref(dstr *d, FILE *fp) } static int eq(const f25519 *x, dstr *d) - { octet b[32]; f25519_store(b, x); return (memcmp(b, d->buf, 32) == 0); } + { octet b[32]; f25519_store(b, x); return (MEMCMP(b, ==, d->buf, 32)); } static const test_type type_f25519 = { cvt_f25519, dump_f25519 },