diff options
author | Amol N Sukerkar <amol.n.sukerkar@intel.com> | 2020-02-03 10:18:50 -0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-02-03 23:49:28 +0000 |
commit | 3feea54eae33a6689bedf1e023edeb219faa76d6 (patch) | |
tree | c70d63f074e1a07b4e4e8126a697a6b01ffac71b /CryptoPkg/Library/BaseHashApiLib/BaseHashApiLib.uni | |
parent | 2c061de06336d31dcc24d0765b702c975c6f06a9 (diff) | |
download | edk2-3feea54eae33a6689bedf1e023edeb219faa76d6.tar.gz edk2-3feea54eae33a6689bedf1e023edeb219faa76d6.tar.bz2 edk2-3feea54eae33a6689bedf1e023edeb219faa76d6.zip |
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>
Diffstat (limited to 'CryptoPkg/Library/BaseHashApiLib/BaseHashApiLib.uni')
-rw-r--r-- | CryptoPkg/Library/BaseHashApiLib/BaseHashApiLib.uni | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/CryptoPkg/Library/BaseHashApiLib/BaseHashApiLib.uni b/CryptoPkg/Library/BaseHashApiLib/BaseHashApiLib.uni new file mode 100644 index 0000000000..49ba82e86f --- /dev/null +++ b/CryptoPkg/Library/BaseHashApiLib/BaseHashApiLib.uni @@ -0,0 +1,17 @@ +// /** @file
+// Provides Unified API for Hash Calculation
+//
+// This library is BaseHashApiLib. It will redirect hash request to
+// each individual hash API, such as SHA1, SHA256, SHA384, SM3 based
+// on hashing algorithm specified by PcdHashApiLibPolicy.
+//
+// Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>
+//
+// SPDX-License-Identifier: BSD-2-Clause-Patent
+//
+// **/
+
+
+#string STR_MODULE_ABSTRACT #language en-US "Provides hash service by specified hash handler"
+
+#string STR_MODULE_DESCRIPTION #language en-US "This library is Unified Hash API. It will redirect hash request to the hash handler specified by PcdHashApiLibPolicy."
|