crypto: testmgr - disallow plain cbcmac(aes) in FIPS mode
authorNicolai Stange <nstange@suse.de>
Thu, 29 Dec 2022 21:17:08 +0000 (22:17 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 6 Jan 2023 09:15:47 +0000 (17:15 +0800)
commit1ce94a8c2c3721be1d9bc85fd38fc8c520aa37d6
treee405610de296bee86e613fa55e7de5a0c8477df6
parentb6f5278003c4b250f19499a6561d6437b2c94c8e
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 d6097b8d5d55 ("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 <nstange@suse.de>
Signed-off-by: Vladis Dronov <vdronov@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/testmgr.c