audk/CryptoPkg
Michael D Kinney cc1d13c922 CryptoPkg/Driver: Add Crypto PEIM, DXE, and SMM modules
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 the CryptoPei, CryptoDxe, and CryptoSmm modules that produce
EDK II Crypto Protocols/PPIs that provide the same services as
the BaseCryptLib class.

In order to optimize the size of CryptoPei, CryptoDxe, and
CryptoSmm modules for a specific platform, the FixedAtBuild
PCD gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable
is used to determine if a specific service is enabled or
disabled.  If a service is enabled, then a call is made to
the BaseCryptLib service.  If the service is disabled, then
a DEBUG() message and ASSERT() are performed and a default
return value is returned.  This provides simple detection
of a service that is disabled but is used by another module
when DEBUG()/ASSERT() macros are enabled.

The use of a FixedAtBuild PCD is required so the compiler
and linker know each services enable/disable setting at
build time and allows disabled services to be optimized away.

CryptoPei supports both pre-mem and post-mem use cases.
If CryptoPei is initially dispatched pre-mmem, the the
register for shadow service is used so the Crypto PPI can
be reinstalled post-mem.

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>
Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
2020-02-07 16:32:13 +00:00
..
Driver CryptoPkg/Driver: Add Crypto PEIM, DXE, and SMM modules 2020-02-07 16:32:13 +00:00
Include CryptoPkg: Add EDK II Crypto Protocols/PPIs/PCDs 2020-02-07 16:32:13 +00:00
Library CryptoPkg/BaseCryptLib: Add X509ConstructCertificateStackV(). 2020-02-07 16:32:13 +00:00
Private CryptoPkg: Add EDK II Crypto Protocols/PPIs/PCDs 2020-02-07 16:32:13 +00:00
CryptoPkg.ci.yaml CryptoPkg: Add YAML file for CI builds 2019-11-11 13:02:07 -08:00
CryptoPkg.dec CryptoPkg: Add EDK II Crypto Protocols/PPIs/PCDs 2020-02-07 16:32:13 +00:00
CryptoPkg.dsc CryptoPkg/BaseHashApiLib: Implement Unified Hash Calculation API 2020-02-03 23:49:28 +00:00
CryptoPkg.uni CryptoPkg: Add EDK II Crypto Protocols/PPIs/PCDs 2020-02-07 16:32:13 +00:00
CryptoPkgExtra.uni CryptoPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:22 -07:00