NuMaker connection with AWS IoT thru MQTT/HTTPS

Dependencies:   MQTT

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers mbedtls_user_config.h Source File

mbedtls_user_config.h

00001 /*
00002  *  Copyright (C) 2006-2016, Arm Limited, All Rights Reserved
00003  *  SPDX-License-Identifier: Apache-2.0
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License"); you may
00006  *  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, WITHOUT
00013  *  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  *  This file is part of Mbed TLS (https://tls.mbed.org)
00018  */
00019 
00020 #if !defined(MBEDTLS_ENTROPY_HARDWARE_ALT) && \
00021     !defined(MBEDTLS_ENTROPY_NV_SEED) && !defined(MBEDTLS_TEST_NULL_ENTROPY)
00022 #error "This hardware does not have an entropy source."
00023 #endif /* !MBEDTLS_ENTROPY_HARDWARE_ALT && !MBEDTLS_ENTROPY_NV_SEED &&
00024         * !MBEDTLS_TEST_NULL_ENTROPY */
00025 
00026 #if !defined(MBEDTLS_SHA1_C)
00027 #define MBEDTLS_SHA1_C
00028 #endif /* !MBEDTLS_SHA1_C */
00029 
00030 /*
00031  *  This value is sufficient for handling 2048 bit RSA keys.
00032  *
00033  *  Set this value higher to enable handling larger keys, but be aware that this
00034  *  will increase the stack usage.
00035  */
00036 #define MBEDTLS_MPI_MAX_SIZE        256
00037 
00038 #define MBEDTLS_MPI_WINDOW_SIZE     1
00039 
00040 #if defined(TARGET_STM32F439xI) && defined(MBEDTLS_CONFIG_HW_SUPPORT)
00041 #undef MBEDTLS_AES_ALT
00042 #endif /* TARGET_STM32F439xI && MBEDTLS_CONFIG_HW_SUPPORT */
00043 
00044 /* Maximum length (in bytes) of incoming plaintext fragments */
00045 #define MBEDTLS_SSL_IN_CONTENT_LEN      8192 
00046 
00047 /* Maximum length (in bytes) of outgoing plaintext fragments */
00048 #define MBEDTLS_SSL_OUT_CONTENT_LEN     8192