Kconfig 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594
  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. 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_GCM
  182. tristate "GCM/GMAC support"
  183. select CRYPTO_CTR
  184. select CRYPTO_AEAD
  185. select CRYPTO_GF128MUL
  186. help
  187. Support for Galois/Counter Mode (GCM) and Galois Message
  188. Authentication Code (GMAC). Required for IPSec.
  189. config CRYPTO_CCM
  190. tristate "CCM support"
  191. select CRYPTO_CTR
  192. select CRYPTO_AEAD
  193. help
  194. Support for Counter with CBC MAC. Required for IPsec.
  195. config CRYPTO_CRYPTD
  196. tristate "Software async crypto daemon"
  197. select CRYPTO_BLKCIPHER
  198. select CRYPTO_MANAGER
  199. help
  200. This is a generic software asynchronous crypto daemon that
  201. converts an arbitrary synchronous software crypto algorithm
  202. into an asynchronous algorithm that executes in a kernel thread.
  203. config CRYPTO_DES
  204. tristate "DES and Triple DES EDE cipher algorithms"
  205. select CRYPTO_ALGAPI
  206. help
  207. DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
  208. config CRYPTO_FCRYPT
  209. tristate "FCrypt cipher algorithm"
  210. select CRYPTO_ALGAPI
  211. select CRYPTO_BLKCIPHER
  212. help
  213. FCrypt algorithm used by RxRPC.
  214. config CRYPTO_BLOWFISH
  215. tristate "Blowfish cipher algorithm"
  216. select CRYPTO_ALGAPI
  217. help
  218. Blowfish cipher algorithm, by Bruce Schneier.
  219. This is a variable key length cipher which can use keys from 32
  220. bits to 448 bits in length. It's fast, simple and specifically
  221. designed for use on "large microprocessors".
  222. See also:
  223. <http://www.schneier.com/blowfish.html>
  224. config CRYPTO_TWOFISH
  225. tristate "Twofish cipher algorithm"
  226. select CRYPTO_ALGAPI
  227. select CRYPTO_TWOFISH_COMMON
  228. help
  229. Twofish cipher algorithm.
  230. Twofish was submitted as an AES (Advanced Encryption Standard)
  231. candidate cipher by researchers at CounterPane Systems. It is a
  232. 16 round block cipher supporting key sizes of 128, 192, and 256
  233. bits.
  234. See also:
  235. <http://www.schneier.com/twofish.html>
  236. config CRYPTO_TWOFISH_COMMON
  237. tristate
  238. help
  239. Common parts of the Twofish cipher algorithm shared by the
  240. generic c and the assembler implementations.
  241. config CRYPTO_TWOFISH_586
  242. tristate "Twofish cipher algorithms (i586)"
  243. depends on (X86 || UML_X86) && !64BIT
  244. select CRYPTO_ALGAPI
  245. select CRYPTO_TWOFISH_COMMON
  246. help
  247. Twofish cipher algorithm.
  248. Twofish was submitted as an AES (Advanced Encryption Standard)
  249. candidate cipher by researchers at CounterPane Systems. It is a
  250. 16 round block cipher supporting key sizes of 128, 192, and 256
  251. bits.
  252. See also:
  253. <http://www.schneier.com/twofish.html>
  254. config CRYPTO_TWOFISH_X86_64
  255. tristate "Twofish cipher algorithm (x86_64)"
  256. depends on (X86 || UML_X86) && 64BIT
  257. select CRYPTO_ALGAPI
  258. select CRYPTO_TWOFISH_COMMON
  259. help
  260. Twofish cipher algorithm (x86_64).
  261. Twofish was submitted as an AES (Advanced Encryption Standard)
  262. candidate cipher by researchers at CounterPane Systems. It is a
  263. 16 round block cipher supporting key sizes of 128, 192, and 256
  264. bits.
  265. See also:
  266. <http://www.schneier.com/twofish.html>
  267. config CRYPTO_SERPENT
  268. tristate "Serpent cipher algorithm"
  269. select CRYPTO_ALGAPI
  270. help
  271. Serpent cipher algorithm, by Anderson, Biham & Knudsen.
  272. Keys are allowed to be from 0 to 256 bits in length, in steps
  273. of 8 bits. Also includes the 'Tnepres' algorithm, a reversed
  274. variant of Serpent for compatibility with old kerneli.org code.
  275. See also:
  276. <http://www.cl.cam.ac.uk/~rja14/serpent.html>
  277. config CRYPTO_AES
  278. tristate "AES cipher algorithms"
  279. select CRYPTO_ALGAPI
  280. help
  281. AES cipher algorithms (FIPS-197). AES uses the Rijndael
  282. algorithm.
  283. Rijndael appears to be consistently a very good performer in
  284. both hardware and software across a wide range of computing
  285. environments regardless of its use in feedback or non-feedback
  286. modes. Its key setup time is excellent, and its key agility is
  287. good. Rijndael's very low memory requirements make it very well
  288. suited for restricted-space environments, in which it also
  289. demonstrates excellent performance. Rijndael's operations are
  290. among the easiest to defend against power and timing attacks.
  291. The AES specifies three key sizes: 128, 192 and 256 bits
  292. See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information.
  293. config CRYPTO_AES_586
  294. tristate "AES cipher algorithms (i586)"
  295. depends on (X86 || UML_X86) && !64BIT
  296. select CRYPTO_ALGAPI
  297. select CRYPTO_AES
  298. help
  299. AES cipher algorithms (FIPS-197). AES uses the Rijndael
  300. algorithm.
  301. Rijndael appears to be consistently a very good performer in
  302. both hardware and software across a wide range of computing
  303. environments regardless of its use in feedback or non-feedback
  304. modes. Its key setup time is excellent, and its key agility is
  305. good. Rijndael's very low memory requirements make it very well
  306. suited for restricted-space environments, in which it also
  307. demonstrates excellent performance. Rijndael's operations are
  308. among the easiest to defend against power and timing attacks.
  309. The AES specifies three key sizes: 128, 192 and 256 bits
  310. See <http://csrc.nist.gov/encryption/aes/> for more information.
  311. config CRYPTO_AES_X86_64
  312. tristate "AES cipher algorithms (x86_64)"
  313. depends on (X86 || UML_X86) && 64BIT
  314. select CRYPTO_ALGAPI
  315. select CRYPTO_AES
  316. help
  317. AES cipher algorithms (FIPS-197). AES uses the Rijndael
  318. algorithm.
  319. Rijndael appears to be consistently a very good performer in
  320. both hardware and software across a wide range of computing
  321. environments regardless of its use in feedback or non-feedback
  322. modes. Its key setup time is excellent, and its key agility is
  323. good. Rijndael's very low memory requirements make it very well
  324. suited for restricted-space environments, in which it also
  325. demonstrates excellent performance. Rijndael's operations are
  326. among the easiest to defend against power and timing attacks.
  327. The AES specifies three key sizes: 128, 192 and 256 bits
  328. See <http://csrc.nist.gov/encryption/aes/> for more information.
  329. config CRYPTO_CAST5
  330. tristate "CAST5 (CAST-128) cipher algorithm"
  331. select CRYPTO_ALGAPI
  332. help
  333. The CAST5 encryption algorithm (synonymous with CAST-128) is
  334. described in RFC2144.
  335. config CRYPTO_CAST6
  336. tristate "CAST6 (CAST-256) cipher algorithm"
  337. select CRYPTO_ALGAPI
  338. help
  339. The CAST6 encryption algorithm (synonymous with CAST-256) is
  340. described in RFC2612.
  341. config CRYPTO_TEA
  342. tristate "TEA, XTEA and XETA cipher algorithms"
  343. select CRYPTO_ALGAPI
  344. help
  345. TEA cipher algorithm.
  346. Tiny Encryption Algorithm is a simple cipher that uses
  347. many rounds for security. It is very fast and uses
  348. little memory.
  349. Xtendend Tiny Encryption Algorithm is a modification to
  350. the TEA algorithm to address a potential key weakness
  351. in the TEA algorithm.
  352. Xtendend Encryption Tiny Algorithm is a mis-implementation
  353. of the XTEA algorithm for compatibility purposes.
  354. config CRYPTO_ARC4
  355. tristate "ARC4 cipher algorithm"
  356. select CRYPTO_ALGAPI
  357. help
  358. ARC4 cipher algorithm.
  359. ARC4 is a stream cipher using keys ranging from 8 bits to 2048
  360. bits in length. This algorithm is required for driver-based
  361. WEP, but it should not be for other purposes because of the
  362. weakness of the algorithm.
  363. config CRYPTO_KHAZAD
  364. tristate "Khazad cipher algorithm"
  365. select CRYPTO_ALGAPI
  366. help
  367. Khazad cipher algorithm.
  368. Khazad was a finalist in the initial NESSIE competition. It is
  369. an algorithm optimized for 64-bit processors with good performance
  370. on 32-bit processors. Khazad uses an 128 bit key size.
  371. See also:
  372. <http://planeta.terra.com.br/informatica/paulobarreto/KhazadPage.html>
  373. config CRYPTO_ANUBIS
  374. tristate "Anubis cipher algorithm"
  375. select CRYPTO_ALGAPI
  376. help
  377. Anubis cipher algorithm.
  378. Anubis is a variable key length cipher which can use keys from
  379. 128 bits to 320 bits in length. It was evaluated as a entrant
  380. in the NESSIE competition.
  381. See also:
  382. <https://www.cosic.esat.kuleuven.ac.be/nessie/reports/>
  383. <http://planeta.terra.com.br/informatica/paulobarreto/AnubisPage.html>
  384. config CRYPTO_SEED
  385. tristate "SEED cipher algorithm"
  386. select CRYPTO_ALGAPI
  387. help
  388. SEED cipher algorithm (RFC4269).
  389. SEED is a 128-bit symmetric key block cipher that has been
  390. developed by KISA (Korea Information Security Agency) as a
  391. national standard encryption algorithm of the Republic of Korea.
  392. It is a 16 round block cipher with the key size of 128 bit.
  393. See also:
  394. <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>
  395. config CRYPTO_SALSA20
  396. tristate "Salsa20 stream cipher algorithm (EXPERIMENTAL)"
  397. depends on EXPERIMENTAL
  398. select CRYPTO_BLKCIPHER
  399. help
  400. Salsa20 stream cipher algorithm.
  401. Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
  402. Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
  403. The Salsa20 stream cipher algorithm is designed by Daniel J.
  404. Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
  405. config CRYPTO_SALSA20_586
  406. tristate "Salsa20 stream cipher algorithm (i586) (EXPERIMENTAL)"
  407. depends on (X86 || UML_X86) && !64BIT
  408. depends on EXPERIMENTAL
  409. select CRYPTO_BLKCIPHER
  410. help
  411. Salsa20 stream cipher algorithm.
  412. Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
  413. Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
  414. The Salsa20 stream cipher algorithm is designed by Daniel J.
  415. Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
  416. config CRYPTO_SALSA20_X86_64
  417. tristate "Salsa20 stream cipher algorithm (x86_64) (EXPERIMENTAL)"
  418. depends on (X86 || UML_X86) && 64BIT
  419. depends on EXPERIMENTAL
  420. select CRYPTO_BLKCIPHER
  421. help
  422. Salsa20 stream cipher algorithm.
  423. Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
  424. Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
  425. The Salsa20 stream cipher algorithm is designed by Daniel J.
  426. Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
  427. config CRYPTO_DEFLATE
  428. tristate "Deflate compression algorithm"
  429. select CRYPTO_ALGAPI
  430. select ZLIB_INFLATE
  431. select ZLIB_DEFLATE
  432. help
  433. This is the Deflate algorithm (RFC1951), specified for use in
  434. IPSec with the IPCOMP protocol (RFC3173, RFC2394).
  435. You will most probably want this if using IPSec.
  436. config CRYPTO_MICHAEL_MIC
  437. tristate "Michael MIC keyed digest algorithm"
  438. select CRYPTO_ALGAPI
  439. help
  440. Michael MIC is used for message integrity protection in TKIP
  441. (IEEE 802.11i). This algorithm is required for TKIP, but it
  442. should not be used for other purposes because of the weakness
  443. of the algorithm.
  444. config CRYPTO_CRC32C
  445. tristate "CRC32c CRC algorithm"
  446. select CRYPTO_ALGAPI
  447. select LIBCRC32C
  448. help
  449. Castagnoli, et al Cyclic Redundancy-Check Algorithm. Used
  450. by iSCSI for header and data digests and by others.
  451. See Castagnoli93. This implementation uses lib/libcrc32c.
  452. Module will be crc32c.
  453. config CRYPTO_CAMELLIA
  454. tristate "Camellia cipher algorithms"
  455. depends on CRYPTO
  456. select CRYPTO_ALGAPI
  457. help
  458. Camellia cipher algorithms module.
  459. Camellia is a symmetric key block cipher developed jointly
  460. at NTT and Mitsubishi Electric Corporation.
  461. The Camellia specifies three key sizes: 128, 192 and 256 bits.
  462. See also:
  463. <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
  464. config CRYPTO_TEST
  465. tristate "Testing module"
  466. depends on m
  467. select CRYPTO_ALGAPI
  468. select CRYPTO_AEAD
  469. select CRYPTO_BLKCIPHER
  470. help
  471. Quick & dirty crypto test module.
  472. config CRYPTO_AUTHENC
  473. tristate "Authenc support"
  474. select CRYPTO_AEAD
  475. select CRYPTO_MANAGER
  476. select CRYPTO_HASH
  477. help
  478. Authenc: Combined mode wrapper for IPsec.
  479. This is required for IPSec.
  480. config CRYPTO_LZO
  481. tristate "LZO compression algorithm"
  482. select CRYPTO_ALGAPI
  483. select LZO_COMPRESS
  484. select LZO_DECOMPRESS
  485. help
  486. This is the LZO algorithm.
  487. source "drivers/crypto/Kconfig"
  488. endif # if CRYPTO