Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1524094pxb; Sat, 29 Jan 2022 08:26:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJzFqPDbgatpn9gC7UhhcKTYxcivf28lx/pLDsPTD0rPadvgGcacxh8hGNcoALggxyaaQfiz X-Received: by 2002:aa7:d913:: with SMTP id a19mr13142475edr.123.1643473579176; Sat, 29 Jan 2022 08:26:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643473579; cv=none; d=google.com; s=arc-20160816; b=gndj2qWZi7wLSKCQUD6yRwbKq/ObXGUe20br7Ze4iT1oIr4uqofCge8wxuPKkXHC7v nodTujUSZumpZ5Nw4xHtMxNnkRxf/kmiNy1mKVpz0ZvuXE+r445rLndQzS5xnzP90QRb X1A06CqaQF9dlT6AwuqSatIH9XP6aaY53S2KEpkDIlbHnQ/SkrJaT2t//uQfTw3m6KLX 1Tkay+ywclqsGIXzj+7CpcBpv25f994JFIhozysTsk2+Gy0qY5YjFgUPp0LBPbue4P1r nCjloKJEIZRn+0ZJbllthphIf69w6KZ+IY0FcfD6yx+EBstqXckLlh6KvV4bPSjxWKlk O9DQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=i+ww4Ixek6e7+4UCk8NBxNAo+yi0QcCpIbztlOj4uDQ=; b=Djs6+/Zp/sogGxcbOj/3V/AE+MSDaZygbrQfqRMXJPJ+Eb+iuEooq2JMeJ4UmtV9o+ ce/wTFnkTs7h4ysdS3awu0tK5ZWJxS1zEut1a/LVDHkjvrsKrwLTfTFmds4Y5dTUCRSX Ir7Ul7EznnlVOez7YoQbivWg+i5h1J+Us5+F5dpnYlYFJqhZeohb+TmJhvWEoPqmQ0M0 wtSdPV7YyLD1/fPyEJ68O3UhOwsZlMBMQyuj6CWPt5lGw+fekXYrU0h8V8Po2vecmFe9 mZWCVZYKK3WZ5n1PuBbOUK7Ex8L4GquS6nZ8ZRCyWYqym3tGwFLC2rfDQmY4Q5/3qnuF EaOA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h8si4954539edb.84.2022.01.29.08.25.42; Sat, 29 Jan 2022 08:26:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346075AbiA1EqZ (ORCPT + 99 others); Thu, 27 Jan 2022 23:46:25 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:60584 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237235AbiA1EqY (ORCPT ); Thu, 27 Jan 2022 23:46:24 -0500 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1nDJ9Q-00086J-Iy; Fri, 28 Jan 2022 15:46:21 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 28 Jan 2022 15:46:20 +1100 Date: Fri, 28 Jan 2022 15:46:20 +1100 From: Herbert Xu To: Stephan =?iso-8859-1?Q?M=FCller?= Cc: linux-crypto@vger.kernel.org, Niolai Stange , Simo Sorce Subject: Re: [PATCH] crypto: HMAC - disallow keys < 112 bits in FIPS mode Message-ID: References: <2075651.9o76ZdvQCi@positron.chronox.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2075651.9o76ZdvQCi@positron.chronox.de> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, Jan 07, 2022 at 08:25:24PM +0100, Stephan M?ller wrote: > > diff --git a/crypto/testmgr.h b/crypto/testmgr.h > index a253d66ba1c1..1c39d294b9ba 100644 > --- a/crypto/testmgr.h > +++ b/crypto/testmgr.h > @@ -5706,6 +5706,7 @@ static const struct hash_testvec hmac_sha1_tv_template[] = { > .digest = "\xb6\x17\x31\x86\x55\x05\x72\x64" > "\xe2\x8b\xc0\xb6\xfb\x37\x8c\x8e\xf1" > "\x46\xbe", > +#ifndef CONFIG_CRYPTO_FIPS > }, { > .key = "Jefe", > .ksize = 4, Please don't use ifdefs, you can instead add a fips_skip setting just like we do for cipher test vectors. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt