Message ID | 20210512113228.29354-4-masahisa.kojima@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4738032jao; Wed, 12 May 2021 04:33:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYqHTzP0bu+IcVHDC3NXOXMPvw9D1p91atQ6Okj4Ayv8wPrgF33T5Hiwc3LCkPP+M6vYLY X-Received: by 2002:a17:907:e89:: with SMTP id ho9mr35816644ejc.5.1620819204006; Wed, 12 May 2021 04:33:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620819204; cv=none; d=google.com; s=arc-20160816; b=gi3pSpqZS+eIVDRp3g7A6eiGfT+jEdVHXzu2cj4Sqaxy2x1K35xlVd6PtYcEmjeDb3 c+P8MxVm+qVfMJQja5yjSpyOSK5YOmtHbiiFsfLvolp5uwrJtZXy/3nAaJEFxkBeiTdS tFtMusAIXohTNI6BbKOkDTq9fDW5PdF1NBS3jmWL6bu+O9gdFAEapslTZg4wMO0Jf65o 9qlokUYcZG8tT+9LHruMfyIlk3g+0zdCjjVT/tazwVoYDuiE3gVLy7qJKNSIwUo9aXzV vXc07qYCyQGOSkQ1tmW7+egyWFWcZ+Nbp3P6+H/5r2FzcTYn1KZRvCnK8T0z72YKnb/6 XeNg== 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:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=wpLBTp80qj41KX0iqe5gfWqmkyAFzkCli+V3jtfUrlk=; b=wnZ7IGkeOVw771s/tF+BKQui8zDp/6jTCecQp0I5T9ZL5EB9lkZUWHNd2GKn1hXSOM OzEQiTG3sBeUrLqkcIE4/2i0dEe5C3JD2uAkwhwsJ7Zql3imSNDUzBPI5mqx2Uw4ZdlT CS3MhJIBd0O+8Zs5Gh6o8pIZGccdi8kA1OHf3LJQA4sPXoo2o/UUFCLjlVAvbH/rTem7 5B5rBlar7B9vBzreOWsUd+3L3mkvl1CF9SXMF5QmiTAdZQJRMXY5ImfKjN3JVUoOoMI4 2Z7SQzcDDHnDS7jbH1FR2Uk/uKa4f2IRhnMGDIEtMl7BhnyYnkmpV/IjfeXwTvjZvbKr /i5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RLG48u0u; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id qx9si19582332ejb.434.2021.05.12.04.33.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 04:33:23 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RLG48u0u; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 A3CA082D56; Wed, 12 May 2021 13:33: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=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="RLG48u0u"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6C77282D5F; Wed, 12 May 2021 13:32:53 +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-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) (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 9B96181FCD for <u-boot@lists.denx.de>; Wed, 12 May 2021 13:32:48 +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=masahisa.kojima@linaro.org Received: by mail-pj1-x1032.google.com with SMTP id gc22-20020a17090b3116b02901558435aec1so3122587pjb.4 for <u-boot@lists.denx.de>; Wed, 12 May 2021 04:32:48 -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:in-reply-to:references; bh=wpLBTp80qj41KX0iqe5gfWqmkyAFzkCli+V3jtfUrlk=; b=RLG48u0uVbbsGH2K7wovgHXOlrjBgA65YEkK/SyL0oAnUuN9NLemYcPT9GJ0ks6pWU do7s3mvPxzUv8hBEORHrzTIGsp/dhlWUMG5Vo78+p32oKZJjM53HFHEaqkp8zUSeuR3b gl9iiX7IypNeCUvzol1vkyygMJbacmY5N56xvBaiqerz/jsiXULFMQJLSGAcdH9gkCHh Zj1fDEEyjtsM9m0OqZTFlsd6CX7ZDHq6/KpyDG8Q9Ym7z67xcMm+L1lI43Sgvz4jqn9x AzfWAYWZKUeJtcoF/FcDKtl/X7g46dIFkmEVYq19TttuD+WPTNYZyC6sn4DlV73I9Y3H x8Mg== 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:in-reply-to :references; bh=wpLBTp80qj41KX0iqe5gfWqmkyAFzkCli+V3jtfUrlk=; b=pGTqV0Dj6eTN2xt8Z7qZMa+3hiM2kMzA9I4WKbY9x5vq4Ic4TI4GSiZ5BWGS/B6llp E3bIWkKxAbVsgLDfGBAsDmnLc0rZxAzOCBiv6jgfAi4I7JaPDHp68gE366WnmJr6Mj93 gOrHnwHLeH6NtP36DOdlvwtdtoO+VlV08qFVLp5iSzpxlioYeynw4v8XLrBlcd8ct6Ns yVMUCxSlJpF9TIRHVg7gCwQSlAQ4uaAW54WobyMs2mkmim82K9DZ8Xi3NHnjYhCQjxqD s+FL8YaGrMJRgGI2IbbI7iu5hPX6ip/2A8Pbuh3CuwaRGqjq/C9HpvCwaWO30Sv609BL jl6Q== X-Gm-Message-State: AOAM531NOvfSe99EvcljhjV0zGd7yJPoh7IyJfOhc/P2VrE28ScVe2IV SMPVHsoggIZxHLKqUj3V5km3Hw== X-Received: by 2002:a17:90a:ba16:: with SMTP id s22mr39327974pjr.12.1620819167224; Wed, 12 May 2021 04:32:47 -0700 (PDT) Received: from localhost.localdomain ([2400:2411:502:a100:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id in16sm16654918pjb.14.2021.05.12.04.32.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 04:32:46 -0700 (PDT) From: Masahisa Kojima <masahisa.kojima@linaro.org> To: Heinrich Schuchardt <xypron.glpk@gmx.de> Cc: Alexander Graf <agraf@csgraf.de>, Simon Glass <sjg@chromium.org>, Ilias Apalodimas <ilias.apalodimas@linaro.org>, Masahisa Kojima <masahisa.kojima@linaro.org>, Dhananjay Phadke <dphadke@linux.microsoft.com>, Takahiro Akashi <takahiro.akashi@linaro.org>, u-boot@lists.denx.de Subject: [PATCH v5 3/3] efi_loader: add FIT_SIGNATURE option to use hash_calculate() Date: Wed, 12 May 2021 20:32:28 +0900 Message-Id: <20210512113228.29354-4-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210512113228.29354-1-masahisa.kojima@linaro.org> References: <20210512113228.29354-1-masahisa.kojima@linaro.org> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean |
Series |
PE/COFF measurement support
|
expand
|
diff --git a/lib/efi_loader/Kconfig b/lib/efi_loader/Kconfig index 385a81d7d9..0ffced25b1 100644 --- a/lib/efi_loader/Kconfig +++ b/lib/efi_loader/Kconfig @@ -175,6 +175,7 @@ config EFI_CAPSULE_AUTHENTICATE select PKCS7_VERIFY select IMAGE_SIGN_INFO select EFI_SIGNATURE_SUPPORT + select FIT_SIGNATURE default n help Select this option if you want to enable capsule @@ -308,6 +309,7 @@ config EFI_TCG2_PROTOCOL select SHA512_ALGO select SHA384 select SHA512 + select FIT_SIGNATURE help Provide a EFI_TCG2_PROTOCOL implementation using the TPM hardware of the platform. @@ -344,6 +346,7 @@ config EFI_SECURE_BOOT select PKCS7_MESSAGE_PARSER select PKCS7_VERIFY select EFI_SIGNATURE_SUPPORT + select FIT_SIGNATURE default n help Select this option to enable EFI secure boot support.
Build error occurs when CONFIG_EFI_SECURE_BOOT/ CONFIG_EFI_CAPSULE_AUTHENTICATE/CONFIG_EFI_TCG2_PROTOCOL is enabled, because hash-checksum.c is not compiled. With the following commit, commit 0bcb28dfb946 ("lib: Rename rsa-checksum.c to hash-checksum.c") CONFIG_FIT_SIGNATURE option is required to use hash_calculate() function. This commit selects FIT_SIGNATURE option in Kconfig. Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org> --- Changes in v5: - Missing option for EFI_TCG2_PROTOROL already added in different commit. This commit adds FIT_SIGNATRE only. Changes in v4: - newly added in this patch series, due to rebasing the base code. lib/efi_loader/Kconfig | 3 +++ 1 file changed, 3 insertions(+) -- 2.17.1