blob: 561324aa58decd8577ebe6da4741027c98ffb153 [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
27#define MBEDTLS_USE_PSA_CRYPTO
28
29/* System support */
30//#define MBEDTLS_HAVE_TIME /* Optionally used in Hello messages */
31/* Other MBEDTLS_HAVE_XXX flags irrelevant for this configuration */
32
33#define MBEDTLS_CTR_DRBG_C
34#define MBEDTLS_ENTROPY_C
35
36/* Save RAM at the expense of ROM */
37#define MBEDTLS_AES_ROM_TABLES
38
39/*
40 * You should adjust this to the exact number of sources you're using: default
41 * is the "platform_entropy_poll" source, but you may want to add other ones
42 * Minimum is 2 for the entropy test suite.
43 */
44#define MBEDTLS_ENTROPY_MAX_SOURCES 2
45
Ryan Everettab5ec9d2024-04-25 15:05:31 +010046#endif /* PSA_CRYPTO_CONFIG_H */