test

Dependencies:   MQTT

Committer:
kernel2418
Date:
Wed Mar 14 03:03:16 2018 +0000
Revision:
0:9d5f28595388
test

Who changed what in which revision?

UserRevisionLine numberNew contents of line
kernel2418 0:9d5f28595388 1 /*
kernel2418 0:9d5f28595388 2 * Copyright (C) 2006-2016, Arm Limited, All Rights Reserved
kernel2418 0:9d5f28595388 3 * SPDX-License-Identifier: Apache-2.0
kernel2418 0:9d5f28595388 4 *
kernel2418 0:9d5f28595388 5 * Licensed under the Apache License, Version 2.0 (the "License"); you may
kernel2418 0:9d5f28595388 6 * not use this file except in compliance with the License.
kernel2418 0:9d5f28595388 7 * You may obtain a copy of the License at
kernel2418 0:9d5f28595388 8 *
kernel2418 0:9d5f28595388 9 * http://www.apache.org/licenses/LICENSE-2.0
kernel2418 0:9d5f28595388 10 *
kernel2418 0:9d5f28595388 11 * Unless required by applicable law or agreed to in writing, software
kernel2418 0:9d5f28595388 12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
kernel2418 0:9d5f28595388 13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
kernel2418 0:9d5f28595388 14 * See the License for the specific language governing permissions and
kernel2418 0:9d5f28595388 15 * limitations under the License.
kernel2418 0:9d5f28595388 16 *
kernel2418 0:9d5f28595388 17 * This file is part of Mbed TLS (https://tls.mbed.org)
kernel2418 0:9d5f28595388 18 */
kernel2418 0:9d5f28595388 19
kernel2418 0:9d5f28595388 20 #if !defined(MBEDTLS_ENTROPY_HARDWARE_ALT) && \
kernel2418 0:9d5f28595388 21 !defined(MBEDTLS_ENTROPY_NV_SEED) && !defined(MBEDTLS_TEST_NULL_ENTROPY)
kernel2418 0:9d5f28595388 22 #error "This hardware does not have an entropy source."
kernel2418 0:9d5f28595388 23 #endif /* !MBEDTLS_ENTROPY_HARDWARE_ALT && !MBEDTLS_ENTROPY_NV_SEED &&
kernel2418 0:9d5f28595388 24 * !MBEDTLS_TEST_NULL_ENTROPY */
kernel2418 0:9d5f28595388 25
kernel2418 0:9d5f28595388 26 #if !defined(MBEDTLS_SHA1_C)
kernel2418 0:9d5f28595388 27 #define MBEDTLS_SHA1_C
kernel2418 0:9d5f28595388 28 #endif /* !MBEDTLS_SHA1_C */
kernel2418 0:9d5f28595388 29
kernel2418 0:9d5f28595388 30 /*
kernel2418 0:9d5f28595388 31 * This value is sufficient for handling 2048 bit RSA keys.
kernel2418 0:9d5f28595388 32 *
kernel2418 0:9d5f28595388 33 * Set this value higher to enable handling larger keys, but be aware that this
kernel2418 0:9d5f28595388 34 * will increase the stack usage.
kernel2418 0:9d5f28595388 35 */
kernel2418 0:9d5f28595388 36 #define MBEDTLS_MPI_MAX_SIZE 256
kernel2418 0:9d5f28595388 37
kernel2418 0:9d5f28595388 38 #define MBEDTLS_MPI_WINDOW_SIZE 1
kernel2418 0:9d5f28595388 39
kernel2418 0:9d5f28595388 40 #if defined(TARGET_STM32F439xI) && defined(MBEDTLS_CONFIG_HW_SUPPORT)
kernel2418 0:9d5f28595388 41 #undef MBEDTLS_AES_ALT
kernel2418 0:9d5f28595388 42 #endif /* TARGET_STM32F439xI && MBEDTLS_CONFIG_HW_SUPPORT */
kernel2418 0:9d5f28595388 43
kernel2418 0:9d5f28595388 44 /* Internal test only. Don't uncomment it out */
kernel2418 0:9d5f28595388 45 //#define MBEDTLS_SSL_MAX_CONTENT_LEN 4096