]> git.codecow.com Git - Monocypher.git/commitdiff
Fixed broken compilation
authorLoup Vaillant <loup@loup-vaillant.fr>
Mon, 9 Mar 2020 15:09:53 +0000 (16:09 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Mon, 9 Mar 2020 15:09:53 +0000 (16:09 +0100)
src/monocypher.c

index 0cf8c44aa6f79799b8aa69de1bb793e49951e994..33f9442115404719d6feb07ac2f94e744bcb2413 100644 (file)
@@ -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