Explorar o código

crypto: cmac - allow usage in FIPS mode

CMAC is an approved cipher in FIPS 140-2. The patch allows the use
of CMAC with TDES and AES in FIPS mode.

Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Stephan Mueller %!s(int64=10) %!d(string=hai) anos
pai
achega
8f183751a8
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      crypto/testmgr.c

+ 2 - 0
crypto/testmgr.c

@@ -2476,6 +2476,7 @@ static const struct alg_test_desc alg_test_descs[] = {
 		}
 		}
 	}, {
 	}, {
 		.alg = "cmac(aes)",
 		.alg = "cmac(aes)",
+		.fips_allowed = 1,
 		.test = alg_test_hash,
 		.test = alg_test_hash,
 		.suite = {
 		.suite = {
 			.hash = {
 			.hash = {
@@ -2485,6 +2486,7 @@ static const struct alg_test_desc alg_test_descs[] = {
 		}
 		}
 	}, {
 	}, {
 		.alg = "cmac(des3_ede)",
 		.alg = "cmac(des3_ede)",
+		.fips_allowed = 1,
 		.test = alg_test_hash,
 		.test = alg_test_hash,
 		.suite = {
 		.suite = {
 			.hash = {
 			.hash = {