From: Loup Vaillant Date: Mon, 9 Mar 2020 15:09:53 +0000 (+0100) Subject: Fixed broken compilation X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=2e19e34f501dae042bd0f70c780c468056127d5f;p=Monocypher.git Fixed broken compilation --- diff --git a/src/monocypher.c b/src/monocypher.c index 0cf8c44..33f9442 100644 --- a/src/monocypher.c +++ b/src/monocypher.c @@ -1345,6 +1345,11 @@ static int fe_isequal(const fe f, const fe g) return 1 - isdifferent; } +static const fe sqrtm1 = { + -32595792, -7943725, 9377950, 3500415, 12389472, + -272473, -25146209, -2005654, 326686, 11406482 +}; + //def invsqrt(x): // isr = x**((p - 5) // 8) // quartic = x * isr**2 @@ -1555,11 +1560,6 @@ static void ge_tobytes(u8 s[32], const ge *h) WIPE_BUFFER(y); } -static const fe sqrtm1 = { - -32595792, -7943725, 9377950, 3500415, 12389472, - -272473, -25146209, -2005654, 326686, 11406482 -}; - // h = -s, where s is a point encoded in 32 bytes // ge_double_scalarmult_vartime() performs addition, but the algorithm it is // used for requires subtraction; thus we negate s on load so that we can do