File tree 3 files changed +30
-3
lines changed
3 files changed +30
-3
lines changed Original file line number Diff line number Diff line change 2
2
* \file configs/crypto-config-ccm-aes-sha256.h
3
3
*
4
4
* \brief PSA crypto configuration with only symmetric cryptography: CCM-AES,
5
- * SHA-256, HMAC and key derivation
5
+ * SHA-256 and key derivation (uses HMAC).
6
6
*/
7
7
/*
8
8
* Copyright The Mbed TLS Contributors
13
13
#define PSA_CRYPTO_CONFIG_H
14
14
15
15
#define PSA_WANT_ALG_CCM 1
16
- #define PSA_WANT_ALG_HMAC 1
17
16
#define PSA_WANT_ALG_SHA_256 1
18
17
#define PSA_WANT_ALG_TLS12_PRF 1
19
18
#define PSA_WANT_ALG_TLS12_PSK_TO_MS 1
20
19
#define PSA_WANT_KEY_TYPE_DERIVE 1
21
- #define PSA_WANT_KEY_TYPE_HMAC 1
22
20
#define PSA_WANT_KEY_TYPE_AES 1
23
21
#define PSA_WANT_KEY_TYPE_RAW_DATA 1
24
22
Original file line number Diff line number Diff line change 22
22
23
23
#include "psa/crypto_adjust_config_synonyms.h"
24
24
25
+ #include "psa/crypto_adjust_config_dependencies.h"
26
+
25
27
#include "mbedtls/config_adjust_psa_superset_legacy.h"
26
28
27
29
#if defined(MBEDTLS_PSA_CRYPTO_CONFIG )
Original file line number Diff line number Diff line change
1
+ /**
2
+ * \file psa/crypto_adjust_config_dependencies.h
3
+ * \brief Adjust PSA configuration by resolving some dependencies.
4
+ *
5
+ * See docs/proposed/psa-conditional-inclusion-c.md.
6
+ * If a cryptographic mechanism A depends on a cryptographic mechanism B and
7
+ * A is enabled then enable B.
8
+ */
9
+ /*
10
+ * Copyright The Mbed TLS Contributors
11
+ * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
12
+ */
13
+
14
+ #ifndef PSA_CRYPTO_ADJUST_CONFIG_DEPENDENCIES_H
15
+ #define PSA_CRYPTO_ADJUST_CONFIG_DEPENDENCIES_H
16
+
17
+ #if defined(PSA_WANT_ALG_TLS12_PRF ) || \
18
+ defined(PSA_WANT_ALG_TLS12_PSK_TO_MS ) || \
19
+ defined(PSA_WANT_ALG_HKDF ) || \
20
+ defined(PSA_WANT_ALG_HKDF_EXTRACT ) || \
21
+ defined(PSA_WANT_ALG_HKDF_EXPAND ) || \
22
+ defined(PSA_WANT_ALG_PBKDF2_HMAC )
23
+ #define PSA_WANT_ALG_HMAC 1
24
+ #define PSA_WANT_KEY_TYPE_HMAC 1
25
+ #endif
26
+
27
+ #endif /* PSA_CRYPTO_ADJUST_CONFIG_DEPENDENCIES_H */
You can’t perform that action at this time.
0 commit comments