Kconfig 17 KB

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