Mbed OS Reference
Loading...
Searching...
No Matches
TARGET_Silicon_Labs/mbedtls_device.h
1/*
2 * mbed OS configuration header for mbed TLS HW acceleration
3 *
4 * Copyright (C) 2016, Silicon Labs, http://www.silabs.com
5 * SPDX-License-Identifier: Apache-2.0
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License"); you may
8 * not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 */
19#ifndef MBEDTLS_DEVICE_H
20#define MBEDTLS_DEVICE_H
21
22#include "em_device.h"
23
24#if defined ( AES_PRESENT )
25#define MBEDTLS_AES_ALT
26#endif
27
28#if defined ( CRYPTO_PRESENT )
29#define MBEDTLS_AES_ALT
30
31#define MBEDTLS_ECP_INTERNAL_ALT
32#define MBEDTLS_ECP_ADD_MIXED_ALT
33#define MBEDTLS_ECP_DOUBLE_JAC_ALT
34#define MBEDTLS_ECP_NORMALIZE_JAC_MANY_ALT
35#define MBEDTLS_ECP_NORMALIZE_JAC_ALT
36#define MBEDTLS_ECP_RANDOMIZE_JAC_ALT
37
38#define MBEDTLS_SHA1_ALT
39#define MBEDTLS_SHA256_ALT
40#endif
41
42#endif /* MBEDTLS_DEVICE_H */