From patchwork Wed Feb 8 09:27:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Herbert Xu X-Patchwork-Id: 651851 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 37B1FC636D3 for ; Wed, 8 Feb 2023 09:30:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230283AbjBHJad (ORCPT ); Wed, 8 Feb 2023 04:30:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231690AbjBHJaK (ORCPT ); Wed, 8 Feb 2023 04:30:10 -0500 Received: from formenos.hmeau.com (167-179-156-38.a7b39c.syd.nbn.aussiebb.net [167.179.156.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C359647091 for ; Wed, 8 Feb 2023 01:28:42 -0800 (PST) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1pPgjn-008oXL-RK; Wed, 08 Feb 2023 17:27:36 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Wed, 08 Feb 2023 17:27:35 +0800 Date: Wed, 8 Feb 2023 17:27:35 +0800 From: Herbert Xu To: Linux Crypto Mailing List , Ondrej Mosnacek Cc: Clemens Lang Subject: [PATCH] crypto: testmgr - Disable raw RSA in FIPS mode Message-ID: MIME-Version: 1.0 Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org As FIPS is only able to verify the compliance of pkcs1pad the underlying "rsa" algorithm should not be marked as fips_allowed. Reported-by: Clemens Lang Signed-off-by: Herbert Xu diff --git a/crypto/testmgr.c b/crypto/testmgr.c index dd748832ed4a..6fbb56c6bd4c 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -5467,7 +5467,6 @@ static const struct alg_test_desc alg_test_descs[] = { }, { .alg = "rsa", .test = alg_test_akcipher, - .fips_allowed = 1, .suite = { .akcipher = __VECS(rsa_tv_template) }