Fixed endianness in Curve25519 implementation (no consequence on security). Also added new Curve25519 code for 64-bit platforms.
This commit is contained in:
parent
fd98320c82
commit
52a69fe3de
10 changed files with 708 additions and 27 deletions
|
|
@ -1088,6 +1088,19 @@ test_speed_ec_c25519_m31(void)
|
|||
&br_ec_c25519_m31, &br_curve25519);
|
||||
}
|
||||
|
||||
static void
|
||||
test_speed_ec_c25519_m62(void)
|
||||
{
|
||||
const br_ec_impl *ec;
|
||||
|
||||
ec = br_ec_c25519_m62_get();
|
||||
if (ec != NULL) {
|
||||
test_speed_ec_inner("EC c25519_m62", ec, &br_curve25519);
|
||||
} else {
|
||||
printf("%-30s UNAVAILABLE\n", "EC c25519_m62");
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
test_speed_ecdsa_inner(const char *name,
|
||||
const br_ec_impl *impl, const br_ec_curve_def *cd,
|
||||
|
|
@ -1606,6 +1619,7 @@ static const struct {
|
|||
STU(ec_c25519_i31),
|
||||
STU(ec_c25519_m15),
|
||||
STU(ec_c25519_m31),
|
||||
STU(ec_c25519_m62),
|
||||
STU(ecdsa_p256_m15),
|
||||
STU(ecdsa_p256_m31),
|
||||
STU(ecdsa_i15),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue