diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-06-21 12:18:19 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-06-22 10:57:29 +0100 |
commit | 300acf008d6d194f0107e293a20cfb88611546e9 (patch) | |
tree | a7706600533bbdb32efcfe6078b6a5ae330f3ec5 /src/libcryptobox | |
parent | b862f3717beee6bf735cfd89a51f41440b26bd0c (diff) | |
download | rspamd-300acf008d6d194f0107e293a20cfb88611546e9.tar.gz rspamd-300acf008d6d194f0107e293a20cfb88611546e9.zip |
[Test] Fix functional tests
Diffstat (limited to 'src/libcryptobox')
-rw-r--r-- | src/libcryptobox/curve25519/base_constants.h | 2 | ||||
-rw-r--r-- | src/libcryptobox/curve25519/ref.c | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/libcryptobox/curve25519/base_constants.h b/src/libcryptobox/curve25519/base_constants.h index 0eaef129b..48adfcf03 100644 --- a/src/libcryptobox/curve25519/base_constants.h +++ b/src/libcryptobox/curve25519/base_constants.h @@ -1,4 +1,4 @@ -static const ge_precomp base[32][8] = { +static const ge_precomp event_loop[32][8] = { { { { 25967493,-14356035,29566456,3660896,-12694345,4014787,27544626,-11754271,-6079156,2047605 }, diff --git a/src/libcryptobox/curve25519/ref.c b/src/libcryptobox/curve25519/ref.c index 3ccc7ada1..eb89b2cdc 100644 --- a/src/libcryptobox/curve25519/ref.c +++ b/src/libcryptobox/curve25519/ref.c @@ -1601,14 +1601,14 @@ static void ge_select(ge_precomp *t, int pos, signed char b) unsigned char babs = b - (((-bnegative) & b) * ((signed char) 1 << 1)); ge_precomp_0 (t); - cmov (t, &base[pos][0], equal (babs, 1)); - cmov (t, &base[pos][1], equal (babs, 2)); - cmov (t, &base[pos][2], equal (babs, 3)); - cmov (t, &base[pos][3], equal (babs, 4)); - cmov (t, &base[pos][4], equal (babs, 5)); - cmov (t, &base[pos][5], equal (babs, 6)); - cmov (t, &base[pos][6], equal (babs, 7)); - cmov (t, &base[pos][7], equal (babs, 8)); + cmov (t, &event_loop[pos][0], equal (babs, 1)); + cmov (t, &event_loop[pos][1], equal (babs, 2)); + cmov (t, &event_loop[pos][2], equal (babs, 3)); + cmov (t, &event_loop[pos][3], equal (babs, 4)); + cmov (t, &event_loop[pos][4], equal (babs, 5)); + cmov (t, &event_loop[pos][5], equal (babs, 6)); + cmov (t, &event_loop[pos][6], equal (babs, 7)); + cmov (t, &event_loop[pos][7], equal (babs, 8)); fe_copy (minust.yplusx, t->yminusx); fe_copy (minust.yminusx, t->yplusx); fe_neg (minust.xy2d, t->xy2d); |