Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1509609

[PATCH 2/3] crypto: testmgr - Add missing tests for internal sha256-mb implementation

From Marcelo Cerri <marcelo.cerri@canonical.com>
Newsgroups linux.kernel
Subject [PATCH 2/3] crypto: testmgr - Add missing tests for internal sha256-mb implementation
Date 2016-10-26 19:10 +0200
Message-ID <swzSa-6Mc-27@gated-at.bofh.it> (permalink)
References <swzS9-6Mc-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Add null tests for the internal algorithm to avoid errors when running
in FIPS mode.

Signed-off-by: Marcelo Cerri <marcelo.cerri@canonical.com>
---
 crypto/testmgr.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index d999373..58f903d 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -2309,6 +2309,10 @@ static const struct alg_test_desc alg_test_descs[] = {
 		.test = alg_test_null,
 		.fips_allowed = 1,
 	}, {
+		.alg = "__intel_sha256-mb",
+		.test = alg_test_null,
+		.fips_allowed = 1,
+	}, {
 		.alg = "ansi_cprng",
 		.test = alg_test_cprng,
 		.suite = {
@@ -3758,6 +3762,10 @@ static const struct alg_test_desc alg_test_descs[] = {
 		.test = alg_test_null,
 		.fips_allowed = 1,
 	}, {
+		.alg = "mcryptd(__intel_sha256-mb)",
+		.test = alg_test_null,
+		.fips_allowed = 1,
+	}, {
 		.alg = "md4",
 		.test = alg_test_hash,
 		.suite = {
-- 
2.7.4

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/3] crypto: testmgr - Add missing tests for internal sha*-mb implementations Marcelo Cerri <marcelo.cerri@canonical.com> - 2016-10-26 19:10 +0200
  [PATCH 2/3] crypto: testmgr - Add missing tests for internal sha256-mb implementation Marcelo Cerri <marcelo.cerri@canonical.com> - 2016-10-26 19:10 +0200
  [PATCH 3/3] crypto: testmgr - Add missing tests for internal sha512-mb implementation Marcelo Cerri <marcelo.cerri@canonical.com> - 2016-10-26 19:10 +0200
  Re: [PATCH 0/3] crypto: testmgr - Add missing tests for internal  sha*-mb implementations Herbert Xu <herbert@gondor.apana.org.au> - 2016-11-01 01:40 +0100

csiph-web