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.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. #include <config/named.h>
  42. #include NAMED_CONFIG(crypto.h)
  43. #include <config/local/crypto.h>
  44. #include LOCAL_NAMED_CONFIG(crypto.h)
  45. #endif /* CONFIG_CRYPTO_H */