Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757534AbcJZRF5 (ORCPT ); Wed, 26 Oct 2016 13:05:57 -0400 Received: from mail-ua0-f173.google.com ([209.85.217.173]:36565 "EHLO mail-ua0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756592AbcJZRFj (ORCPT ); Wed, 26 Oct 2016 13:05:39 -0400 From: Marcelo Cerri To: Herbert Xu , linux-crypto@vger.kernel.org Cc: "David S. Miller" , linux-kernel@vger.kernel.org, Stephan Mueller , Marcelo Cerri Subject: [PATCH 2/3] crypto: testmgr - Add missing tests for internal sha256-mb implementation Date: Wed, 26 Oct 2016 15:04:44 -0200 Message-Id: <1477501485-18371-3-git-send-email-marcelo.cerri@canonical.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477501485-18371-1-git-send-email-marcelo.cerri@canonical.com> References: <1477501485-18371-1-git-send-email-marcelo.cerri@canonical.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 918 Lines: 36 Add null tests for the internal algorithm to avoid errors when running in FIPS mode. Signed-off-by: Marcelo Cerri --- 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