Skip to content

Commit bfc11a8

Browse files
Eric Biggersherbertx
authored andcommitted
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>
1 parent c7dcb04 commit bfc11a8

2 files changed

Lines changed: 0 additions & 22 deletions

File tree

crypto/tcrypt.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2264,10 +2264,6 @@ static int do_test(const char *alg, u32 type, u32 mask, int m, u32 num_mb)
22642264
test_hash_speed("crc32c", sec, generic_hash_speed_template);
22652265
if (mode > 300 && mode < 400) break;
22662266
fallthrough;
2267-
case 321:
2268-
test_hash_speed("poly1305", sec, poly1305_speed_template);
2269-
if (mode > 300 && mode < 400) break;
2270-
fallthrough;
22712267
case 322:
22722268
test_hash_speed("sha3-224", sec, generic_hash_speed_template);
22732269
if (mode > 300 && mode < 400) break;

crypto/tcrypt.h

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -96,22 +96,4 @@ static struct hash_speed generic_hash_speed_template[] = {
9696
{ .blen = 0, .plen = 0, }
9797
};
9898

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-
11799
#endif /* _CRYPTO_TCRYPT_H */

0 commit comments

Comments
 (0)