Kconfig 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606
  1. #
  2. # Generic algorithms support
  3. #
  4. config XOR_BLOCKS
  5. tristate
  6. #
  7. # async_tx api: hardware offloaded memory transfer/transform support
  8. #
  9. source "crypto/async_tx/Kconfig"
  10. #
  11. # Cryptographic API Configuration
  12. #
  13. menuconfig CRYPTO
  14. tristate "Cryptographic API"
  15. help
  16. This option provides the core Cryptographic API.
  17. if CRYPTO
  18. config CRYPTO_ALGAPI
  19. tristate
  20. help
  21. This option provides the API for cryptographic algorithms.
  22. config CRYPTO_AEAD
  23. tristate
  24. select CRYPTO_ALGAPI
  25. config CRYPTO_BLKCIPHER
  26. tristate
  27. select CRYPTO_ALGAPI
  28. config CRYPTO_SEQIV
  29. tristate "Sequence Number IV Generator"
  30. select CRYPTO_AEAD
  31. select CRYPTO_BLKCIPHER
  32. help
  33. This IV generator generates an IV based on a sequence number by
  34. xoring it with a salt. This algorithm is mainly useful for CTR
  35. and similar modes.
  36. config CRYPTO_HASH
  37. tristate
  38. select CRYPTO_ALGAPI
  39. config CRYPTO_MANAGER
  40. tristate "Cryptographic algorithm manager"
  41. select CRYPTO_ALGAPI
  42. help
  43. Create default cryptographic template instantiations such as
  44. cbc(aes).
  45. config CRYPTO_HMAC
  46. tristate "HMAC support"
  47. select CRYPTO_HASH
  48. select CRYPTO_MANAGER
  49. help
  50. HMAC: Keyed-Hashing for Message Authentication (RFC2104).
  51. This is required for IPSec.
  52. config CRYPTO_XCBC
  53. tristate "XCBC support"
  54. depends on EXPERIMENTAL
  55. select CRYPTO_HASH
  56. select CRYPTO_MANAGER
  57. help
  58. XCBC: Keyed-Hashing with encryption algorithm
  59. http://www.ietf.org/rfc/rfc3566.txt
  60. http://csrc.nist.gov/encryption/modes/proposedmodes/
  61. xcbc-mac/xcbc-mac-spec.pdf
  62. config CRYPTO_NULL
  63. tristate "Null algorithms"
  64. select CRYPTO_ALGAPI
  65. select CRYPTO_BLKCIPHER
  66. help
  67. These are 'Null' algorithms, used by IPsec, which do nothing.
  68. config CRYPTO_MD4
  69. tristate "MD4 digest algorithm"
  70. select CRYPTO_ALGAPI
  71. help
  72. MD4 message digest algorithm (RFC1320).
  73. config CRYPTO_MD5
  74. tristate "MD5 digest algorithm"
  75. select CRYPTO_ALGAPI
  76. help
  77. MD5 message digest algorithm (RFC1321).
  78. config CRYPTO_SHA1
  79. tristate "SHA1 digest algorithm"
  80. select CRYPTO_ALGAPI
  81. help
  82. SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
  83. config CRYPTO_SHA256
  84. tristate "SHA224 and SHA256 digest algorithm"
  85. select CRYPTO_ALGAPI
  86. help
  87. SHA256 secure hash standard (DFIPS 180-2).
  88. This version of SHA implements a 256 bit hash with 128 bits of
  89. security against collision attacks.
  90. This code also includes SHA-224, a 224 bit hash with 112 bits
  91. of security against collision attacks.
  92. config CRYPTO_SHA512
  93. tristate "SHA384 and SHA512 digest algorithms"
  94. select CRYPTO_ALGAPI
  95. help
  96. SHA512 secure hash standard (DFIPS 180-2).
  97. This version of SHA implements a 512 bit hash with 256 bits of
  98. security against collision attacks.
  99. This code also includes SHA-384, a 384 bit hash with 192 bits
  100. of security against collision attacks.
  101. config CRYPTO_WP512
  102. tristate "Whirlpool digest algorithms"
  103. select CRYPTO_ALGAPI
  104. help
  105. Whirlpool hash algorithm 512, 384 and 256-bit hashes
  106. Whirlpool-512 is part of the NESSIE cryptographic primitives.
  107. Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard
  108. See also:
  109. <http://planeta.terra.com.br/informatica/paulobarreto/WhirlpoolPage.html>
  110. config CRYPTO_TGR192
  111. tristate "Tiger digest algorithms"
  112. select CRYPTO_ALGAPI
  113. help
  114. Tiger hash algorithm 192, 160 and 128-bit hashes
  115. Tiger is a hash function optimized for 64-bit processors while
  116. still having decent performance on 32-bit processors.
  117. Tiger was developed by Ross Anderson and Eli Biham.
  118. See also:
  119. <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>.
  120. config CRYPTO_GF128MUL
  121. tristate "GF(2^128) multiplication functions (EXPERIMENTAL)"
  122. depends on EXPERIMENTAL
  123. help
  124. Efficient table driven implementation of multiplications in the
  125. field GF(2^128). This is needed by some cypher modes. This
  126. option will be selected automatically if you select such a
  127. cipher mode. Only select this option by hand if you expect to load
  128. an external module that requires these functions.
  129. config CRYPTO_ECB
  130. tristate "ECB support"
  131. select CRYPTO_BLKCIPHER
  132. select CRYPTO_MANAGER
  133. help
  134. ECB: Electronic CodeBook mode
  135. This is the simplest block cipher algorithm. It simply encrypts
  136. the input block by block.
  137. config CRYPTO_CBC
  138. tristate "CBC support"
  139. select CRYPTO_BLKCIPHER
  140. select CRYPTO_MANAGER
  141. help
  142. CBC: Cipher Block Chaining mode
  143. This block cipher algorithm is required for IPSec.
  144. config CRYPTO_PCBC
  145. tristate "PCBC support"
  146. select CRYPTO_BLKCIPHER
  147. select CRYPTO_MANAGER
  148. help
  149. PCBC: Propagating Cipher Block Chaining mode
  150. This block cipher algorithm is required for RxRPC.
  151. config CRYPTO_LRW
  152. tristate "LRW support (EXPERIMENTAL)"
  153. depends on EXPERIMENTAL
  154. select CRYPTO_BLKCIPHER
  155. select CRYPTO_MANAGER
  156. select CRYPTO_GF128MUL
  157. help
  158. LRW: Liskov Rivest Wagner, a tweakable, non malleable, non movable
  159. narrow block cipher mode for dm-crypt. Use it with cipher
  160. specification string aes-lrw-benbi, the key must be 256, 320 or 384.
  161. The first 128, 192 or 256 bits in the key are used for AES and the
  162. rest is used to tie each cipher block to its logical position.
  163. config CRYPTO_XTS
  164. tristate "XTS support (EXPERIMENTAL)"
  165. depends on EXPERIMENTAL
  166. select CRYPTO_BLKCIPHER
  167. select CRYPTO_MANAGER
  168. select CRYPTO_GF128MUL
  169. help
  170. XTS: IEEE1619/D16 narrow block cipher use with aes-xts-plain,
  171. key size 256, 384 or 512 bits. This implementation currently
  172. can't handle a sectorsize which is not a multiple of 16 bytes.
  173. config CRYPTO_CTR
  174. tristate "CTR support"
  175. select CRYPTO_BLKCIPHER
  176. select CRYPTO_SEQIV
  177. select CRYPTO_MANAGER
  178. help
  179. CTR: Counter mode
  180. This block cipher algorithm is required for IPSec.
  181. config CRYPTO_CTS
  182. tristate "CTS support"
  183. select CRYPTO_BLKCIPHER
  184. help
  185. CTS: Cipher Text Stealing
  186. This is the Cipher Text Stealing mode as described by
  187. Section 8 of rfc2040 and referenced by rfc3962.
  188. (rfc3962 includes errata information in its Appendix A)
  189. This mode is required for Kerberos gss mechanism support
  190. for AES encryption.
  191. config CRYPTO_GCM
  192. tristate "GCM/GMAC support"
  193. select CRYPTO_CTR
  194. select CRYPTO_AEAD
  195. select CRYPTO_GF128MUL
  196. help
  197. Support for Galois/Counter Mode (GCM) and Galois Message
  198. Authentication Code (GMAC). Required for IPSec.
  199. config CRYPTO_CCM
  200. tristate "CCM support"
  201. select CRYPTO_CTR
  202. select CRYPTO_AEAD
  203. help
  204. Support for Counter with CBC MAC. Required for IPsec.
  205. config CRYPTO_CRYPTD
  206. tristate "Software async crypto daemon"
  207. select CRYPTO_BLKCIPHER
  208. select CRYPTO_MANAGER
  209. help
  210. This is a generic software asynchronous crypto daemon that
  211. converts an arbitrary synchronous software crypto algorithm
  212. into an asynchronous algorithm that executes in a kernel thread.
  213. config CRYPTO_DES
  214. tristate "DES and Triple DES EDE cipher algorithms"
  215. select CRYPTO_ALGAPI
  216. help
  217. DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
  218. config CRYPTO_FCRYPT
  219. tristate "FCrypt cipher algorithm"
  220. select CRYPTO_ALGAPI
  221. select CRYPTO_BLKCIPHER
  222. help
  223. FCrypt algorithm used by RxRPC.
  224. config CRYPTO_BLOWFISH
  225. tristate "Blowfish cipher algorithm"
  226. select CRYPTO_ALGAPI
  227. help
  228. Blowfish cipher algorithm, by Bruce Schneier.
  229. This is a variable key length cipher which can use keys from 32
  230. bits to 448 bits in length. It's fast, simple and specifically
  231. designed for use on "large microprocessors".
  232. See also:
  233. <http://www.schneier.com/blowfish.html>
  234. config CRYPTO_TWOFISH
  235. tristate "Twofish cipher algorithm"
  236. select CRYPTO_ALGAPI
  237. select CRYPTO_TWOFISH_COMMON
  238. help
  239. Twofish cipher algorithm.
  240. Twofish was submitted as an AES (Advanced Encryption Standard)
  241. candidate cipher by researchers at CounterPane Systems. It is a
  242. 16 round block cipher supporting key sizes of 128, 192, and 256
  243. bits.
  244. See also:
  245. <http://www.schneier.com/twofish.html>
  246. config CRYPTO_TWOFISH_COMMON
  247. tristate
  248. help
  249. Common parts of the Twofish cipher algorithm shared by the
  250. generic c and the assembler implementations.
  251. config CRYPTO_TWOFISH_586
  252. tristate "Twofish cipher algorithms (i586)"
  253. depends on (X86 || UML_X86) && !64BIT
  254. select CRYPTO_ALGAPI
  255. select CRYPTO_TWOFISH_COMMON
  256. help
  257. Twofish cipher algorithm.
  258. Twofish was submitted as an AES (Advanced Encryption Standard)
  259. candidate cipher by researchers at CounterPane Systems. It is a
  260. 16 round block cipher supporting key sizes of 128, 192, and 256
  261. bits.
  262. See also:
  263. <http://www.schneier.com/twofish.html>
  264. config CRYPTO_TWOFISH_X86_64
  265. tristate "Twofish cipher algorithm (x86_64)"
  266. depends on (X86 || UML_X86) && 64BIT
  267. select CRYPTO_ALGAPI
  268. select CRYPTO_TWOFISH_COMMON
  269. help
  270. Twofish cipher algorithm (x86_64).
  271. Twofish was submitted as an AES (Advanced Encryption Standard)
  272. candidate cipher by researchers at CounterPane Systems. It is a
  273. 16 round block cipher supporting key sizes of 128, 192, and 256
  274. bits.
  275. See also:
  276. <http://www.schneier.com/twofish.html>
  277. config CRYPTO_SERPENT
  278. tristate "Serpent cipher algorithm"
  279. select CRYPTO_ALGAPI
  280. help
  281. Serpent cipher algorithm, by Anderson, Biham & Knudsen.
  282. Keys are allowed to be from 0 to 256 bits in length, in steps
  283. of 8 bits. Also includes the 'Tnepres' algorithm, a reversed
  284. variant of Serpent for compatibility with old kerneli.org code.
  285. See also:
  286. <http://www.cl.cam.ac.uk/~rja14/serpent.html>
  287. config CRYPTO_AES
  288. tristate "AES cipher algorithms"
  289. select CRYPTO_ALGAPI
  290. help
  291. AES cipher algorithms (FIPS-197). AES uses the Rijndael
  292. algorithm.
  293. Rijndael appears to be consistently a very good performer in
  294. both hardware and software across a wide range of computing
  295. environments regardless of its use in feedback or non-feedback
  296. modes. Its key setup time is excellent, and its key agility is
  297. good. Rijndael's very low memory requirements make it very well
  298. suited for restricted-space environments, in which it also
  299. demonstrates excellent performance. Rijndael's operations are
  300. among the easiest to defend against power and timing attacks.
  301. The AES specifies three key sizes: 128, 192 and 256 bits
  302. See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information.
  303. config CRYPTO_AES_586
  304. tristate "AES cipher algorithms (i586)"
  305. depends on (X86 || UML_X86) && !64BIT
  306. select CRYPTO_ALGAPI
  307. select CRYPTO_AES
  308. help
  309. AES cipher algorithms (FIPS-197). AES uses the Rijndael
  310. algorithm.
  311. Rijndael appears to be consistently a very good performer in
  312. both hardware and software across a wide range of computing
  313. environments regardless of its use in feedback or non-feedback
  314. modes. Its key setup time is excellent, and its key agility is
  315. good. Rijndael's very low memory requirements make it very well
  316. suited for restricted-space environments, in which it also
  317. demonstrates excellent performance. Rijndael's operations are
  318. among the easiest to defend against power and timing attacks.
  319. The AES specifies three key sizes: 128, 192 and 256 bits
  320. See <http://csrc.nist.gov/encryption/aes/> for more information.
  321. config CRYPTO_AES_X86_64
  322. tristate "AES cipher algorithms (x86_64)"
  323. depends on (X86 || UML_X86) && 64BIT
  324. select CRYPTO_ALGAPI
  325. select CRYPTO_AES
  326. help
  327. AES cipher algorithms (FIPS-197). AES uses the Rijndael
  328. algorithm.
  329. Rijndael appears to be consistently a very good performer in
  330. both hardware and software across a wide range of computing
  331. environments regardless of its use in feedback or non-feedback
  332. modes. Its key setup time is excellent, and its key agility is
  333. good. Rijndael's very low memory requirements make it very well
  334. suited for restricted-space environments, in which it also
  335. demonstrates excellent performance. Rijndael's operations are
  336. among the easiest to defend against power and timing attacks.
  337. The AES specifies three key sizes: 128, 192 and 256 bits
  338. See <http://csrc.nist.gov/encryption/aes/> for more information.
  339. config CRYPTO_CAST5
  340. tristate "CAST5 (CAST-128) cipher algorithm"
  341. select CRYPTO_ALGAPI
  342. help
  343. The CAST5 encryption algorithm (synonymous with CAST-128) is
  344. described in RFC2144.
  345. config CRYPTO_CAST6
  346. tristate "CAST6 (CAST-256) cipher algorithm"
  347. select CRYPTO_ALGAPI
  348. help
  349. The CAST6 encryption algorithm (synonymous with CAST-256) is
  350. described in RFC2612.
  351. config CRYPTO_TEA
  352. tristate "TEA, XTEA and XETA cipher algorithms"
  353. select CRYPTO_ALGAPI
  354. help
  355. TEA cipher algorithm.
  356. Tiny Encryption Algorithm is a simple cipher that uses
  357. many rounds for security. It is very fast and uses
  358. little memory.
  359. Xtendend Tiny Encryption Algorithm is a modification to
  360. the TEA algorithm to address a potential key weakness
  361. in the TEA algorithm.
  362. Xtendend Encryption Tiny Algorithm is a mis-implementation
  363. of the XTEA algorithm for compatibility purposes.
  364. config CRYPTO_ARC4
  365. tristate "ARC4 cipher algorithm"
  366. select CRYPTO_ALGAPI
  367. help
  368. ARC4 cipher algorithm.
  369. ARC4 is a stream cipher using keys ranging from 8 bits to 2048
  370. bits in length. This algorithm is required for driver-based
  371. WEP, but it should not be for other purposes because of the
  372. weakness of the algorithm.
  373. config CRYPTO_KHAZAD
  374. tristate "Khazad cipher algorithm"
  375. select CRYPTO_ALGAPI
  376. help
  377. Khazad cipher algorithm.
  378. Khazad was a finalist in the initial NESSIE competition. It is
  379. an algorithm optimized for 64-bit processors with good performance
  380. on 32-bit processors. Khazad uses an 128 bit key size.
  381. See also:
  382. <http://planeta.terra.com.br/informatica/paulobarreto/KhazadPage.html>
  383. config CRYPTO_ANUBIS
  384. tristate "Anubis cipher algorithm"
  385. select CRYPTO_ALGAPI
  386. help
  387. Anubis cipher algorithm.
  388. Anubis is a variable key length cipher which can use keys from
  389. 128 bits to 320 bits in length. It was evaluated as a entrant
  390. in the NESSIE competition.
  391. See also:
  392. <https://www.cosic.esat.kuleuven.ac.be/nessie/reports/>
  393. <http://planeta.terra.com.br/informatica/paulobarreto/AnubisPage.html>
  394. config CRYPTO_SEED
  395. tristate "SEED cipher algorithm"
  396. select CRYPTO_ALGAPI
  397. help
  398. SEED cipher algorithm (RFC4269).
  399. SEED is a 128-bit symmetric key block cipher that has been
  400. developed by KISA (Korea Information Security Agency) as a
  401. national standard encryption algorithm of the Republic of Korea.
  402. It is a 16 round block cipher with the key size of 128 bit.
  403. See also:
  404. <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>
  405. config CRYPTO_SALSA20
  406. tristate "Salsa20 stream cipher algorithm (EXPERIMENTAL)"
  407. depends on EXPERIMENTAL
  408. select CRYPTO_BLKCIPHER
  409. help
  410. Salsa20 stream cipher algorithm.
  411. Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
  412. Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
  413. The Salsa20 stream cipher algorithm is designed by Daniel J.
  414. Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
  415. config CRYPTO_SALSA20_586
  416. tristate "Salsa20 stream cipher algorithm (i586) (EXPERIMENTAL)"
  417. depends on (X86 || UML_X86) && !64BIT
  418. depends on EXPERIMENTAL
  419. select CRYPTO_BLKCIPHER
  420. help
  421. Salsa20 stream cipher algorithm.
  422. Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
  423. Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
  424. The Salsa20 stream cipher algorithm is designed by Daniel J.
  425. Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
  426. config CRYPTO_SALSA20_X86_64
  427. tristate "Salsa20 stream cipher algorithm (x86_64) (EXPERIMENTAL)"
  428. depends on (X86 || UML_X86) && 64BIT
  429. depends on EXPERIMENTAL
  430. select CRYPTO_BLKCIPHER
  431. help
  432. Salsa20 stream cipher algorithm.
  433. Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
  434. Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
  435. The Salsa20 stream cipher algorithm is designed by Daniel J.
  436. Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
  437. config CRYPTO_DEFLATE
  438. tristate "Deflate compression algorithm"
  439. select CRYPTO_ALGAPI
  440. select ZLIB_INFLATE
  441. select ZLIB_DEFLATE
  442. help
  443. This is the Deflate algorithm (RFC1951), specified for use in
  444. IPSec with the IPCOMP protocol (RFC3173, RFC2394).
  445. You will most probably want this if using IPSec.
  446. config CRYPTO_MICHAEL_MIC
  447. tristate "Michael MIC keyed digest algorithm"
  448. select CRYPTO_ALGAPI
  449. help
  450. Michael MIC is used for message integrity protection in TKIP
  451. (IEEE 802.11i). This algorithm is required for TKIP, but it
  452. should not be used for other purposes because of the weakness
  453. of the algorithm.
  454. config CRYPTO_CRC32C
  455. tristate "CRC32c CRC algorithm"
  456. select CRYPTO_ALGAPI
  457. select LIBCRC32C
  458. help
  459. Castagnoli, et al Cyclic Redundancy-Check Algorithm. Used
  460. by iSCSI for header and data digests and by others.
  461. See Castagnoli93. This implementation uses lib/libcrc32c.
  462. Module will be crc32c.
  463. config CRYPTO_CAMELLIA
  464. tristate "Camellia cipher algorithms"
  465. depends on CRYPTO
  466. select CRYPTO_ALGAPI
  467. help
  468. Camellia cipher algorithms module.
  469. Camellia is a symmetric key block cipher developed jointly
  470. at NTT and Mitsubishi Electric Corporation.
  471. The Camellia specifies three key sizes: 128, 192 and 256 bits.
  472. See also:
  473. <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
  474. config CRYPTO_TEST
  475. tristate "Testing module"
  476. depends on m
  477. select CRYPTO_ALGAPI
  478. select CRYPTO_AEAD
  479. select CRYPTO_BLKCIPHER
  480. help
  481. Quick & dirty crypto test module.
  482. config CRYPTO_AUTHENC
  483. tristate "Authenc support"
  484. select CRYPTO_AEAD
  485. select CRYPTO_BLKCIPHER
  486. select CRYPTO_MANAGER
  487. select CRYPTO_HASH
  488. help
  489. Authenc: Combined mode wrapper for IPsec.
  490. This is required for IPSec.
  491. config CRYPTO_LZO
  492. tristate "LZO compression algorithm"
  493. select CRYPTO_ALGAPI
  494. select LZO_COMPRESS
  495. select LZO_DECOMPRESS
  496. help
  497. This is the LZO algorithm.
  498. source "drivers/crypto/Kconfig"
  499. endif # if CRYPTO