mbed TLS Build

Dependents:   Slave-prot-prod

Committer:
markrad
Date:
Thu Jan 05 00:18:44 2017 +0000
Revision:
0:cdf462088d13
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
markrad 0:cdf462088d13 1 /*
markrad 0:cdf462088d13 2 * Minimal configuration for using TLS as part of Thread
markrad 0:cdf462088d13 3 *
markrad 0:cdf462088d13 4 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
markrad 0:cdf462088d13 5 * SPDX-License-Identifier: Apache-2.0
markrad 0:cdf462088d13 6 *
markrad 0:cdf462088d13 7 * Licensed under the Apache License, Version 2.0 (the "License"); you may
markrad 0:cdf462088d13 8 * not use this file except in compliance with the License.
markrad 0:cdf462088d13 9 * You may obtain a copy of the License at
markrad 0:cdf462088d13 10 *
markrad 0:cdf462088d13 11 * http://www.apache.org/licenses/LICENSE-2.0
markrad 0:cdf462088d13 12 *
markrad 0:cdf462088d13 13 * Unless required by applicable law or agreed to in writing, software
markrad 0:cdf462088d13 14 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
markrad 0:cdf462088d13 15 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
markrad 0:cdf462088d13 16 * See the License for the specific language governing permissions and
markrad 0:cdf462088d13 17 * limitations under the License.
markrad 0:cdf462088d13 18 *
markrad 0:cdf462088d13 19 * This file is part of mbed TLS (https://tls.mbed.org)
markrad 0:cdf462088d13 20 */
markrad 0:cdf462088d13 21
markrad 0:cdf462088d13 22 /*
markrad 0:cdf462088d13 23 * Minimal configuration for using TLS a part of Thread
markrad 0:cdf462088d13 24 * http://threadgroup.org/
markrad 0:cdf462088d13 25 *
markrad 0:cdf462088d13 26 * Distinguishing features:
markrad 0:cdf462088d13 27 * - no RSA or classic DH, fully based on ECC
markrad 0:cdf462088d13 28 * - no X.509
markrad 0:cdf462088d13 29 * - support for experimental EC J-PAKE key exchange
markrad 0:cdf462088d13 30 *
markrad 0:cdf462088d13 31 * See README.txt for usage instructions.
markrad 0:cdf462088d13 32 */
markrad 0:cdf462088d13 33
markrad 0:cdf462088d13 34 #ifndef MBEDTLS_CONFIG_H
markrad 0:cdf462088d13 35 #define MBEDTLS_CONFIG_H
markrad 0:cdf462088d13 36
markrad 0:cdf462088d13 37 /* System support */
markrad 0:cdf462088d13 38 #define MBEDTLS_HAVE_ASM
markrad 0:cdf462088d13 39
markrad 0:cdf462088d13 40 /* mbed TLS feature support */
markrad 0:cdf462088d13 41 #define MBEDTLS_AES_ROM_TABLES
markrad 0:cdf462088d13 42 #define MBEDTLS_ECP_DP_SECP256R1_ENABLED
markrad 0:cdf462088d13 43 #define MBEDTLS_ECP_NIST_OPTIM
markrad 0:cdf462088d13 44 #define MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED
markrad 0:cdf462088d13 45 #define MBEDTLS_SSL_MAX_FRAGMENT_LENGTH
markrad 0:cdf462088d13 46 #define MBEDTLS_SSL_PROTO_TLS1_2
markrad 0:cdf462088d13 47 #define MBEDTLS_SSL_PROTO_DTLS
markrad 0:cdf462088d13 48 #define MBEDTLS_SSL_DTLS_ANTI_REPLAY
markrad 0:cdf462088d13 49 #define MBEDTLS_SSL_DTLS_HELLO_VERIFY
markrad 0:cdf462088d13 50 #define MBEDTLS_SSL_EXPORT_KEYS
markrad 0:cdf462088d13 51
markrad 0:cdf462088d13 52 /* mbed TLS modules */
markrad 0:cdf462088d13 53 #define MBEDTLS_AES_C
markrad 0:cdf462088d13 54 #define MBEDTLS_ASN1_PARSE_C
markrad 0:cdf462088d13 55 #define MBEDTLS_ASN1_WRITE_C
markrad 0:cdf462088d13 56 #define MBEDTLS_BIGNUM_C
markrad 0:cdf462088d13 57 #define MBEDTLS_CCM_C
markrad 0:cdf462088d13 58 #define MBEDTLS_CIPHER_C
markrad 0:cdf462088d13 59 #define MBEDTLS_CTR_DRBG_C
markrad 0:cdf462088d13 60 #define MBEDTLS_CMAC_C
markrad 0:cdf462088d13 61 #define MBEDTLS_ECJPAKE_C
markrad 0:cdf462088d13 62 #define MBEDTLS_ECP_C
markrad 0:cdf462088d13 63 #define MBEDTLS_ENTROPY_C
markrad 0:cdf462088d13 64 #define MBEDTLS_HMAC_DRBG_C
markrad 0:cdf462088d13 65 #define MBEDTLS_MD_C
markrad 0:cdf462088d13 66 #define MBEDTLS_OID_C
markrad 0:cdf462088d13 67 #define MBEDTLS_PK_C
markrad 0:cdf462088d13 68 #define MBEDTLS_PK_PARSE_C
markrad 0:cdf462088d13 69 #define MBEDTLS_SHA256_C
markrad 0:cdf462088d13 70 #define MBEDTLS_SSL_COOKIE_C
markrad 0:cdf462088d13 71 #define MBEDTLS_SSL_CLI_C
markrad 0:cdf462088d13 72 #define MBEDTLS_SSL_SRV_C
markrad 0:cdf462088d13 73 #define MBEDTLS_SSL_TLS_C
markrad 0:cdf462088d13 74
markrad 0:cdf462088d13 75 /* For tests using ssl-opt.sh */
markrad 0:cdf462088d13 76 #define MBEDTLS_NET_C
markrad 0:cdf462088d13 77 #define MBEDTLS_TIMING_C
markrad 0:cdf462088d13 78
markrad 0:cdf462088d13 79 /* Save RAM at the expense of ROM */
markrad 0:cdf462088d13 80 #define MBEDTLS_AES_ROM_TABLES
markrad 0:cdf462088d13 81
markrad 0:cdf462088d13 82 /* Save RAM by adjusting to our exact needs */
markrad 0:cdf462088d13 83 #define MBEDTLS_ECP_MAX_BITS 256
markrad 0:cdf462088d13 84 #define MBEDTLS_MPI_MAX_SIZE 32 // 256 bits is 32 bytes
markrad 0:cdf462088d13 85
markrad 0:cdf462088d13 86 /* Save ROM and a few bytes of RAM by specifying our own ciphersuite list */
markrad 0:cdf462088d13 87 #define MBEDTLS_SSL_CIPHERSUITES MBEDTLS_TLS_ECJPAKE_WITH_AES_128_CCM_8
markrad 0:cdf462088d13 88
markrad 0:cdf462088d13 89 #include "mbedtls/check_config.h"
markrad 0:cdf462088d13 90
markrad 0:cdf462088d13 91 #endif /* MBEDTLS_CONFIG_H */