提交 18c0ebd2 编写于 作者: J Jarod Wilson 提交者: Herbert Xu

crypto: testmgr - mark ghash as fips_allowed

A self-test failure in fips mode means a panic. Well, gcm(aes)
self-tests currently fail in fips mode, as gcm is dependent on ghash,
which semi-recently got self-test vectors added, but wasn't marked as a
fips_allowed algorithm. Because of gcm's dependence on what is now seen
as a non-fips_allowed algorithm, its self-tests refuse to run.
Previously, ghash got a pass in fips mode, due to the lack of any test
vectors at all, and thus gcm self-tests were able to run. After this
patch, a 'modprobe tcrypt mode=35' no longer panics in fips mode, and
successful self-test of gcm(aes) is reported.
Signed-off-by: NJarod Wilson <jarod@redhat.com>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 2918aa8d
...@@ -2077,6 +2077,7 @@ static const struct alg_test_desc alg_test_descs[] = { ...@@ -2077,6 +2077,7 @@ 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 = { .hash = {
.vecs = ghash_tv_template, .vecs = ghash_tv_template,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册