config_test_driver.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * Mbed TLS configuration for PSA test driver libraries. It includes:
  3. * . the minimum set of modules needed by the PSA core.
  4. * . the Mbed TLS configuration options that may need to be additionally
  5. * enabled for the purpose of a specific test.
  6. * . the PSA configuration file for the Mbed TLS library and its test drivers.
  7. */
  8. /*
  9. * Copyright The Mbed TLS Contributors
  10. * SPDX-License-Identifier: Apache-2.0
  11. *
  12. * Licensed under the Apache License, Version 2.0 (the "License"); you may
  13. * not use this file except in compliance with the License.
  14. * You may obtain a copy of the License at
  15. *
  16. * http://www.apache.org/licenses/LICENSE-2.0
  17. *
  18. * Unless required by applicable law or agreed to in writing, software
  19. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  20. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  21. * See the License for the specific language governing permissions and
  22. * limitations under the License.
  23. */
  24. #ifndef MBEDTLS_CONFIG_H
  25. #define MBEDTLS_CONFIG_H
  26. #if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
  27. #define _CRT_SECURE_NO_DEPRECATE 1
  28. #endif
  29. #define MBEDTLS_PSA_CRYPTO_C
  30. #define MBEDTLS_PSA_CRYPTO_CONFIG
  31. /* PSA core mandatory configuration options */
  32. #define MBEDTLS_CIPHER_C
  33. #define MBEDTLS_AES_C
  34. #define MBEDTLS_SHA256_C
  35. #define MBEDTLS_PSA_BUILTIN_ALG_SHA_256 1
  36. #define MBEDTLS_CTR_DRBG_C
  37. #define MBEDTLS_ENTROPY_C
  38. /*
  39. * Configuration options that may need to be additionally enabled for the
  40. * purpose of a specific set of tests.
  41. */
  42. //#define MBEDTLS_SHA1_C
  43. //#define MBEDTLS_SHA224_C
  44. //#define MBEDTLS_SHA384_C
  45. //#define MBEDTLS_SHA512_C
  46. //#define MBEDTLS_MD_C
  47. //#define MBEDTLS_PEM_PARSE_C
  48. //#define MBEDTLS_BASE64_C
  49. #include "mbedtls/config_psa.h"
  50. #include "mbedtls/check_config.h"
  51. #endif /* MBEDTLS_CONFIG_H */