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