From patchwork Thu Apr 15 13:30:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 421766 Delivered-To: patch@linaro.org Received: by 2002:a02:6a6f:0:0:0:0:0 with SMTP id m47csp469412jaf; Thu, 15 Apr 2021 06:24:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGfwVRdnceL0S6QAI1FPuuWwqB85aqcm99E9Fs/lv9TdEPJ+43UjoP7LL2ksFkHbnR3dnV X-Received: by 2002:aa7:d587:: with SMTP id r7mr3340305edq.388.1618493089036; Thu, 15 Apr 2021 06:24:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618493089; cv=none; d=google.com; s=arc-20160816; b=kA8tVyZg35bV2E+wZnDI7GbTxsomZtx0AjG55dWw8CvkIXL79Y/oJLocYNrnJceMwd 0TasjIRakjSBfDU1xO8FKiwhnIxAyt4ioOKBM2lifL2uhxZd/sAxzh3PwBd7YsDxfoUx hNIOFrf/NUL50BdDIbxjKQ4tReHkxtYMX58ZClsXrgGZZaebr1lVyAGvGX5E7Kl5C/3m 1+2gDAncMVNecFHM9ze9DWX+ibYh2lZtOSPS//pc59c9Kw4OexTDQOGoYx2xLGh3anp3 LnmEAVjzv4ULTFeAECdY/GMnv/fXfgmoDwca4dQ9fkKuhfNCHNthiinw/o2xj3pwQtAK 9Lhg== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=S+bsp7Cuy3DrNDpSdVxd10IMs7sSsk3r3n/1x5Gbgyo=; b=u8vTKoTJ0jL2eQK0IBP0nLR4tlP1xG+Nx+i21W8zKVESONTm8Ze6pYfsHMTNe528Sx YmWUaMizfZ4BUKYgeCcXcnb2p4KrfXmwwybOfFSppVoWVGmKlUAUmQN25e/D12IkNBX2 b88nFkqQMnkoBU/jqvD32lpJObxk+AhhSoMAlZzT7nXziU7RHXAXqmDIzkZA01yhQRFO x6tbcHzFj+sGy0hOQdZjyB/vRnLLM1T4GgXbY9Tmgq4ehFtS3wUKi0+vQc9xIHGaqKIA CS+5B+aUd3IiHpzzIBGEVlqfUtBYVw7lT1BNS6GL8PasseuupTxZJBgsTKE9S+17E7By oMoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kzVLPKAv; 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: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id h23si2003071ejc.171.2021.04.15.06.24.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Apr 2021 06:24:49 -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=kzVLPKAv; 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 2601B81FE6; Thu, 15 Apr 2021 15:24:46 +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="kzVLPKAv"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BFB2681FE1; Thu, 15 Apr 2021 15:24:43 +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-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) (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 AB70081E89 for ; Thu, 15 Apr 2021 15:24:38 +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-pf1-x42a.google.com with SMTP id w6so1522672pfc.8 for ; Thu, 15 Apr 2021 06:24:38 -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; bh=S+bsp7Cuy3DrNDpSdVxd10IMs7sSsk3r3n/1x5Gbgyo=; b=kzVLPKAvEmLX0Rh74ls+8F8omGpMQwt9nvhKaPzc20Q+t0RMt9OJVDKFge1bhEZFbP js7jz85ctCrFBCiP/9WgbAQ0ByzlAleFyuSQlsqvbiWJ+B2uR3kEXiar08vDOKjomZ+6 QRFpJdAyANotCqjqueEtUATpBatSL+2NpM/qZcIW3JBypND8DpS8e0q6ZGTrCUS+1Lsr bdsYyN41btIuznA7Uh4spdwYkS5g74uXfCgmf/zpJoR1yUx6DxkyEg0NAErHuo+0M8JK GlFTXBoKgdmyaZkmXLxMwhK1hF5meh/QEI5BQ2HfbPrqTGNL8mp4/UUoBdljSlzzDFj3 qSWw== 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; bh=S+bsp7Cuy3DrNDpSdVxd10IMs7sSsk3r3n/1x5Gbgyo=; b=tqDX+oODOBtl71qX+fDWf4ae27a73J9A+Ouy/qLxVmcEzgkl/BRdBW9+1T21U0kFus vPp8Ewj65FvBjtdNAUM9rysxj2AUsUrfrj4goxL17oiyzXn+oGklMPrHTTTaBMGGKXsl DtReBiASLEPQrjMBRTewb7ZqzSk7LWU5byFlxwzSq4riiSa+WqT1qyYfTNliP4Sjuipb JIh5auQJfJaKlllvaVVNgYBUeIgYxbLMZbG8k7LqMPcFOkPT0ec4yv6sffoBCkiyqCdb NHVCrCGAVafFLdmj+HwZnOKzOFFB3/R9tZLjK37jf16bxsXx22JiDyLkZtyd3tikbb08 L5pg== X-Gm-Message-State: AOAM532YmuBPFtSL1q4EiygpvPqztFAbF+52VuwjKyYFs7N5xQtGYQMm grZfUwZJvo2TgWZaiIQHKcb21A== X-Received: by 2002:a65:48c5:: with SMTP id o5mr3453498pgs.101.1618493077073; Thu, 15 Apr 2021 06:24:37 -0700 (PDT) Received: from localhost.localdomain ([2400:2411:502:a100:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id m11sm2527461pjs.34.2021.04.15.06.24.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Apr 2021 06:24:36 -0700 (PDT) From: Masahisa Kojima To: Heinrich Schuchardt Cc: Alexander Graf , Simon Glass , Ilias Apalodimas , Masahisa Kojima , Dhananjay Phadke , Takahiro Akashi , u-boot@lists.denx.de Subject: [PATCH 0/2] PE/COFF measurement support Date: Thu, 15 Apr 2021 22:30:18 +0900 Message-Id: <20210415133020.29175-1-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.17.1 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 This patch series add the PE/COFF measurement support. Extending PCR and Event Log is tested with fTPM running as a OP-TEE TA. Masahisa Kojima (2): efi_loader: expose efi_image_parse() even if UEFI Secure Boot is disabled efi_loader: add PE/COFF image measurement include/efi_loader.h | 4 + include/efi_tcg2.h | 10 ++ include/tpm-v2.h | 1 + lib/efi_loader/efi_image_loader.c | 9 +- lib/efi_loader/efi_signature.c | 2 + lib/efi_loader/efi_tcg2.c | 187 ++++++++++++++++++++++++++++-- 6 files changed, 202 insertions(+), 11 deletions(-) -- 2.17.1