Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp879772pxb; Wed, 27 Oct 2021 14:20:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIWn6lahU+sL9YKD8Dhtftbxb3YFdGHGIgiQEf3sHDkz0qetVp6BMA2uR6Ni9ImtFyNa/p X-Received: by 2002:a05:6402:401:: with SMTP id q1mr390416edv.225.1635369658309; Wed, 27 Oct 2021 14:20:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635369658; cv=none; d=google.com; s=arc-20160816; b=KRP0uyaz25UXLrpFO767MRQOGmgnTSzv4oHlgYCxuUj4R1pNBNkBwg12Zr6Z91FmIE ruyEq13AYy9nSfhsheFegPMo9rqYQWg+F636mQzetLeXEah+hpXA7hif3WjuyltwbcSe VvQlm/6RT0AQ3q9kG0FwFNRheLf8pmuK4IbU9bxdgpiWJq1zDrpWhmYZ9YyRMjPItZYf ePcj7ROnfKAIPIfqALv/IFgJ/AaSjV600h0VK5KzvV+gr32w8Ts0+4Bk17WkcT1ooRVK zuBlBOgxZYF/ldH+4KXnbNETVWnenUmIby2D0aax4A6IuXh3DONBxlVBRAtNSAUXUURj EUGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature:dkim-signature; bh=kNuMns/lFc+q5NdSRt/8ucNrQbkjmOfQfueI5a2yskA=; b=tt3vMwz2QI825eTPfMMct1pdW2TEs6ty15V2M5QTNx4Ip48ry8rup7FUB0+kIzk3az MyqYOSmhLT1W8uHp9SfQnEo5imF0J1FUp0uf1C/YZ1s7pT4M4IxeSiBors01iKrOnUb+ 0nyZd247PIKyzXdO8wN0KUMBZJhadJ3X9+bF83ZksrjQmUVTH9dVQ8+u3jSbbvxVyg28 rDWzohhRoUQ0DpYiL9ZxRGgI++3tQmz0ItTIn9wp/qeYQWx3JqENSUQkgq79BWlkSD77 K3na8ZspWF7jaCUE5+BBWpkim0tglsOE4XQuCBbk3HdeHrdgjtjxmEqZIlw0+S+ujCSV GYVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=0KMoiY6s; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=jCiJfcO+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p15si1480108edj.97.2021.10.27.14.20.34; Wed, 27 Oct 2021 14:20:58 -0700 (PDT) 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; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=0KMoiY6s; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=jCiJfcO+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238986AbhJ0KC2 (ORCPT + 99 others); Wed, 27 Oct 2021 06:02:28 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:37928 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241492AbhJ0KBx (ORCPT ); Wed, 27 Oct 2021 06:01:53 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 92A061FD3B; Wed, 27 Oct 2021 09:59:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1635328767; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kNuMns/lFc+q5NdSRt/8ucNrQbkjmOfQfueI5a2yskA=; b=0KMoiY6s0n2PppbCIKhx/5C3wQwGa6OkfqmzMcFPWlR9HVgXVwQTkbUorEkX8WdNu+gFK2 WZ8WgPYkRvWTLnPwxRMCWxcNtw8DGb0GTIrLMIsDCGbFELDWCKQd0pMTVes2G0XtSjvQyw 3AeQobChNP7Cx4IvSRwm3BtKT1iINW4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1635328767; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kNuMns/lFc+q5NdSRt/8ucNrQbkjmOfQfueI5a2yskA=; b=jCiJfcO+yLcv9BvSFfARVqgQ4WvXDjGPojg/QfVKSCB89f0dpHNsAV44BKas+1e2Sgir4v lJ3BAa8BGyKt/GBQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 4A22213B85; Wed, 27 Oct 2021 09:59:27 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id iGZDEP8ieWHaOgAAMHmgww (envelope-from ); Wed, 27 Oct 2021 09:59:27 +0000 From: Nicolai Stange To: Herbert Xu Cc: Nicolai Stange , "David S. Miller" , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Stephan =?utf-8?Q?M=C3=BCller?= , Torsten Duwe Subject: Re: [PATCH 8/8] crypto: api - make the algorithm lookup priorize non-larvals References: <20211003181413.12465-1-nstange@suse.de> <20211003181413.12465-9-nstange@suse.de> <20211008115432.GC26495@gondor.apana.org.au> <87lf30rmd8.fsf@suse.de> <20211022115146.GA27997@gondor.apana.org.au> Date: Wed, 27 Oct 2021 11:59:26 +0200 In-Reply-To: <20211022115146.GA27997@gondor.apana.org.au> (Herbert Xu's message of "Fri, 22 Oct 2021 19:51:46 +0800") Message-ID: <87zgqupz41.fsf@suse.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Herbert Xu writes: > On Mon, Oct 11, 2021 at 10:34:11AM +0200, Nicolai Stange wrote: >> >> In order to keep a FIPS certification manageable in terms of scope, >> we're looking for a way to disable everything under drivers/crypto iff >> fips_enabled =3D=3D 1. The most convenient way to achieve this downstream >> would be to add dummy entries to testmgr.c like so: > > How about testing based on the flag CRYPTO_ALG_KERN_DRIVER_ONLY? > That flag is meant to correspond to pretty much exactly > drivers/crypto. Hmm, I checked a couple of crypto/drivers and it seems like not all are setting this flag: random examples would include cavium/nitrox/, chelsio/, padlock*.c, vmx/, ... Many thanks! Nicolai --=20 SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 N=C3=BCrnberg, G= ermany (HRB 36809, AG N=C3=BCrnberg), GF: Felix Imend=C3=B6rffer