Kconfig 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532
  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_ABLKCIPHER
  23. tristate
  24. select CRYPTO_BLKCIPHER
  25. config CRYPTO_AEAD
  26. tristate
  27. select CRYPTO_ALGAPI
  28. config CRYPTO_BLKCIPHER
  29. tristate
  30. select CRYPTO_ALGAPI
  31. config CRYPTO_HASH
  32. tristate
  33. select CRYPTO_ALGAPI
  34. config CRYPTO_MANAGER
  35. tristate "Cryptographic algorithm manager"
  36. select CRYPTO_ALGAPI
  37. help
  38. Create default cryptographic template instantiations such as
  39. cbc(aes).
  40. config CRYPTO_HMAC
  41. tristate "HMAC support"
  42. select CRYPTO_HASH
  43. select CRYPTO_MANAGER
  44. help
  45. HMAC: Keyed-Hashing for Message Authentication (RFC2104).
  46. This is required for IPSec.
  47. config CRYPTO_XCBC
  48. tristate "XCBC support"
  49. depends on EXPERIMENTAL
  50. select CRYPTO_HASH
  51. select CRYPTO_MANAGER
  52. help
  53. XCBC: Keyed-Hashing with encryption algorithm
  54. http://www.ietf.org/rfc/rfc3566.txt
  55. http://csrc.nist.gov/encryption/modes/proposedmodes/
  56. xcbc-mac/xcbc-mac-spec.pdf
  57. config CRYPTO_NULL
  58. tristate "Null algorithms"
  59. select CRYPTO_ALGAPI
  60. help
  61. These are 'Null' algorithms, used by IPsec, which do nothing.
  62. config CRYPTO_MD4
  63. tristate "MD4 digest algorithm"
  64. select CRYPTO_ALGAPI
  65. help
  66. MD4 message digest algorithm (RFC1320).
  67. config CRYPTO_MD5
  68. tristate "MD5 digest algorithm"
  69. select CRYPTO_ALGAPI
  70. help
  71. MD5 message digest algorithm (RFC1321).
  72. config CRYPTO_SHA1
  73. tristate "SHA1 digest algorithm"
  74. select CRYPTO_ALGAPI
  75. help
  76. SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
  77. config CRYPTO_SHA256
  78. tristate "SHA224 and SHA256 digest algorithm"
  79. select CRYPTO_ALGAPI
  80. help
  81. SHA256 secure hash standard (DFIPS 180-2).
  82. This version of SHA implements a 256 bit hash with 128 bits of
  83. security against collision attacks.
  84. This code also includes SHA-224, a 224 bit hash with 112 bits
  85. of 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. help
  128. ECB: Electronic CodeBook mode
  129. This is the simplest block cipher algorithm. It simply encrypts
  130. the input block by block.
  131. config CRYPTO_CBC
  132. tristate "CBC support"
  133. select CRYPTO_BLKCIPHER
  134. select CRYPTO_MANAGER
  135. help
  136. CBC: Cipher Block Chaining mode
  137. This block cipher algorithm is required for IPSec.
  138. config CRYPTO_PCBC
  139. tristate "PCBC support"
  140. select CRYPTO_BLKCIPHER
  141. select CRYPTO_MANAGER
  142. help
  143. PCBC: Propagating Cipher Block Chaining mode
  144. This block cipher algorithm is required for RxRPC.
  145. config CRYPTO_LRW
  146. tristate "LRW support (EXPERIMENTAL)"
  147. depends on EXPERIMENTAL
  148. select CRYPTO_BLKCIPHER
  149. select CRYPTO_MANAGER
  150. select CRYPTO_GF128MUL
  151. help
  152. LRW: Liskov Rivest Wagner, a tweakable, non malleable, non movable
  153. narrow block cipher mode for dm-crypt. Use it with cipher
  154. specification string aes-lrw-benbi, the key must be 256, 320 or 384.
  155. The first 128, 192 or 256 bits in the key are used for AES and the
  156. rest is used to tie each cipher block to its logical position.
  157. config CRYPTO_XTS
  158. tristate "XTS support (EXPERIMENTAL)"
  159. depends on EXPERIMENTAL
  160. select CRYPTO_BLKCIPHER
  161. select CRYPTO_MANAGER
  162. select CRYPTO_GF128MUL
  163. help
  164. XTS: IEEE1619/D16 narrow block cipher use with aes-xts-plain,
  165. key size 256, 384 or 512 bits. This implementation currently
  166. can't handle a sectorsize which is not a multiple of 16 bytes.
  167. config CRYPTO_CTR
  168. tristate "CTR support"
  169. select CRYPTO_BLKCIPHER
  170. select CRYPTO_MANAGER
  171. help
  172. CTR: Counter mode
  173. This block cipher algorithm is required for IPSec.
  174. config CRYPTO_CRYPTD
  175. tristate "Software async crypto daemon"
  176. select CRYPTO_ABLKCIPHER
  177. select CRYPTO_MANAGER
  178. help
  179. This is a generic software asynchronous crypto daemon that
  180. converts an arbitrary synchronous software crypto algorithm
  181. into an asynchronous algorithm that executes in a kernel thread.
  182. config CRYPTO_DES
  183. tristate "DES and Triple DES EDE cipher algorithms"
  184. select CRYPTO_ALGAPI
  185. help
  186. DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
  187. config CRYPTO_FCRYPT
  188. tristate "FCrypt cipher algorithm"
  189. select CRYPTO_ALGAPI
  190. select CRYPTO_BLKCIPHER
  191. help
  192. FCrypt algorithm used by RxRPC.
  193. config CRYPTO_BLOWFISH
  194. tristate "Blowfish cipher algorithm"
  195. select CRYPTO_ALGAPI
  196. help
  197. Blowfish cipher algorithm, by Bruce Schneier.
  198. This is a variable key length cipher which can use keys from 32
  199. bits to 448 bits in length. It's fast, simple and specifically
  200. designed for use on "large microprocessors".
  201. See also:
  202. <http://www.schneier.com/blowfish.html>
  203. config CRYPTO_TWOFISH
  204. tristate "Twofish cipher algorithm"
  205. select CRYPTO_ALGAPI
  206. select CRYPTO_TWOFISH_COMMON
  207. help
  208. Twofish cipher algorithm.
  209. Twofish was submitted as an AES (Advanced Encryption Standard)
  210. candidate cipher by researchers at CounterPane Systems. It is a
  211. 16 round block cipher supporting key sizes of 128, 192, and 256
  212. bits.
  213. See also:
  214. <http://www.schneier.com/twofish.html>
  215. config CRYPTO_TWOFISH_COMMON
  216. tristate
  217. help
  218. Common parts of the Twofish cipher algorithm shared by the
  219. generic c and the assembler implementations.
  220. config CRYPTO_TWOFISH_586
  221. tristate "Twofish cipher algorithms (i586)"
  222. depends on (X86 || UML_X86) && !64BIT
  223. select CRYPTO_ALGAPI
  224. select CRYPTO_TWOFISH_COMMON
  225. help
  226. Twofish cipher algorithm.
  227. Twofish was submitted as an AES (Advanced Encryption Standard)
  228. candidate cipher by researchers at CounterPane Systems. It is a
  229. 16 round block cipher supporting key sizes of 128, 192, and 256
  230. bits.
  231. See also:
  232. <http://www.schneier.com/twofish.html>
  233. config CRYPTO_TWOFISH_X86_64
  234. tristate "Twofish cipher algorithm (x86_64)"
  235. depends on (X86 || UML_X86) && 64BIT
  236. select CRYPTO_ALGAPI
  237. select CRYPTO_TWOFISH_COMMON
  238. help
  239. Twofish cipher algorithm (x86_64).
  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_SERPENT
  247. tristate "Serpent cipher algorithm"
  248. select CRYPTO_ALGAPI
  249. help
  250. Serpent cipher algorithm, by Anderson, Biham & Knudsen.
  251. Keys are allowed to be from 0 to 256 bits in length, in steps
  252. of 8 bits. Also includes the 'Tnepres' algorithm, a reversed
  253. variant of Serpent for compatibility with old kerneli.org code.
  254. See also:
  255. <http://www.cl.cam.ac.uk/~rja14/serpent.html>
  256. config CRYPTO_AES
  257. tristate "AES cipher algorithms"
  258. select CRYPTO_ALGAPI
  259. help
  260. AES cipher algorithms (FIPS-197). AES uses the Rijndael
  261. algorithm.
  262. Rijndael appears to be consistently a very good performer in
  263. both hardware and software across a wide range of computing
  264. environments regardless of its use in feedback or non-feedback
  265. modes. Its key setup time is excellent, and its key agility is
  266. good. Rijndael's very low memory requirements make it very well
  267. suited for restricted-space environments, in which it also
  268. demonstrates excellent performance. Rijndael's operations are
  269. among the easiest to defend against power and timing attacks.
  270. The AES specifies three key sizes: 128, 192 and 256 bits
  271. See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information.
  272. config CRYPTO_AES_586
  273. tristate "AES cipher algorithms (i586)"
  274. depends on (X86 || UML_X86) && !64BIT
  275. select CRYPTO_ALGAPI
  276. select CRYPTO_AES
  277. help
  278. AES cipher algorithms (FIPS-197). AES uses the Rijndael
  279. algorithm.
  280. Rijndael appears to be consistently a very good performer in
  281. both hardware and software across a wide range of computing
  282. environments regardless of its use in feedback or non-feedback
  283. modes. Its key setup time is excellent, and its key agility is
  284. good. Rijndael's very low memory requirements make it very well
  285. suited for restricted-space environments, in which it also
  286. demonstrates excellent performance. Rijndael's operations are
  287. among the easiest to defend against power and timing attacks.
  288. The AES specifies three key sizes: 128, 192 and 256 bits
  289. See <http://csrc.nist.gov/encryption/aes/> for more information.
  290. config CRYPTO_AES_X86_64
  291. tristate "AES cipher algorithms (x86_64)"
  292. depends on (X86 || UML_X86) && 64BIT
  293. select CRYPTO_ALGAPI
  294. select CRYPTO_AES
  295. help
  296. AES cipher algorithms (FIPS-197). AES uses the Rijndael
  297. algorithm.
  298. Rijndael appears to be consistently a very good performer in
  299. both hardware and software across a wide range of computing
  300. environments regardless of its use in feedback or non-feedback
  301. modes. Its key setup time is excellent, and its key agility is
  302. good. Rijndael's very low memory requirements make it very well
  303. suited for restricted-space environments, in which it also
  304. demonstrates excellent performance. Rijndael's operations are
  305. among the easiest to defend against power and timing attacks.
  306. The AES specifies three key sizes: 128, 192 and 256 bits
  307. See <http://csrc.nist.gov/encryption/aes/> for more information.
  308. config CRYPTO_CAST5
  309. tristate "CAST5 (CAST-128) cipher algorithm"
  310. select CRYPTO_ALGAPI
  311. help
  312. The CAST5 encryption algorithm (synonymous with CAST-128) is
  313. described in RFC2144.
  314. config CRYPTO_CAST6
  315. tristate "CAST6 (CAST-256) cipher algorithm"
  316. select CRYPTO_ALGAPI
  317. help
  318. The CAST6 encryption algorithm (synonymous with CAST-256) is
  319. described in RFC2612.
  320. config CRYPTO_TEA
  321. tristate "TEA, XTEA and XETA cipher algorithms"
  322. select CRYPTO_ALGAPI
  323. help
  324. TEA cipher algorithm.
  325. Tiny Encryption Algorithm is a simple cipher that uses
  326. many rounds for security. It is very fast and uses
  327. little memory.
  328. Xtendend Tiny Encryption Algorithm is a modification to
  329. the TEA algorithm to address a potential key weakness
  330. in the TEA algorithm.
  331. Xtendend Encryption Tiny Algorithm is a mis-implementation
  332. of the XTEA algorithm for compatibility purposes.
  333. config CRYPTO_ARC4
  334. tristate "ARC4 cipher algorithm"
  335. select CRYPTO_ALGAPI
  336. help
  337. ARC4 cipher algorithm.
  338. ARC4 is a stream cipher using keys ranging from 8 bits to 2048
  339. bits in length. This algorithm is required for driver-based
  340. WEP, but it should not be for other purposes because of the
  341. weakness of the algorithm.
  342. config CRYPTO_KHAZAD
  343. tristate "Khazad cipher algorithm"
  344. select CRYPTO_ALGAPI
  345. help
  346. Khazad cipher algorithm.
  347. Khazad was a finalist in the initial NESSIE competition. It is
  348. an algorithm optimized for 64-bit processors with good performance
  349. on 32-bit processors. Khazad uses an 128 bit key size.
  350. See also:
  351. <http://planeta.terra.com.br/informatica/paulobarreto/KhazadPage.html>
  352. config CRYPTO_ANUBIS
  353. tristate "Anubis cipher algorithm"
  354. select CRYPTO_ALGAPI
  355. help
  356. Anubis cipher algorithm.
  357. Anubis is a variable key length cipher which can use keys from
  358. 128 bits to 320 bits in length. It was evaluated as a entrant
  359. in the NESSIE competition.
  360. See also:
  361. <https://www.cosic.esat.kuleuven.ac.be/nessie/reports/>
  362. <http://planeta.terra.com.br/informatica/paulobarreto/AnubisPage.html>
  363. config CRYPTO_SEED
  364. tristate "SEED cipher algorithm"
  365. select CRYPTO_ALGAPI
  366. help
  367. SEED cipher algorithm (RFC4269).
  368. SEED is a 128-bit symmetric key block cipher that has been
  369. developed by KISA (Korea Information Security Agency) as a
  370. national standard encryption algorithm of the Republic of Korea.
  371. It is a 16 round block cipher with the key size of 128 bit.
  372. See also:
  373. <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>
  374. config CRYPTO_SALSA20
  375. tristate "Salsa20 stream cipher algorithm (EXPERIMENTAL)"
  376. depends on EXPERIMENTAL
  377. select CRYPTO_BLKCIPHER
  378. help
  379. Salsa20 stream cipher algorithm.
  380. Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
  381. Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
  382. The Salsa20 stream cipher algorithm is designed by Daniel J.
  383. Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
  384. config CRYPTO_DEFLATE
  385. tristate "Deflate compression algorithm"
  386. select CRYPTO_ALGAPI
  387. select ZLIB_INFLATE
  388. select ZLIB_DEFLATE
  389. help
  390. This is the Deflate algorithm (RFC1951), specified for use in
  391. IPSec with the IPCOMP protocol (RFC3173, RFC2394).
  392. You will most probably want this if using IPSec.
  393. config CRYPTO_MICHAEL_MIC
  394. tristate "Michael MIC keyed digest algorithm"
  395. select CRYPTO_ALGAPI
  396. help
  397. Michael MIC is used for message integrity protection in TKIP
  398. (IEEE 802.11i). This algorithm is required for TKIP, but it
  399. should not be used for other purposes because of the weakness
  400. of the algorithm.
  401. config CRYPTO_CRC32C
  402. tristate "CRC32c CRC algorithm"
  403. select CRYPTO_ALGAPI
  404. select LIBCRC32C
  405. help
  406. Castagnoli, et al Cyclic Redundancy-Check Algorithm. Used
  407. by iSCSI for header and data digests and by others.
  408. See Castagnoli93. This implementation uses lib/libcrc32c.
  409. Module will be crc32c.
  410. config CRYPTO_CAMELLIA
  411. tristate "Camellia cipher algorithms"
  412. depends on CRYPTO
  413. select CRYPTO_ALGAPI
  414. help
  415. Camellia cipher algorithms module.
  416. Camellia is a symmetric key block cipher developed jointly
  417. at NTT and Mitsubishi Electric Corporation.
  418. The Camellia specifies three key sizes: 128, 192 and 256 bits.
  419. See also:
  420. <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
  421. config CRYPTO_TEST
  422. tristate "Testing module"
  423. depends on m
  424. select CRYPTO_ALGAPI
  425. help
  426. Quick & dirty crypto test module.
  427. config CRYPTO_AUTHENC
  428. tristate "Authenc support"
  429. select CRYPTO_AEAD
  430. select CRYPTO_MANAGER
  431. help
  432. Authenc: Combined mode wrapper for IPsec.
  433. This is required for IPSec.
  434. source "drivers/crypto/Kconfig"
  435. endif # if CRYPTO