Kconfig 14 KB

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