diff options
author | Imran Desai <imran.desai@intel.com> | 2019-05-29 04:40:45 +0000 |
---|---|---|
committer | Jian J Wang <jian.j.wang@intel.com> | 2019-07-03 16:31:53 +0800 |
commit | 49c1e683c452f68c7315454280d81449f7d94d2b (patch) | |
tree | 12530333578a7c5f4def0e379ede06c7ada56a81 /MdePkg | |
parent | 896db3a4ceab412df07fc96c600d6bd2f82a65ea (diff) | |
download | edk2-49c1e683c452f68c7315454280d81449f7d94d2b.tar.gz |
MdePkg/Protocol/Hash: introduce GUID for SM3
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1781
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 adds GUID for SM3 digest algorithm.
Signed-off-by: Imran Desai <imran.desai@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
Reviewed-by: jiewen.yao@intel.com
Diffstat (limited to 'MdePkg')
-rw-r--r-- | MdePkg/Include/Protocol/Hash.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/MdePkg/Include/Protocol/Hash.h b/MdePkg/Include/Protocol/Hash.h index 931d7916ef..8abf1a4fa3 100644 --- a/MdePkg/Include/Protocol/Hash.h +++ b/MdePkg/Include/Protocol/Hash.h @@ -48,6 +48,11 @@ SPDX-License-Identifier: BSD-2-Clause-Patent 0xcaa4381e, 0x750c, 0x4770, {0xb8, 0x70, 0x7a, 0x23, 0xb4, 0xe4, 0x21, 0x30 } \
}
+#define EFI_HASH_ALGORITHM_SM3_256_GUID \
+ { \
+ 0x251C7818, 0x0DBF, 0xE619, { 0x7F, 0xC2, 0xD6, 0xAC, 0x43, 0x42, 0x7D, 0xA3 } \
+ }
+
#define EFI_HASH_ALGORTIHM_MD5_GUID \
{ \
0xaf7c79c, 0x65b5, 0x4319, {0xb0, 0xae, 0x44, 0xec, 0x48, 0x4e, 0x4a, 0xd7 } \
|