blob: e4de8b3fb607c4e7fec429b1f165c3fb14a8708f [file] [log] [blame]
Ryan Everettab5ec9d2024-04-25 15:05:31 +01001/**
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 Everettab5ec9d2024-04-25 15:05:31 +010020#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 Everettab5ec9d2024-04-25 15:05:31 +010023
24#define PSA_WANT_KEY_TYPE_AES 1
Minos Galanakis1ae28bf2024-11-01 16:50:13 +000025
26#define MBEDTLS_PSA_CRYPTO_C
Minos Galanakis1ae28bf2024-11-01 16:50:13 +000027
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 Everettab5ec9d2024-04-25 15:05:31 +010045#endif /* PSA_CRYPTO_CONFIG_H */