public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* 回复: [edk2-devel] [PATCH] CryptoPkg/BaseCryptLib: Enabled CryptSha512 for Smm drivers.
  2021-06-01  0:48 [PATCH] CryptoPkg/BaseCryptLib: Enabled CryptSha512 for Smm drivers Xiaoyu Lu
@ 2021-06-01  0:48 ` gaoliming
  2021-06-01  0:58   ` Yao, Jiewen
  0 siblings, 1 reply; 3+ messages in thread
From: gaoliming @ 2021-06-01  0:48 UTC (permalink / raw)
  To: devel, xiaoyux.lu, jiewen.yao, jian.j.wang, guomin.jiang; +Cc: shengfengx.xue

Can you also update CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf to
use CryptSha512.c?

Thanks
Liming
> -----邮件原件-----
> 发件人: devel@edk2.groups.io <devel@edk2.groups.io> 代表 Xiaoyu Lu
> 发送时间: 2021年6月1日 8:48
> 收件人: devel@edk2.groups.io; jiewen.yao@intel.com;
> jian.j.wang@intel.com; guomin.jiang@intel.com
> 抄送: xiaoyux.lu@intel.com; shengfengx.xue@intel.com
> 主题: [edk2-devel] [PATCH] CryptoPkg/BaseCryptLib: Enabled CryptSha512
> for Smm drivers.
> 
> From: Shengfengx Xue <shengfengx.xue@intel.com>
> 
> in SmmCryptLib.inf, change CryptSha512NULL.c to CryptSha512.c.
> 
> Signed-off-by: Shengfengx Xue <shengfengx.xue@intel.com>
> ---
>  CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
> b/CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
> index 07c376ce04..e6470d7a21 100644
> --- a/CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
> +++ b/CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
> @@ -10,7 +10,7 @@
>  #  RSA external functions, PKCS#7 SignedData sign functions,
Diffie-Hellman
> functions, and
>  #  authenticode signature verification functions are not supported in
this
> instance.
>  #
> -#  Copyright (c) 2010 - 2020, Intel Corporation. All rights reserved.<BR>
> +#  Copyright (c) 2010 - 2021, Intel Corporation. All rights reserved.<BR>
>  #  SPDX-License-Identifier: BSD-2-Clause-Patent
>  #
>  ##
> @@ -37,7 +37,7 @@
>    Hash/CryptSha1.c
>    Hash/CryptSha256.c
>    Hash/CryptSm3.c
> -  Hash/CryptSha512Null.c
> +  Hash/CryptSha512.c
>    Hmac/CryptHmacSha256.c
>    Kdf/CryptHkdfNull.c
>    Cipher/CryptAes.c
> --
> 2.26.2.windows.1
> 
> 
> 
> 
> 




^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] CryptoPkg/BaseCryptLib: Enabled CryptSha512 for Smm drivers.
@ 2021-06-01  0:48 Xiaoyu Lu
  2021-06-01  0:48 ` 回复: [edk2-devel] " gaoliming
  0 siblings, 1 reply; 3+ messages in thread
From: Xiaoyu Lu @ 2021-06-01  0:48 UTC (permalink / raw)
  To: devel, jiewen.yao, jian.j.wang, guomin.jiang; +Cc: xiaoyux.lu, shengfengx.xue

From: Shengfengx Xue <shengfengx.xue@intel.com>

in SmmCryptLib.inf, change CryptSha512NULL.c to CryptSha512.c.

Signed-off-by: Shengfengx Xue <shengfengx.xue@intel.com>
---
 CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf b/CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
index 07c376ce04..e6470d7a21 100644
--- a/CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
+++ b/CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
@@ -10,7 +10,7 @@
 #  RSA external functions, PKCS#7 SignedData sign functions, Diffie-Hellman functions, and
 #  authenticode signature verification functions are not supported in this instance.
 #
-#  Copyright (c) 2010 - 2020, Intel Corporation. All rights reserved.<BR>
+#  Copyright (c) 2010 - 2021, Intel Corporation. All rights reserved.<BR>
 #  SPDX-License-Identifier: BSD-2-Clause-Patent
 #
 ##
@@ -37,7 +37,7 @@
   Hash/CryptSha1.c
   Hash/CryptSha256.c
   Hash/CryptSm3.c
-  Hash/CryptSha512Null.c
+  Hash/CryptSha512.c
   Hmac/CryptHmacSha256.c
   Kdf/CryptHkdfNull.c
   Cipher/CryptAes.c
-- 
2.26.2.windows.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [edk2-devel] [PATCH] CryptoPkg/BaseCryptLib: Enabled CryptSha512 for Smm drivers.
  2021-06-01  0:48 ` 回复: [edk2-devel] " gaoliming
