Kconfig 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431
  1. #
  2. # Cryptographic API Configuration
  3. #
  4. menu "Cryptographic options"
  5. config CRYPTO
  6. bool "Cryptographic API"
  7. help
  8. This option provides the core Cryptographic API.
  9. if CRYPTO
  10. config CRYPTO_ALGAPI
  11. tristate
  12. help
  13. This option provides the API for cryptographic algorithms.
  14. config CRYPTO_BLKCIPHER
  15. tristate
  16. select CRYPTO_ALGAPI
  17. config CRYPTO_MANAGER
  18. tristate "Cryptographic algorithm manager"
  19. select CRYPTO_ALGAPI
  20. default m
  21. help
  22. Create default cryptographic template instantiations such as
  23. cbc(aes).
  24. config CRYPTO_HMAC
  25. bool "HMAC support"
  26. help
  27. HMAC: Keyed-Hashing for Message Authentication (RFC2104).
  28. This is required for IPSec.
  29. config CRYPTO_NULL
  30. tristate "Null algorithms"
  31. select CRYPTO_ALGAPI
  32. help
  33. These are 'Null' algorithms, used by IPsec, which do nothing.
  34. config CRYPTO_MD4
  35. tristate "MD4 digest algorithm"
  36. select CRYPTO_ALGAPI
  37. help
  38. MD4 message digest algorithm (RFC1320).
  39. config CRYPTO_MD5
  40. tristate "MD5 digest algorithm"
  41. select CRYPTO_ALGAPI
  42. help
  43. MD5 message digest algorithm (RFC1321).
  44. config CRYPTO_SHA1
  45. tristate "SHA1 digest algorithm"
  46. select CRYPTO_ALGAPI
  47. help
  48. SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
  49. config CRYPTO_SHA1_S390
  50. tristate "SHA1 digest algorithm (s390)"
  51. depends on S390
  52. select CRYPTO_ALGAPI
  53. help
  54. This is the s390 hardware accelerated implementation of the
  55. SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
  56. config CRYPTO_SHA256
  57. tristate "SHA256 digest algorithm"
  58. select CRYPTO_ALGAPI
  59. help
  60. SHA256 secure hash standard (DFIPS 180-2).
  61. This version of SHA implements a 256 bit hash with 128 bits of
  62. security against collision attacks.
  63. config CRYPTO_SHA256_S390
  64. tristate "SHA256 digest algorithm (s390)"
  65. depends on S390
  66. select CRYPTO_ALGAPI
  67. help
  68. This is the s390 hardware accelerated implementation of the
  69. SHA256 secure hash standard (DFIPS 180-2).
  70. This version of SHA implements a 256 bit hash with 128 bits of
  71. security against collision attacks.
  72. config CRYPTO_SHA512
  73. tristate "SHA384 and SHA512 digest algorithms"
  74. select CRYPTO_ALGAPI
  75. help
  76. SHA512 secure hash standard (DFIPS 180-2).
  77. This version of SHA implements a 512 bit hash with 256 bits of
  78. security against collision attacks.
  79. This code also includes SHA-384, a 384 bit hash with 192 bits
  80. of security against collision attacks.
  81. config CRYPTO_WP512
  82. tristate "Whirlpool digest algorithms"
  83. select CRYPTO_ALGAPI
  84. help
  85. Whirlpool hash algorithm 512, 384 and 256-bit hashes
  86. Whirlpool-512 is part of the NESSIE cryptographic primitives.
  87. Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard
  88. See also:
  89. <http://planeta.terra.com.br/informatica/paulobarreto/WhirlpoolPage.html>
  90. config CRYPTO_TGR192
  91. tristate "Tiger digest algorithms"
  92. select CRYPTO_ALGAPI
  93. help
  94. Tiger hash algorithm 192, 160 and 128-bit hashes
  95. Tiger is a hash function optimized for 64-bit processors while
  96. still having decent performance on 32-bit processors.
  97. Tiger was developed by Ross Anderson and Eli Biham.
  98. See also:
  99. <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>.
  100. config CRYPTO_ECB
  101. tristate "ECB support"
  102. select CRYPTO_BLKCIPHER
  103. default m
  104. help
  105. ECB: Electronic CodeBook mode
  106. This is the simplest block cipher algorithm. It simply encrypts
  107. the input block by block.
  108. config CRYPTO_CBC
  109. tristate "CBC support"
  110. select CRYPTO_BLKCIPHER
  111. default m
  112. help
  113. CBC: Cipher Block Chaining mode
  114. This block cipher algorithm is required for IPSec.
  115. config CRYPTO_DES
  116. tristate "DES and Triple DES EDE cipher algorithms"
  117. select CRYPTO_ALGAPI
  118. help
  119. DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
  120. config CRYPTO_DES_S390
  121. tristate "DES and Triple DES cipher algorithms (s390)"
  122. depends on S390
  123. select CRYPTO_ALGAPI
  124. select CRYPTO_BLKCIPHER
  125. help
  126. DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
  127. config CRYPTO_BLOWFISH
  128. tristate "Blowfish cipher algorithm"
  129. select CRYPTO_ALGAPI
  130. help
  131. Blowfish cipher algorithm, by Bruce Schneier.
  132. This is a variable key length cipher which can use keys from 32
  133. bits to 448 bits in length. It's fast, simple and specifically
  134. designed for use on "large microprocessors".
  135. See also:
  136. <http://www.schneier.com/blowfish.html>
  137. config CRYPTO_TWOFISH
  138. tristate "Twofish cipher algorithm"
  139. select CRYPTO_ALGAPI
  140. select CRYPTO_TWOFISH_COMMON
  141. help
  142. Twofish cipher algorithm.
  143. Twofish was submitted as an AES (Advanced Encryption Standard)
  144. candidate cipher by researchers at CounterPane Systems. It is a
  145. 16 round block cipher supporting key sizes of 128, 192, and 256
  146. bits.
  147. See also:
  148. <http://www.schneier.com/twofish.html>
  149. config CRYPTO_TWOFISH_COMMON
  150. tristate
  151. help
  152. Common parts of the Twofish cipher algorithm shared by the
  153. generic c and the assembler implementations.
  154. config CRYPTO_TWOFISH_586
  155. tristate "Twofish cipher algorithms (i586)"
  156. depends on (X86 || UML_X86) && !64BIT
  157. select CRYPTO_ALGAPI
  158. select CRYPTO_TWOFISH_COMMON
  159. help
  160. Twofish cipher algorithm.
  161. Twofish was submitted as an AES (Advanced Encryption Standard)
  162. candidate cipher by researchers at CounterPane Systems. It is a
  163. 16 round block cipher supporting key sizes of 128, 192, and 256
  164. bits.
  165. See also:
  166. <http://www.schneier.com/twofish.html>
  167. config CRYPTO_TWOFISH_X86_64
  168. tristate "Twofish cipher algorithm (x86_64)"
  169. depends on (X86 || UML_X86) && 64BIT
  170. select CRYPTO_ALGAPI
  171. select CRYPTO_TWOFISH_COMMON
  172. help
  173. Twofish cipher algorithm (x86_64).
  174. Twofish was submitted as an AES (Advanced Encryption Standard)
  175. candidate cipher by researchers at CounterPane Systems. It is a
  176. 16 round block cipher supporting key sizes of 128, 192, and 256
  177. bits.
  178. See also:
  179. <http://www.schneier.com/twofish.html>
  180. config CRYPTO_SERPENT
  181. tristate "Serpent cipher algorithm"
  182. select CRYPTO_ALGAPI
  183. help
  184. Serpent cipher algorithm, by Anderson, Biham & Knudsen.
  185. Keys are allowed to be from 0 to 256 bits in length, in steps
  186. of 8 bits. Also includes the 'Tnepres' algorithm, a reversed
  187. variant of Serpent for compatibility with old kerneli code.
  188. See also:
  189. <http://www.cl.cam.ac.uk/~rja14/serpent.html>
  190. config CRYPTO_AES
  191. tristate "AES cipher algorithms"
  192. select CRYPTO_ALGAPI
  193. help
  194. AES cipher algorithms (FIPS-197). AES uses the Rijndael
  195. algorithm.
  196. Rijndael appears to be consistently a very good performer in
  197. both hardware and software across a wide range of computing
  198. environments regardless of its use in feedback or non-feedback
  199. modes. Its key setup time is excellent, and its key agility is
  200. good. Rijndael's very low memory requirements make it very well
  201. suited for restricted-space environments, in which it also
  202. demonstrates excellent performance. Rijndael's operations are
  203. among the easiest to defend against power and timing attacks.
  204. The AES specifies three key sizes: 128, 192 and 256 bits
  205. See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information.
  206. config CRYPTO_AES_586
  207. tristate "AES cipher algorithms (i586)"
  208. depends on (X86 || UML_X86) && !64BIT
  209. select CRYPTO_ALGAPI
  210. help
  211. AES cipher algorithms (FIPS-197). AES uses the Rijndael
  212. algorithm.
  213. Rijndael appears to be consistently a very good performer in
  214. both hardware and software across a wide range of computing
  215. environments regardless of its use in feedback or non-feedback
  216. modes. Its key setup time is excellent, and its key agility is
  217. good. Rijndael's very low memory requirements make it very well
  218. suited for restricted-space environments, in which it also
  219. demonstrates excellent performance. Rijndael's operations are
  220. among the easiest to defend against power and timing attacks.
  221. The AES specifies three key sizes: 128, 192 and 256 bits
  222. See <http://csrc.nist.gov/encryption/aes/> for more information.
  223. config CRYPTO_AES_X86_64
  224. tristate "AES cipher algorithms (x86_64)"
  225. depends on (X86 || UML_X86) && 64BIT
  226. select CRYPTO_ALGAPI
  227. help
  228. AES cipher algorithms (FIPS-197). AES uses the Rijndael
  229. algorithm.
  230. Rijndael appears to be consistently a very good performer in
  231. both hardware and software across a wide range of computing
  232. environments regardless of its use in feedback or non-feedback
  233. modes. Its key setup time is excellent, and its key agility is
  234. good. Rijndael's very low memory requirements make it very well
  235. suited for restricted-space environments, in which it also
  236. demonstrates excellent performance. Rijndael's operations are
  237. among the easiest to defend against power and timing attacks.
  238. The AES specifies three key sizes: 128, 192 and 256 bits
  239. See <http://csrc.nist.gov/encryption/aes/> for more information.
  240. config CRYPTO_AES_S390
  241. tristate "AES cipher algorithms (s390)"
  242. depends on S390
  243. select CRYPTO_ALGAPI
  244. select CRYPTO_BLKCIPHER
  245. help
  246. This is the s390 hardware accelerated implementation of the
  247. AES cipher algorithms (FIPS-197). AES uses the Rijndael
  248. algorithm.
  249. Rijndael appears to be consistently a very good performer in
  250. both hardware and software across a wide range of computing
  251. environments regardless of its use in feedback or non-feedback
  252. modes. Its key setup time is excellent, and its key agility is
  253. good. Rijndael's very low memory requirements make it very well
  254. suited for restricted-space environments, in which it also
  255. demonstrates excellent performance. Rijndael's operations are
  256. among the easiest to defend against power and timing attacks.
  257. On s390 the System z9-109 currently only supports the key size
  258. of 128 bit.
  259. config CRYPTO_CAST5
  260. tristate "CAST5 (CAST-128) cipher algorithm"
  261. select CRYPTO_ALGAPI
  262. help
  263. The CAST5 encryption algorithm (synonymous with CAST-128) is
  264. described in RFC2144.
  265. config CRYPTO_CAST6
  266. tristate "CAST6 (CAST-256) cipher algorithm"
  267. select CRYPTO_ALGAPI
  268. help
  269. The CAST6 encryption algorithm (synonymous with CAST-256) is
  270. described in RFC2612.
  271. config CRYPTO_TEA
  272. tristate "TEA, XTEA and XETA cipher algorithms"
  273. select CRYPTO_ALGAPI
  274. help
  275. TEA cipher algorithm.
  276. Tiny Encryption Algorithm is a simple cipher that uses
  277. many rounds for security. It is very fast and uses
  278. little memory.
  279. Xtendend Tiny Encryption Algorithm is a modification to
  280. the TEA algorithm to address a potential key weakness
  281. in the TEA algorithm.
  282. Xtendend Encryption Tiny Algorithm is a mis-implementation
  283. of the XTEA algorithm for compatibility purposes.
  284. config CRYPTO_ARC4
  285. tristate "ARC4 cipher algorithm"
  286. select CRYPTO_ALGAPI
  287. help
  288. ARC4 cipher algorithm.
  289. ARC4 is a stream cipher using keys ranging from 8 bits to 2048
  290. bits in length. This algorithm is required for driver-based
  291. WEP, but it should not be for other purposes because of the
  292. weakness of the algorithm.
  293. config CRYPTO_KHAZAD
  294. tristate "Khazad cipher algorithm"
  295. select CRYPTO_ALGAPI
  296. help
  297. Khazad cipher algorithm.
  298. Khazad was a finalist in the initial NESSIE competition. It is
  299. an algorithm optimized for 64-bit processors with good performance
  300. on 32-bit processors. Khazad uses an 128 bit key size.
  301. See also:
  302. <http://planeta.terra.com.br/informatica/paulobarreto/KhazadPage.html>
  303. config CRYPTO_ANUBIS
  304. tristate "Anubis cipher algorithm"
  305. select CRYPTO_ALGAPI
  306. help
  307. Anubis cipher algorithm.
  308. Anubis is a variable key length cipher which can use keys from
  309. 128 bits to 320 bits in length. It was evaluated as a entrant
  310. in the NESSIE competition.
  311. See also:
  312. <https://www.cosic.esat.kuleuven.ac.be/nessie/reports/>
  313. <http://planeta.terra.com.br/informatica/paulobarreto/AnubisPage.html>
  314. config CRYPTO_DEFLATE
  315. tristate "Deflate compression algorithm"
  316. select CRYPTO_ALGAPI
  317. select ZLIB_INFLATE
  318. select ZLIB_DEFLATE
  319. help
  320. This is the Deflate algorithm (RFC1951), specified for use in
  321. IPSec with the IPCOMP protocol (RFC3173, RFC2394).
  322. You will most probably want this if using IPSec.
  323. config CRYPTO_MICHAEL_MIC
  324. tristate "Michael MIC keyed digest algorithm"
  325. select CRYPTO_ALGAPI
  326. help
  327. Michael MIC is used for message integrity protection in TKIP
  328. (IEEE 802.11i). This algorithm is required for TKIP, but it
  329. should not be used for other purposes because of the weakness
  330. of the algorithm.
  331. config CRYPTO_CRC32C
  332. tristate "CRC32c CRC algorithm"
  333. select CRYPTO_ALGAPI
  334. select LIBCRC32C
  335. help
  336. Castagnoli, et al Cyclic Redundancy-Check Algorithm. Used
  337. by iSCSI for header and data digests and by others.
  338. See Castagnoli93. This implementation uses lib/libcrc32c.
  339. Module will be crc32c.
  340. config CRYPTO_TEST
  341. tristate "Testing module"
  342. depends on m
  343. select CRYPTO_ALGAPI
  344. help
  345. Quick & dirty crypto test module.
  346. source "drivers/crypto/Kconfig"
  347. endif # if CRYPTO
  348. endmenu