blob: 8ad38754ed07492268dc8cef11156dede7af4e48 [file] [log] [blame]
Ryan Everett4540cd32024-04-25 17:30:30 +01001/**
2 * \file crypto-config-symmetric-only.h
3 *
4 * \brief \brief Minimal crypto configuration for
5 * TLS NSA Suite B Profile (RFC 6460).
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 * Minimal crypto configuration for TLS NSA Suite B Profile (RFC 6460)
14 *
15 * Distinguishing features:
16 * - no RSA or classic DH, fully based on ECC
17 * - optimized for low RAM usage
18 *
19 * Possible improvements:
20 * - if 128-bit security is enough, disable secp384r1 and SHA-512
21 * - use embedded certs in DER format and disable PEM_PARSE_C and BASE64_C
22 *
23 * To be used in conjunction with configs/config-suite-b.h. */
24
25#define MBEDTLS_PSA_CRYPTO_CONFIG_FILE "../configs/crypto-config-suite-b.h"
26
27#define MBEDTLS_PSA_CRYPTO_CONFIG
28
29#ifndef PSA_CRYPTO_CONFIG_H
30#define PSA_CRYPTO_CONFIG_H
31
32#define PSA_WANT_ALG_ECB_NO_PADDING 1
33#define PSA_WANT_ALG_ECDH 1
34#define PSA_WANT_ALG_ECDSA 1
35#define PSA_WANT_ALG_GCM 1
36#define PSA_WANT_ALG_HMAC 1
37#define PSA_WANT_ALG_SHA_256 1
38#define PSA_WANT_ALG_SHA_384 1
39#define PSA_WANT_ALG_SHA_512 1
40#define PSA_WANT_ECC_SECP_R1_256 1
41#define PSA_WANT_ALG_TLS12_PRF 1
42#define PSA_WANT_ALG_TLS12_PSK_TO_MS 1
43#define PSA_WANT_ALG_TLS12_ECJPAKE_TO_PMS 1
44
45#define PSA_WANT_KEY_TYPE_AES 1
46#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_BASIC 1
47#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_DERIVE 1
48#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_GENERATE 1
49#define PSA_WANT_KEY_TYPE_HMAC 1
50#endif /* PSA_CRYPTO_CONFIG_H */