Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2242113pxb; Sun, 17 Oct 2021 09:25:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYEj1KMa8S24TWgA5fb3n5FHG1J9P49SFnh2+4oOYuqLzbHRJRPkEJN9nfXf6nvwYqv8Yz X-Received: by 2002:a17:906:3842:: with SMTP id w2mr23762537ejc.28.1634487901138; Sun, 17 Oct 2021 09:25:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634487901; cv=none; d=google.com; s=arc-20160816; b=BJZ+1Peqmcb+m9RUyctzukswK07T01vhoDkTQkuAAhUUzbkvSYOKCDgBwB+M1VOhrz w1H7TzLYec+lYCkqHxz6BC4Uy7HzzL2yHD5Zv87/u7yYxkExH7t6HwaaqQlNwFWSH9YS cFx4SkrOZhaXsFa0x9knwMKYrxep0ORj7HIjZ6rPz8VI/OMrGksUYSEaNbjHqziz760X 5qHcGpMUf8jSgFkgmFtOZL1a9MWkHu1EhXteAGC+6Bobwnp+zdVAp41QRmFM1ppzXpVz IVBX6Bc+prEFiP3MxGXPvnwiw4GoJj9NrmD9kdz4jfiyhXilVxbi59yDmBo5smn0mtT9 NAaA== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=aSiSp0I6h7OYDgmAKUEzR/gjFj09yU7z4fuNaL4q9yg=; b=Ihwj/WIE6glFMQQpvhD+xtZbMc4CaH99lq4hn0Op1AD89gRknHk2peafrHzeb/u7u5 mbRCp3W1zGCaQ5IETH0FJRA9UyUDmgdEztU5NrZqt80R57/m/HWQyYWPacS0OseWw7t2 sB7nezR3HZQKQpdbbN/2oNgWLMjPUEp34QcKbKLcJVBAP/zB1OGf/zHoXle3ZFaJIqbp e7V/NwT9q+z+MYSY/qBJNUplxeR7cTB3wCYoTUz5ucYjPQt/QjsC3c700WR4w28X2Nq1 27OqDFXIbw0BKkOKVrPChKb6EakomAUmAWOOaX6DxZJ6tUw5Ju7cveOCTBEk4SGFQRCQ yNtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rmFRNxZR; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o7si16707104ejc.262.2021.10.17.09.24.22; Sun, 17 Oct 2021 09:25:01 -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=@kernel.org header.s=k20201202 header.b=rmFRNxZR; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238254AbhJOTMN (ORCPT + 99 others); Fri, 15 Oct 2021 15:12:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:33858 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbhJOTMN (ORCPT ); Fri, 15 Oct 2021 15:12:13 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 361B56108B; Fri, 15 Oct 2021 19:10:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634325006; bh=vuv4ThUrmJnicKqrCER7VCEEShBnDhSJeqRegsHiVbo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rmFRNxZRaTKcfqlW3ItWPQyjkGDb+Na1j8MR3W0Hjgl8Ez7T7YZzFQBS0Iir0P7Oh V3Xh2lN9y1e/OZUeUIFnAy1+2B5g01lihs2A/taFkfoi+xsIRPOj754gHLj1Y5OoRz K8ZF+E/+ygtsk4ZM290UczzytSO9zDnDCt9gtnlb2isS32jhJGKgE/WBnYJQL/JH3e MHuyJsFgkzTRPppOnbhjT6BCBZ6C5+CpkOFj7TUl4nVthIh+ZWdh7W5noZorDDIt2a AkoRL82U0XbG4Csaf3h5kcF749FJilHEwk+uYRasXSc2Pu2qac5bc/FoMn3WwMKVh0 i3GNgkcnG6qNQ== Date: Fri, 15 Oct 2021 12:10:04 -0700 From: Eric Biggers To: Ard Biesheuvel Cc: Vegard Nossum , Linux Crypto Mailing List , Herbert Xu , linux-efi , Linux Kernel Mailing List , Hans de Goede Subject: Re: [PATCH] efi: select CRYPTO for EFI_EMBEDDED_FIRMWARE Message-ID: References: <20211015131946.13374-1-vegard.nossum@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, Oct 15, 2021 at 03:55:01PM +0200, Ard Biesheuvel wrote: > (+ crypto folks) > > On Fri, 15 Oct 2021 at 15:24, Vegard Nossum wrote: > > > > Fix the following build warning: > > > > WARNING: unmet direct dependencies detected for CRYPTO_LIB_SHA256 > > Depends on [n]: CRYPTO [=n] > > Selected by [y]: > > - EFI_EMBEDDED_FIRMWARE [=y] && EFI [=y] > > > > Fixes: f0df68d5bae88 ("efi: Add embedded peripheral firmware support") > > Cc: Hans de Goede > > Signed-off-by: Vegard Nossum > > Hello Vegard, > > I don't think this is the right fix, to be honest. The crypto library > functions have no dependencies at all on the crypto API, so I think it > would be better to do something like the below: Actually some of the crypto library functions need __crypto_xor() and __crypto_memneq() which are only compiled when CRYPTO. So that will need to be fixed by moving those functions to an appropriate place first. - Eric