From df59c630a510991b998bb16479fafb7757770324 Mon Sep 17 00:00:00 2001 From: Gabor Mezei Date: Thu, 13 Jun 2024 16:13:17 +0200 Subject: Update `config-no-entropy.h` for 'PSA_WANT' macros Signed-off-by: Gabor Mezei --- configs/config-no-entropy.h | 3 +++ configs/crypto-config-no-entropy.h | 39 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 configs/crypto-config-no-entropy.h 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 -- cgit v1.1