summaryrefslogtreecommitdiffstats
path: root/CryptoPkg
diff options
context:
space:
mode:
authorWang, Jian J <jian.j.wang@intel.com>2020-08-18 10:53:51 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-09-29 05:58:58 +0000
commit52dbaaeace647961bae61634c4be49ea2ca3d5cd (patch)
treef632025cf8644a3db09b06071210332267628f83 /CryptoPkg
parentffa51b3bde2da8e2719e3be1ecce63d1f9913e36 (diff)
downloadedk2-52dbaaeace647961bae61634c4be49ea2ca3d5cd.tar.gz
edk2-52dbaaeace647961bae61634c4be49ea2ca3d5cd.tar.bz2
edk2-52dbaaeace647961bae61634c4be49ea2ca3d5cd.zip
CryptoPkg/BaseCryptLib: add crypto algorithms needed by variable protection
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>
Diffstat (limited to 'CryptoPkg')
-rw-r--r--CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf4
-rw-r--r--CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf6
2 files changed, 5 insertions, 5 deletions
diff --git a/CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf b/CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
index dc28e3a11d..7509e42730 100644
--- a/CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
+++ b/CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
@@ -40,8 +40,8 @@
Hash/CryptSha256.c
Hash/CryptSm3.c
Hash/CryptSha512.c
- Hmac/CryptHmacSha256Null.c
- Kdf/CryptHkdfNull.c
+ Hmac/CryptHmacSha256.c
+ Kdf/CryptHkdf.c
Cipher/CryptAesNull.c
Pk/CryptRsaBasic.c
Pk/CryptRsaExtNull.c
diff --git a/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf b/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
index 5005beed02..70c985ec93 100644
--- a/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
+++ b/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
@@ -40,9 +40,9 @@
Hash/CryptSha256.c
Hash/CryptSm3.c
Hash/CryptSha512Null.c
- Hmac/CryptHmacSha256Null.c
- Kdf/CryptHkdfNull.c
- Cipher/CryptAesNull.c
+ Hmac/CryptHmacSha256.c
+ Kdf/CryptHkdf.c
+ Cipher/CryptAes.c
Pk/CryptRsaBasic.c
Pk/CryptRsaExtNull.c
Pk/CryptPkcs1OaepNull.c