blob: de7b1aab5573de79c134a4e5cdbd5bb4da4b569a [file] [log] [blame]
Mate Toth-Pal14ba4af2022-10-21 14:24:49 +02001/*
David Vincze58131252023-12-22 14:34:22 +01002 * Copyright (c) 2022-2024, Arm Ltd. All rights reserved.
Mate Toth-Pal14ba4af2022-10-21 14:24:49 +02003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef PLAT_TC_MBEDTLS_CONFIG_H
8#define PLAT_TC_MBEDTLS_CONFIG_H
9
Mate Toth-Pal14ba4af2022-10-21 14:24:49 +020010#include <export/lib/utils_def_exp.h>
Tamas Ban6dc14fc2023-04-21 09:27:51 +020011#include <mbedtls_config-3.h>
Mate Toth-Pal14ba4af2022-10-21 14:24:49 +020012
13#ifndef TF_MBEDTLS_HEAP_SIZE
14#error TF_MBEDTLS_HEAP_SIZE is not defined
15#else
16#define PLATFORM_TEST_MIN_MBEDTLS_HEAP_SIZE (8 * 1024)
17/* Only change heap size if it is less then the minimum required. */
18#if TF_MBEDTLS_HEAP_SIZE < PLATFORM_TEST_MIN_MBEDTLS_HEAP_SIZE
19#undef TF_MBEDTLS_HEAP_SIZE
20#define TF_MBEDTLS_HEAP_SIZE PLATFORM_TEST_MIN_MBEDTLS_HEAP_SIZE
21#endif
David Vincze58131252023-12-22 14:34:22 +010022#endif /* TF_MBEDTLS_HEAP_SIZE */
Mate Toth-Pal14ba4af2022-10-21 14:24:49 +020023
24#define MBEDTLS_PSA_CRYPTO_C
Manish V Badarkheb241efb2023-10-18 14:11:45 +010025#define MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG
Mate Toth-Pal14ba4af2022-10-21 14:24:49 +020026#define MBEDTLS_ECP_C
27#define MBEDTLS_ECP_DP_SECP384R1_ENABLED
David Vincze58131252023-12-22 14:34:22 +010028#define MBEDTLS_ECP_NO_INTERNAL_RNG
Mate Toth-Pal14ba4af2022-10-21 14:24:49 +020029
30#endif /* PLAT_TC_MBEDTLS_CONFIG_H */