diff options
author | Imran Desai <imran.desai@intel.com> | 2019-07-18 15:53:23 -0700 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2019-07-19 14:31:52 +0200 |
commit | edf6ef246ded03f23db37e24601239270c5fb23d (patch) | |
tree | f4a00f5394c43820eca1472f12d3c04be62cca16 /SecurityPkg/Include/Library | |
parent | 296c908c6968910ea7c4496b94cfba1e52212de2 (diff) | |
download | edk2-edf6ef246ded03f23db37e24601239270c5fb23d.tar.gz edk2-edf6ef246ded03f23db37e24601239270c5fb23d.tar.bz2 edk2-edf6ef246ded03f23db37e24601239270c5fb23d.zip |
SecurityPkg: introduce the SM3 digest algorithm
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1781
GITHUB: https://github.com/idesai/edk2/tree/enable_sm3_measured_boot_v6
EDK2 Support for SM3 digest algorithm is needed to enable TPM with SM3 PCR
banks. This digest algorithm is part of the China Crypto algorithm suite.
This integration has dependency on the openssl_1_1_1b integration into
edk2.
This patch add SM3 algorithm in the hashinstance library.
Delta in v7:
1. Dropped 95a040cff from v6 to address https://edk2.groups.io/g/devel/topic/
32454898?p=,,,20,0,0,0::Created,,sm3,20,2,0,32454898,ct=1&ct=1
2. Relocated SM3 GUID definition from MdePkg to SecurityPkg in 9728b54f4
Cc: Chao Zhang <chao.b.zhang@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jian Wang <jian.j.wang@intel.com>
Signed-off-by: Imran Desai <imran.desai@intel.com>
Message-Id: <20190718225326.40839-2-imran.desai@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
Diffstat (limited to 'SecurityPkg/Include/Library')
-rw-r--r-- | SecurityPkg/Include/Library/HashLib.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/SecurityPkg/Include/Library/HashLib.h b/SecurityPkg/Include/Library/HashLib.h index 63f0839878..6ad960ad70 100644 --- a/SecurityPkg/Include/Library/HashLib.h +++ b/SecurityPkg/Include/Library/HashLib.h @@ -137,6 +137,10 @@ EFI_STATUS #define HASH_ALGORITHM_SHA256_GUID EFI_HASH_ALGORITHM_SHA256_GUID
#define HASH_ALGORITHM_SHA384_GUID EFI_HASH_ALGORITHM_SHA384_GUID
#define HASH_ALGORITHM_SHA512_GUID EFI_HASH_ALGORITHM_SHA512_GUID
+#define HASH_ALGORITHM_SM3_256_GUID \
+ { \
+ 0x251C7818, 0x0DBF, 0xE619, { 0x7F, 0xC2, 0xD6, 0xAC, 0x43, 0x42, 0x7D, 0xA3 } \
+ }
typedef struct {
EFI_GUID HashGuid;
|