Kconfig 13 KB

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