CryptoPkg/BaseHashApiLib: Align BaseHashApiLib with TPM 2.0 Implementation
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2511 This commit aligns the baseHashApiLib with TPM 2.0 Implementation as follows: - Remove reference to MD4 and MD5 algorithms as they are deprecated - Align the enumerations for hashing algoerithms with the one used in TPM 2.0 implementation defined in IndustryStandard/Tpm20.h. 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: Jian J Wang <jian.j.wang@intel.com>
This commit is contained in:
committed by
mergify[bot]
parent
0997352ddb
commit
c70bdf9d4a
@@ -9,23 +9,11 @@
|
||||
|
||||
**/
|
||||
|
||||
#ifndef __BASEHASHAPILIB_H_
|
||||
#define __BASEHASHAPILIB_H_
|
||||
#ifndef __HASH_API_LIB_H_
|
||||
#define __HASH_API_LIB_H_
|
||||
|
||||
typedef VOID *HASH_API_CONTEXT;
|
||||
|
||||
//
|
||||
// Hash Algorithms
|
||||
//
|
||||
#define HASH_API_ALGO_INVALID 0x00000000
|
||||
#define HASH_API_ALGO_MD4 0x00000001
|
||||
#define HASH_API_ALGO_MD5 0x00000002
|
||||
#define HASH_API_ALGO_SHA1 0x00000003
|
||||
#define HASH_API_ALGO_SHA256 0x00000004
|
||||
#define HASH_API_ALGO_SHA384 0x00000005
|
||||
#define HASH_API_ALGO_SHA512 0x00000006
|
||||
#define HASH_API_ALGO_SM3_256 0x00000007
|
||||
|
||||
/**
|
||||
Retrieves the size, in bytes, of the context buffer required for hash operations.
|
||||
|
||||
|
Reference in New Issue
Block a user