diff options
author | Gabor Mezei <gabor.mezei@arm.com> | 2024-06-13 16:13:17 +0200 |
---|---|---|
committer | Gabor Mezei <gabor.mezei@arm.com> | 2024-06-13 17:03:50 +0200 |
commit | df59c630a510991b998bb16479fafb7757770324 (patch) | |
tree | f7d9b0b52bc194e77aec80d9377cd22a42713593 | |
parent | 5bc887c64444c244300f17710a5d6a936ae5a3a2 (diff) | |
download | mbedtls-df59c630a510991b998bb16479fafb7757770324.zip mbedtls-df59c630a510991b998bb16479fafb7757770324.tar.gz mbedtls-df59c630a510991b998bb16479fafb7757770324.tar.bz2 |
Update `config-no-entropy.h` for 'PSA_WANT' macros
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
-rw-r--r-- | configs/config-no-entropy.h | 3 | ||||
-rw-r--r-- | configs/crypto-config-no-entropy.h | 39 |
2 files changed, 42 insertions, 0 deletions
diff --git a/configs/config-no-entropy.h b/configs/config-no-entropy.h index ddb00b4..0a8dd14 100644 --- a/configs/config-no-entropy.h +++ b/configs/config-no-entropy.h @@ -17,6 +17,9 @@ * See README.txt for usage instructions. */ +#define MBEDTLS_PSA_CRYPTO_CONFIG_FILE "../configs/crypto-config-no-entropy.h" +#define MBEDTLS_PSA_CRYPTO_CONFIG + /* System support */ #define MBEDTLS_HAVE_ASM #define MBEDTLS_HAVE_TIME diff --git a/configs/crypto-config-no-entropy.h b/configs/crypto-config-no-entropy.h new file mode 100644 index 0000000..9a9afe7 --- /dev/null +++ b/configs/crypto-config-no-entropy.h @@ -0,0 +1,39 @@ +/** + * \file crypto-config-no-entropy.h + * + * \brief Minimal crypto configuration of features that do not require an entropy source + */ +/* + * Copyright The Mbed TLS Contributors + * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later + */ +/* + * Minimal configuration of features that do not require an entropy source + * Distinguishing features: + * - no entropy module + * - no TLS protocol implementation available due to absence of an entropy + * source + * + * See README.txt for usage instructions. + */ + +#define PSA_WANT_ALG_CBC_PKCS7 1 +#define PSA_WANT_ALG_CCM 1 +#define PSA_WANT_ALG_DETERMINISTIC_ECDSA 1 +#define PSA_WANT_ALG_ECDSA 1 +#define PSA_WANT_ALG_GCM 1 +#define PSA_WANT_ALG_HMAC 1 +#define PSA_WANT_ALG_RSA_OAEP 1 +#define PSA_WANT_ALG_RSA_PKCS1V15_CRYPT 1 +#define PSA_WANT_ALG_RSA_PKCS1V15_SIGN 1 +#define PSA_WANT_ALG_RSA_PSS 1 +#define PSA_WANT_ALG_SHA_224 1 +#define PSA_WANT_ALG_SHA_256 1 +#define PSA_WANT_ALG_SHA_384 1 +#define PSA_WANT_ALG_SHA_512 1 + +#define PSA_WANT_ECC_MONTGOMERY_255 1 +#define PSA_WANT_ECC_SECP_R1_256 1 +#define PSA_WANT_ECC_SECP_R1_384 1 + +#define PSA_WANT_KEY_TYPE_AES 1 |