This is an example application based on Mbed-OS LoRaWAN protocol APIs. The Mbed-OS LoRaWAN stack implementation is compliant with LoRaWAN v1.0.2 specification.

Dependents:   Projet_de_bachelor_code Projet_de_bachelor_code

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers mbedtls_lora_config.h Source File

mbedtls_lora_config.h

00001 /**
00002  * Copyright (c) 2017, Arm Limited and affiliates.
00003  * SPDX-License-Identifier: Apache-2.0
00004  *
00005  * Licensed under the Apache License, Version 2.0 (the "License");
00006  * you may not use this file except in compliance with the License.
00007  * You may obtain a copy of the License at
00008  *
00009  *     http://www.apache.org/licenses/LICENSE-2.0
00010  *
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS,
00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
00016  */
00017 
00018 #ifndef MBEDTLS_LORA_CONFIG_H
00019 #define MBEDTLS_LORA_CONFIG_H
00020 
00021 /*
00022  * Configure mbedtls for LoRa stack.
00023  *
00024  * These settings are just a customization of the main mbedtls config
00025  * mbed-os/features/mbedtls/inc/mbedtls/config.h
00026  */
00027 
00028 // Ensure LoRa required ciphers are enabled
00029 #define MBEDTLS_CIPHER_C
00030 #define MBEDTLS_AES_C
00031 #define MBEDTLS_CMAC_C
00032 
00033 // Reduce ROM usage by optimizing some mbedtls features.
00034 // These are only reference configurations for this LoRa example application.
00035 // Other LoRa applications might need different configurations.
00036 #define MBEDTLS_AES_FEWER_TABLES
00037 
00038 #undef MBEDTLS_GCM_C
00039 #undef MBEDTLS_CHACHA20_C
00040 #undef MBEDTLS_CHACHAPOLY_C
00041 #undef MBEDTLS_POLY1305_C
00042 
00043 #endif /* MBEDTLS_LORA_CONFIG_H */