mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
crypto: testmgr - disallow plain ghash in FIPS mode
ghash may be used only as part of the gcm(aes) construction in FIPS
mode. Since commit d6097b8d5d
("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 ghash 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>
This commit is contained in:
parent
1ce94a8c2c
commit
2912eb9b17
@ -5125,7 +5125,6 @@ static const struct alg_test_desc alg_test_descs[] = {
|
|||||||
}, {
|
}, {
|
||||||
.alg = "ghash",
|
.alg = "ghash",
|
||||||
.test = alg_test_hash,
|
.test = alg_test_hash,
|
||||||
.fips_allowed = 1,
|
|
||||||
.suite = {
|
.suite = {
|
||||||
.hash = __VECS(ghash_tv_template)
|
.hash = __VECS(ghash_tv_template)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user