SmmCryptLib.inf 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. ## @file
  2. # Cryptographic Library Instance for SMM driver.
  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, SHA-384 Digest functions, SHA-512 Digest functions,
  10. # HMAC-MD5 functions, HMAC-SHA1 functions, TDES/ARC4 functions, RSA external
  11. # functions, PKCS#7 SignedData sign functions, Diffie-Hellman functions, and
  12. # authenticode signature verification functions are not supported in this instance.
  13. #
  14. # Copyright (c) 2010 - 2019, Intel Corporation. All rights reserved.<BR>
  15. # SPDX-License-Identifier: BSD-2-Clause-Patent
  16. #
  17. ##
  18. [Defines]
  19. INF_VERSION = 0x00010005
  20. BASE_NAME = SmmCryptLib
  21. MODULE_UNI_FILE = SmmCryptLib.uni
  22. FILE_GUID = 028080a3-8958-4a62-a1a8-0fa1da162007
  23. MODULE_TYPE = DXE_SMM_DRIVER
  24. VERSION_STRING = 1.0
  25. PI_SPECIFICATION_VERSION = 0x0001000A
  26. LIBRARY_CLASS = BaseCryptLib|DXE_SMM_DRIVER SMM_CORE MM_STANDALONE
  27. #
  28. # The following information is for reference only and not required by the build tools.
  29. #
  30. # VALID_ARCHITECTURES = IA32 X64 ARM AARCH64
  31. #
  32. [Sources]
  33. Hash/CryptMd4Null.c
  34. Hash/CryptMd5.c
  35. Hash/CryptSha1.c
  36. Hash/CryptSha256.c
  37. Hash/CryptSha512Null.c
  38. Hmac/CryptHmacMd5Null.c
  39. Hmac/CryptHmacSha1Null.c
  40. Hmac/CryptHmacSha256.c
  41. Cipher/CryptAes.c
  42. Cipher/CryptTdesNull.c
  43. Cipher/CryptArc4Null.c
  44. Pk/CryptRsaBasic.c
  45. Pk/CryptRsaExtNull.c
  46. Pk/CryptPkcs5Pbkdf2.c
  47. Pk/CryptPkcs7SignNull.c
  48. Pk/CryptPkcs7VerifyCommon.c
  49. Pk/CryptPkcs7VerifyBase.c
  50. Pk/CryptDhNull.c
  51. Pk/CryptX509.c
  52. Pk/CryptAuthenticodeNull.c
  53. Pk/CryptTsNull.c
  54. Pem/CryptPem.c
  55. SysCall/CrtWrapper.c
  56. SysCall/ConstantTimeClock.c
  57. SysCall/BaseMemAllocation.c
  58. [Sources.Ia32]
  59. Rand/CryptRandTsc.c
  60. [Sources.X64]
  61. Rand/CryptRandTsc.c
  62. [Sources.ARM]
  63. Rand/CryptRand.c
  64. [Sources.AARCH64]
  65. Rand/CryptRand.c
  66. [Packages]
  67. MdePkg/MdePkg.dec
  68. CryptoPkg/CryptoPkg.dec
  69. [LibraryClasses]
  70. BaseLib
  71. IoLib
  72. BaseMemoryLib
  73. MemoryAllocationLib
  74. OpensslLib
  75. IntrinsicLib
  76. PrintLib
  77. #
  78. # Remove these [BuildOptions] after this library is cleaned up
  79. #
  80. [BuildOptions]
  81. #
  82. # suppress the following warnings so we do not break the build with warnings-as-errors:
  83. # C4090: 'function' : different 'const' qualifiers
  84. #
  85. MSFT:*_*_*_CC_FLAGS = /wd4090
  86. XCODE:*_*_*_CC_FLAGS = -mmmx -msse