wayne roberts / Mbed OS mbed-os-lorawan-efm32
Committer:
Wayne Roberts
Date:
Mon Mar 25 12:39:11 2019 -0700
Revision:
0:9acd205c0911
initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Wayne Roberts 0:9acd205c0911 1 /**
Wayne Roberts 0:9acd205c0911 2 * Copyright (c) 2017, Arm Limited and affiliates.
Wayne Roberts 0:9acd205c0911 3 * SPDX-License-Identifier: Apache-2.0
Wayne Roberts 0:9acd205c0911 4 *
Wayne Roberts 0:9acd205c0911 5 * Licensed under the Apache License, Version 2.0 (the "License");
Wayne Roberts 0:9acd205c0911 6 * you may not use this file except in compliance with the License.
Wayne Roberts 0:9acd205c0911 7 * You may obtain a copy of the License at
Wayne Roberts 0:9acd205c0911 8 *
Wayne Roberts 0:9acd205c0911 9 * http://www.apache.org/licenses/LICENSE-2.0
Wayne Roberts 0:9acd205c0911 10 *
Wayne Roberts 0:9acd205c0911 11 * Unless required by applicable law or agreed to in writing, software
Wayne Roberts 0:9acd205c0911 12 * distributed under the License is distributed on an "AS IS" BASIS,
Wayne Roberts 0:9acd205c0911 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Wayne Roberts 0:9acd205c0911 14 * See the License for the specific language governing permissions and
Wayne Roberts 0:9acd205c0911 15 * limitations under the License.
Wayne Roberts 0:9acd205c0911 16 */
Wayne Roberts 0:9acd205c0911 17
Wayne Roberts 0:9acd205c0911 18 #ifndef MBEDTLS_LORA_CONFIG_H
Wayne Roberts 0:9acd205c0911 19 #define MBEDTLS_LORA_CONFIG_H
Wayne Roberts 0:9acd205c0911 20
Wayne Roberts 0:9acd205c0911 21 /*
Wayne Roberts 0:9acd205c0911 22 * Configure mbedtls for LoRa stack.
Wayne Roberts 0:9acd205c0911 23 *
Wayne Roberts 0:9acd205c0911 24 * These settings are just a customization of the main mbedtls config
Wayne Roberts 0:9acd205c0911 25 * mbed-os/features/mbedtls/inc/mbedtls/config.h
Wayne Roberts 0:9acd205c0911 26 */
Wayne Roberts 0:9acd205c0911 27
Wayne Roberts 0:9acd205c0911 28 // Ensure LoRa required ciphers are enabled
Wayne Roberts 0:9acd205c0911 29 #define MBEDTLS_CIPHER_C
Wayne Roberts 0:9acd205c0911 30 #define MBEDTLS_AES_C
Wayne Roberts 0:9acd205c0911 31 #define MBEDTLS_CMAC_C
Wayne Roberts 0:9acd205c0911 32
Wayne Roberts 0:9acd205c0911 33 // Reduce ROM usage by optimizing some mbedtls features.
Wayne Roberts 0:9acd205c0911 34 // These are only reference configurations for this LoRa example application.
Wayne Roberts 0:9acd205c0911 35 // Other LoRa applications might need different configurations.
Wayne Roberts 0:9acd205c0911 36 #define MBEDTLS_AES_FEWER_TABLES
Wayne Roberts 0:9acd205c0911 37
Wayne Roberts 0:9acd205c0911 38 #undef MBEDTLS_GCM_C
Wayne Roberts 0:9acd205c0911 39 #undef MBEDTLS_CHACHA20_C
Wayne Roberts 0:9acd205c0911 40 #undef MBEDTLS_CHACHAPOLY_C
Wayne Roberts 0:9acd205c0911 41 #undef MBEDTLS_POLY1305_C
Wayne Roberts 0:9acd205c0911 42
Wayne Roberts 0:9acd205c0911 43 #endif /* MBEDTLS_LORA_CONFIG_H */