/* * Copyright (C) 2018 Open Source Foundries Limited * SPDX-License-Identifier: Apache-2.0 */ #ifndef _MCUBOOT_MBEDTLS_CONFIG_ #define _MCUBOOT_MBEDTLS_CONFIG_ /** * @file * * This is the top-level mbedTLS configuration file for MCUboot. The * configuration depends on the signature type, so this file just * pulls in the right header depending on that setting. */ /* * IMPORTANT: * * If you put any "generic" definitions in here, make sure to update * the simulator build.rs accordingly. */ #if defined(CONFIG_BOOT_SIGNATURE_TYPE_RSA) || defined(CONFIG_BOOT_ENCRYPT_RSA) #include "config-rsa.h" #elif defined(CONFIG_BOOT_SIGNATURE_TYPE_ECDSA_P256) || \ defined(CONFIG_BOOT_ENCRYPT_EC256) || \ (defined(CONFIG_BOOT_ENCRYPT_X25519) && !defined(CONFIG_BOOT_SIGNATURE_TYPE_ED25519)) #include "config-asn1.h" #elif defined(CONFIG_BOOT_SIGNATURE_TYPE_ED25519) #include "config-ed25519.h" #else #error "Cannot configure mbedTLS; signature type is unknown." #endif #endif