Loading...
Searching...
No Matches
riot_mbedtls_config.h
Go to the documentation of this file.
1
14/*
15 * Copyright The Mbed TLS Contributors
16 * SPDX-License-Identifier: Apache-2.0
17 *
18 * Licensed under the Apache License, Version 2.0 (the "License"); you may
19 * not use this file except in compliance with the License.
20 * You may obtain a copy of the License at
21 *
22 * http://www.apache.org/licenses/LICENSE-2.0
23 *
24 * Unless required by applicable law or agreed to in writing, software
25 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
26 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
27 * See the License for the specific language governing permissions and
28 * limitations under the License.
29 */
30
31#pragma once
32
33#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
34#define _CRT_SECURE_NO_DEPRECATE 1
35#endif
36
37#include "kernel_defines.h"
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43#if !IS_ACTIVE(CONFIG_KCONFIG_USEPKG_MBEDTLS) || defined(DOXYGEN)
44
49#ifndef CONFIG_MBEDTLS_SELF_TEST
50#define CONFIG_MBEDTLS_SELF_TEST 1
51#endif
52
64#ifndef CONFIG_MBEDTLS_ENTROPY_C
65#define CONFIG_MBEDTLS_ENTROPY_C 1
66#endif
67
82#ifndef CONFIG_MBEDTLS_SHA256_C
83#define CONFIG_MBEDTLS_SHA256_C 1
84#endif
85
110#ifndef CONFIG_MBEDTLS_SHA256_ALT
111#define CONFIG_MBEDTLS_SHA256_ALT 1
112#endif
113
134#ifndef CONFIG_MBEDTLS_THREADING_C
135#define CONFIG_MBEDTLS_THREADING_C 1
136#endif
137
145#if !defined (CONFIG_MBEDTLS_THREADING_ALT) && defined (CONFIG_MBEDTLS_THREADING_C)
146#define CONFIG_MBEDTLS_THREADING_ALT 1
147#endif
148
149#endif /* !CONFIG_KCONFIG_USEPKG_MBEDTLS || DOXYGEN */
150
151#if !IS_ACTIVE(CONFIG_KCONFIG_USEMODULE_MBEDTLS_ENTROPY) || defined(DOXYGEN)
152
163#ifndef CONFIG_MBEDTLS_ENTROPY_HARDWARE_ALT
164#define CONFIG_MBEDTLS_ENTROPY_HARDWARE_ALT 1
165#endif
166
175#ifndef CONFIG_MBEDTLS_NO_PLATFORM_ENTROPY
176#define CONFIG_MBEDTLS_NO_PLATFORM_ENTROPY 1
177#endif
178
192#ifndef CONFIG_MBEDTLS_ENTROPY_FORCE_SHA256
193#define CONFIG_MBEDTLS_ENTROPY_FORCE_SHA256 1
194#endif
195
196#endif /* !CONFIG_KCONFIG_USEMODULE_MBEDTLS_ENTROPY || DOXYGEN */
197
202#if CONFIG_MBEDTLS_SHA256_ALT
203#define MBEDTLS_SHA256_ALT 1
204#endif
205#if CONFIG_MBEDTLS_ENTROPY_HARDWARE_ALT
206#define MBEDTLS_ENTROPY_HARDWARE_ALT 1
207#endif
208#if CONFIG_MBEDTLS_NO_PLATFORM_ENTROPY
209#define MBEDTLS_NO_PLATFORM_ENTROPY 1
210#endif
211#if CONFIG_MBEDTLS_ENTROPY_FORCE_SHA256
212#define MBEDTLS_ENTROPY_FORCE_SHA256 1
213#endif
214#if CONFIG_MBEDTLS_THREADING_C
215#define MBEDTLS_THREADING_C 1
216#endif
217#if CONFIG_MBEDTLS_THREADING_ALT
218#define MBEDTLS_THREADING_ALT 1
219#endif
220#if CONFIG_MBEDTLS_SELF_TEST
221#define MBEDTLS_SELF_TEST 1
222#endif
223#if CONFIG_MBEDTLS_ENTROPY_C
224#define MBEDTLS_ENTROPY_C 1
225#endif
226#if CONFIG_MBEDTLS_SHA256_C
227#define MBEDTLS_SHA256_C 1
228#endif
230
231#include "mbedtls/check_config.h"
232
233#ifdef __cplusplus
234}
235#endif
236
Common macros and compiler attributes/pragmas configuration.