summaryrefslogtreecommitdiffstats
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
authorDimitri John Ledkov <dimitri.ledkov@canonical.com>2023-10-22 19:22:05 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2023-10-27 18:04:30 +0800
commitee62afb9d02dd279a7b73245614f13f8fe777a6d (patch)
tree6bbb0b6e1784f2011e4f6bb42f92982ad5b38e4d /crypto/testmgr.c
parent4b057654ebc3e071e2a95ea2edfd15b5682cedba (diff)
downloadlinux-ee62afb9d02dd279a7b73245614f13f8fe777a6d.tar.gz
linux-ee62afb9d02dd279a7b73245614f13f8fe777a6d.tar.bz2
linux-ee62afb9d02dd279a7b73245614f13f8fe777a6d.zip
crypto: rsa-pkcs1pad - Add FIPS 202 SHA-3 support
Add support in rsa-pkcs1pad for FIPS 202 SHA-3 hashes, sizes 256 and up. As 224 is too weak for any practical purposes. Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.c')
-rw-r--r--crypto/testmgr.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index 335449a27f75..1dc93bf608d4 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -5465,6 +5465,18 @@ static const struct alg_test_desc alg_test_descs[] = {
.test = alg_test_null,
.fips_allowed = 1,
}, {
+ .alg = "pkcs1pad(rsa,sha3-256)",
+ .test = alg_test_null,
+ .fips_allowed = 1,
+ }, {
+ .alg = "pkcs1pad(rsa,sha3-384)",
+ .test = alg_test_null,
+ .fips_allowed = 1,
+ }, {
+ .alg = "pkcs1pad(rsa,sha3-512)",
+ .test = alg_test_null,
+ .fips_allowed = 1,
+ }, {
.alg = "poly1305",
.test = alg_test_hash,
.suite = {