From patchwork Fri Apr 21 11:03:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Milan Broz X-Patchwork-Id: 9692477 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 231E660328 for ; Fri, 21 Apr 2017 11:03:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1319728433 for ; Fri, 21 Apr 2017 11:03:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0662428607; Fri, 21 Apr 2017 11:03:18 +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.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 9733228433 for ; Fri, 21 Apr 2017 11:03:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1038029AbdDULDQ (ORCPT ); Fri, 21 Apr 2017 07:03:16 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:35707 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1037893AbdDULDP (ORCPT ); Fri, 21 Apr 2017 07:03:15 -0400 Received: by mail-wm0-f68.google.com with SMTP id d79so4203471wmi.2 for ; Fri, 21 Apr 2017 04:03:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=q7WkwUCfk3XJv2R7R31Hjr70n1lTbsqzCygBnNTp/nQ=; b=p5aYZ6z/Ve0HzXcWSLqHs0b8vqxXeSqTFksx+I7D67Kw4zFMD7Pg8adU5GfHPYPWGa GztS3AjGcU+3Y2jj4UeWqZ2KomE1Sq4HvxEPmNkVQG+/nykscOFidI/jyTevvYLpMy5v XLHOCsv98y/pqGhGOMlJ/ZksfucqQjP6q4cCfZMMFpyHN2RvhsHzMTuUzFFnD1ocX4YW biCEhlTJBDi4RjbHlCzf5a62v5HHGH+slKyHzYaYkjDTZF+2aYbLcciZ2iwCZtHt5z8F Tw8PgwKVtYCFgkfeJfnSZr7GSNjIEVIM/3E5fHQrqhtN2T9mdcHbWUfGLdt1Xi8BBbVU uHfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=q7WkwUCfk3XJv2R7R31Hjr70n1lTbsqzCygBnNTp/nQ=; b=Kc3eDqii+wY4UV3Chk3dDXJsbLpOD0YxrnBTVTqFHvnjY/2Kyvkuo8XzpzUkm/ZLcB GT8gxfN7y/9R3aa/zw9tMD09DHlQUWCFK7FDy5rgf8GIlW4mPTDvmOltIbhujvfA5Gw3 ku6GCO8S36AbVn4Q1nVLaFp3Ins1N0S8dS//wv2EduKKYuN+alTBCASPeTKaZxQkcHrW SyeSPbrztq/fzCLkN08CGRG7rPGVvBdPJQxkjMw0vj+b8I3O8dOAF19QmRt5mgrHScCx lDcGdysC+iFvN6sKdsmJ+Wc/UpGu5vEVJV+gkFtcaLrFfJpCsgrJk5kaDWv9xKgEtbu6 r5Jw== X-Gm-Message-State: AN3rC/40DuGgmF0fxWnszfUqF2frKbNIszJxDTsvou/jZYsyzMYfReOO 7NiQs8tSc3YPJA== X-Received: by 10.28.155.84 with SMTP id d81mr7576192wme.122.1492772594326; Fri, 21 Apr 2017 04:03:14 -0700 (PDT) Received: from merlot.mazyland.net (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.googlemail.com with ESMTPSA id u47sm11283919wrb.27.2017.04.21.04.03.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Apr 2017 04:03:13 -0700 (PDT) From: Milan Broz To: linux-crypto@vger.kernel.org Cc: Milan Broz Subject: [PATCH] crypto: Allow ecb(cipher_null) in FIPS mode Date: Fri, 21 Apr 2017 13:03:06 +0200 Message-Id: <20170421110306.3343-1-gmazyland@gmail.com> X-Mailer: git-send-email 2.11.0 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 The cipher_null is not a real cipher, FIPS mode should not restrict its use. It is used for several tests (for example in cryptsetup testsuite) and also temporarily for reencryption of not yet encrypted device in cryptsetup-reencrypt tool. Problem is easily reproducible with cryptsetup benchmark -c null Signed-off-by: Milan Broz Acked-by: Stephan Müller --- crypto/testmgr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/testmgr.c b/crypto/testmgr.c index f9c378af3907..5075e4d982ee 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -2875,6 +2875,7 @@ static const struct alg_test_desc alg_test_descs[] = { }, { .alg = "ecb(cipher_null)", .test = alg_test_null, + .fips_allowed = 1, }, { .alg = "ecb(des)", .test = alg_test_skcipher,