Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

crypto.h 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. #include <config/named.h>
  49. #include NAMED_CONFIG(crypto.h)
  50. #include <config/local/crypto.h>
  51. #include LOCAL_NAMED_CONFIG(crypto.h)
  52. #endif /* CONFIG_CRYPTO_H */