Kconfig 17 KB

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