Added optimised implementation of P-256 that uses 32->64 multiplications (MUL31).
This commit is contained in:
parent
89ea3b1876
commit
bd3036844b
9 changed files with 1700 additions and 27 deletions
|
|
@ -691,6 +691,13 @@ test_speed_ec_p256_m15(void)
|
|||
&br_ec_p256_m15, &br_secp256r1);
|
||||
}
|
||||
|
||||
static void
|
||||
test_speed_ec_p256_m31(void)
|
||||
{
|
||||
test_speed_ec_inner("EC p256_m31",
|
||||
&br_ec_p256_m31, &br_secp256r1);
|
||||
}
|
||||
|
||||
static void
|
||||
test_speed_ec_prime_i15(void)
|
||||
{
|
||||
|
|
@ -835,6 +842,15 @@ test_speed_ecdsa_p256_m15(void)
|
|||
&br_ecdsa_i15_vrfy_asn1);
|
||||
}
|
||||
|
||||
static void
|
||||
test_speed_ecdsa_p256_m31(void)
|
||||
{
|
||||
test_speed_ecdsa_inner("ECDSA m31 P-256",
|
||||
&br_ec_p256_m31, &br_secp256r1,
|
||||
&br_ecdsa_i31_sign_asn1,
|
||||
&br_ecdsa_i31_vrfy_asn1);
|
||||
}
|
||||
|
||||
static void
|
||||
test_speed_ecdsa_i15(void)
|
||||
{
|
||||
|
|
@ -1282,11 +1298,13 @@ static const struct {
|
|||
STU(ec_prime_i15),
|
||||
STU(ec_prime_i31),
|
||||
STU(ec_p256_m15),
|
||||
STU(ec_p256_m31),
|
||||
STU(ec_c25519_i15),
|
||||
STU(ec_c25519_i31),
|
||||
STU(ec_c25519_m15),
|
||||
STU(ec_c25519_m31),
|
||||
STU(ecdsa_p256_m15),
|
||||
STU(ecdsa_p256_m31),
|
||||
STU(ecdsa_i15),
|
||||
STU(ecdsa_i31),
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue