Skip to content

Commit

Permalink
Add configuration option translations
Browse files Browse the repository at this point in the history
Add translation to Mbed TLS equivalent config options.

Signed-off-by: Thomas Daubney <[email protected]>
  • Loading branch information
tom-daubney-arm committed Dec 12, 2023
1 parent 65f539d commit cdb62ac
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#ifndef MBEDTLS_CONFIG_ADJUST_MBEDTLS_FROM_TF_PSA_CRYPTO_H
#define MBEDTLS_CONFIG_ADJUST_MBEDTLS_FROM_TF_PSA_CRYPTO_H

/* General configuration options. */

#if defined(TF_PSA_CRYPTO_KEY_ID_ENCODES_OWNER)
#define MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER
#endif
Expand Down Expand Up @@ -50,6 +52,14 @@
#define mbedtls_platform_zeroize tf_psa_crypto_platform_zeroize
#endif

#if defined(PSA_CRYPTO_DEPRECATED_WARNING)
#define MBEDTLS_DEPRECATED_WARNING
#endif

#if defined(PSA_CRYPTO_DEPRECATED_REMOVED)
#define MBEDTLS_DEPRECATED_REMOVED
#endif

#if defined(TF_PSA_CRYPTO_BUILTIN_KEYS)
#define MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS
#endif
Expand Down Expand Up @@ -195,4 +205,6 @@
#define MBEDTLS_LMS_C
#endif



#endif /* MBEDTLS_CONFIG_ADJUST_MBEDTLS_FROM_TF_PSA_CRYPTO_H */

0 comments on commit cdb62ac

Please sign in to comment.