Version FC

Dependencies:   DmTftLibrary eeprom SX1280Lib filesystem mbed

Fork of MSNV2-Terminal_V1-5 by Francis CHATAIN

Committer:
FCH_31
Date:
Mon Oct 22 09:37:50 2018 +0000
Revision:
41:5a436163dddf
Parent:
8:cd489b7c49a0
avec radio;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
FCH_31 8:cd489b7c49a0 1 /*
FCH_31 8:cd489b7c49a0 2 * Minimal configuration for TLS 1.2 with PSK and AES-CCM ciphersuites
FCH_31 8:cd489b7c49a0 3 *
FCH_31 8:cd489b7c49a0 4 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
FCH_31 8:cd489b7c49a0 5 * SPDX-License-Identifier: Apache-2.0
FCH_31 8:cd489b7c49a0 6 *
FCH_31 8:cd489b7c49a0 7 * Licensed under the Apache License, Version 2.0 (the "License"); you may
FCH_31 8:cd489b7c49a0 8 * not use this file except in compliance with the License.
FCH_31 8:cd489b7c49a0 9 * You may obtain a copy of the License at
FCH_31 8:cd489b7c49a0 10 *
FCH_31 8:cd489b7c49a0 11 * http://www.apache.org/licenses/LICENSE-2.0
FCH_31 8:cd489b7c49a0 12 *
FCH_31 8:cd489b7c49a0 13 * Unless required by applicable law or agreed to in writing, software
FCH_31 8:cd489b7c49a0 14 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
FCH_31 8:cd489b7c49a0 15 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
FCH_31 8:cd489b7c49a0 16 * See the License for the specific language governing permissions and
FCH_31 8:cd489b7c49a0 17 * limitations under the License.
FCH_31 8:cd489b7c49a0 18 *
FCH_31 8:cd489b7c49a0 19 * This file is part of mbed TLS (https://tls.mbed.org)
FCH_31 8:cd489b7c49a0 20 */
FCH_31 8:cd489b7c49a0 21 /*
FCH_31 8:cd489b7c49a0 22 * Minimal configuration for TLS 1.2 with PSK and AES-CCM ciphersuites
FCH_31 8:cd489b7c49a0 23 * Distinguishing features:
FCH_31 8:cd489b7c49a0 24 * - no bignum, no PK, no X509
FCH_31 8:cd489b7c49a0 25 * - fully modern and secure (provided the pre-shared keys have high entropy)
FCH_31 8:cd489b7c49a0 26 * - very low record overhead with CCM-8
FCH_31 8:cd489b7c49a0 27 * - optimized for low RAM usage
FCH_31 8:cd489b7c49a0 28 *
FCH_31 8:cd489b7c49a0 29 * See README.txt for usage instructions.
FCH_31 8:cd489b7c49a0 30 */
FCH_31 8:cd489b7c49a0 31 #ifndef MBEDTLS_CONFIG_H
FCH_31 8:cd489b7c49a0 32 #define MBEDTLS_CONFIG_H
FCH_31 8:cd489b7c49a0 33
FCH_31 8:cd489b7c49a0 34 /* System support */
FCH_31 8:cd489b7c49a0 35 //#define MBEDTLS_HAVE_TIME /* Optionally used in Hello messages */
FCH_31 8:cd489b7c49a0 36 /* Other MBEDTLS_HAVE_XXX flags irrelevant for this configuration */
FCH_31 8:cd489b7c49a0 37
FCH_31 8:cd489b7c49a0 38 /* mbed TLS feature support */
FCH_31 8:cd489b7c49a0 39 //#define MBEDTLS_KEY_EXCHANGE_PSK_ENABLED
FCH_31 8:cd489b7c49a0 40 //#define MBEDTLS_SSL_PROTO_TLS1_2
FCH_31 8:cd489b7c49a0 41
FCH_31 8:cd489b7c49a0 42 /* mbed TLS modules */
FCH_31 8:cd489b7c49a0 43 #define MBEDTLS_AES_C
FCH_31 8:cd489b7c49a0 44 #define MBEDTLS_CCM_C
FCH_31 8:cd489b7c49a0 45 #define MBEDTLS_CIPHER_C
FCH_31 8:cd489b7c49a0 46 #define MBEDTLS_CTR_DRBG_C
FCH_31 8:cd489b7c49a0 47 #define MBEDTLS_ENTROPY_C
FCH_31 8:cd489b7c49a0 48 #define MBEDTLS_MD_C
FCH_31 8:cd489b7c49a0 49 #define MBEDTLS_NET_C
FCH_31 8:cd489b7c49a0 50 #define MBEDTLS_SHA256_C
FCH_31 8:cd489b7c49a0 51 //#define MBEDTLS_SSL_CLI_C
FCH_31 8:cd489b7c49a0 52 //#define MBEDTLS_SSL_SRV_C
FCH_31 8:cd489b7c49a0 53 //#define MBEDTLS_SSL_TLS_C
FCH_31 8:cd489b7c49a0 54
FCH_31 8:cd489b7c49a0 55 /* Save RAM at the expense of ROM */
FCH_31 8:cd489b7c49a0 56 #define MBEDTLS_AES_ROM_TABLES
FCH_31 8:cd489b7c49a0 57
FCH_31 8:cd489b7c49a0 58
FCH_31 8:cd489b7c49a0 59 /*
FCH_31 8:cd489b7c49a0 60 * You should adjust this to the exact number of sources you're using: default
FCH_31 8:cd489b7c49a0 61 * is the "platform_entropy_poll" source, but you may want to add other ones
FCH_31 8:cd489b7c49a0 62 * Minimum is 2 for the entropy test suite.
FCH_31 8:cd489b7c49a0 63 */
FCH_31 8:cd489b7c49a0 64 #define MBEDTLS_ENTROPY_MAX_SOURCES 2
FCH_31 8:cd489b7c49a0 65
FCH_31 8:cd489b7c49a0 66 /*
FCH_31 8:cd489b7c49a0 67 * Use only CCM_8 ciphersuites, and
FCH_31 8:cd489b7c49a0 68 * save ROM and a few bytes of RAM by specifying our own ciphersuite list
FCH_31 8:cd489b7c49a0 69 */
FCH_31 8:cd489b7c49a0 70
FCH_31 8:cd489b7c49a0 71 /*
FCH_31 8:cd489b7c49a0 72 * Save RAM at the expense of interoperability: do this only if you control
FCH_31 8:cd489b7c49a0 73 * both ends of the connection! (See comments in "mbedtls/ssl.h".)
FCH_31 8:cd489b7c49a0 74 * The optimal size here depends on the typical size of records.
FCH_31 8:cd489b7c49a0 75 */
FCH_31 8:cd489b7c49a0 76 //#define MBEDTLS_SSL_MAX_CONTENT_LEN 512
FCH_31 8:cd489b7c49a0 77
FCH_31 8:cd489b7c49a0 78 #include "mbedtls/check_config.h"
FCH_31 8:cd489b7c49a0 79
FCH_31 8:cd489b7c49a0 80 #endif /* MBEDTLS_CONFIG_H */