]> git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/CryptoPkg.dec
CryptoPkg/BaseHashApiLib: Implement Unified Hash Calculation API
[mirror_edk2.git] / CryptoPkg / CryptoPkg.dec
1 ## @file
2 # Package for cryptography modules.
3 #
4 # This Package provides cryptographic-related libraries for UEFI security modules.
5 # It also provides a test application to test libraries.
6 #
7 # Copyright (c) 2009 - 2020, Intel Corporation. All rights reserved.<BR>
8 # SPDX-License-Identifier: BSD-2-Clause-Patent
9 #
10 ##
11
12 [Defines]
13 DEC_SPECIFICATION = 0x00010005
14 PACKAGE_NAME = CryptoPkg
15 PACKAGE_UNI_FILE = CryptoPkg.uni
16 PACKAGE_GUID = 36470E80-36F2-4ba0-8CC8-937C7D9FF888
17 PACKAGE_VERSION = 0.98
18
19 [Includes]
20 Include
21
22 [Includes.Common.Private]
23 Library/Include
24 Library/OpensslLib/openssl/include
25 Library/OpensslLib/openssl/crypto/include
26
27 [LibraryClasses]
28 ## @libraryclass Provides basic library functions for cryptographic primitives.
29 ##
30 BaseCryptLib|Include/Library/BaseCryptLib.h
31
32 ## @libraryclass Provides TLS library functions for EFI TLS protocol.
33 ##
34 TlsLib|Include/Library/TlsLib.h
35
36 ## @libraryclass Provides Unified API for different hash implementations.
37 #
38 HashApiLib|Include/Library/HashApiLib.h
39
40 [Guids]
41 ## Crypto package token space guid.
42 gEfiCryptoPkgTokenSpaceGuid = { 0x6bd7de60, 0x9ef7, 0x4899, { 0x97, 0xd0, 0xab, 0xff, 0xfd, 0xe9, 0x70, 0xf2 } }
43
44 [PcdsFixedAtBuild, PcdsPatchableInModule, PcdsDynamic, PcdsDynamicEx]
45 ## This PCD indicates the HASH algorithm to calculate hash of data
46 # Based on the value set, the required algorithm is chosen to calculate
47 # the hash of data.<BR>
48 # The default hashing algorithm for BaseHashApiLib is set to SHA256.<BR>
49 # 0x00000001 - MD4.<BR>
50 # 0x00000002 - MD5.<BR>
51 # 0x00000003 - SHA1.<BR>
52 # 0x00000004 - SHA256.<BR>
53 # 0x00000005 - SHA384.<BR>
54 # 0x00000006 - SHA512.<BR>
55 # 0x00000007 - SM3_256.<BR>
56 # @Prompt Set policy for hashing unsigned image for Secure Boot.
57 # @ValidRange 0x80000001 | 0x00000001 - 0x00000007
58 gEfiCryptoPkgTokenSpaceGuid.PcdHashApiLibPolicy|0x04|UINT8|0x00000001
59
60 [UserExtensions.TianoCore."ExtraFiles"]
61 CryptoPkgExtra.uni