Kconfig 13 KB

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