Skip to content

Commit 1ce94a8

Browse files
nicstangeherbertx
authored andcommitted
crypto: testmgr - disallow plain cbcmac(aes) in FIPS mode
cbcmac(aes) may be used only as part of the ccm(aes) construction in FIPS mode. Since commit d6097b8 ("crypto: api - allow algs only in specific constructions in FIPS mode") there's support for using spawns which by itself are marked as non-approved from approved template instantiations. So simply mark plain cbcmac(aes) as non-approved in testmgr to block any attempts of direct instantiations in FIPS mode. Signed-off-by: Nicolai Stange <[email protected]> Signed-off-by: Vladis Dronov <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent b6f5278 commit 1ce94a8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

crypto/testmgr.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4501,7 +4501,6 @@ static const struct alg_test_desc alg_test_descs[] = {
45014501
}, {
45024502
#endif
45034503
.alg = "cbcmac(aes)",
4504-
.fips_allowed = 1,
45054504
.test = alg_test_hash,
45064505
.suite = {
45074506
.hash = __VECS(aes_cbcmac_tv_template)

0 commit comments

Comments
 (0)