# This Package provides cryptographic-related libraries for UEFI security modules.\r
# It also provides a test application to test libraries.\r
#\r
-# Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
-# This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution. The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+# Copyright (c) 2009 - 2020, Intel Corporation. All rights reserved.<BR>\r
+# SPDX-License-Identifier: BSD-2-Clause-Patent\r
#\r
##\r
\r
##\r
TlsLib|Include/Library/TlsLib.h\r
\r
+ ## @libraryclass Provides Unified API for different hash implementations.\r
+ #\r
+ HashApiLib|Include/Library/HashApiLib.h\r
+\r
+[Guids]\r
+ ## Crypto package token space guid.\r
+ gEfiCryptoPkgTokenSpaceGuid = { 0x6bd7de60, 0x9ef7, 0x4899, { 0x97, 0xd0, 0xab, 0xff, 0xfd, 0xe9, 0x70, 0xf2 } }\r
+\r
+[PcdsFixedAtBuild, PcdsPatchableInModule, PcdsDynamic, PcdsDynamicEx]\r
+ ## This PCD indicates the HASH algorithm to calculate hash of data\r
+ # Based on the value set, the required algorithm is chosen to calculate\r
+ # the hash of data.<BR>\r
+ # The default hashing algorithm for BaseHashApiLib is set to SHA256.<BR>\r
+ # 0x00000001 - MD4.<BR>\r
+ # 0x00000002 - MD5.<BR>\r
+ # 0x00000003 - SHA1.<BR>\r
+ # 0x00000004 - SHA256.<BR>\r
+ # 0x00000005 - SHA384.<BR>\r
+ # 0x00000006 - SHA512.<BR>\r
+ # 0x00000007 - SM3_256.<BR>\r
+ # @Prompt Set policy for hashing unsigned image for Secure Boot.\r
+ # @ValidRange 0x80000001 | 0x00000001 - 0x00000007\r
+ gEfiCryptoPkgTokenSpaceGuid.PcdHashApiLibPolicy|0x04|UINT8|0x00000001\r
+\r
[UserExtensions.TianoCore."ExtraFiles"]\r
CryptoPkgExtra.uni\r