Kconfig 15 KB

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