]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
crypto: testmgr - Enable phmac selftest
authorHarald Freudenberger <freude@linux.ibm.com>
Tue, 17 Jun 2025 13:44:40 +0000 (15:44 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 26 Jun 2025 10:52:33 +0000 (18:52 +0800)
Add phmac selftest invocation to the crypto testmanager.

Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Acked-by: Holger Dengler <dengler@linux.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/testmgr.c

index 196509c44d47a1af3d0e6ca0a195ec131a29f11d..97190d9dcc0eec68bcd5a14f6daf0d92f3b50cce 100644 (file)
@@ -5310,6 +5310,36 @@ static const struct alg_test_desc alg_test_descs[] = {
                        .cipher = __VECS(fcrypt_pcbc_tv_template)
                }
        }, {
+#if IS_ENABLED(CONFIG_CRYPTO_PHMAC_S390)
+               .alg = "phmac(sha224)",
+               .test = alg_test_hash,
+               .fips_allowed = 1,
+               .suite = {
+                       .hash = __VECS(hmac_sha224_tv_template)
+               }
+       }, {
+               .alg = "phmac(sha256)",
+               .test = alg_test_hash,
+               .fips_allowed = 1,
+               .suite = {
+                       .hash = __VECS(hmac_sha256_tv_template)
+               }
+       }, {
+               .alg = "phmac(sha384)",
+               .test = alg_test_hash,
+               .fips_allowed = 1,
+               .suite = {
+                       .hash = __VECS(hmac_sha384_tv_template)
+               }
+       }, {
+               .alg = "phmac(sha512)",
+               .test = alg_test_hash,
+               .fips_allowed = 1,
+               .suite = {
+                       .hash = __VECS(hmac_sha512_tv_template)
+               }
+       }, {
+#endif
                .alg = "pkcs1(rsa,none)",
                .test = alg_test_sig,
                .suite = {