crypto_adjust_auto_enabled.h 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. /**
  2. * \file psa/crypto_adjust_auto_enabled.h
  3. * \brief Adjust PSA configuration: enable always-on features
  4. *
  5. * This is an internal header. Do not include it directly.
  6. *
  7. * Always enable certain features which require a negligible amount of code
  8. * to implement, to avoid some edge cases in the configuration combinatorics.
  9. */
  10. /*
  11. * Copyright The Mbed TLS Contributors
  12. * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
  13. */
  14. #ifndef PSA_CRYPTO_ADJUST_AUTO_ENABLED_H
  15. #define PSA_CRYPTO_ADJUST_AUTO_ENABLED_H
  16. #if !defined(MBEDTLS_CONFIG_FILES_READ)
  17. #error "Do not include psa/crypto_adjust_*.h manually! This can lead to problems, " \
  18. "up to and including runtime errors such as buffer overflows. " \
  19. "If you're trying to fix a complaint from check_config.h, just remove " \
  20. "it from your configuration file: since Mbed TLS 3.0, it is included " \
  21. "automatically at the right point."
  22. #endif /* */
  23. #define PSA_WANT_KEY_TYPE_DERIVE 1
  24. #define PSA_WANT_KEY_TYPE_PASSWORD 1
  25. #define PSA_WANT_KEY_TYPE_PASSWORD_HASH 1
  26. #define PSA_WANT_KEY_TYPE_RAW_DATA 1
  27. #endif /* PSA_CRYPTO_ADJUST_AUTO_ENABLED_H */