blob: 5dbb4956e305d26d078f9c7d2ea98a8863ec7352 [file] [log] [blame]
Roland Mikhel5899fac2023-03-14 13:59:55 +01001/*
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 Mikhel5899fac2023-03-14 13:59:55 +010035#endif /* MCUBOOT_PSA_CRYPTO_CONFIG_ECDSA */