blob: 2351ecb097f9627c5a51101bd2c173b276c95cde [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
Ryan Everett4540cd32024-04-25 17:30:30 +010025#ifndef PSA_CRYPTO_CONFIG_H
26#define PSA_CRYPTO_CONFIG_H
27
Ryan Everett4540cd32024-04-25 17:30:30 +010028#define PSA_WANT_ALG_ECDH 1
29#define PSA_WANT_ALG_ECDSA 1
30#define PSA_WANT_ALG_GCM 1
31#define PSA_WANT_ALG_HMAC 1
32#define PSA_WANT_ALG_SHA_256 1
33#define PSA_WANT_ALG_SHA_384 1
34#define PSA_WANT_ALG_SHA_512 1
35#define PSA_WANT_ECC_SECP_R1_256 1
36#define PSA_WANT_ALG_TLS12_PRF 1
Ryan Everett4540cd32024-04-25 17:30:30 +010037
38#define PSA_WANT_KEY_TYPE_AES 1
39#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_BASIC 1
Ryan Everettc3051572024-04-30 17:20:42 +010040#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_IMPORT 1
Ryan Everett4540cd32024-04-25 17:30:30 +010041#define PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_GENERATE 1
42#define PSA_WANT_KEY_TYPE_HMAC 1
43#endif /* PSA_CRYPTO_CONFIG_H */