You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

crypto.h 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. #ifndef CONFIG_CRYPTO_H
  2. #define CONFIG_CRYPTO_H
  3. /** @file
  4. *
  5. * Cryptographic configuration
  6. *
  7. */
  8. FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
  9. /** RSA public-key algorithm */
  10. #define CRYPTO_PUBKEY_RSA
  11. /** AES-CBC block cipher */
  12. #define CRYPTO_CIPHER_AES_CBC
  13. /** MD5 digest algorithm
  14. *
  15. * Note that use of MD5 is implicit when using TLSv1.1 or earlier.
  16. */
  17. #define CRYPTO_DIGEST_MD5
  18. /** SHA-1 digest algorithm
  19. *
  20. * Note that use of SHA-1 is implicit when using TLSv1.1 or earlier.
  21. */
  22. #define CRYPTO_DIGEST_SHA1
  23. /** SHA-224 digest algorithm */
  24. #define CRYPTO_DIGEST_SHA224
  25. /** SHA-256 digest algorithm
  26. *
  27. * Note that use of SHA-256 is implicit when using TLSv1.2.
  28. */
  29. #define CRYPTO_DIGEST_SHA256
  30. /** SHA-384 digest algorithm */
  31. #define CRYPTO_DIGEST_SHA384
  32. /** SHA-512 digest algorithm */
  33. #define CRYPTO_DIGEST_SHA512
  34. /** Margin of error (in seconds) allowed in signed timestamps
  35. *
  36. * We default to allowing a reasonable margin of error: 12 hours to
  37. * allow for the local time zone being non-GMT, plus 30 minutes to
  38. * allow for general clock drift.
  39. */
  40. #define TIMESTAMP_ERROR_MARGIN ( ( 12 * 60 + 30 ) * 60 )
  41. /** Default cross-signed certificate source
  42. *
  43. * This is the default location from which iPXE will attempt to
  44. * download cross-signed certificates in order to complete a
  45. * certificate chain.
  46. */
  47. #define CROSSCERT "http://ca.ipxe.org/auto"
  48. /** Perform OCSP checks when applicable
  49. *
  50. * Some CAs provide non-functional OCSP servers, and some clients are
  51. * forced to operate on networks without access to the OCSP servers.
  52. * Allow the user to explicitly disable the use of OCSP checks.
  53. */
  54. #define OCSP_CHECK
  55. #include <config/named.h>
  56. #include NAMED_CONFIG(crypto.h)
  57. #include <config/local/crypto.h>
  58. #include LOCAL_NAMED_CONFIG(crypto.h)
  59. #endif /* CONFIG_CRYPTO_H */