blob: 3a2af151806957c5cf85db76410619bd3fff8b4e [file] [log] [blame]
Antonio de Angelis8bb98512024-01-16 14:13:36 +00001/**
2 * \file psa/crypto_adjust_auto_enabled.h
3 * \brief Adjust PSA configuration: enable always-on features
4 *
Antonio de Angelisa0b00f42024-09-18 12:07:25 +01005 * This is an internal header. Do not include it directly.
6 *
Antonio de Angelis8bb98512024-01-16 14:13:36 +00007 * 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
12 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
13 */
14
15#ifndef PSA_CRYPTO_ADJUST_AUTO_ENABLED_H
16#define PSA_CRYPTO_ADJUST_AUTO_ENABLED_H
17
Antonio de Angelisa0b00f42024-09-18 12:07:25 +010018#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 point."
24#endif /* */
25
Antonio de Angelis8bb98512024-01-16 14:13:36 +000026#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 */