From: "Michael D Kinney" <michael.d.kinney@intel.com>
To: devel@edk2.groups.io
Cc: Jian J Wang <jian.j.wang@intel.com>, Xiaoyu Lu <xiaoyux.lu@intel.com>
Subject: [Patch 0/5] CryptoPkg: Add modules that produce BaseCryptLib services
Date: Wed, 29 Jan 2020 23:00:32 -0800 [thread overview]
Message-ID: <20200130070037.8516-1-michael.d.kinney@intel.com> (raw)
https://bugzilla.tianocore.org/show_bug.cgi?id=2420
Based on the following package with changes to merge into CryptoPkg.
https://github.com/microsoft/mu_plus/tree/dev/201908/SharedCryptoPkg
* Add X509ConstructCertificateStackV() to BaseCryptLib. This is required to
have a VA_LIST version of X509ConstructCertificateStack() so it can be
maped into a Protocol/PPI.
* Add EDK II Crypto Protocols/PPIs/PCDs
* Add PEIM, DXE Driver, SMM Driver that produce the EDK II Crypto Protocols/PPIs
using the services of the BaseCryptLib and TlsLib with families of services
and individual services enabled/disables in the Protocols/PPIs using a PCD.
* Add new BaseCryptLib library instance that calls the EDK II Crypto
Protocols/PPIs.
* Update DSC file to build all modules/libs and provide ability to build binary
versions of the PEIM, DXE Driver, SMM Driver with different sets of Crypto
services enabled.
This patch series depends on the following patches that must be committed
before this patch series will build and pass EDK II CI.
https://edk2.groups.io/g/devel/message/53551
https://edk2.groups.io/g/devel/message/53555
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Xiaoyu Lu <xiaoyux.lu@intel.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Michael D Kinney (5):
CryptoPkg/BaseCryptLib: Add X509ConstructCertificateStackV().
CryptoPkg: Add EDK II Crypto Protocols/PPIs/PCDs
CryptoPkg/Driver: Add Crypto PEIM, DXE, and SMM modules
CryptoPkg/Library: Add BaseCryptLibOnProtocolPpi instances
CryptoPkg/CryptoPkg.dsc: Add build of Crypto libraries/modules
CryptoPkg/CryptoPkg.dec | 34 +-
CryptoPkg/CryptoPkg.dsc | 209 +-
CryptoPkg/CryptoPkg.uni | 3 +-
.../BaseCryptLib.h => Driver/Crypto.c} | 2139 ++++++-
CryptoPkg/Driver/Crypto.uni | 13 +
CryptoPkg/Driver/CryptoDxe.c | 38 +
CryptoPkg/Driver/CryptoDxe.inf | 49 +
CryptoPkg/Driver/CryptoPei.c | 99 +
CryptoPkg/Driver/CryptoPei.inf | 51 +
CryptoPkg/Driver/CryptoSmm.c | 41 +
CryptoPkg/Driver/CryptoSmm.inf | 49 +
CryptoPkg/Include/Library/BaseCryptLib.h | 26 +
.../Pcd/PcdCryptoServiceFamilyEnable.h | 288 +
CryptoPkg/Library/BaseCryptLib/Pk/CryptX509.c | 50 +-
.../Library/BaseCryptLib/Pk/CryptX509Null.c | 32 +-
.../BaseCryptLibNull/Pk/CryptX509Null.c | 32 +-
.../BaseCryptLibOnProtocolPpi/CryptLib.c} | 1701 +++++-
.../BaseCryptLibOnProtocolPpi/CryptLib.uni | 12 +
.../BaseCryptLibOnProtocolPpi/DxeCryptLib.c | 68 +
.../BaseCryptLibOnProtocolPpi/DxeCryptLib.inf | 44 +
.../BaseCryptLibOnProtocolPpi/PeiCryptLib.c | 57 +
.../BaseCryptLibOnProtocolPpi/PeiCryptLib.inf | 43 +
.../BaseCryptLibOnProtocolPpi/SmmCryptLib.c | 79 +
.../BaseCryptLibOnProtocolPpi/SmmCryptLib.inf | 44 +
CryptoPkg/Private/Ppi/Crypto.h | 21 +
.../Protocol/Crypto.h} | 5330 ++++++++++-------
CryptoPkg/Private/Protocol/SmmCrypto.h | 21 +
27 files changed, 7861 insertions(+), 2712 deletions(-)
copy CryptoPkg/{Include/Library/BaseCryptLib.h => Driver/Crypto.c} (61%)
create mode 100644 CryptoPkg/Driver/Crypto.uni
create mode 100644 CryptoPkg/Driver/CryptoDxe.c
create mode 100644 CryptoPkg/Driver/CryptoDxe.inf
create mode 100644 CryptoPkg/Driver/CryptoPei.c
create mode 100644 CryptoPkg/Driver/CryptoPei.inf
create mode 100644 CryptoPkg/Driver/CryptoSmm.c
create mode 100644 CryptoPkg/Driver/CryptoSmm.inf
create mode 100644 CryptoPkg/Include/Pcd/PcdCryptoServiceFamilyEnable.h
copy CryptoPkg/{Include/Library/BaseCryptLib.h => Library/BaseCryptLibOnProtocolPpi/CryptLib.c} (67%)
create mode 100644 CryptoPkg/Library/BaseCryptLibOnProtocolPpi/CryptLib.uni
create mode 100644 CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.c
create mode 100644 CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf
create mode 100644 CryptoPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.c
create mode 100644 CryptoPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.inf
create mode 100644 CryptoPkg/Library/BaseCryptLibOnProtocolPpi/SmmCryptLib.c
create mode 100644 CryptoPkg/Library/BaseCryptLibOnProtocolPpi/SmmCryptLib.inf
create mode 100644 CryptoPkg/Private/Ppi/Crypto.h
copy CryptoPkg/{Include/Library/BaseCryptLib.h => Private/Protocol/Crypto.h} (62%)
create mode 100644 CryptoPkg/Private/Protocol/SmmCrypto.h
--
2.21.0.windows.1
next reply other threads:[~2020-01-30 7:00 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-30 7:00 Michael D Kinney [this message]
2020-01-30 7:00 ` [Patch 1/5] CryptoPkg/BaseCryptLib: Add X509ConstructCertificateStackV() Michael D Kinney
2020-02-04 7:31 ` Wang, Jian J
2020-01-30 7:00 ` [Patch 2/5] CryptoPkg: Add EDK II Crypto Protocols/PPIs/PCDs Michael D Kinney
2020-02-04 7:59 ` Wang, Jian J
2020-02-05 1:04 ` Michael D Kinney
2020-01-30 7:00 ` [Patch 3/5] CryptoPkg/Driver: Add Crypto PEIM, DXE, and SMM modules Michael D Kinney
2020-01-30 13:53 ` [edk2-devel] " Laszlo Ersek
2020-01-30 17:10 ` Michael D Kinney
2020-01-30 17:25 ` Laszlo Ersek
2020-02-04 8:16 ` Wang, Jian J
2020-02-05 1:38 ` Michael D Kinney
2020-01-30 7:00 ` [Patch 4/5] CryptoPkg/Library: Add BaseCryptLibOnProtocolPpi instances Michael D Kinney
2020-02-04 9:00 ` Wang, Jian J
2020-02-05 1:39 ` Michael D Kinney
2020-01-30 7:00 ` [Patch 5/5] CryptoPkg/CryptoPkg.dsc: Add build of Crypto libraries/modules Michael D Kinney
2020-02-04 9:01 ` Wang, Jian J
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=20200130070037.8516-1-michael.d.kinney@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