]> git.proxmox.com Git - mirror_edk2.git/commitdiff
CryptoPkg/BaseCryptLib: add crypto algorithms needed by variable protection
authorWang, Jian J <jian.j.wang@intel.com>
Tue, 18 Aug 2020 02:53:51 +0000 (10:53 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 29 Sep 2020 05:58:58 +0000 (05:58 +0000)
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2594

Crypto algorithms, hkdf-sha256/hmac-sha256/aes, are needed to verify
integrity of variable data, derive hmac and encryption keys, and
encrypt/decrypt varible. Replacing null version source code with real
implementations makes sure we can enable full functionalities of protected
variable later.

Cc: Xiaoyu Lu <xiaoyux.lu@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Guomin Jiang <guomin.jiang@intel.com>
Cc: Nishant C Mistry <nishant.c.mistry@intel.com>
Signed-off-by: Jian J Wang <jian.j.wang@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf

index dc28e3a11d486a05cd49fc0475a1353b8895edb9..7509e427302856cd7a5776966b2c44539fda8097 100644 (file)
@@ -40,8 +40,8 @@
   Hash/CryptSha256.c\r
   Hash/CryptSm3.c\r
   Hash/CryptSha512.c\r
-  Hmac/CryptHmacSha256Null.c\r
-  Kdf/CryptHkdfNull.c\r
+  Hmac/CryptHmacSha256.c\r
+  Kdf/CryptHkdf.c\r
   Cipher/CryptAesNull.c\r
   Pk/CryptRsaBasic.c\r
   Pk/CryptRsaExtNull.c\r
index 5005beed028ca21f5ead06b0c95736e6e99febe3..70c985ec93dc2b7556db34582d49f690b3cba803 100644 (file)
@@ -40,9 +40,9 @@
   Hash/CryptSha256.c\r
   Hash/CryptSm3.c\r
   Hash/CryptSha512Null.c\r
-  Hmac/CryptHmacSha256Null.c\r
-  Kdf/CryptHkdfNull.c\r
-  Cipher/CryptAesNull.c\r
+  Hmac/CryptHmacSha256.c\r
+  Kdf/CryptHkdf.c\r
+  Cipher/CryptAes.c\r
   Pk/CryptRsaBasic.c\r
   Pk/CryptRsaExtNull.c\r
   Pk/CryptPkcs1OaepNull.c\r