From patchwork Tue May 11 11:40:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 434199 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp3740580jao; Tue, 11 May 2021 04:41:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxboCICOAE8VCpBVXkh8OHYCiMmKaeVtPd35/1pI35X+nlQdTjyjcSFA/o425V4BxoXoGzu X-Received: by 2002:a05:6402:7d1:: with SMTP id u17mr35834993edy.312.1620733270800; Tue, 11 May 2021 04:41:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620733270; cv=none; d=google.com; s=arc-20160816; b=yax2eFCo4+kJ/WDTsTibISHcd+A8B6Nj+sVHvHu1mO3CFvTfrepG1cZ+h2xwJ2qKBM 8teSI0ogRaNnw5YBre0P2l8gma8PjB3bzsc659H5SbQoHGyoBsDETrljWgyE5Gu/ioZR 6dfwWcF6FUfujyXp8iCeBfv7Pb+qAojx85+1qYmHW3BMBRRbcNPzbbzs9+BvxrrWvONZ I5PnaKkH8hYmsgxXEJtSTYcCz0kpTABuiUO08sDpwq5XnOc9OIVugdnDVnBJudc2vD0Q K298apj7tUJ3o6fmc0Oq9f6kBwP7FwLvoBbGzaYh3O04jEBPOld3yHhu8MtC9ophnm5D KMxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=pfEHiC1b23K+0E6nNyYP7hOfkiCfvnvTzOqfABiip0g=; b=NCxkfxH+MxFf3p+aMbqdPp8zoc2Q0LrriW4a8h5Aql0yxt9BH+4Pl7NP3P0sE6WYPC DjbqhyR6A+6a5Siio36cMQQTk3iKWmlmhQorEs3tbOPyFZ88nSuqCLSH5oH3ZrYRzWl5 oUdzGQrsR6P0Jq07p0NuqAMsmqjOi0hk+015a/sNR1MEc5k84C4hpspdPrwo4y8Zblne T+m6klsfZE27sgWHulwBXx8LMRICveOQCdY5OuTX5zht1zKpMOuLxjII0+OI4StJDEZ/ ATVJelvkcUZVEKGjf/lEbFj7AQ5EvIXoQ9Obmn29te3bymbUA15151BfKC8uWR0DhsMu PjTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=juCPVjIJ; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id i6si15865344edx.304.2021.05.11.04.41.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 May 2021 04:41:10 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=juCPVjIJ; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4E1C082F4C; Tue, 11 May 2021 13:41:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="juCPVjIJ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7BC7982F60; Tue, 11 May 2021 13:41:05 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4AC0782F49 for ; Tue, 11 May 2021 13:41:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ilias.apalodimas@linaro.org Received: by mail-wr1-x42d.google.com with SMTP id a4so19805052wrr.2 for ; Tue, 11 May 2021 04:41:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pfEHiC1b23K+0E6nNyYP7hOfkiCfvnvTzOqfABiip0g=; b=juCPVjIJ3y/1SmUAI+oKR3e5GT8Wf06IjzCTXKqsrjbDkZSLQz8n4/eP62jiXvZPG5 6ozBSM3OOpYchDhbxtD5UN1FddhzIxO/S26h2BUXyWyY7WH3uss++IYzUbCo2dU96aex P0k98r8Fdo0NJk1x4fGXzVhLzr5npix0i7zm6AUNUdjcp5xeePYHGVC8TBqCgmWLEYF5 Y/hlfgvAFwJkGpa99+iFX3OfDpsbzaaL+eGAdNud9MJIxP1R2WUUEF/gYg2wOwFp+d0M 6EzG9m/veIbM9goCj4RYQuPNHsJvLF9uzEgeDZd9ErlF+RjWdxKZ7sZuLOT1IKBQiH5Z wr+Q== 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:mime-version :content-transfer-encoding; bh=pfEHiC1b23K+0E6nNyYP7hOfkiCfvnvTzOqfABiip0g=; b=q0tUSdCVFvz82RgllnVNUd/JtDoiGx1QHQbdwH1ZOAl1mmMhVPIXmfvHhCkWbwkbu9 lxTat3djeU7ALazvDVDz1asZDRQLm26lDHy3txAHZLvDz+V/pu0duWwkI0zjzSnAjRGH HziAwYvvdEVozP1bni6GmFN1sRhE9XCGqkCR1mE2G0HWyGuMr9nIhZmnVrjn4Tjf12hC qG0GjjDT9OrHDSINHnAgzZpka1iCnXg7kPBs2PHszMKYuD0rbc6zM8IHTVEISJVtO4MK pTyM1Uv3oMnrCcqsqrDmxhem9cm43E48CXYRmnrNF+DWRb5RXPLIqqbTae7kGyvkDGlV c2Jg== X-Gm-Message-State: AOAM530ekqlftw3BIjPQCJb91cbFvbmIbyA6JyXEhYEz3f51v8SnsH8P iPcWK6EbVhcOLh15iFdKpsEfAg== X-Received: by 2002:a5d:6041:: with SMTP id j1mr36261613wrt.374.1620733260893; Tue, 11 May 2021 04:41:00 -0700 (PDT) Received: from apalos.home ([2a02:587:466e:1389:2e56:dcff:fe9a:8f06]) by smtp.gmail.com with ESMTPSA id b8sm28337141wrx.15.2021.05.11.04.40.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 May 2021 04:41:00 -0700 (PDT) From: Ilias Apalodimas To: xypron.glpk@gmx.de Cc: Ilias Apalodimas , Michal Simek , Alexander Graf , u-boot@lists.denx.de Subject: [PATCH v4] efi_loader: Fix Kconfig for EFI_TCG2 protocol Date: Tue, 11 May 2021 14:40:58 +0300 Message-Id: <20210511114058.260933-1-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean EFI_TCG2 depends not only on TPMv2 but also on the underlying algorithms. So select the missing SHA1, SHA256, SHA384 and SHA512 we currently support Reported-by: Michal Simek Signed-off-by: Ilias Apalodimas --- changes since v3: - add multiple select lines changes since v2: - remove 'on' after select changes since v1: - use 'select' instead of 'depend' lib/efi_loader/Kconfig | 4 ++++ 1 file changed, 4 insertions(+) -- 2.31.0 Reviewed-by: Heinrich Schuchardt diff --git a/lib/efi_loader/Kconfig b/lib/efi_loader/Kconfig index 0b99d7c7749b..9a5a0334ad45 100644 --- a/lib/efi_loader/Kconfig +++ b/lib/efi_loader/Kconfig @@ -301,6 +301,10 @@ config EFI_RNG_PROTOCOL config EFI_TCG2_PROTOCOL bool "EFI_TCG2_PROTOCOL support" depends on TPM_V2 + select SHA1 + select SHA256 + select SHA384 + select SHA512 help Provide a EFI_TCG2_PROTOCOL implementation using the TPM hardware of the platform.