blob: 0eb6e74173cdfd658fcc6f5daaf4e23d9e42b5c2 [file] [log] [blame]
Marti Bolivara4818a52018-04-12 13:02:38 -04001/*
2 * Copyright (C) 2018 Open Source Foundries Limited
3 * SPDX-License-Identifier: Apache-2.0
4 */
5
6#ifndef _MCUBOOT_MBEDTLS_CONFIG_
7#define _MCUBOOT_MBEDTLS_CONFIG_
8
9/**
10 * @file
11 *
12 * This is the top-level mbedTLS configuration file for MCUboot. The
13 * configuration depends on the signature type, so this file just
14 * pulls in the right header depending on that setting.
15 */
16
17/*
18 * IMPORTANT:
19 *
20 * If you put any "generic" definitions in here, make sure to update
21 * the simulator build.rs accordingly.
22 */
23
Fabio Utzig4541b532018-12-17 09:17:15 -020024#if defined(CONFIG_BOOT_SIGNATURE_TYPE_RSA) || defined(CONFIG_BOOT_ENCRYPT_RSA)
Marti Bolivara4818a52018-04-12 13:02:38 -040025#include "config-rsa.h"
Fabio Utzig42cc29a2019-11-05 07:54:41 -030026#elif defined(CONFIG_BOOT_SIGNATURE_TYPE_ECDSA_P256) || defined(CONFIG_BOOT_ENCRYPT_EC256)
Marti Bolivara4818a52018-04-12 13:02:38 -040027#include "config-asn1.h"
Fabio Utzig1171df92019-05-10 19:26:38 -030028#elif defined(CONFIG_BOOT_SIGNATURE_TYPE_ED25519)
29#include "config-ed25519.h"
Marti Bolivara4818a52018-04-12 13:02:38 -040030#else
31#error "Cannot configure mbedTLS; signature type is unknown."
32#endif
33
34#endif