Move the inclusion of the PSA config file(s) into build_info.h
They belong here, next to the inclusion of the mbedtls config file. We only put them in config_psa.h in Mbed TLS 2.x because there was no build_info.h we could use. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
8cd1da4b73
commit
a458d48e7f
2 changed files with 14 additions and 12 deletions
|
@ -59,6 +59,7 @@
|
||||||
#define inline __inline
|
#define inline __inline
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* X.509, TLS and non-PSA crypto configuration */
|
||||||
#if !defined(MBEDTLS_CONFIG_FILE)
|
#if !defined(MBEDTLS_CONFIG_FILE)
|
||||||
#include "mbedtls/mbedtls_config.h"
|
#include "mbedtls/mbedtls_config.h"
|
||||||
#else
|
#else
|
||||||
|
@ -80,6 +81,19 @@
|
||||||
#include MBEDTLS_USER_CONFIG_FILE
|
#include MBEDTLS_USER_CONFIG_FILE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* PSA crypto configuration */
|
||||||
|
#if defined(MBEDTLS_PSA_CRYPTO_CONFIG)
|
||||||
|
#if defined(MBEDTLS_PSA_CRYPTO_CONFIG_FILE)
|
||||||
|
#include MBEDTLS_PSA_CRYPTO_CONFIG_FILE
|
||||||
|
#else
|
||||||
|
#include "psa/crypto_config.h"
|
||||||
|
#endif
|
||||||
|
#endif /* defined(MBEDTLS_PSA_CRYPTO_CONFIG) */
|
||||||
|
|
||||||
|
#if defined(MBEDTLS_PSA_CRYPTO_USER_CONFIG_FILE)
|
||||||
|
#include MBEDTLS_PSA_CRYPTO_USER_CONFIG_FILE
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Auto-enable MBEDTLS_CTR_DRBG_USE_128_BIT_KEY if
|
/* Auto-enable MBEDTLS_CTR_DRBG_USE_128_BIT_KEY if
|
||||||
* MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH and MBEDTLS_CTR_DRBG_C defined
|
* MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH and MBEDTLS_CTR_DRBG_C defined
|
||||||
* to ensure a 128-bit key size in CTR_DRBG.
|
* to ensure a 128-bit key size in CTR_DRBG.
|
||||||
|
|
|
@ -30,18 +30,6 @@
|
||||||
#ifndef MBEDTLS_CONFIG_PSA_H
|
#ifndef MBEDTLS_CONFIG_PSA_H
|
||||||
#define MBEDTLS_CONFIG_PSA_H
|
#define MBEDTLS_CONFIG_PSA_H
|
||||||
|
|
||||||
#if defined(MBEDTLS_PSA_CRYPTO_CONFIG)
|
|
||||||
#if defined(MBEDTLS_PSA_CRYPTO_CONFIG_FILE)
|
|
||||||
#include MBEDTLS_PSA_CRYPTO_CONFIG_FILE
|
|
||||||
#else
|
|
||||||
#include "psa/crypto_config.h"
|
|
||||||
#endif
|
|
||||||
#endif /* defined(MBEDTLS_PSA_CRYPTO_CONFIG) */
|
|
||||||
|
|
||||||
#if defined(MBEDTLS_PSA_CRYPTO_USER_CONFIG_FILE)
|
|
||||||
#include MBEDTLS_PSA_CRYPTO_USER_CONFIG_FILE
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "psa/crypto_legacy.h"
|
#include "psa/crypto_legacy.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue