public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Yao, Jiewen" <jiewen.yao@intel.com>
To: "Xue, Shengfeng" <xueshengfeng@byosoft.com.cn>,
	"devel@edk2.groups.io" <devel@edk2.groups.io>,
	"Wang, Jian J" <jian.j.wang@intel.com>
Cc: "Xue, ShengfengX" <shengfengx.xue@intel.com>
Subject: Re: [PATCHV2] CryptoPkg/BaseCryptLib: Enabled CryptSha512 for Smm/Runtime drivers
Date: Wed, 9 Jun 2021 03:08:02 +0000	[thread overview]
Message-ID: <PH0PR11MB48854E8FA13BF304AF2776608C369@PH0PR11MB4885.namprd11.prod.outlook.com> (raw)
In-Reply-To: <4a939b6b9a46a1b498931dd1ceb1bc62c4832ef9.1622805260.git.xueshengfeng@byosoft.com.cn>

Thank you! Shengfeng

Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com>

I recommend to wait for *1 week*, to see if anyone has concern on size change.

Thank you
Yao Jiewen


> -----Original Message-----
> From: xueshengfeng <xueshengfeng@byosoft.com.cn>
> Sent: Tuesday, June 8, 2021 12:31 PM
> To: devel@edk2.groups.io; Yao, Jiewen <jiewen.yao@intel.com>; Wang, Jian J
> <jian.j.wang@intel.com>
> Cc: Xue, ShengfengX <shengfengx.xue@intel.com>
> Subject: [PATCHV2] CryptoPkg/BaseCryptLib: Enabled CryptSha512 for
> Smm/Runtime drivers
> 
> Intel Platform utility Syscfg/sysfwupdt will trigger SMI
> to enter BIOS interface. then BIOS invoke EncodePassword
> in SMM mode to check password.
> it's need sha384(in CryptSha512.c) in SMM mode.
> 
> the origin SmmCryptLib.lib size is 1389KB,
> after changed, the size is 1391KB.
> 
> the origin RuntimeCryptLib.lib size is 911KB,
> after changed,the size is 913KB.
> 
> in SmmCryptLib.inf and RuntimeCryptLib.inf,
> change CryptSha512NULL.c to CryptSha512.c.
> 
> https://bugzilla.tianocore.org/show_bug.cgi?id=3423
> 
> Signed-off-by: xueshengfeng <xueshengfeng@byosoft.com.cn>
> ---
>  CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf | 6 +++---
>  CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf     | 4 ++--
>  2 files changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
> b/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
> index 3d3a6fb94a..fdbb6edfd2 100644
> --- a/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
> +++ b/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
> @@ -11,8 +11,8 @@
>  #  functions, PKCS#7 SignedData sign functions, Diffie-Hellman functions, and
>  #  authenticode signature verification functions are not supported in this
> instance.
>  #
> -#  Copyright (c) 2009 - 2020, Intel Corporation. All rights reserved.<BR>
> -#  Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights
> reserved.<BR>
> +#  Copyright (c) 2009 - 2021, Intel Corporation. All rights reserved.<BR>
> +#  Copyright (c) 2021, Hewlett Packard Enterprise Development LP. All rights
> reserved.<BR>
>  #  SPDX-License-Identifier: BSD-2-Clause-Patent
>  #
>  ##
> @@ -39,7 +39,7 @@
>    Hash/CryptSha1.c
>    Hash/CryptSha256.c
>    Hash/CryptSm3.c
> -  Hash/CryptSha512Null.c
> +  Hash/CryptSha512.c
>    Hmac/CryptHmacSha256.c
>    Kdf/CryptHkdf.c
>    Cipher/CryptAes.c
> 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.31.1.windows.1
> 


       reply	other threads:[~2021-06-09  3:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4a939b6b9a46a1b498931dd1ceb1bc62c4832ef9.1622805260.git.xueshengfeng@byosoft.com.cn>
2021-06-09  3:08 ` Yao, Jiewen [this message]
2021-06-24  1:30   ` 回复: [edk2-devel] [PATCHV2] CryptoPkg/BaseCryptLib: Enabled CryptSha512 for Smm/Runtime drivers gaoliming
2021-06-24  2:06     ` Yao, Jiewen
2021-06-24  2:46       ` Wang, Jian J

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=PH0PR11MB48854E8FA13BF304AF2776608C369@PH0PR11MB4885.namprd11.prod.outlook.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox