PeiCryptLib.inf 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. ## @file
  2. # Cryptographic Library Instance for PEIM.
  3. #
  4. # Caution: This module requires additional review when modified.
  5. # This library will have external input - signature.
  6. # This external input must be validated carefully to avoid security issues such as
  7. # buffer overflow or integer overflow.
  8. #
  9. # Note: MD4 Digest functions,
  10. # HMAC-MD5 functions, HMAC-SHA1/SHA256 functions, AES/TDES/ARC4 functions, RSA external
  11. # functions, PKCS#7 SignedData sign functions, Diffie-Hellman functions, X.509
  12. # certificate handler functions, authenticode signature verification functions,
  13. # PEM handler functions, and pseudorandom number generator functions are not
  14. # supported in this instance.
  15. #
  16. # Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
  17. # SPDX-License-Identifier: BSD-2-Clause-Patent
  18. #
  19. ##
  20. [Defines]
  21. INF_VERSION = 0x00010005
  22. BASE_NAME = PeiCryptLib
  23. MODULE_UNI_FILE = PeiCryptLib.uni
  24. FILE_GUID = 9a2a4375-194c-4e97-9f67-547ec98d96ca
  25. MODULE_TYPE = PEIM
  26. VERSION_STRING = 1.0
  27. LIBRARY_CLASS = BaseCryptLib|PEIM PEI_CORE
  28. #
  29. # The following information is for reference only and not required by the build tools.
  30. #
  31. # VALID_ARCHITECTURES = IA32 X64
  32. #
  33. [Sources]
  34. Hash/CryptMd4Null.c
  35. Hash/CryptMd5.c
  36. Hash/CryptSha1.c
  37. Hash/CryptSha256.c
  38. Hash/CryptSha512.c
  39. Hmac/CryptHmacMd5Null.c
  40. Hmac/CryptHmacSha1Null.c
  41. Hmac/CryptHmacSha256Null.c
  42. Cipher/CryptAesNull.c
  43. Cipher/CryptTdesNull.c
  44. Cipher/CryptArc4Null.c
  45. Pk/CryptRsaBasic.c
  46. Pk/CryptRsaExtNull.c
  47. Pk/CryptPkcs5Pbkdf2Null.c
  48. Pk/CryptPkcs7SignNull.c
  49. Pk/CryptPkcs7VerifyCommon.c
  50. Pk/CryptPkcs7VerifyBase.c
  51. Pk/CryptDhNull.c
  52. Pk/CryptX509Null.c
  53. Pk/CryptAuthenticodeNull.c
  54. Pk/CryptTsNull.c
  55. Pem/CryptPemNull.c
  56. Rand/CryptRandNull.c
  57. SysCall/CrtWrapper.c
  58. SysCall/ConstantTimeClock.c
  59. SysCall/BaseMemAllocation.c
  60. [Packages]
  61. MdePkg/MdePkg.dec
  62. CryptoPkg/CryptoPkg.dec
  63. [LibraryClasses]
  64. BaseLib
  65. BaseMemoryLib
  66. MemoryAllocationLib
  67. DebugLib
  68. OpensslLib
  69. IntrinsicLib
  70. #
  71. # Remove these [BuildOptions] after this library is cleaned up
  72. #
  73. [BuildOptions]
  74. #
  75. # suppress the following warnings so we do not break the build with warnings-as-errors:
  76. # C4090: 'function' : different 'const' qualifiers
  77. # C4718: 'function call' : recursive call has no side effects, deleting
  78. #
  79. MSFT:*_*_*_CC_FLAGS = /wd4090 /wd4718
  80. # -JCryptoPkg/Include : To disable the use of the system includes provided by RVCT
  81. # --diag_remark=1 : Reduce severity of "#1-D: last line of file ends without a newline"
  82. RVCT:*_*_ARM_CC_FLAGS = -JCryptoPkg/Include --diag_remark=1