config-Crypt.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. /* config-FS.h
  2. *
  3. * Copyright (C) 2006-2013 wolfSSL Inc.
  4. *
  5. * This file is part of CyaSSL.
  6. *
  7. * CyaSSL is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * CyaSSL is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
  20. */
  21. // <<< Use Configuration Wizard in Context Menu >>>
  22. // <h> wolfCrypt Configuration
  23. // <h>Cert/Key Strage
  24. // <o>Cert Storage <0=> SD Card <1=> Mem Buff (1024bytes) <2=> Mem Buff (2048bytes)
  25. #define MDK_CONF_CERT_BUFF 0
  26. #if MDK_CONF_CERT_BUFF== 1
  27. #define USE_CERT_BUFFERS_1024
  28. #elif MDK_CONF_CERT_BUFF == 2
  29. #define USE_CERT_BUFFERS_2048
  30. #endif
  31. //</h>
  32. // <h>Crypt Algrithm
  33. // <h>MD5, SHA, SHA-256, AES, RC4, ASN, RSA
  34. // </h>
  35. // <e>MD2
  36. #define MDK_CONF_MD2 0
  37. #if MDK_CONF_MD2 == 1
  38. #define CYASSL_MD2
  39. #endif
  40. // </e>
  41. // <e>MD4
  42. #define MDK_CONF_MD4 1
  43. #if MDK_CONF_MD4 == 0
  44. #define NO_MD4
  45. #endif
  46. // </e>
  47. // <e>SHA-384
  48. // <i>This has to be with SHA512
  49. #define MDK_CONF_SHA384 0
  50. #if MDK_CONF_SHA384 == 1
  51. #define CYASSL_SHA384
  52. #endif
  53. // </e>
  54. // <e>SHA-512
  55. #define MDK_CONF_SHA512 0
  56. #if MDK_CONF_SHA512 == 1
  57. #define CYASSL_SHA512
  58. #endif
  59. // </e>
  60. // <e>RIPEMD
  61. #define MDK_CONF_RIPEMD 0
  62. #if MDK_CONF_RIPEMD == 1
  63. #define CYASSL_RIPEMD
  64. #endif
  65. // </e>
  66. // <e>HMAC
  67. #define MDK_CONF_HMAC 1
  68. #if MDK_CONF_HMAC == 0
  69. #define NO_HMAC
  70. #endif
  71. // </e>
  72. // <e>HC128
  73. #define MDK_CONF_HC128 0
  74. #if MDK_CONF_HC128 == 1
  75. #define HAVE_HC128
  76. #endif
  77. // </e>
  78. // <e>RABBIT
  79. #define MDK_CONF_RABBIT 1
  80. #if MDK_CONF_RABBI == 0
  81. #define NO_RABBIT
  82. #endif
  83. // </e>
  84. // <e>AEAD
  85. #define MDK_CONF_AEAD 0
  86. #if MDK_CONF_AEAD == 1
  87. #define HAVE_AEAD
  88. #endif
  89. // </e>
  90. // <e>DES3
  91. #define MDK_CONF_DES3 1
  92. #if MDK_CONF_DES3 == 0
  93. #define NO_DES3
  94. #endif
  95. // </e>
  96. // <e>CAMELLIA
  97. #define MDK_CONF_CAMELLIA 0
  98. #if MDK_CONF_CAMELLIA == 1
  99. #define HAVE_CAMELLIA
  100. #endif
  101. // </e>
  102. // <e>DH
  103. // <i>need this for CYASSL_SERVER, OPENSSL_EXTRA
  104. #define MDK_CONF_DH 1
  105. #if MDK_CONF_DH == 0
  106. #define NO_DH
  107. #endif
  108. // </e>
  109. // <e>DSA
  110. #define MDK_CONF_DSA 1
  111. #if MDK_CONF_DSA == 0
  112. #define NO_DSA
  113. #endif
  114. // </e>
  115. // <e>PWDBASED
  116. #define MDK_CONF_PWDBASED 1
  117. #if MDK_CONF_PWDBASED == 0
  118. #define NO_PWDBASED
  119. #endif
  120. // </e>
  121. // <e>ECC
  122. #define MDK_CONF_ECC 0
  123. #if MDK_CONF_ECC == 1
  124. #define HAVE_ECC
  125. #endif
  126. // </e>
  127. // <e>PSK
  128. #define MDK_CONF_PSK 1
  129. #if MDK_CONF_PSK == 0
  130. #define NO_PSK
  131. #endif
  132. // </e>
  133. // <e>AESCCM (Turn off Hardware Crypt)
  134. #define MDK_CONF_AESCCM 0
  135. #if MDK_CONF_AESCCM == 1
  136. #define HAVE_AESCCM
  137. #endif
  138. // </e>
  139. // <e>AESGCM (Turn off Hardware Crypt)
  140. #define MDK_CONF_AESGCM 0
  141. #if MDK_CONF_AESGCM == 1
  142. #define HAVE_AESGCM
  143. #define BUILD_AESGCM
  144. #endif
  145. // </e>
  146. // <e>NTRU (need License, "crypto_ntru.h")
  147. #define MDK_CONF_NTRU 0
  148. #if MDK_CONF_NTRU == 1
  149. #define HAVE_NTRU
  150. #endif
  151. // </e>
  152. // </h>
  153. // <h>Hardware Crypt (See document for usage)
  154. // <e>Hardware RNG
  155. #define MDK_CONF_STM32F2_RNG 0
  156. #if MDK_CONF_STM32F2_RNG == 1
  157. #define STM32F2_RNG
  158. #else
  159. #endif
  160. // </e>
  161. // <e>Hardware Crypt
  162. #define MDK_CONF_STM32F2_CRYPTO 0
  163. #if MDK_CONF_STM32F2_CRYPTO == 1
  164. #define STM32F2_CRYPTO
  165. #endif
  166. // </e>
  167. // </h>
  168. //</h>
  169. // <<< end of configuration section >>>