200-config.patch 6.3 KB

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