Ryan Everett | ab5ec9d | 2024-04-25 15:05:31 +0100 | [diff] [blame] | 1 | /** |
| 2 | * \file crypto-config-ccm-psk-tls1_2.h |
| 3 | * |
| 4 | * \brief Minimal crypto configuration for TLS 1.2 with |
| 5 | * PSK and AES-CCM ciphersuites |
| 6 | */ |
| 7 | /* |
| 8 | * Copyright The Mbed TLS Contributors |
| 9 | * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later |
| 10 | */ |
| 11 | |
| 12 | /** |
| 13 | * To be used in conjunction with configs/config-ccm-psk-tls1_2.h |
| 14 | * or configs/config-ccm-psk-dtls1_2.h. */ |
| 15 | |
| 16 | #ifndef PSA_CRYPTO_CONFIG_H |
| 17 | #define PSA_CRYPTO_CONFIG_H |
| 18 | |
| 19 | #define PSA_WANT_ALG_CCM 1 |
Ryan Everett | ab5ec9d | 2024-04-25 15:05:31 +0100 | [diff] [blame] | 20 | #define PSA_WANT_ALG_SHA_256 1 |
| 21 | #define PSA_WANT_ALG_TLS12_PRF 1 |
| 22 | #define PSA_WANT_ALG_TLS12_PSK_TO_MS 1 |
Ryan Everett | ab5ec9d | 2024-04-25 15:05:31 +0100 | [diff] [blame] | 23 | |
| 24 | #define PSA_WANT_KEY_TYPE_AES 1 |
Minos Galanakis | 1ae28bf | 2024-11-01 16:50:13 +0000 | [diff] [blame] | 25 | |
| 26 | #define MBEDTLS_PSA_CRYPTO_C |
Minos Galanakis | 1ae28bf | 2024-11-01 16:50:13 +0000 | [diff] [blame] | 27 | |
| 28 | /* System support */ |
| 29 | //#define MBEDTLS_HAVE_TIME /* Optionally used in Hello messages */ |
| 30 | /* Other MBEDTLS_HAVE_XXX flags irrelevant for this configuration */ |
| 31 | |
| 32 | #define MBEDTLS_CTR_DRBG_C |
| 33 | #define MBEDTLS_ENTROPY_C |
| 34 | |
| 35 | /* Save RAM at the expense of ROM */ |
| 36 | #define MBEDTLS_AES_ROM_TABLES |
| 37 | |
| 38 | /* |
| 39 | * You should adjust this to the exact number of sources you're using: default |
| 40 | * is the "platform_entropy_poll" source, but you may want to add other ones |
| 41 | * Minimum is 2 for the entropy test suite. |
| 42 | */ |
| 43 | #define MBEDTLS_ENTROPY_MAX_SOURCES 2 |
| 44 | |
Ryan Everett | ab5ec9d | 2024-04-25 15:05:31 +0100 | [diff] [blame] | 45 | #endif /* PSA_CRYPTO_CONFIG_H */ |