Kconfig 13 KB

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