mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 17:44:19 +00:00

Change the name of these confs to be version agnostic, we will later use these configs to enforce the mbedtls minimum version Change-Id: I1f665c2471877ecc833270c511749ff845046f10 Signed-off-by: Ryan Everett <ryan.everett@arm.com>
29 lines
917 B
C
29 lines
917 B
C
/*
|
|
* Copyright (c) 2023-2024, Arm Ltd. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef PSA_MBEDTLS_CONFIG_H
|
|
#define PSA_MBEDTLS_CONFIG_H
|
|
|
|
#include "default_mbedtls_config.h"
|
|
|
|
#define MBEDTLS_PSA_CRYPTO_C
|
|
#define MBEDTLS_PSA_ASSUME_EXCLUSIVE_BUFFERS
|
|
|
|
/*
|
|
* Using PSA crypto API requires an RNG right now. If we don't define the macro
|
|
* below then we get build errors.
|
|
*
|
|
* This is a functionality gap in mbedTLS. The technical limitation is that
|
|
* psa_crypto_init() is all-or-nothing, and fixing that would require separate
|
|
* initialization of the keystore, the RNG, etc.
|
|
*
|
|
* By defining MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG, we pretend using an external
|
|
* RNG. As a result, the PSA crypto init code does nothing when it comes to
|
|
* initializing the RNG, as we are supposed to take care of that ourselves.
|
|
*/
|
|
#define MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG
|
|
|
|
#endif /* PSA_MBEDTLS_CONFIG_H */
|