# 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 - 2016, 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
-# \r
+# Copyright (c) 2009 - 2020, Intel Corporation. All rights reserved.<BR>\r
+# SPDX-License-Identifier: BSD-2-Clause-Patent\r
+#\r
##\r
\r
[Defines]\r
PACKAGE_NAME = CryptoPkg\r
PACKAGE_UNI_FILE = CryptoPkg.uni\r
PACKAGE_GUID = 36470E80-36F2-4ba0-8CC8-937C7D9FF888\r
- PACKAGE_VERSION = 0.96\r
+ PACKAGE_VERSION = 0.98\r
\r
[Includes]\r
Include\r
- Library/OpensslLib/openssl-1.0.2h/include\r
+\r
+[Includes.Common.Private]\r
+ Library/Include\r
+ Library/OpensslLib/openssl/include\r
+ Library/OpensslLib/openssl/crypto/include\r
\r
[LibraryClasses]\r
## @libraryclass Provides basic library functions for cryptographic primitives.\r
##\r
BaseCryptLib|Include/Library/BaseCryptLib.h\r
\r
-[Protocols]\r
- ## Include/Protocol/RuntimeCrypt.h\r
- gEfiRuntimeCryptProtocolGuid = { 0xe1475e0c, 0x1746, 0x4802, {0x86, 0x2e, 0x1, 0x1c, 0x2c, 0x2d, 0x9d, 0x86 }}\r
+ ## @libraryclass Provides TLS library functions for EFI TLS protocol.\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
- \r