From patchwork Wed Apr 7 11:53:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 416679 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp393626jai; Wed, 7 Apr 2021 04:54:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywgyDlGO8DbjVwsteGD3YL8ZKuO3Q9IqylTln6v1lQOOS+N6H2+u5r71LVqQjaMJ7Py09B X-Received: by 2002:a17:906:3f88:: with SMTP id b8mr3375354ejj.36.1617796486299; Wed, 07 Apr 2021 04:54:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617796486; cv=none; d=google.com; s=arc-20160816; b=JQbLZBzzT66o0vyT84rXCc6hR+EVmux/s4BGjs6LBKDXiGtf3Za3bvdMivoui9MZdv FJztODTQvJ9+0eonHy8/3tewp0oUDbYavKUTqnT6HL9vmwxfhvzrZp9goUDr9Vr72Dey bGBKD0KVTTEKfQ6lSTKPBZCbg2SosAVrKuYl3Xk1JaOfcRssizstT/JbR6e3+sI0Wn37 08U6ABZfg2uKuuzZ1nAnHsZDBYP4WFZep3yT8BHPOeWzyk1Kbl1DOQulCSLnTeU0Ps81 8SD9/KzzaO210ldGRx0oECjbNeJFwa/uM0nAqWrvcdprgbUyk/RroYpANF2qLQtTrOmP tWQg== 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; bh=IIcCQt0Jspmz9M6StM2QXBfd7LrW6CYZ9Ah+vzVK0yc=; b=COArk9YYPOcFirD1lFgcxSCLSsNzwRaqX8Nr1brZ+cZpHpEO7DNE0SRVfQFV5TG1Km w3kaSs0iHcOBnsUPjrWbm+iFF653SRGabuoFeDbV9r8g195CihANRwBl3NXIcrIrfAP3 Lg5igTOujASA8kpHtzg2Nu2EFtSg6fuKRzS+kquVyhO5402ckz3L1u1AwTlkbcnFv0dr HkV5loBt14J7Z5Fkf41dBweLAKDdtzqa0hPhhdoZA4V9OmsxW//MR7CRKtt8hQgqa2Pj DPckQbKdcLQHvfd4gM0UiyvLNmTdmEHL6I4Jxvp8fCASVEdSwJEWTJv+V1rcwH4gqZHT tA3g== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id ds7si21536880ejc.534.2021.04.07.04.54.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Apr 2021 04:54:46 -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; 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=fail (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 AB85F80EFE; Wed, 7 Apr 2021 13:54:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 683D780C67; Wed, 7 Apr 2021 13:54:20 +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=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id 73DD280C66 for ; Wed, 7 Apr 2021 13:54:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sughosh.ganu@linaro.org Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id AB0AA106F; Wed, 7 Apr 2021 04:54:16 -0700 (PDT) Received: from a076522.blr.arm.com (a076522.blr.arm.com [10.162.16.44]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 93B323F792; Wed, 7 Apr 2021 04:54:14 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Alexander Graf , Simon Glass , Bin Meng , =?utf-8?q?Pali_Roh=C3=A1r?= , Sughosh Ganu Subject: [PATCH 1/5] efi_loader: Kconfig: Select IMAGE_SIGN_INFO when capsule authentication is enabled Date: Wed, 7 Apr 2021 17:23:31 +0530 Message-Id: <20210407115335.8615-2-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210407115335.8615-1-sughosh.ganu@linaro.org> References: <20210407115335.8615-1-sughosh.ganu@linaro.org> 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 Enable building of the crypto helper functions used during capsule authentication by selecting IMAGE_SIGN_INFO. Signed-off-by: Sughosh Ganu --- This was not detected when support for capsule auth was added to the qemu arm64 platform. This is because the platform includes CONFIG_FIT_SIGNATURE which selects IMAGE_SIGN_INFO. lib/efi_loader/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.17.1 Reviewed-by: Heinrich Schuchardt diff --git a/lib/efi_loader/Kconfig b/lib/efi_loader/Kconfig index e44f004f3f..0b99d7c774 100644 --- a/lib/efi_loader/Kconfig +++ b/lib/efi_loader/Kconfig @@ -173,6 +173,7 @@ config EFI_CAPSULE_AUTHENTICATE select X509_CERTIFICATE_PARSER select PKCS7_MESSAGE_PARSER select PKCS7_VERIFY + select IMAGE_SIGN_INFO default n help Select this option if you want to enable capsule