@ 2021-06-01  0:58   ` Yao, Jiewen
  0 siblings, 0 replies; 3+ messages in thread
From: Yao, Jiewen @ 2021-06-01  0:58 UTC (permalink / raw)
  To: devel@edk2.groups.io, gaoliming@byosoft.com.cn, Lu, XiaoyuX,
	Wang, Jian J, Jiang, Guomin
  Cc: Xue, ShengfengX, Yao, Jiewen

Would you please also:
1) Add Bugzilla and explain why SHA512 is needed.
2) Provide estimation on size difference. (Because SMM is size constrain environment.)

Thank you
Yao Jiewen

> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of gaoliming
> Sent: Tuesday, June 1, 2021 8:48 AM
> To: devel@edk2.groups.io; Lu, XiaoyuX <xiaoyux.lu@intel.com>; Yao, Jiewen
> <jiewen.yao@intel.com>; Wang, Jian J <jian.j.wang@intel.com>; Jiang, Guomin
> <guomin.jiang@intel.com>
> Cc: Xue, ShengfengX <shengfengx.xue@intel.com>
> Subject: 回复: [edk2-devel] [PATCH] CryptoPkg/BaseCryptLib: Enabled
> CryptSha512 for Smm drivers.
> 
> Can you also update CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf to
> use CryptSha512.c?
> 
> Thanks
> Liming
> > -----邮件原件-----
> > 发件人: devel@edk2.groups.io <devel@edk2.groups.io> 代表 Xiaoyu Lu
> > 发送时间: 2021年6月1日 8:48
> > 收件人: devel@edk2.groups.io; jiewen.yao@intel.com;
> > jian.j.wang@intel.com; guomin.jiang@intel.com
> > 抄送: xiaoyux.lu@intel.com; shengfengx.xue@intel.com
> > 主题: [edk2-devel] [PATCH] CryptoPkg/BaseCryptLib: Enabled CryptSha512
> > for Smm drivers.
> >
> > From: Shengfengx Xue <shengfengx.xue@intel.com>
> >
> > in SmmCryptLib.inf, change CryptSha512NULL.c to CryptSha512.c.
> >
> > Signed-off-by: Shengfengx Xue <shengfengx.xue@intel.com>
> > ---
> >  CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
> > b/CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
> > index 07c376ce04..e6470d7a21 100644
> > --- a/CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
> > +++ b/CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
> > @@ -10,7 +10,7 @@
> >  #  RSA external functions, PKCS#7 SignedData sign functions,
> Diffie-Hellman
> > functions, and
> >  #  authenticode signature verification functions are not supported in
> this
> > instance.
> >  #
> > -#  Copyright (c) 2010 - 2020, Intel Corporation. All rights reserved.<BR>
> > +#  Copyright (c) 2010 - 2021, Intel Corporation. All rights reserved.<BR>
> >  #  SPDX-License-Identifier: BSD-2-Clause-Patent
> >  #
> >  ##
> > @@ -37,7 +37,7 @@
> >    Hash/CryptSha1.c
> >    Hash/CryptSha256.c
> >    Hash/CryptSm3.c
> > -  Hash/CryptSha512Null.c
> > +  Hash/CryptSha512.c
> >    Hmac/CryptHmacSha256.c
> >    Kdf/CryptHkdfNull.c
> >    Cipher/CryptAes.c
> > --
> > 2.26.2.windows.1
> >
> >
> >
> >
> >
> 
> 
> 
> 
> 
> 
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-01  0:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-01  0:48 [PATCH] CryptoPkg/BaseCryptLib: Enabled CryptSha512 for Smm drivers Xiaoyu Lu
2021-06-01  0:48 ` 回复: [edk2-devel] " gaoliming
2021-06-01  0:58   ` Yao, Jiewen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox