user-config-for-test.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /* MBEDTLS_USER_CONFIG_FILE for testing.
  2. * Only used for a few test configurations.
  3. *
  4. * Typical usage (note multiple levels of quoting):
  5. * make CFLAGS="'-DMBEDTLS_USER_CONFIG_FILE=\"../tests/configs/user-config-for-test.h\"'"
  6. */
  7. /*
  8. * Copyright The Mbed TLS Contributors
  9. * SPDX-License-Identifier: Apache-2.0
  10. *
  11. * Licensed under the Apache License, Version 2.0 (the "License"); you may
  12. * not use this file except in compliance with the License.
  13. * You may obtain a copy of the License at
  14. *
  15. * http://www.apache.org/licenses/LICENSE-2.0
  16. *
  17. * Unless required by applicable law or agreed to in writing, software
  18. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  19. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  20. * See the License for the specific language governing permissions and
  21. * limitations under the License.
  22. */
  23. #if defined(PSA_CRYPTO_DRIVER_TEST_ALL)
  24. /* Enable the use of the test driver in the library, and build the generic
  25. * part of the test driver. */
  26. #define PSA_CRYPTO_DRIVER_TEST
  27. /* Use the accelerator driver for all cryptographic mechanisms for which
  28. * the test driver implemented. */
  29. #define MBEDTLS_PSA_ACCEL_KEY_TYPE_AES
  30. #define MBEDTLS_PSA_ACCEL_KEY_TYPE_CAMELLIA
  31. #define MBEDTLS_PSA_ACCEL_KEY_TYPE_ECC_KEY_PAIR
  32. #define MBEDTLS_PSA_ACCEL_KEY_TYPE_RSA_KEY_PAIR
  33. #define MBEDTLS_PSA_ACCEL_ALG_CBC_NO_PADDING
  34. #define MBEDTLS_PSA_ACCEL_ALG_CBC_PKCS7
  35. #define MBEDTLS_PSA_ACCEL_ALG_CTR
  36. #define MBEDTLS_PSA_ACCEL_ALG_CFB
  37. #define MBEDTLS_PSA_ACCEL_ALG_ECDSA
  38. #define MBEDTLS_PSA_ACCEL_ALG_DETERMINISTIC_ECDSA
  39. #define MBEDTLS_PSA_ACCEL_ALG_MD2
  40. #define MBEDTLS_PSA_ACCEL_ALG_MD4
  41. #define MBEDTLS_PSA_ACCEL_ALG_MD5
  42. #define MBEDTLS_PSA_ACCEL_ALG_OFB
  43. #define MBEDTLS_PSA_ACCEL_ALG_RIPEMD160
  44. #define MBEDTLS_PSA_ACCEL_ALG_RSA_PKCS1V15_SIGN
  45. #define MBEDTLS_PSA_ACCEL_ALG_RSA_PSS
  46. #define MBEDTLS_PSA_ACCEL_ALG_SHA_1
  47. #define MBEDTLS_PSA_ACCEL_ALG_SHA_224
  48. #define MBEDTLS_PSA_ACCEL_ALG_SHA_256
  49. #define MBEDTLS_PSA_ACCEL_ALG_SHA_384
  50. #define MBEDTLS_PSA_ACCEL_ALG_SHA_512
  51. #define MBEDTLS_PSA_ACCEL_ALG_XTS
  52. #define MBEDTLS_PSA_ACCEL_ALG_CMAC
  53. #define MBEDTLS_PSA_ACCEL_ALG_HMAC
  54. #endif /* PSA_CRYPTO_DRIVER_TEST_ALL */