]> git.proxmox.com Git - mirror_edk2.git/commit
CryptoPkg/BaseHashApiLib: Implement Unified Hash Calculation API
authorAmol N Sukerkar <amol.n.sukerkar@intel.com>
Mon, 3 Feb 2020 18:18:50 +0000 (10:18 -0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 3 Feb 2020 23:49:28 +0000 (23:49 +0000)
commit3feea54eae33a6689bedf1e023edeb219faa76d6
treec70d63f074e1a07b4e4e8126a697a6b01ffac71b
parent2c061de06336d31dcc24d0765b702c975c6f06a9
CryptoPkg/BaseHashApiLib: Implement Unified Hash Calculation API

https://bugzilla.tianocore.org/show_bug.cgi?id=2151

This commit introduces a Unified Hash API to calculate hash using a
hashing algorithm specified by the PCD, PcdHashApiLibPolicy. This library
interfaces with the various hashing API, such as, MD4, MD5, SHA1, SHA256,
SHA512 and SM3_256 implemented in BaseCryptLib. The user can calculate
the desired hash by setting PcdHashApiLibPolicy to appropriate value.

This feature is documented in the Bugzilla,
https://bugzilla.tianocore.org/show_bug.cgi?id=2151.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Signed-off-by: Amol N Sukerkar <amol.n.sukerkar@intel.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
CryptoPkg/CryptoPkg.dec
CryptoPkg/CryptoPkg.dsc
CryptoPkg/CryptoPkg.uni
CryptoPkg/Include/Library/HashApiLib.h [new file with mode: 0644]
CryptoPkg/Library/BaseHashApiLib/BaseHashApiLib.c [new file with mode: 0644]
CryptoPkg/Library/BaseHashApiLib/BaseHashApiLib.inf [new file with mode: 0644]
CryptoPkg/Library/BaseHashApiLib/BaseHashApiLib.uni [new file with mode: 0644]