From patchwork Wed Oct 26 17:04:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcelo Henrique Cerri X-Patchwork-Id: 9397751 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1CA2460234 for ; Wed, 26 Oct 2016 17:06:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2380129CAB for ; Wed, 26 Oct 2016 17:06:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 17F6C29CB9; Wed, 26 Oct 2016 17:06:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CF8C629CAB for ; Wed, 26 Oct 2016 17:06:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757272AbcJZRFx (ORCPT ); Wed, 26 Oct 2016 13:05:53 -0400 Received: from mail-ua0-f180.google.com ([209.85.217.180]:33676 "EHLO mail-ua0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756595AbcJZRFj (ORCPT ); Wed, 26 Oct 2016 13:05:39 -0400 Received: by mail-ua0-f180.google.com with SMTP id 6so7570519uat.0 for ; Wed, 26 Oct 2016 10:05:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=waG0cExeEdpMEX4O49P6lqUIa3+9j/RKOAahdgBpuIM=; b=dBF4huUghdQbQX7es0NBIklB5efNH5ALJkrwao7z1PKrZbze2tf5lvHq17zguvK/r1 Wc9JzZKQH9e2cLRkke9Nsx3ofaW4DoFcY3EXqvX72sT4cEUl3iICqNMOtiW0LW2ZLEvi RnuzO7OUmpK48bJNuWOhGduaP5VsYx1EdB6BSUeFi2Yml9j+iCb2kHaSMzVWRRB/Oe4m QygNuIcP2vPVF+S8f43WiiQGogFXAUTmcI7rAwO5PzzEh/AMs9Z6kNjJx60h95Ofh3RN xITYcOCduDeYTVU6mrBK+dacz5Sr3dsPDs9sC1HdCwMIPtyncsJ+Sx0XH1hLSFi1MsbU aYTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=waG0cExeEdpMEX4O49P6lqUIa3+9j/RKOAahdgBpuIM=; b=Rm+sFgMgsNctdD+ni+E8w+DbQ8/vFWmyj0Jf+283b8B+zquvL00YvydMt+lMx4hxkf vlO+oGkiJgsMbVQo1w1P0AkQYqi6eiv5cqUGDTF5BqdPPEihdA71cUgD5gFAS+r95oJo ZeZwJSwHz6varzJowEKrQb9d3aGo9un9IICyFInRBDW1Exi3xG5rgqw6AvPOrE04j8Z6 1LBcSJoCk7tW1EXgEfLR3FZ/t5LQDEd81HngtlxSXb2WsuqF4+6Zrt7tKoyXMyI6dcSF Pji/4+W/NjEI8v3WVFzd+HitTV2UT/K5OCSRTTLNCJXnk/k/RgtsyzRui0XBeQXPxzpE 2SsA== X-Gm-Message-State: ABUngvf2A4q/HvyC3g99wSRIZSmSHvo2hQC3fTvXUyB9IekLFoAw2xZsI3jPD23hCuA5xoW7 X-Received: by 10.176.6.233 with SMTP id g96mr1944968uag.97.1477501533560; Wed, 26 Oct 2016 10:05:33 -0700 (PDT) Received: from localhost.localdomain ([189.79.179.176]) by smtp.gmail.com with ESMTPSA id 16sm721542uat.3.2016.10.26.10.05.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 26 Oct 2016 10:05:32 -0700 (PDT) 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-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 = {