/* 2^255 - 21 */fmul (out, t0, a);
}
-int scalarmult_donna64 (u8 *mypublic, const u8 *secret, const u8 *basepoint)
+int scalarmult_donna (u8 *mypublic, const u8 *secret, const u8 *basepoint)
{
limb bp[5], x[5], z[5], zmone[5];
unsigned char e[32];
/* 2^255 - 21 */fmul (out, t1, z11);
}
-int scalarmult_donna32 (u8 *mypublic, const u8 *secret, const u8 *basepoint)
+int scalarmult_donna (u8 *mypublic, const u8 *secret, const u8 *basepoint)
{
limb bp[10], x[10], z[11], zmone[10];
unsigned char e[32];
CURVE25519_DECLARE(ref);
#define CURVE25519_REF CURVE25519_IMPL(0, "ref", ref)
-#if !defined(__LP64__)
-CURVE25519_DECLARE(donna32);
-#define CURVE25519_GENERIC CURVE25519_IMPL(0, "donna32", donna32)
-#else
-CURVE25519_DECLARE(donna64);
-#define CURVE25519_GENERIC CURVE25519_IMPL(0, "donna64", donna64)
-#endif
+CURVE25519_DECLARE(donna);
+#define CURVE25519_DONNA CURVE25519_IMPL(0, "donna", donna)
+
static const curve25519_impl_t curve25519_list[] = {
- CURVE25519_GENERIC,
+ CURVE25519_DONNA,
#if defined(CURVE25519_AVX)
CURVE25519_AVX,
#endif