|
|
@@ -911,11 +911,7 @@ static void ge_p3_tobytes(uint8_t s[32], const ge_p3 *h) { |
|
|
|
s[31] ^= fe_isnegative(&x) << 7; |
|
|
|
} |
|
|
|
|
|
|
|
static const fe d = {{56195235, 13857412, 51736253, 6949390, 114729, |
|
|
|
24766616, 60832955, 30306712, 48412415, 21499315}}; |
|
|
|
|
|
|
|
static const fe sqrtm1 = {{34513072, 25610706, 9377949, 3500415, 12389472, |
|
|
|
33281959, 41962654, 31548777, 326685, 11406482}}; |
|
|
|
#include "./curve25519_tables.h" |
|
|
|
|
|
|
|
int x25519_ge_frombytes_vartime(ge_p3 *h, const uint8_t *s) { |
|
|
|
fe u; |
|
|
@@ -996,9 +992,6 @@ static void ge_p3_to_p2(ge_p2 *r, const ge_p3 *p) { |
|
|
|
fe_copy(&r->Z, &p->Z); |
|
|
|
} |
|
|
|
|
|
|
|
static const fe d2 = {{45281625, 27714825, 36363642, 13898781, 229458, |
|
|
|
15978800, 54557047, 27058993, 29715967, 9444199}}; |
|
|
|
|
|
|
|
// r = p |
|
|
|
void x25519_ge_p3_to_cached(ge_cached *r, const ge_p3 *p) { |
|
|
|
fe_add(&r->YplusX, &p->Y, &p->X); |
|
|
@@ -1193,8 +1186,6 @@ void x25519_ge_scalarmult_small_precomp( |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
#include "./curve25519_tables.h" |
|
|
|
|
|
|
|
#if defined(OPENSSL_SMALL) |
|
|
|
|
|
|
|
void x25519_ge_scalarmult_base(ge_p3 *h, const uint8_t a[32]) { |
|
|
|