Added "ctmulq" implementation of Poly1305 (using 64->128 multiplications when available).

This commit is contained in:
Thomas Pornin 2017-03-18 16:46:00 +01:00
parent 2f88a67304
commit 5db2d48b12
10 changed files with 588 additions and 17 deletions

View file

@ -416,6 +416,19 @@ test_speed_poly1305_ctmul32(void)
&br_poly1305_ctmul32_run);
}
static void
test_speed_poly1305_ctmulq(void)
{
br_poly1305_run bp;
bp = br_poly1305_ctmulq_get();
if (bp == 0) {
printf("%-30s UNAVAILABLE\n", "Poly1305 (ctmulq)");
} else {
test_speed_poly1305_inner("Poly1305 (ctmulq)", bp);
}
}
static void
test_speed_poly1305_i15(void)
{
@ -1260,6 +1273,7 @@ static const struct {
STU(poly1305_ctmul),
STU(poly1305_ctmul32),
STU(poly1305_ctmulq),
STU(poly1305_i15),
STU(rsa_i15),