linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] crypto: testmgr - Add missing tests for internal sha*-mb implementations
@ 2016-10-26 17:04 Marcelo Cerri
  2016-10-26 17:04 ` [PATCH 1/3] crypto: testmgr - Add missing tests for internal sha1-mb implementation Marcelo Cerri
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Marcelo Cerri @ 2016-10-26 17:04 UTC (permalink / raw)
  To: Herbert Xu, linux-crypto
  Cc: David S. Miller, linux-kernel, Stephan Mueller, Marcelo Cerri

This series adds null tests for all sha*-mb internal algorithms so they can
be used in FIPS mode without further problems.

Since they are 3 separated modules I decided to use a separated commit for
each one.

Marcelo Cerri (3):
  crypto: testmgr - Add missing tests for internal sha1-mb
    implementation
  crypto: testmgr - Add missing tests for internal sha256-mb
    implementation
  crypto: testmgr - Add missing tests for internal sha512-mb
    implementation

 crypto/testmgr.c | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/3] crypto: testmgr - Add missing tests for internal sha1-mb implementation
  2016-10-26 17:04 [PATCH 0/3] crypto: testmgr - Add missing tests for internal sha*-mb implementations Marcelo Cerri
@ 2016-10-26 17:04 ` Marcelo Cerri
  2016-10-26 17:04 ` [PATCH 2/3] crypto: testmgr - Add missing tests for internal sha256-mb implementation Marcelo Cerri
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Marcelo Cerri @ 2016-10-26 17:04 UTC (permalink / raw)
  To: Herbert Xu, linux-crypto
  Cc: David S. Miller, linux-kernel, Stephan Mueller, Marcelo Cerri

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 ded50b6..d999373 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -2305,6 +2305,10 @@ static const struct alg_test_desc alg_test_descs[] = {
 		.test = alg_test_null,
 		.fips_allowed = 1,
 	}, {
+		.alg = "__intel_sha1-mb",
+		.test = alg_test_null,
+		.fips_allowed = 1,
+	}, {
 		.alg = "ansi_cprng",
 		.test = alg_test_cprng,
 		.suite = {
@@ -3750,6 +3754,10 @@ static const struct alg_test_desc alg_test_descs[] = {
 			}
 		}
 	}, {
+		.alg = "mcryptd(__intel_sha1-mb)",
+		.test = alg_test_null,
+		.fips_allowed = 1,
+	}, {
 		.alg = "md4",
 		.test = alg_test_hash,
 		.suite = {
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/3] crypto: testmgr - Add missing tests for internal sha256-mb implementation
  2016-10-26 17:04 [PATCH 0/3] crypto: testmgr - Add missing tests for internal sha*-mb implementations Marcelo Cerri
  2016-10-26 17:04 ` [PATCH 1/3] crypto: testmgr - Add missing tests for internal sha1-mb implementation Marcelo Cerri
@ 2016-10-26 17:04 ` Marcelo Cerri
  2016-10-26 17:04 ` [PATCH 3/3] crypto: testmgr - Add missing tests for internal sha512-mb implementation Marcelo Cerri
  2016-11-01  0:32 ` [PATCH 0/3] crypto: testmgr - Add missing tests for internal sha*-mb implementations Herbert Xu
  3 siblings, 0 replies; 5+ messages in thread
From: Marcelo Cerri @ 2016-10-26 17:04 UTC (permalink / raw)
  To: Herbert Xu, linux-crypto
  Cc: David S. Miller, linux-kernel, Stephan Mueller, Marcelo Cerri

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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 3/3] crypto: testmgr - Add missing tests for internal sha512-mb implementation
  2016-10-26 17:04 [PATCH 0/3] crypto: testmgr - Add missing tests for internal sha*-mb implementations Marcelo Cerri
  2016-10-26 17:04 ` [PATCH 1/3] crypto: testmgr - Add missing tests for internal sha1-mb implementation Marcelo Cerri
  2016-10-26 17:04 ` [PATCH 2/3] crypto: testmgr - Add missing tests for internal sha256-mb implementation Marcelo Cerri
@ 2016-10-26 17:04 ` Marcelo Cerri
  2016-11-01  0:32 ` [PATCH 0/3] crypto: testmgr - Add missing tests for internal sha*-mb implementations Herbert Xu
  3 siblings, 0 replies; 5+ messages in thread
From: Marcelo Cerri @ 2016-10-26 17:04 UTC (permalink / raw)
  To: Herbert Xu, linux-crypto
  Cc: David S. Miller, linux-kernel, Stephan Mueller, Marcelo Cerri

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 58f903d..cfafd24 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -2313,6 +2313,10 @@ static const struct alg_test_desc alg_test_descs[] = {
 		.test = alg_test_null,
 		.fips_allowed = 1,
 	}, {
+		.alg = "__intel_sha512-mb",
+		.test = alg_test_null,
+		.fips_allowed = 1,
+	}, {
 		.alg = "ansi_cprng",
 		.test = alg_test_cprng,
 		.suite = {
@@ -3766,6 +3770,10 @@ static const struct alg_test_desc alg_test_descs[] = {
 		.test = alg_test_null,
 		.fips_allowed = 1,
 	}, {
+		.alg = "mcryptd(__intel_sha512-mb)",
+		.test = alg_test_null,
+		.fips_allowed = 1,
+	}, {
 		.alg = "md4",
 		.test = alg_test_hash,
 		.suite = {
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/3] crypto: testmgr - Add missing tests for internal sha*-mb implementations
  2016-10-26 17:04 [PATCH 0/3] crypto: testmgr - Add missing tests for internal sha*-mb implementations Marcelo Cerri
                   ` (2 preceding siblings ...)
  2016-10-26 17:04 ` [PATCH 3/3] crypto: testmgr - Add missing tests for internal sha512-mb implementation Marcelo Cerri
@ 2016-11-01  0:32 ` Herbert Xu
  3 siblings, 0 replies; 5+ messages in thread
From: Herbert Xu @ 2016-11-01  0:32 UTC (permalink / raw)
  To: Marcelo Cerri
  Cc: linux-crypto, David S. Miller, linux-kernel, Stephan Mueller

On Wed, Oct 26, 2016 at 03:04:42PM -0200, Marcelo Cerri wrote:
> This series adds null tests for all sha*-mb internal algorithms so they can
> be used in FIPS mode without further problems.
> 
> Since they are 3 separated modules I decided to use a separated commit for
> each one.
> 
> Marcelo Cerri (3):
>   crypto: testmgr - Add missing tests for internal sha1-mb
>     implementation
>   crypto: testmgr - Add missing tests for internal sha256-mb
>     implementation
>   crypto: testmgr - Add missing tests for internal sha512-mb
>     implementation
> 
>  crypto/testmgr.c | 24 ++++++++++++++++++++++++
>  1 file changed, 24 insertions(+)

I have a patch pending that skips testing of all internal algorithms.

Thanks,
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-11-01  0:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-26 17:04 [PATCH 0/3] crypto: testmgr - Add missing tests for internal sha*-mb implementations Marcelo Cerri
2016-10-26 17:04 ` [PATCH 1/3] crypto: testmgr - Add missing tests for internal sha1-mb implementation Marcelo Cerri
2016-10-26 17:04 ` [PATCH 2/3] crypto: testmgr - Add missing tests for internal sha256-mb implementation Marcelo Cerri
2016-10-26 17:04 ` [PATCH 3/3] crypto: testmgr - Add missing tests for internal sha512-mb implementation Marcelo Cerri
2016-11-01  0:32 ` [PATCH 0/3] crypto: testmgr - Add missing tests for internal sha*-mb implementations Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).