Roland Mikhel | 5899fac | 2023-03-14 13:59:55 +0100 | [diff] [blame] | 1 | /* |
| 2 | * SPDX-License-Identifier: Apache-2.0 |
| 3 | * |
| 4 | * Copyright (c) 2023 Arm Limited |
| 5 | */ |
| 6 | |
| 7 | #ifndef MCUBOOT_PSA_CRYPTO_CONFIG_ECDSA |
| 8 | #define MCUBOOT_PSA_CRYPTO_CONFIG_ECDSA |
| 9 | |
| 10 | #if defined(MCUBOOT_USE_PSA_CRYPTO) |
| 11 | #include "config-add-psa-crypto.h" |
| 12 | #endif |
| 13 | |
| 14 | #define MBEDTLS_ECP_C |
| 15 | #define MBEDTLS_ECP_NIST_OPTIM |
| 16 | #define MBEDTLS_ECDSA_C |
| 17 | |
| 18 | /* mbed TLS modules */ |
| 19 | #define MBEDTLS_ASN1_PARSE_C |
| 20 | #define MBEDTLS_ASN1_WRITE_C |
| 21 | #define MBEDTLS_AES_C |
| 22 | #define MBEDTLS_BIGNUM_C |
| 23 | #define MBEDTLS_MD_C |
| 24 | #define MBEDTLS_OID_C |
| 25 | #if defined(MCUBOOT_SIGN_EC384) |
| 26 | #define MBEDTLS_SHA384_C |
| 27 | #define MBEDTLS_SHA512_C |
| 28 | #define MBEDTLS_ECP_DP_SECP384R1_ENABLED |
| 29 | #else |
| 30 | #define MBEDTLS_SHA256_C |
| 31 | #define MBEDTLS_SHA224_C |
| 32 | #define MBEDTLS_ECP_DP_SECP256R1_ENABLED |
| 33 | #endif /* MCUBOOT_SIGN_EC384 */ |
| 34 | |
Roland Mikhel | 5899fac | 2023-03-14 13:59:55 +0100 | [diff] [blame] | 35 | #endif /* MCUBOOT_PSA_CRYPTO_CONFIG_ECDSA */ |