blob: 773629c9ad24c50537850d8461550c9e674973b4 [file] [log] [blame]
Mate Toth-Pal14ba4af2022-10-21 14:24:49 +02001/*
Tamas Ban6dc14fc2023-04-21 09:27:51 +02002 * Copyright (c) 2022-2023, 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
22#endif
23
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
28
29#endif /* PLAT_TC_MBEDTLS_CONFIG_H */