]> git.proxmox.com Git - mirror_edk2.git/commitdiff
SecurityPkg/Hash2DxeCrypto: Remove SHA1 support
authorGao, Zhichao <zhichao.gao@intel.com>
Thu, 12 Nov 2020 05:55:47 +0000 (13:55 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 17 Nov 2020 19:26:50 +0000 (19:26 +0000)
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3027

Remove the deprecated SHA1 support of Hash2DxeCrypto
driver.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Signed-off-by: Zhichao Gao <zhichao.gao@intel.com>
Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com>
Message-Id: <20201112055558.2348-3-zhichao.gao@intel.com>

SecurityPkg/Hash2DxeCrypto/Hash2DxeCrypto.c
SecurityPkg/Hash2DxeCrypto/Hash2DxeCrypto.inf

index 50a6157bd9e65ee94b341d4fd3b8abe69033ae49..c1c0470be9939134a9d5197faec591d95c40bd75 100644 (file)
@@ -120,7 +120,6 @@ typedef struct {
 } EFI_HASH_INFO;\r
 \r
 EFI_HASH_INFO  mHashInfo[] = {\r
-  {&gEfiHashAlgorithmSha1Guid,    sizeof(EFI_SHA1_HASH2),   Sha1GetContextSize,   Sha1Init,   Sha1Update,   Sha1Final   },\r
   {&gEfiHashAlgorithmSha256Guid,  sizeof(EFI_SHA256_HASH2), Sha256GetContextSize, Sha256Init, Sha256Update, Sha256Final },\r
   {&gEfiHashAlgorithmSha384Guid,  sizeof(EFI_SHA384_HASH2), Sha384GetContextSize, Sha384Init, Sha384Update, Sha384Final },\r
   {&gEfiHashAlgorithmSha512Guid,  sizeof(EFI_SHA512_HASH2), Sha512GetContextSize, Sha512Init, Sha512Update, Sha512Final },\r
index a65943056a110f9da71db0b5d0b8a62c3b07aa14..6a456ed2a64b1cce32b96d2125846fc5a5de6ca5 100644 (file)
@@ -44,7 +44,6 @@
   UefiLib\r
 \r
 [Guids]\r
-  gEfiHashAlgorithmSha1Guid             ## CONSUMES               ## GUID\r
   gEfiHashAlgorithmSha256Guid           ## CONSUMES               ## GUID\r
   gEfiHashAlgorithmSha384Guid           ## CONSUMES               ## GUID\r
   gEfiHashAlgorithmSha512Guid           ## CONSUMES               ## GUID\r