Mate Toth-Pal | 14ba4af | 2022-10-21 14:24:49 +0200 | [diff] [blame] | 1 | /* |
David Vincze | 5813125 | 2023-12-22 14:34:22 +0100 | [diff] [blame] | 2 | * Copyright (c) 2022-2024, Arm Ltd. All rights reserved. |
Mate Toth-Pal | 14ba4af | 2022-10-21 14:24:49 +0200 | [diff] [blame] | 3 | * |
| 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-Pal | 14ba4af | 2022-10-21 14:24:49 +0200 | [diff] [blame] | 10 | #include <export/lib/utils_def_exp.h> |
Tamas Ban | 6dc14fc | 2023-04-21 09:27:51 +0200 | [diff] [blame] | 11 | #include <mbedtls_config-3.h> |
Mate Toth-Pal | 14ba4af | 2022-10-21 14:24:49 +0200 | [diff] [blame] | 12 | |
| 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 Vincze | 5813125 | 2023-12-22 14:34:22 +0100 | [diff] [blame] | 22 | #endif /* TF_MBEDTLS_HEAP_SIZE */ |
Mate Toth-Pal | 14ba4af | 2022-10-21 14:24:49 +0200 | [diff] [blame] | 23 | |
| 24 | #define MBEDTLS_PSA_CRYPTO_C |
Manish V Badarkhe | b241efb | 2023-10-18 14:11:45 +0100 | [diff] [blame] | 25 | #define MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG |
Mate Toth-Pal | 14ba4af | 2022-10-21 14:24:49 +0200 | [diff] [blame] | 26 | #define MBEDTLS_ECP_C |
| 27 | #define MBEDTLS_ECP_DP_SECP384R1_ENABLED |
David Vincze | 5813125 | 2023-12-22 14:34:22 +0100 | [diff] [blame] | 28 | #define MBEDTLS_ECP_NO_INTERNAL_RNG |
Mate Toth-Pal | 14ba4af | 2022-10-21 14:24:49 +0200 | [diff] [blame] | 29 | |
| 30 | #endif /* PLAT_TC_MBEDTLS_CONFIG_H */ |