From patchwork Wed Apr 7 14:41:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 416715 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp531251jai; Wed, 7 Apr 2021 07:42:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbdCdUBeCejp/oJaEK1K7TyYRv/5zlNA3Hz87FZSaGPXt+UFqm16vtgkefHF+6t9ElIdtK X-Received: by 2002:a17:906:2cd1:: with SMTP id r17mr4021314ejr.429.1617806561488; Wed, 07 Apr 2021 07:42:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617806561; cv=none; d=google.com; s=arc-20160816; b=0kUVfVq+i8ey9NhLSUfmmebllaMlvpZgXnfRO6Rgf+wJ2M2bzWcElLHc1/U0qsKPBN IHqi+/jcazyUKze9ZgjS1aUJ/uIodMq/UQVKIXgLb+ZpDjDktSKLEiwVKRAeEIcLBfZD l5TSbz6QNqgOeOI9ukp5zMOWjkzonuMLh0Tw1oRYviNVl3qHiGrE02pifHGgm3eoShq2 usjWkiYIlNU6ZqdVwuLnuqVlgJy9tgNrqwVxAvIA3FyOIjRu7lYakMKv0fQmeXVVBAuc WjrCJfPcq+DB3Stf4J94fOpJjUZIK/65d7od6hiKBfqDGOUxum5GMrIcW+EpB51452q+ SCRQ== 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=qAPwQg5c6E938uK12Dm7FSGrFcuv2TK7qTgZHvAKD3nBO+swIpLqChKl31Q8ppjR5G v82JINX2y+ZTkcK77RMmx2HGpBB8691pSIfWbR6Wl4ibiJXleCVH6JuP3ua/zmGA4vnZ ODJpHtX1d4aLwOFn+Yafk1Gez0FhVXS5+Waed3KwJBrhYsnFy2Lrf0jKri4hDbgmu1KQ tj+DALuh7AE1R+qb9cocDawMJF+kDcWHUD8L1+ziJyt2JxK0V4LELHVMkuABsa/tp0ki NJGfDn1NxSmq8xxILdZSonUcB1F2pit4qQwZgB6QOyB0hDbxemLlPC9i64bGbYMrwkQn KW1w== 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 go8si600934ejc.645.2021.04.07.07.42.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Apr 2021 07:42:41 -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 6488A816C4; Wed, 7 Apr 2021 16:42: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 A3D6B816C4; Wed, 7 Apr 2021 16:42:21 +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 098C4805B4 for ; Wed, 7 Apr 2021 16:42: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 02148106F; Wed, 7 Apr 2021 07:42:15 -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 DEF793F792; Wed, 7 Apr 2021 07:42:12 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Alexander Graf , Simon Glass , Bin Meng , Pali Rohar , Sughosh Ganu Subject: [RESEND PATCH v1 1/5] efi_loader: Kconfig: Select IMAGE_SIGN_INFO when capsule authentication is enabled Date: Wed, 7 Apr 2021 20:11:43 +0530 Message-Id: <20210407144147.29251-2-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210407144147.29251-1-sughosh.ganu@linaro.org> References: <20210407144147.29251-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: Simon Glass 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