Skip to content

Commit

Permalink
Enable ROM tables and disable unused features. (openthread#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwhui committed May 12, 2016
1 parent 47c6774 commit e1c17ce
Showing 1 changed file with 36 additions and 36 deletions.
72 changes: 36 additions & 36 deletions third_party/mbedtls/mbedtls-config.h
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@
*
* Uncomment this macro to store the AES tables in ROM.
*/
//#define MBEDTLS_AES_ROM_TABLES
#define MBEDTLS_AES_ROM_TABLES

/**
* \def MBEDTLS_CAMELLIA_SMALL_MEMORY
Expand All @@ -319,21 +319,21 @@
*
* Enable Cipher Block Chaining mode (CBC) for symmetric ciphers.
*/
#define MBEDTLS_CIPHER_MODE_CBC
//#define MBEDTLS_CIPHER_MODE_CBC

/**
* \def MBEDTLS_CIPHER_MODE_CFB
*
* Enable Cipher Feedback mode (CFB) for symmetric ciphers.
*/
#define MBEDTLS_CIPHER_MODE_CFB
//#define MBEDTLS_CIPHER_MODE_CFB

/**
* \def MBEDTLS_CIPHER_MODE_CTR
*
* Enable Counter Block Cipher mode (CTR) for symmetric ciphers.
*/
#define MBEDTLS_CIPHER_MODE_CTR
//#define MBEDTLS_CIPHER_MODE_CTR

/**
* \def MBEDTLS_CIPHER_NULL_CIPHER
Expand Down Expand Up @@ -379,10 +379,10 @@
*
* Enable padding modes in the cipher layer.
*/
#define MBEDTLS_CIPHER_PADDING_PKCS7
#define MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS
#define MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN
#define MBEDTLS_CIPHER_PADDING_ZEROS
//#define MBEDTLS_CIPHER_PADDING_PKCS7
//#define MBEDTLS_CIPHER_PADDING_ONE_AND_ZEROS
//#define MBEDTLS_CIPHER_PADDING_ZEROS_AND_LEN
//#define MBEDTLS_CIPHER_PADDING_ZEROS

/**
* \def MBEDTLS_ENABLE_WEAK_CIPHERSUITES
Expand Down Expand Up @@ -410,7 +410,7 @@
*
* Uncomment this macro to remove RC4 ciphersuites by default.
*/
#define MBEDTLS_REMOVE_ARC4_CIPHERSUITES
//#define MBEDTLS_REMOVE_ARC4_CIPHERSUITES

/**
* \def MBEDTLS_ECP_DP_SECP192R1_ENABLED
Expand All @@ -420,18 +420,18 @@
*
* Comment macros to disable the curve and functions for it
*/
#define MBEDTLS_ECP_DP_SECP192R1_ENABLED
#define MBEDTLS_ECP_DP_SECP224R1_ENABLED
#define MBEDTLS_ECP_DP_SECP256R1_ENABLED
#define MBEDTLS_ECP_DP_SECP384R1_ENABLED
#define MBEDTLS_ECP_DP_SECP521R1_ENABLED
#define MBEDTLS_ECP_DP_SECP192K1_ENABLED
#define MBEDTLS_ECP_DP_SECP224K1_ENABLED
#define MBEDTLS_ECP_DP_SECP256K1_ENABLED
#define MBEDTLS_ECP_DP_BP256R1_ENABLED
#define MBEDTLS_ECP_DP_BP384R1_ENABLED
#define MBEDTLS_ECP_DP_BP512R1_ENABLED
#define MBEDTLS_ECP_DP_CURVE25519_ENABLED
//#define MBEDTLS_ECP_DP_SECP192R1_ENABLED
//#define MBEDTLS_ECP_DP_SECP224R1_ENABLED
//#define MBEDTLS_ECP_DP_SECP256R1_ENABLED
//#define MBEDTLS_ECP_DP_SECP384R1_ENABLED
//#define MBEDTLS_ECP_DP_SECP521R1_ENABLED
//#define MBEDTLS_ECP_DP_SECP192K1_ENABLED
//#define MBEDTLS_ECP_DP_SECP224K1_ENABLED
//#define MBEDTLS_ECP_DP_SECP256K1_ENABLED
//#define MBEDTLS_ECP_DP_BP256R1_ENABLED
//#define MBEDTLS_ECP_DP_BP384R1_ENABLED
//#define MBEDTLS_ECP_DP_BP512R1_ENABLED
//#define MBEDTLS_ECP_DP_CURVE25519_ENABLED

/**
* \def MBEDTLS_ECP_NIST_OPTIM
Expand Down Expand Up @@ -746,7 +746,7 @@
* Disable if you run into name conflicts and want to really remove the
* mbedtls_strerror()
*/
#define MBEDTLS_ERROR_STRERROR_DUMMY
//#define MBEDTLS_ERROR_STRERROR_DUMMY

/**
* \def MBEDTLS_GENPRIME
Expand All @@ -755,14 +755,14 @@
*
* Requires: MBEDTLS_BIGNUM_C
*/
#define MBEDTLS_GENPRIME
//#define MBEDTLS_GENPRIME

/**
* \def MBEDTLS_FS_IO
*
* Enable functions that use the filesystem.
*/
#define MBEDTLS_FS_IO
//#define MBEDTLS_FS_IO

/**
* \def MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES
Expand Down Expand Up @@ -836,7 +836,7 @@
*
* Comment this macro to disable support for external private RSA keys.
*/
#define MBEDTLS_PK_RSA_ALT_SUPPORT
//#define MBEDTLS_PK_RSA_ALT_SUPPORT

/**
* \def MBEDTLS_PKCS1_V15
Expand All @@ -847,7 +847,7 @@
*
* This enables support for PKCS#1 v1.5 operations.
*/
#define MBEDTLS_PKCS1_V15
//#define MBEDTLS_PKCS1_V15

/**
* \def MBEDTLS_PKCS1_V21
Expand All @@ -858,7 +858,7 @@
*
* This enables support for RSAES-OAEP and RSASSA-PSS operations.
*/
#define MBEDTLS_PKCS1_V21
//#define MBEDTLS_PKCS1_V21

/**
* \def MBEDTLS_RSA_NO_CRT
Expand Down Expand Up @@ -917,7 +917,7 @@
*
* Enable sending of all alert messages
*/
#define MBEDTLS_SSL_ALL_ALERT_MESSAGES
//#define MBEDTLS_SSL_ALL_ALERT_MESSAGES

/**
* \def MBEDTLS_SSL_DEBUG_ALL
Expand Down Expand Up @@ -1768,7 +1768,7 @@
*
* This module provides a generic entropy pool
*/
#define MBEDTLS_ENTROPY_C
//#define MBEDTLS_ENTROPY_C

/**
* \def MBEDTLS_ERROR_C
Expand All @@ -1780,7 +1780,7 @@
*
* This module enables mbedtls_strerror().
*/
#define MBEDTLS_ERROR_C
//#define MBEDTLS_ERROR_C

/**
* \def MBEDTLS_GCM_C
Expand Down Expand Up @@ -1831,7 +1831,7 @@
*
* Uncomment to enable the HMAC_DRBG random number geerator.
*/
#define MBEDTLS_HMAC_DRBG_C
//#define MBEDTLS_HMAC_DRBG_C

/**
* \def MBEDTLS_MD_C
Expand Down Expand Up @@ -1917,7 +1917,7 @@
*
* This module provides networking routines.
*/
#define MBEDTLS_NET_C
//#define MBEDTLS_NET_C

/**
* \def MBEDTLS_OID_C
Expand All @@ -1940,7 +1940,7 @@
*
* This modules translates between OIDs and internal values.
*/
#define MBEDTLS_OID_C
//#define MBEDTLS_OID_C

/**
* \def MBEDTLS_PADLOCK_C
Expand All @@ -1954,7 +1954,7 @@
*
* This modules adds support for the VIA PadLock on x86.
*/
#define MBEDTLS_PADLOCK_C
//#define MBEDTLS_PADLOCK_C

/**
* \def MBEDTLS_PEM_PARSE_C
Expand Down Expand Up @@ -2297,7 +2297,7 @@
*
* This module is used by the HAVEGE random number generator.
*/
#define MBEDTLS_TIMING_C
//#define MBEDTLS_TIMING_C

/**
* \def MBEDTLS_VERSION_C
Expand All @@ -2308,7 +2308,7 @@
*
* This module provides run-time version information.
*/
#define MBEDTLS_VERSION_C
//#define MBEDTLS_VERSION_C

/**
* \def MBEDTLS_X509_USE_C
Expand Down

0 comments on commit e1c17ce

Please sign in to comment.