mbed TLS Build
Dependents: Encypting_Funcional
config-ccm-psk-tls1_2.h
00001 /* 00002 * Minimal configuration for TLS 1.2 with PSK and AES-CCM ciphersuites 00003 * 00004 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved 00005 * SPDX-License-Identifier: Apache-2.0 00006 * 00007 * Licensed under the Apache License, Version 2.0 (the "License"); you may 00008 * not use this file except in compliance with the License. 00009 * You may obtain a copy of the License at 00010 * 00011 * http://www.apache.org/licenses/LICENSE-2.0 00012 * 00013 * Unless required by applicable law or agreed to in writing, software 00014 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 00015 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00016 * See the License for the specific language governing permissions and 00017 * limitations under the License. 00018 * 00019 * This file is part of mbed TLS (https://tls.mbed.org) 00020 */ 00021 /* 00022 * Minimal configuration for TLS 1.2 with PSK and AES-CCM ciphersuites 00023 * Distinguishing features: 00024 * - no bignum, no PK, no X509 00025 * - fully modern and secure (provided the pre-shared keys have high entropy) 00026 * - very low record overhead with CCM-8 00027 * - optimized for low RAM usage 00028 * 00029 * See README.txt for usage instructions. 00030 */ 00031 #ifndef MBEDTLS_CONFIG_H 00032 #define MBEDTLS_CONFIG_H 00033 00034 /* System support */ 00035 //#define MBEDTLS_HAVE_TIME /* Optionally used in Hello messages */ 00036 /* Other MBEDTLS_HAVE_XXX flags irrelevant for this configuration */ 00037 00038 /* mbed TLS feature support */ 00039 #define MBEDTLS_KEY_EXCHANGE_PSK_ENABLED 00040 #define MBEDTLS_SSL_PROTO_TLS1_2 00041 00042 /* mbed TLS modules */ 00043 #define MBEDTLS_AES_C 00044 #define MBEDTLS_CCM_C 00045 #define MBEDTLS_CIPHER_C 00046 #define MBEDTLS_CTR_DRBG_C 00047 #define MBEDTLS_ENTROPY_C 00048 #define MBEDTLS_MD_C 00049 #define MBEDTLS_NET_C 00050 #define MBEDTLS_SHA256_C 00051 #define MBEDTLS_SSL_CLI_C 00052 #define MBEDTLS_SSL_SRV_C 00053 #define MBEDTLS_SSL_TLS_C 00054 00055 /* Save RAM at the expense of ROM */ 00056 #define MBEDTLS_AES_ROM_TABLES 00057 00058 /* Save some RAM by adjusting to your exact needs */ 00059 #define MBEDTLS_PSK_MAX_LEN 16 /* 128-bits keys are generally enough */ 00060 00061 /* 00062 * You should adjust this to the exact number of sources you're using: default 00063 * is the "platform_entropy_poll" source, but you may want to add other ones 00064 * Minimum is 2 for the entropy test suite. 00065 */ 00066 #define MBEDTLS_ENTROPY_MAX_SOURCES 2 00067 00068 /* 00069 * Use only CCM_8 ciphersuites, and 00070 * save ROM and a few bytes of RAM by specifying our own ciphersuite list 00071 */ 00072 #define MBEDTLS_SSL_CIPHERSUITES \ 00073 MBEDTLS_TLS_PSK_WITH_AES_256_CCM_8, \ 00074 MBEDTLS_TLS_PSK_WITH_AES_128_CCM_8 00075 00076 /* 00077 * Save RAM at the expense of interoperability: do this only if you control 00078 * both ends of the connection! (See comments in "mbedtls/ssl.h".) 00079 * The optimal size here depends on the typical size of records. 00080 */ 00081 #define MBEDTLS_SSL_MAX_CONTENT_LEN 512 00082 00083 #include "mbedtls/check_config.h" 00084 00085 #endif /* MBEDTLS_CONFIG_H */
Generated on Wed Jul 13 2022 20:34:20 by 1.7.2