CryptoPkg[all]  0.98
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
gEfiCryptoPkgTokenSpaceGuid.PcdHashApiLibPolicy

This PCD indicates the HASH algorithm to calculate hash of data
Based on the value set, the required algorithm is chosen to calculate
the hash of data.

The default hashing algorithm for BaseHashApiLib is set to SHA256.

0x00000001 - HASH_ALG_SHA1.

0x00000002 - HASH_ALG_SHA256.

0x00000004 - HASH_ALG_SHA384.

0x00000008 - HASH_ALG_SHA512.

0x00000010 - HASH_ALG_SM3_256.

Set policy for hashing unsigned image for Secure Boot.
0x80000001 | 0x00000001, 0x00000002, 0x00000004, 0x00000008, 0x00000010

PCD Information

NameToken SpaceToken numberData TypeDefault Value
PcdHashApiLibPolicygEfiCryptoPkgTokenSpaceGuid0x00000001UINT320x00000002