Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: tcrypt - Remove unused poly1305 support

Since the crypto_shash support for poly1305 was removed, the tcrypt
support for it is now unused as well. Support for benchmarking the
kernel's Poly1305 code is now provided by the poly1305 kunit test.

Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Eric Biggers and committed by
Herbert Xu
bfc11a84 c7dcb041

-22
-4
crypto/tcrypt.c
··· 2264 2264 test_hash_speed("crc32c", sec, generic_hash_speed_template); 2265 2265 if (mode > 300 && mode < 400) break; 2266 2266 fallthrough; 2267 - case 321: 2268 - test_hash_speed("poly1305", sec, poly1305_speed_template); 2269 - if (mode > 300 && mode < 400) break; 2270 - fallthrough; 2271 2267 case 322: 2272 2268 test_hash_speed("sha3-224", sec, generic_hash_speed_template); 2273 2269 if (mode > 300 && mode < 400) break;
-18
crypto/tcrypt.h
··· 96 96 { .blen = 0, .plen = 0, } 97 97 }; 98 98 99 - static struct hash_speed poly1305_speed_template[] = { 100 - { .blen = 96, .plen = 16, }, 101 - { .blen = 96, .plen = 32, }, 102 - { .blen = 96, .plen = 96, }, 103 - { .blen = 288, .plen = 16, }, 104 - { .blen = 288, .plen = 32, }, 105 - { .blen = 288, .plen = 288, }, 106 - { .blen = 1056, .plen = 32, }, 107 - { .blen = 1056, .plen = 1056, }, 108 - { .blen = 2080, .plen = 32, }, 109 - { .blen = 2080, .plen = 2080, }, 110 - { .blen = 4128, .plen = 4128, }, 111 - { .blen = 8224, .plen = 8224, }, 112 - 113 - /* End marker */ 114 - { .blen = 0, .plen = 0, } 115 - }; 116 - 117 99 #endif /* _CRYPTO_TCRYPT_H */