1 /* 2 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved 3 * Copyright (c) 2017 Intel Corporation. 4 * 5 * SPDX-License-Identifier: Apache-2.0 6 * 7 * Minimal configuration for DTLS 1.2 for Zephyr with PSK and AES-CCM 8 * ciphersuites. 9 * 10 * See README.txt for usage instructions. 11 */ 12 #ifndef MBEDTLS_CONFIG_H 13 #define MBEDTLS_CONFIG_H 14 15 /* System support */ 16 #define MBEDTLS_PLATFORM_C 17 #define MBEDTLS_PLATFORM_MEMORY 18 #define MBEDTLS_MEMORY_BUFFER_ALLOC_C 19 #define MBEDTLS_MEMORY_ALIGN_MULTIPLE (sizeof(void *)) 20 #define MBEDTLS_PLATFORM_NO_STD_FUNCTIONS 21 #define MBEDTLS_PLATFORM_EXIT_ALT 22 #define MBEDTLS_NO_PLATFORM_ENTROPY 23 #define MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES 24 #define MBEDTLS_PLATFORM_PRINTF_ALT 25 26 #if defined(CONFIG_MBEDTLS_TEST) 27 #define MBEDTLS_SELF_TEST 28 #define MBEDTLS_DEBUG_C 29 #else 30 #define MBEDTLS_ENTROPY_C 31 #endif 32 33 /* mbed TLS feature support */ 34 #define MBEDTLS_CIPHER_MODE_CBC 35 #define MBEDTLS_PKCS1_V15 36 #define MBEDTLS_KEY_EXCHANGE_RSA_ENABLED 37 #define MBEDTLS_KEY_EXCHANGE_PSK_ENABLED 38 #define MBEDTLS_SSL_MAX_FRAGMENT_LENGTH 39 #define MBEDTLS_SSL_PROTO_TLS1_2 40 #define MBEDTLS_SSL_PROTO_DTLS 41 #define MBEDTLS_SSL_DTLS_ANTI_REPLAY 42 #define MBEDTLS_SSL_DTLS_HELLO_VERIFY 43 44 /* mbed TLS modules */ 45 #define MBEDTLS_AES_C 46 #define MBEDTLS_ASN1_PARSE_C 47 #define MBEDTLS_ASN1_WRITE_C 48 #define MBEDTLS_BIGNUM_C 49 #define MBEDTLS_CIPHER_C 50 #define MBEDTLS_CTR_DRBG_C 51 #define MBEDTLS_DES_C 52 #define MBEDTLS_ENTROPY_C 53 #define MBEDTLS_MD_C 54 #define MBEDTLS_MD5_C 55 #define MBEDTLS_OID_C 56 #define MBEDTLS_RSA_C 57 #define MBEDTLS_PK_C 58 #define MBEDTLS_PK_PARSE_C 59 #define MBEDTLS_SHA1_C 60 #define MBEDTLS_SHA224_C 61 #define MBEDTLS_SHA256_C 62 #define MBEDTLS_SSL_CLI_C 63 #define MBEDTLS_SSL_SRV_C 64 #define MBEDTLS_SSL_TLS_C 65 #define MBEDTLS_X509_CRT_PARSE_C 66 #define MBEDTLS_X509_USE_C 67 #define MBEDTLS_CCM_C 68 #define MBEDTLS_SSL_COOKIE_C 69 70 /* For test certificates */ 71 #define MBEDTLS_BASE64_C 72 #define MBEDTLS_CERTS_C 73 74 #if defined(CONFIG_MBEDTLS_DEBUG) 75 #define MBEDTLS_ERROR_C 76 #define MBEDTLS_DEBUG_C 77 #define MBEDTLS_SSL_DEBUG_ALL 78 #define MBEDTLS_SSL_ALL_ALERT_MESSAGES 79 #endif 80 81 #define MBEDTLS_SSL_MAX_CONTENT_LEN 1500 82 83 #include "mbedtls/check_config.h" 84 85 #endif /* MBEDTLS_CONFIG_H */ 86