200-config.patch 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. --- a/include/mbedtls/config.h
  2. +++ b/include/mbedtls/config.h
  3. @@ -557,14 +557,14 @@
  4. *
  5. * Enable Output Feedback mode (OFB) for symmetric ciphers.
  6. */
  7. -#define MBEDTLS_CIPHER_MODE_OFB
  8. +//#define MBEDTLS_CIPHER_MODE_OFB
  9. /**
  10. * \def MBEDTLS_CIPHER_MODE_XTS
  11. *
  12. * Enable Xor-encrypt-xor with ciphertext stealing mode (XTS) for AES.
  13. */
  14. -#define MBEDTLS_CIPHER_MODE_XTS
  15. +//#define MBEDTLS_CIPHER_MODE_XTS
  16. /**
  17. * \def MBEDTLS_CIPHER_NULL_CIPHER
  18. @@ -654,19 +654,19 @@
  19. *
  20. * Comment macros to disable the curve and functions for it
  21. */
  22. -#define MBEDTLS_ECP_DP_SECP192R1_ENABLED
  23. -#define MBEDTLS_ECP_DP_SECP224R1_ENABLED
  24. +//#define MBEDTLS_ECP_DP_SECP192R1_ENABLED
  25. +//#define MBEDTLS_ECP_DP_SECP224R1_ENABLED
  26. #define MBEDTLS_ECP_DP_SECP256R1_ENABLED
  27. #define MBEDTLS_ECP_DP_SECP384R1_ENABLED
  28. -#define MBEDTLS_ECP_DP_SECP521R1_ENABLED
  29. -#define MBEDTLS_ECP_DP_SECP192K1_ENABLED
  30. -#define MBEDTLS_ECP_DP_SECP224K1_ENABLED
  31. +//#define MBEDTLS_ECP_DP_SECP521R1_ENABLED
  32. +//#define MBEDTLS_ECP_DP_SECP192K1_ENABLED
  33. +//#define MBEDTLS_ECP_DP_SECP224K1_ENABLED
  34. #define MBEDTLS_ECP_DP_SECP256K1_ENABLED
  35. -#define MBEDTLS_ECP_DP_BP256R1_ENABLED
  36. -#define MBEDTLS_ECP_DP_BP384R1_ENABLED
  37. -#define MBEDTLS_ECP_DP_BP512R1_ENABLED
  38. +//#define MBEDTLS_ECP_DP_BP256R1_ENABLED
  39. +//#define MBEDTLS_ECP_DP_BP384R1_ENABLED
  40. +//#define MBEDTLS_ECP_DP_BP512R1_ENABLED
  41. #define MBEDTLS_ECP_DP_CURVE25519_ENABLED
  42. -#define MBEDTLS_ECP_DP_CURVE448_ENABLED
  43. +//#define MBEDTLS_ECP_DP_CURVE448_ENABLED
  44. /**
  45. * \def MBEDTLS_ECP_NIST_OPTIM
  46. @@ -768,7 +768,7 @@
  47. * See dhm.h for more details.
  48. *
  49. */
  50. -#define MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED
  51. +//#define MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED
  52. /**
  53. * \def MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED
  54. @@ -788,7 +788,7 @@
  55. * MBEDTLS_TLS_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA
  56. * MBEDTLS_TLS_ECDHE_PSK_WITH_RC4_128_SHA
  57. */
  58. -#define MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED
  59. +//#define MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED
  60. /**
  61. * \def MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED
  62. @@ -813,7 +813,7 @@
  63. * MBEDTLS_TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA
  64. * MBEDTLS_TLS_RSA_PSK_WITH_RC4_128_SHA
  65. */
  66. -#define MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED
  67. +//#define MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED
  68. /**
  69. * \def MBEDTLS_KEY_EXCHANGE_RSA_ENABLED
  70. @@ -947,7 +947,7 @@
  71. * MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_128_GCM_SHA256
  72. * MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_256_GCM_SHA384
  73. */
  74. -#define MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
  75. +//#define MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
  76. /**
  77. * \def MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
  78. @@ -971,7 +971,7 @@
  79. * MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_128_GCM_SHA256
  80. * MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_256_GCM_SHA384
  81. */
  82. -#define MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
  83. +//#define MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
  84. /**
  85. * \def MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED
  86. @@ -1075,7 +1075,7 @@
  87. * This option is only useful if both MBEDTLS_SHA256_C and
  88. * MBEDTLS_SHA512_C are defined. Otherwise the available hash module is used.
  89. */
  90. -//#define MBEDTLS_ENTROPY_FORCE_SHA256
  91. +#define MBEDTLS_ENTROPY_FORCE_SHA256
  92. /**
  93. * \def MBEDTLS_ENTROPY_NV_SEED
  94. @@ -1170,14 +1170,14 @@
  95. * Uncomment this macro to disable the use of CRT in RSA.
  96. *
  97. */
  98. -//#define MBEDTLS_RSA_NO_CRT
  99. +#define MBEDTLS_RSA_NO_CRT
  100. /**
  101. * \def MBEDTLS_SELF_TEST
  102. *
  103. * Enable the checkup functions (*_self_test).
  104. */
  105. -#define MBEDTLS_SELF_TEST
  106. +//#define MBEDTLS_SELF_TEST
  107. /**
  108. * \def MBEDTLS_SHA256_SMALLER
  109. @@ -1331,7 +1331,7 @@
  110. * configuration of this extension).
  111. *
  112. */
  113. -#define MBEDTLS_SSL_RENEGOTIATION
  114. +//#define MBEDTLS_SSL_RENEGOTIATION
  115. /**
  116. * \def MBEDTLS_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO
  117. @@ -1506,7 +1506,7 @@
  118. *
  119. * Comment this macro to disable support for SSL session tickets
  120. */
  121. -#define MBEDTLS_SSL_SESSION_TICKETS
  122. +//#define MBEDTLS_SSL_SESSION_TICKETS
  123. /**
  124. * \def MBEDTLS_SSL_EXPORT_KEYS
  125. @@ -1536,7 +1536,7 @@
  126. *
  127. * Comment this macro to disable support for truncated HMAC in SSL
  128. */
  129. -#define MBEDTLS_SSL_TRUNCATED_HMAC
  130. +//#define MBEDTLS_SSL_TRUNCATED_HMAC
  131. /**
  132. * \def MBEDTLS_SSL_TRUNCATED_HMAC_COMPAT
  133. @@ -1595,7 +1595,7 @@
  134. *
  135. * Comment this to disable run-time checking and save ROM space
  136. */
  137. -#define MBEDTLS_VERSION_FEATURES
  138. +//#define MBEDTLS_VERSION_FEATURES
  139. /**
  140. * \def MBEDTLS_X509_ALLOW_EXTENSIONS_NON_V3
  141. @@ -1925,7 +1925,7 @@
  142. * MBEDTLS_TLS_PSK_WITH_CAMELLIA_128_GCM_SHA256
  143. * MBEDTLS_TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256
  144. */
  145. -#define MBEDTLS_CAMELLIA_C
  146. +//#define MBEDTLS_CAMELLIA_C
  147. /**
  148. * \def MBEDTLS_ARIA_C
  149. @@ -1991,7 +1991,7 @@
  150. * This module enables the AES-CCM ciphersuites, if other requisites are
  151. * enabled as well.
  152. */
  153. -#define MBEDTLS_CCM_C
  154. +//#define MBEDTLS_CCM_C
  155. /**
  156. * \def MBEDTLS_CERTS_C
  157. @@ -2003,7 +2003,7 @@
  158. *
  159. * This module is used for testing (ssl_client/server).
  160. */
  161. -#define MBEDTLS_CERTS_C
  162. +//#define MBEDTLS_CERTS_C
  163. /**
  164. * \def MBEDTLS_CHACHA20_C
  165. @@ -2078,7 +2078,7 @@
  166. *
  167. * This module provides debugging functions.
  168. */
  169. -#define MBEDTLS_DEBUG_C
  170. +//#define MBEDTLS_DEBUG_C
  171. /**
  172. * \def MBEDTLS_DES_C
  173. @@ -2107,7 +2107,7 @@
  174. * \warning DES is considered a weak cipher and its use constitutes a
  175. * security risk. We recommend considering stronger ciphers instead.
  176. */
  177. -#define MBEDTLS_DES_C
  178. +//#define MBEDTLS_DES_C
  179. /**
  180. * \def MBEDTLS_DHM_C
  181. @@ -2270,7 +2270,7 @@
  182. * This module adds support for the Hashed Message Authentication Code
  183. * (HMAC)-based key derivation function (HKDF).
  184. */
  185. -#define MBEDTLS_HKDF_C
  186. +//#define MBEDTLS_HKDF_C
  187. /**
  188. * \def MBEDTLS_HMAC_DRBG_C
  189. @@ -2580,7 +2580,7 @@
  190. *
  191. * This module enables abstraction of common (libc) functions.
  192. */
  193. -#define MBEDTLS_PLATFORM_C
  194. +//#define MBEDTLS_PLATFORM_C
  195. /**
  196. * \def MBEDTLS_POLY1305_C
  197. @@ -2601,7 +2601,7 @@
  198. * Caller: library/md.c
  199. *
  200. */
  201. -#define MBEDTLS_RIPEMD160_C
  202. +//#define MBEDTLS_RIPEMD160_C
  203. /**
  204. * \def MBEDTLS_RSA_C
  205. @@ -2708,7 +2708,7 @@
  206. *
  207. * Requires: MBEDTLS_CIPHER_C
  208. */
  209. -#define MBEDTLS_SSL_TICKET_C
  210. +//#define MBEDTLS_SSL_TICKET_C
  211. /**
  212. * \def MBEDTLS_SSL_CLI_C
  213. @@ -2808,7 +2808,7 @@
  214. *
  215. * This module provides run-time version information.
  216. */
  217. -#define MBEDTLS_VERSION_C
  218. +//#define MBEDTLS_VERSION_C
  219. /**
  220. * \def MBEDTLS_X509_USE_C
  221. @@ -2918,7 +2918,7 @@
  222. * Module: library/xtea.c
  223. * Caller:
  224. */
  225. -#define MBEDTLS_XTEA_C
  226. +//#define MBEDTLS_XTEA_C
  227. /* \} name SECTION: mbed TLS modules */