Kconfig 13 KB

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