diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-03 22:32:45 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-03 22:32:45 +0300 |
commit | 3240466e5ba1d85e41056a71beaa2d0d3c850fdd (patch) | |
tree | 423575ee2bd074934a025433eeee7f1c5f6bba96 | |
parent | 6b943f52fbc81fe76726848f17518d6e3ab104e8 (diff) |
compilation fix
-rw-r--r-- | libs/libaxolotl/src/curve25519/ed25519/additions/fe_sqrt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/libaxolotl/src/curve25519/ed25519/additions/fe_sqrt.c b/libs/libaxolotl/src/curve25519/ed25519/additions/fe_sqrt.c index 906d38b93e..c62f064e25 100644 --- a/libs/libaxolotl/src/curve25519/ed25519/additions/fe_sqrt.c +++ b/libs/libaxolotl/src/curve25519/ed25519/additions/fe_sqrt.c @@ -15,14 +15,13 @@ static unsigned char i_bytes[32] = { void fe_sqrt(fe out, const fe a) { fe exp, b, b2, bi, i; + fe legendre, zero, one; fe_frombytes(i, i_bytes); fe_pow22523(exp, a); /* b = a^(q-5)/8 */ /* PRECONDITION: legendre symbol == 1 (square) or 0 (a == zero) */ #ifndef NDEBUG - fe legendre, zero, one; - fe_sq(legendre, exp); /* in^((q-5)/4) */ fe_sq(legendre, legendre); /* in^((q-5)/2) */ fe_mul(legendre, legendre, a); /* in^((q-3)/2) */ |