[edk2-devel] [PATCH v2 3/5] SecurityPkg/HashLibBaseCryptoRouter: recognize the SM3 digest algorithm
Wang, Jian J
jian.j.wang at intel.com
Fri Jun 7 22:18:15 UTC 2019
Reviewed-by: Jian J Wang <jian.j.wang at intel.com>
> -----Original Message-----
> From: devel at edk2.groups.io [mailto:devel at edk2.groups.io] On Behalf Of Imran
> Desai
> Sent: Wednesday, May 29, 2019 4:41 AM
> To: devel at edk2.groups.io
> Subject: [edk2-devel] [PATCH v2 3/5] SecurityPkg/HashLibBaseCryptoRouter:
> recognize the SM3 digest algorithm
>
>
> 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 SM3 as an available digest algorithm to crypto router.
>
>
> Signed-off-by: Imran Desai <imran.desai at intel.com>
> Cc: Chao Zhang <chao.b.zhang at intel.com>
> Cc: Jiewen Yao <jiewen.yao at intel.com>
> Cc: Jian Wang <jian.j.wang at intel.com>
> ---
>
> SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterComm
> on.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git
> a/SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterCom
> mon.c
> b/SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterCom
> mon.c
> index 7f3bdab53066..aec874a9e072 100644
> ---
> a/SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterCom
> mon.c
> +++
> b/SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterCom
> mon.c
> @@ -25,6 +25,7 @@ TPM2_HASH_MASK mTpm2HashMask[] = {
> {HASH_ALGORITHM_SHA256_GUID, HASH_ALG_SHA256},
> {HASH_ALGORITHM_SHA384_GUID, HASH_ALG_SHA384},
> {HASH_ALGORITHM_SHA512_GUID, HASH_ALG_SHA512},
> + {HASH_ALGORITHM_SM3_256_GUID, HASH_ALG_SM3_256},
> };
>
> /**
> --
> 2.17.0
>
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#42042): https://edk2.groups.io/g/devel/message/42042
Mute This Topic: https://groups.io/mt/31826562/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-
More information about the edk2-devel-archive
mailing list