PolarSSL v1.3.9
config-ccm-psk-tls1_2.h
Go to the documentation of this file.
1/*
2 * Minimal configuration for TLS 1.2 with PSK and AES-CCM ciphersuites
3 * Distinguishing features:
4 * - no bignum, no PK, no X509
5 * - fully modern and secure (provided the pre-shared keys have high entropy)
6 * - very low record overhead with CCM-8
7 * - optimized for low RAM usage
8 *
9 * See README.txt for usage instructions.
10 */
11#ifndef POLARSSL_CONFIG_H
12#define POLARSSL_CONFIG_H
13
14/* System support */
15//#define POLARSSL_HAVE_IPV6 /* Optional */
16//#define POLARSSL_HAVE_TIME /* Optionally used in Hello messages */
17/* Other POLARSSL_HAVE_XXX flags irrelevant for this configuration */
18
19/* PolarSSL feature support */
20#define POLARSSL_KEY_EXCHANGE_PSK_ENABLED
21#define POLARSSL_SSL_PROTO_TLS1_2
22
23/* PolarSSL modules */
24#define POLARSSL_AES_C
25#define POLARSSL_CCM_C
26#define POLARSSL_CIPHER_C
27#define POLARSSL_CTR_DRBG_C
28#define POLARSSL_ENTROPY_C
29#define POLARSSL_MD_C
30#define POLARSSL_NET_C
31#define POLARSSL_SHA256_C
32#define POLARSSL_SSL_CLI_C
33#define POLARSSL_SSL_SRV_C
34#define POLARSSL_SSL_TLS_C
35
36/* Save RAM at the expense of ROM */
37#define POLARSSL_AES_ROM_TABLES
38
39/* Save some RAM by adjusting to your exact needs */
40#define POLARSSL_PSK_MAX_LEN 16 /* 128-bits keys are generally enough */
41
42/*
43 * You should adjust this to the exact number of sources you're using: default
44 * is the "platform_entropy_poll" source, but you may want to add other ones
45 * Minimum is 2 for the entropy test suite.
46 */
47#define ENTROPY_MAX_SOURCES 2
48
49/*
50 * Use only CCM_8 ciphersuites, and
51 * save ROM and a few bytes of RAM by specifying our own ciphersuite list
52 */
53#define SSL_CIPHERSUITES \
54 TLS_PSK_WITH_AES_256_CCM_8, \
55 TLS_PSK_WITH_AES_128_CCM_8
56
57/*
58 * Save RAM at the expense of interoperability: do this only if you control
59 * both ends of the connection! (See comments in "polarssl/ssl.h".)
60 * The optimal size here depends on the typical size of records.
61 */
62#define SSL_MAX_CONTENT_LEN 512
63
64#include "check_config.h"
65
66#endif /* POLARSSL_CONFIG_H */
Consistency checks for configuration options.