Kconfig 13 KB

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