public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Yonghong Zhu <yonghong.zhu@intel.com>
To: edk2-devel@lists.01.org
Cc: Liming Gao <liming.gao@intel.com>
Subject: [Patch 0/3] BaseTools: Add the support for FMP capsule generate auth info
Date: Mon, 15 Aug 2016 16:17:36 +0800	[thread overview]
Message-ID: <1471249059-95652-1-git-send-email-yonghong.zhu@intel.com> (raw)

Current BaseTools cannot support the EFI_FIRMWARE_IMAGE_AUTHENTICATION struct for 
FMP capsule.
# typedef struct {
#   UINT64                    MonotonicCount;
#   WIN_CERTIFICATE_UEFI_GUID AuthInfo;
# } EFI_FIRMWARE_IMAGE_AUTHENTICATION;
Patch 1: add the PKCS7 Tool to support CertType - EFI_CERT_TYPE_PKCS7_GUID
Patch 2: update the Rsa2048Sha256Sign tool to support Monotonic count
Patch 3: update the FMP capsule generation, call the tool by CERTIFICATE_GUID 
defined in the FDF file to generate the certdata and fill the header info.

Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>

Yonghong Zhu (3):
  BaseTools: Add the PKCS7 tool
  BaseTools: Rsa2048Sha256Sign add new option to support Monotonic count
  BaseTools: FMP capsule add the support to generate auth info

 BaseTools/Conf/tools_def.template                  |   6 +
 BaseTools/Source/Python/GenFds/Capsule.py          |  80 +++++-
 BaseTools/Source/Python/GenFds/CapsuleData.py      |   4 +-
 BaseTools/Source/Python/GenFds/FdfParser.py        |  64 ++++-
 BaseTools/Source/Python/GenFds/GenFds.py           |  59 ++++-
 BaseTools/Source/Python/GenFds/GuidSection.py      |  59 +----
 BaseTools/Source/Python/Makefile                   |  27 +-
 .../Python/Pkcs7Sign/GenFirmwareImageAuthPkcs7.py  | 285 +++++++++++++++++++++
 BaseTools/Source/Python/Pkcs7Sign/TestCert.pem     |  57 +++++
 BaseTools/Source/Python/Pkcs7Sign/TestCert.pub.pem |  19 ++
 BaseTools/Source/Python/Pkcs7Sign/TestRoot.pem     |  56 ++++
 BaseTools/Source/Python/Pkcs7Sign/TestRoot.pub.pem |  18 ++
 BaseTools/Source/Python/Pkcs7Sign/TestSub.pem      |  57 +++++
 BaseTools/Source/Python/Pkcs7Sign/TestSub.pub.pem  |  19 ++
 .../Python/Rsa2048Sha256Sign/Rsa2048Sha256Sign.py  |  31 ++-
 15 files changed, 760 insertions(+), 81 deletions(-)
 create mode 100644 BaseTools/Source/Python/Pkcs7Sign/GenFirmwareImageAuthPkcs7.py
 create mode 100644 BaseTools/Source/Python/Pkcs7Sign/TestCert.pem
 create mode 100644 BaseTools/Source/Python/Pkcs7Sign/TestCert.pub.pem
 create mode 100644 BaseTools/Source/Python/Pkcs7Sign/TestRoot.pem
 create mode 100644 BaseTools/Source/Python/Pkcs7Sign/TestRoot.pub.pem
 create mode 100644 BaseTools/Source/Python/Pkcs7Sign/TestSub.pem
 create mode 100644 BaseTools/Source/Python/Pkcs7Sign/TestSub.pub.pem

-- 
2.6.1.windows.1



             reply	other threads:[~2016-08-15  8:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-15  8:17 Yonghong Zhu [this message]
2016-08-15  8:17 ` [Patch 1/3] BaseTools: Add the PKCS7 tool Yonghong Zhu
2016-08-15  8:32   ` Yao, Jiewen
2016-08-15  8:34     ` Zhu, Yonghong
2016-08-15  8:17 ` [Patch 2/3] BaseTools: Rsa2048Sha256Sign add new option to support Monotonic count Yonghong Zhu
2016-08-19  5:41   ` Gao, Liming
2016-08-15  8:17 ` [Patch 3/3] BaseTools: FMP capsule add the support to generate auth info Yonghong Zhu
2016-08-19  5:41   ` Gao, Liming

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1471249059-95652-1-git-send-email-yonghong.zhu@intel.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox