blob: 59eb4f66c39e10b67c4292e46650ac3c32c54409 [file] [log] [blame]
Gilles Peskine58239772023-09-04 16:56:06 +02001/**
2 * \file psa/crypto_adjust_auto_enabled.h
3 * \brief Adjust PSA configuration: enable always-on features
4 *
Gilles Peskinee0ec8f52024-04-26 14:18:10 +02005 * This is an internal header. Do not include it directly.
6 *
Gilles Peskine58239772023-09-04 16:56:06 +02007 * Always enable certain features which require a negligible amount of code
8 * to implement, to avoid some edge cases in the configuration combinatorics.
9 */
10/*
11 * Copyright The Mbed TLS Contributors
Dave Rodgman16799db2023-11-02 19:47:20 +000012 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
Gilles Peskine58239772023-09-04 16:56:06 +020013 */
14
15#ifndef PSA_CRYPTO_ADJUST_AUTO_ENABLED_H
16#define PSA_CRYPTO_ADJUST_AUTO_ENABLED_H
17
Gilles Peskine66b27422024-05-16 14:46:09 +020018#if !defined(MBEDTLS_CONFIG_FILES_READ)
19#error "Do not include psa/crypto_adjust_*.h manually! This can lead to problems, " \
20 "up to and including runtime errors such as buffer overflows. " \
21 "If you're trying to fix a complaint from check_config.h, just remove " \
22 "it from your configuration file: since Mbed TLS 3.0, it is included " \
23 "automatically at the right time."
24#endif /* */
25
Gilles Peskine58239772023-09-04 16:56:06 +020026#define PSA_WANT_KEY_TYPE_DERIVE 1
27#define PSA_WANT_KEY_TYPE_PASSWORD 1
28#define PSA_WANT_KEY_TYPE_PASSWORD_HASH 1
29#define PSA_WANT_KEY_TYPE_RAW_DATA 1
30
31#endif /* PSA_CRYPTO_ADJUST_AUTO_ENABLED_H */