Kconfig 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917
  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. tristate "Cryptographic API"
  15. help
  16. This option provides the core Cryptographic API.
  17. if CRYPTO
  18. comment "Crypto core or helper"
  19. config CRYPTO_FIPS
  20. bool "FIPS 200 compliance"
  21. depends on CRYPTO_ANSI_CPRNG && !CRYPTO_MANAGER_DISABLE_TESTS
  22. help
  23. This options enables the fips boot option which is
  24. required if you want to system to operate in a FIPS 200
  25. certification. You should say no unless you know what
  26. this is.
  27. config CRYPTO_ALGAPI
  28. tristate
  29. select CRYPTO_ALGAPI2
  30. help
  31. This option provides the API for cryptographic algorithms.
  32. config CRYPTO_ALGAPI2
  33. tristate
  34. config CRYPTO_AEAD
  35. tristate
  36. select CRYPTO_AEAD2
  37. select CRYPTO_ALGAPI
  38. config CRYPTO_AEAD2
  39. tristate
  40. select CRYPTO_ALGAPI2
  41. config CRYPTO_BLKCIPHER
  42. tristate
  43. select CRYPTO_BLKCIPHER2
  44. select CRYPTO_ALGAPI
  45. config CRYPTO_BLKCIPHER2
  46. tristate
  47. select CRYPTO_ALGAPI2
  48. select CRYPTO_RNG2
  49. select CRYPTO_WORKQUEUE
  50. config CRYPTO_HASH
  51. tristate
  52. select CRYPTO_HASH2
  53. select CRYPTO_ALGAPI
  54. config CRYPTO_HASH2
  55. tristate
  56. select CRYPTO_ALGAPI2
  57. config CRYPTO_RNG
  58. tristate
  59. select CRYPTO_RNG2
  60. select CRYPTO_ALGAPI
  61. config CRYPTO_RNG2
  62. tristate
  63. select CRYPTO_ALGAPI2
  64. config CRYPTO_PCOMP
  65. tristate
  66. select CRYPTO_PCOMP2
  67. select CRYPTO_ALGAPI
  68. config CRYPTO_PCOMP2
  69. tristate
  70. select CRYPTO_ALGAPI2
  71. config CRYPTO_MANAGER
  72. tristate "Cryptographic algorithm manager"
  73. select CRYPTO_MANAGER2
  74. help
  75. Create default cryptographic template instantiations such as
  76. cbc(aes).
  77. config CRYPTO_MANAGER2
  78. def_tristate CRYPTO_MANAGER || (CRYPTO_MANAGER!=n && CRYPTO_ALGAPI=y)
  79. select CRYPTO_AEAD2
  80. select CRYPTO_HASH2
  81. select CRYPTO_BLKCIPHER2
  82. select CRYPTO_PCOMP2
  83. config CRYPTO_MANAGER_DISABLE_TESTS
  84. bool "Disable run-time self tests"
  85. default y
  86. depends on CRYPTO_MANAGER2
  87. help
  88. Disable run-time self tests that normally take place at
  89. algorithm registration.
  90. config CRYPTO_GF128MUL
  91. tristate "GF(2^128) multiplication functions (EXPERIMENTAL)"
  92. help
  93. Efficient table driven implementation of multiplications in the
  94. field GF(2^128). This is needed by some cypher modes. This
  95. option will be selected automatically if you select such a
  96. cipher mode. Only select this option by hand if you expect to load
  97. an external module that requires these functions.
  98. config CRYPTO_NULL
  99. tristate "Null algorithms"
  100. select CRYPTO_ALGAPI
  101. select CRYPTO_BLKCIPHER
  102. select CRYPTO_HASH
  103. help
  104. These are 'Null' algorithms, used by IPsec, which do nothing.
  105. config CRYPTO_PCRYPT
  106. tristate "Parallel crypto engine (EXPERIMENTAL)"
  107. depends on SMP && EXPERIMENTAL
  108. select PADATA
  109. select CRYPTO_MANAGER
  110. select CRYPTO_AEAD
  111. help
  112. This converts an arbitrary crypto algorithm into a parallel
  113. algorithm that executes in kernel threads.
  114. config CRYPTO_WORKQUEUE
  115. tristate
  116. config CRYPTO_CRYPTD
  117. tristate "Software async crypto daemon"
  118. select CRYPTO_BLKCIPHER
  119. select CRYPTO_HASH
  120. select CRYPTO_MANAGER
  121. select CRYPTO_WORKQUEUE
  122. help
  123. This is a generic software asynchronous crypto daemon that
  124. converts an arbitrary synchronous software crypto algorithm
  125. into an asynchronous algorithm that executes in a kernel thread.
  126. config CRYPTO_AUTHENC
  127. tristate "Authenc support"
  128. select CRYPTO_AEAD
  129. select CRYPTO_BLKCIPHER
  130. select CRYPTO_MANAGER
  131. select CRYPTO_HASH
  132. help
  133. Authenc: Combined mode wrapper for IPsec.
  134. This is required for IPSec.
  135. config CRYPTO_TEST
  136. tristate "Testing module"
  137. depends on m
  138. select CRYPTO_MANAGER
  139. help
  140. Quick & dirty crypto test module.
  141. comment "Authenticated Encryption with Associated Data"
  142. config CRYPTO_CCM
  143. tristate "CCM support"
  144. select CRYPTO_CTR
  145. select CRYPTO_AEAD
  146. help
  147. Support for Counter with CBC MAC. Required for IPsec.
  148. config CRYPTO_GCM
  149. tristate "GCM/GMAC support"
  150. select CRYPTO_CTR
  151. select CRYPTO_AEAD
  152. select CRYPTO_GHASH
  153. help
  154. Support for Galois/Counter Mode (GCM) and Galois Message
  155. Authentication Code (GMAC). Required for IPSec.
  156. config CRYPTO_SEQIV
  157. tristate "Sequence Number IV Generator"
  158. select CRYPTO_AEAD
  159. select CRYPTO_BLKCIPHER
  160. select CRYPTO_RNG
  161. help
  162. This IV generator generates an IV based on a sequence number by
  163. xoring it with a salt. This algorithm is mainly useful for CTR
  164. comment "Block modes"
  165. config CRYPTO_CBC
  166. tristate "CBC support"
  167. select CRYPTO_BLKCIPHER
  168. select CRYPTO_MANAGER
  169. help
  170. CBC: Cipher Block Chaining mode
  171. This block cipher algorithm is required for IPSec.
  172. config CRYPTO_CTR
  173. tristate "CTR support"
  174. select CRYPTO_BLKCIPHER
  175. select CRYPTO_SEQIV
  176. select CRYPTO_MANAGER
  177. help
  178. CTR: Counter mode
  179. This block cipher algorithm is required for IPSec.
  180. config CRYPTO_CTS
  181. tristate "CTS support"
  182. select CRYPTO_BLKCIPHER
  183. help
  184. CTS: Cipher Text Stealing
  185. This is the Cipher Text Stealing mode as described by
  186. Section 8 of rfc2040 and referenced by rfc3962.
  187. (rfc3962 includes errata information in its Appendix A)
  188. This mode is required for Kerberos gss mechanism support
  189. for AES encryption.
  190. config CRYPTO_ECB
  191. tristate "ECB support"
  192. select CRYPTO_BLKCIPHER
  193. select CRYPTO_MANAGER
  194. help
  195. ECB: Electronic CodeBook mode
  196. This is the simplest block cipher algorithm. It simply encrypts
  197. the input block by block.
  198. config CRYPTO_LRW
  199. tristate "LRW support (EXPERIMENTAL)"
  200. depends on EXPERIMENTAL
  201. select CRYPTO_BLKCIPHER
  202. select CRYPTO_MANAGER
  203. select CRYPTO_GF128MUL
  204. help
  205. LRW: Liskov Rivest Wagner, a tweakable, non malleable, non movable
  206. narrow block cipher mode for dm-crypt. Use it with cipher
  207. specification string aes-lrw-benbi, the key must be 256, 320 or 384.
  208. The first 128, 192 or 256 bits in the key are used for AES and the
  209. rest is used to tie each cipher block to its logical position.
  210. config CRYPTO_PCBC
  211. tristate "PCBC support"
  212. select CRYPTO_BLKCIPHER
  213. select CRYPTO_MANAGER
  214. help
  215. PCBC: Propagating Cipher Block Chaining mode
  216. This block cipher algorithm is required for RxRPC.
  217. config CRYPTO_XTS
  218. tristate "XTS support (EXPERIMENTAL)"
  219. depends on EXPERIMENTAL
  220. select CRYPTO_BLKCIPHER
  221. select CRYPTO_MANAGER
  222. select CRYPTO_GF128MUL
  223. help
  224. XTS: IEEE1619/D16 narrow block cipher use with aes-xts-plain,
  225. key size 256, 384 or 512 bits. This implementation currently
  226. can't handle a sectorsize which is not a multiple of 16 bytes.
  227. comment "Hash modes"
  228. config CRYPTO_HMAC
  229. tristate "HMAC support"
  230. select CRYPTO_HASH
  231. select CRYPTO_MANAGER
  232. help
  233. HMAC: Keyed-Hashing for Message Authentication (RFC2104).
  234. This is required for IPSec.
  235. config CRYPTO_XCBC
  236. tristate "XCBC support"
  237. depends on EXPERIMENTAL
  238. select CRYPTO_HASH
  239. select CRYPTO_MANAGER
  240. help
  241. XCBC: Keyed-Hashing with encryption algorithm
  242. http://www.ietf.org/rfc/rfc3566.txt
  243. http://csrc.nist.gov/encryption/modes/proposedmodes/
  244. xcbc-mac/xcbc-mac-spec.pdf
  245. config CRYPTO_VMAC
  246. tristate "VMAC support"
  247. depends on EXPERIMENTAL
  248. select CRYPTO_HASH
  249. select CRYPTO_MANAGER
  250. help
  251. VMAC is a message authentication algorithm designed for
  252. very high speed on 64-bit architectures.
  253. See also:
  254. <http://fastcrypto.org/vmac>
  255. comment "Digest"
  256. config CRYPTO_CRC32C
  257. tristate "CRC32c CRC algorithm"
  258. select CRYPTO_HASH
  259. help
  260. Castagnoli, et al Cyclic Redundancy-Check Algorithm. Used
  261. by iSCSI for header and data digests and by others.
  262. See Castagnoli93. Module will be crc32c.
  263. config CRYPTO_CRC32C_INTEL
  264. tristate "CRC32c INTEL hardware acceleration"
  265. depends on X86
  266. select CRYPTO_HASH
  267. help
  268. In Intel processor with SSE4.2 supported, the processor will
  269. support CRC32C implementation using hardware accelerated CRC32
  270. instruction. This option will create 'crc32c-intel' module,
  271. which will enable any routine to use the CRC32 instruction to
  272. gain performance compared with software implementation.
  273. Module will be crc32c-intel.
  274. config CRYPTO_GHASH
  275. tristate "GHASH digest algorithm"
  276. select CRYPTO_SHASH
  277. select CRYPTO_GF128MUL
  278. help
  279. GHASH is message digest algorithm for GCM (Galois/Counter Mode).
  280. config CRYPTO_MD4
  281. tristate "MD4 digest algorithm"
  282. select CRYPTO_HASH
  283. help
  284. MD4 message digest algorithm (RFC1320).
  285. config CRYPTO_MD5
  286. tristate "MD5 digest algorithm"
  287. select CRYPTO_HASH
  288. help
  289. MD5 message digest algorithm (RFC1321).
  290. config CRYPTO_MICHAEL_MIC
  291. tristate "Michael MIC keyed digest algorithm"
  292. select CRYPTO_HASH
  293. help
  294. Michael MIC is used for message integrity protection in TKIP
  295. (IEEE 802.11i). This algorithm is required for TKIP, but it
  296. should not be used for other purposes because of the weakness
  297. of the algorithm.
  298. config CRYPTO_RMD128
  299. tristate "RIPEMD-128 digest algorithm"
  300. select CRYPTO_HASH
  301. help
  302. RIPEMD-128 (ISO/IEC 10118-3:2004).
  303. RIPEMD-128 is a 128-bit cryptographic hash function. It should only
  304. be used as a secure replacement for RIPEMD. For other use cases,
  305. RIPEMD-160 should be used.
  306. Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
  307. See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
  308. config CRYPTO_RMD160
  309. tristate "RIPEMD-160 digest algorithm"
  310. select CRYPTO_HASH
  311. help
  312. RIPEMD-160 (ISO/IEC 10118-3:2004).
  313. RIPEMD-160 is a 160-bit cryptographic hash function. It is intended
  314. to be used as a secure replacement for the 128-bit hash functions
  315. MD4, MD5 and it's predecessor RIPEMD
  316. (not to be confused with RIPEMD-128).
  317. It's speed is comparable to SHA1 and there are no known attacks
  318. against RIPEMD-160.
  319. Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
  320. See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
  321. config CRYPTO_RMD256
  322. tristate "RIPEMD-256 digest algorithm"
  323. select CRYPTO_HASH
  324. help
  325. RIPEMD-256 is an optional extension of RIPEMD-128 with a
  326. 256 bit hash. It is intended for applications that require
  327. longer hash-results, without needing a larger security level
  328. (than RIPEMD-128).
  329. Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
  330. See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
  331. config CRYPTO_RMD320
  332. tristate "RIPEMD-320 digest algorithm"
  333. select CRYPTO_HASH
  334. help
  335. RIPEMD-320 is an optional extension of RIPEMD-160 with a
  336. 320 bit hash. It is intended for applications that require
  337. longer hash-results, without needing a larger security level
  338. (than RIPEMD-160).
  339. Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
  340. See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
  341. config CRYPTO_SHA1
  342. tristate "SHA1 digest algorithm"
  343. select CRYPTO_HASH
  344. help
  345. SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
  346. config CRYPTO_SHA1_SSSE3
  347. tristate "SHA1 digest algorithm (SSSE3/AVX)"
  348. depends on X86 && 64BIT
  349. select CRYPTO_SHA1
  350. select CRYPTO_HASH
  351. help
  352. SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
  353. using Supplemental SSE3 (SSSE3) instructions or Advanced Vector
  354. Extensions (AVX), when available.
  355. config CRYPTO_SHA256
  356. tristate "SHA224 and SHA256 digest algorithm"
  357. select CRYPTO_HASH
  358. help
  359. SHA256 secure hash standard (DFIPS 180-2).
  360. This version of SHA implements a 256 bit hash with 128 bits of
  361. security against collision attacks.
  362. This code also includes SHA-224, a 224 bit hash with 112 bits
  363. of security against collision attacks.
  364. config CRYPTO_SHA512
  365. tristate "SHA384 and SHA512 digest algorithms"
  366. select CRYPTO_HASH
  367. help
  368. SHA512 secure hash standard (DFIPS 180-2).
  369. This version of SHA implements a 512 bit hash with 256 bits of
  370. security against collision attacks.
  371. This code also includes SHA-384, a 384 bit hash with 192 bits
  372. of security against collision attacks.
  373. config CRYPTO_TGR192
  374. tristate "Tiger digest algorithms"
  375. select CRYPTO_HASH
  376. help
  377. Tiger hash algorithm 192, 160 and 128-bit hashes
  378. Tiger is a hash function optimized for 64-bit processors while
  379. still having decent performance on 32-bit processors.
  380. Tiger was developed by Ross Anderson and Eli Biham.
  381. See also:
  382. <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>.
  383. config CRYPTO_WP512
  384. tristate "Whirlpool digest algorithms"
  385. select CRYPTO_HASH
  386. help
  387. Whirlpool hash algorithm 512, 384 and 256-bit hashes
  388. Whirlpool-512 is part of the NESSIE cryptographic primitives.
  389. Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard
  390. See also:
  391. <http://www.larc.usp.br/~pbarreto/WhirlpoolPage.html>
  392. config CRYPTO_GHASH_CLMUL_NI_INTEL
  393. tristate "GHASH digest algorithm (CLMUL-NI accelerated)"
  394. depends on X86 && 64BIT
  395. select CRYPTO_SHASH
  396. select CRYPTO_CRYPTD
  397. help
  398. GHASH is message digest algorithm for GCM (Galois/Counter Mode).
  399. The implementation is accelerated by CLMUL-NI of Intel.
  400. comment "Ciphers"
  401. config CRYPTO_AES
  402. tristate "AES cipher algorithms"
  403. select CRYPTO_ALGAPI
  404. help
  405. AES cipher algorithms (FIPS-197). AES uses the Rijndael
  406. algorithm.
  407. Rijndael appears to be consistently a very good performer in
  408. both hardware and software across a wide range of computing
  409. environments regardless of its use in feedback or non-feedback
  410. modes. Its key setup time is excellent, and its key agility is
  411. good. Rijndael's very low memory requirements make it very well
  412. suited for restricted-space environments, in which it also
  413. demonstrates excellent performance. Rijndael's operations are
  414. among the easiest to defend against power and timing attacks.
  415. The AES specifies three key sizes: 128, 192 and 256 bits
  416. See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information.
  417. config CRYPTO_AES_586
  418. tristate "AES cipher algorithms (i586)"
  419. depends on (X86 || UML_X86) && !64BIT
  420. select CRYPTO_ALGAPI
  421. select CRYPTO_AES
  422. help
  423. AES cipher algorithms (FIPS-197). AES uses the Rijndael
  424. algorithm.
  425. Rijndael appears to be consistently a very good performer in
  426. both hardware and software across a wide range of computing
  427. environments regardless of its use in feedback or non-feedback
  428. modes. Its key setup time is excellent, and its key agility is
  429. good. Rijndael's very low memory requirements make it very well
  430. suited for restricted-space environments, in which it also
  431. demonstrates excellent performance. Rijndael's operations are
  432. among the easiest to defend against power and timing attacks.
  433. The AES specifies three key sizes: 128, 192 and 256 bits
  434. See <http://csrc.nist.gov/encryption/aes/> for more information.
  435. config CRYPTO_AES_X86_64
  436. tristate "AES cipher algorithms (x86_64)"
  437. depends on (X86 || UML_X86) && 64BIT
  438. select CRYPTO_ALGAPI
  439. select CRYPTO_AES
  440. help
  441. AES cipher algorithms (FIPS-197). AES uses the Rijndael
  442. algorithm.
  443. Rijndael appears to be consistently a very good performer in
  444. both hardware and software across a wide range of computing
  445. environments regardless of its use in feedback or non-feedback
  446. modes. Its key setup time is excellent, and its key agility is
  447. good. Rijndael's very low memory requirements make it very well
  448. suited for restricted-space environments, in which it also
  449. demonstrates excellent performance. Rijndael's operations are
  450. among the easiest to defend against power and timing attacks.
  451. The AES specifies three key sizes: 128, 192 and 256 bits
  452. See <http://csrc.nist.gov/encryption/aes/> for more information.
  453. config CRYPTO_AES_NI_INTEL
  454. tristate "AES cipher algorithms (AES-NI)"
  455. depends on X86
  456. select CRYPTO_AES_X86_64 if 64BIT
  457. select CRYPTO_AES_586 if !64BIT
  458. select CRYPTO_CRYPTD
  459. select CRYPTO_ALGAPI
  460. help
  461. Use Intel AES-NI instructions for AES algorithm.
  462. AES cipher algorithms (FIPS-197). AES uses the Rijndael
  463. algorithm.
  464. Rijndael appears to be consistently a very good performer in
  465. both hardware and software across a wide range of computing
  466. environments regardless of its use in feedback or non-feedback
  467. modes. Its key setup time is excellent, and its key agility is
  468. good. Rijndael's very low memory requirements make it very well
  469. suited for restricted-space environments, in which it also
  470. demonstrates excellent performance. Rijndael's operations are
  471. among the easiest to defend against power and timing attacks.
  472. The AES specifies three key sizes: 128, 192 and 256 bits
  473. See <http://csrc.nist.gov/encryption/aes/> for more information.
  474. In addition to AES cipher algorithm support, the acceleration
  475. for some popular block cipher mode is supported too, including
  476. ECB, CBC, LRW, PCBC, XTS. The 64 bit version has additional
  477. acceleration for CTR.
  478. config CRYPTO_ANUBIS
  479. tristate "Anubis cipher algorithm"
  480. select CRYPTO_ALGAPI
  481. help
  482. Anubis cipher algorithm.
  483. Anubis is a variable key length cipher which can use keys from
  484. 128 bits to 320 bits in length. It was evaluated as a entrant
  485. in the NESSIE competition.
  486. See also:
  487. <https://www.cosic.esat.kuleuven.be/nessie/reports/>
  488. <http://www.larc.usp.br/~pbarreto/AnubisPage.html>
  489. config CRYPTO_ARC4
  490. tristate "ARC4 cipher algorithm"
  491. select CRYPTO_ALGAPI
  492. help
  493. ARC4 cipher algorithm.
  494. ARC4 is a stream cipher using keys ranging from 8 bits to 2048
  495. bits in length. This algorithm is required for driver-based
  496. WEP, but it should not be for other purposes because of the
  497. weakness of the algorithm.
  498. config CRYPTO_BLOWFISH
  499. tristate "Blowfish cipher algorithm"
  500. select CRYPTO_ALGAPI
  501. select CRYPTO_BLOWFISH_COMMON
  502. help
  503. Blowfish cipher algorithm, by Bruce Schneier.
  504. This is a variable key length cipher which can use keys from 32
  505. bits to 448 bits in length. It's fast, simple and specifically
  506. designed for use on "large microprocessors".
  507. See also:
  508. <http://www.schneier.com/blowfish.html>
  509. config CRYPTO_BLOWFISH_COMMON
  510. tristate
  511. help
  512. Common parts of the Blowfish cipher algorithm shared by the
  513. generic c and the assembler implementations.
  514. See also:
  515. <http://www.schneier.com/blowfish.html>
  516. config CRYPTO_BLOWFISH_X86_64
  517. tristate "Blowfish cipher algorithm (x86_64)"
  518. depends on (X86 || UML_X86) && 64BIT
  519. select CRYPTO_ALGAPI
  520. select CRYPTO_BLOWFISH_COMMON
  521. help
  522. Blowfish cipher algorithm (x86_64), by Bruce Schneier.
  523. This is a variable key length cipher which can use keys from 32
  524. bits to 448 bits in length. It's fast, simple and specifically
  525. designed for use on "large microprocessors".
  526. See also:
  527. <http://www.schneier.com/blowfish.html>
  528. config CRYPTO_CAMELLIA
  529. tristate "Camellia cipher algorithms"
  530. depends on CRYPTO
  531. select CRYPTO_ALGAPI
  532. help
  533. Camellia cipher algorithms module.
  534. Camellia is a symmetric key block cipher developed jointly
  535. at NTT and Mitsubishi Electric Corporation.
  536. The Camellia specifies three key sizes: 128, 192 and 256 bits.
  537. See also:
  538. <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
  539. config CRYPTO_CAST5
  540. tristate "CAST5 (CAST-128) cipher algorithm"
  541. select CRYPTO_ALGAPI
  542. help
  543. The CAST5 encryption algorithm (synonymous with CAST-128) is
  544. described in RFC2144.
  545. config CRYPTO_CAST6
  546. tristate "CAST6 (CAST-256) cipher algorithm"
  547. select CRYPTO_ALGAPI
  548. help
  549. The CAST6 encryption algorithm (synonymous with CAST-256) is
  550. described in RFC2612.
  551. config CRYPTO_DES
  552. tristate "DES and Triple DES EDE cipher algorithms"
  553. select CRYPTO_ALGAPI
  554. help
  555. DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
  556. config CRYPTO_FCRYPT
  557. tristate "FCrypt cipher algorithm"
  558. select CRYPTO_ALGAPI
  559. select CRYPTO_BLKCIPHER
  560. help
  561. FCrypt algorithm used by RxRPC.
  562. config CRYPTO_KHAZAD
  563. tristate "Khazad cipher algorithm"
  564. select CRYPTO_ALGAPI
  565. help
  566. Khazad cipher algorithm.
  567. Khazad was a finalist in the initial NESSIE competition. It is
  568. an algorithm optimized for 64-bit processors with good performance
  569. on 32-bit processors. Khazad uses an 128 bit key size.
  570. See also:
  571. <http://www.larc.usp.br/~pbarreto/KhazadPage.html>
  572. config CRYPTO_SALSA20
  573. tristate "Salsa20 stream cipher algorithm (EXPERIMENTAL)"
  574. depends on EXPERIMENTAL
  575. select CRYPTO_BLKCIPHER
  576. help
  577. Salsa20 stream cipher algorithm.
  578. Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
  579. Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
  580. The Salsa20 stream cipher algorithm is designed by Daniel J.
  581. Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
  582. config CRYPTO_SALSA20_586
  583. tristate "Salsa20 stream cipher algorithm (i586) (EXPERIMENTAL)"
  584. depends on (X86 || UML_X86) && !64BIT
  585. depends on EXPERIMENTAL
  586. select CRYPTO_BLKCIPHER
  587. help
  588. Salsa20 stream cipher algorithm.
  589. Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
  590. Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
  591. The Salsa20 stream cipher algorithm is designed by Daniel J.
  592. Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
  593. config CRYPTO_SALSA20_X86_64
  594. tristate "Salsa20 stream cipher algorithm (x86_64) (EXPERIMENTAL)"
  595. depends on (X86 || UML_X86) && 64BIT
  596. depends on EXPERIMENTAL
  597. select CRYPTO_BLKCIPHER
  598. help
  599. Salsa20 stream cipher algorithm.
  600. Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
  601. Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
  602. The Salsa20 stream cipher algorithm is designed by Daniel J.
  603. Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
  604. config CRYPTO_SEED
  605. tristate "SEED cipher algorithm"
  606. select CRYPTO_ALGAPI
  607. help
  608. SEED cipher algorithm (RFC4269).
  609. SEED is a 128-bit symmetric key block cipher that has been
  610. developed by KISA (Korea Information Security Agency) as a
  611. national standard encryption algorithm of the Republic of Korea.
  612. It is a 16 round block cipher with the key size of 128 bit.
  613. See also:
  614. <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>
  615. config CRYPTO_SERPENT
  616. tristate "Serpent cipher algorithm"
  617. select CRYPTO_ALGAPI
  618. help
  619. Serpent cipher algorithm, by Anderson, Biham & Knudsen.
  620. Keys are allowed to be from 0 to 256 bits in length, in steps
  621. of 8 bits. Also includes the 'Tnepres' algorithm, a reversed
  622. variant of Serpent for compatibility with old kerneli.org code.
  623. See also:
  624. <http://www.cl.cam.ac.uk/~rja14/serpent.html>
  625. config CRYPTO_TEA
  626. tristate "TEA, XTEA and XETA cipher algorithms"
  627. select CRYPTO_ALGAPI
  628. help
  629. TEA cipher algorithm.
  630. Tiny Encryption Algorithm is a simple cipher that uses
  631. many rounds for security. It is very fast and uses
  632. little memory.
  633. Xtendend Tiny Encryption Algorithm is a modification to
  634. the TEA algorithm to address a potential key weakness
  635. in the TEA algorithm.
  636. Xtendend Encryption Tiny Algorithm is a mis-implementation
  637. of the XTEA algorithm for compatibility purposes.
  638. config CRYPTO_TWOFISH
  639. tristate "Twofish cipher algorithm"
  640. select CRYPTO_ALGAPI
  641. select CRYPTO_TWOFISH_COMMON
  642. help
  643. Twofish cipher algorithm.
  644. Twofish was submitted as an AES (Advanced Encryption Standard)
  645. candidate cipher by researchers at CounterPane Systems. It is a
  646. 16 round block cipher supporting key sizes of 128, 192, and 256
  647. bits.
  648. See also:
  649. <http://www.schneier.com/twofish.html>
  650. config CRYPTO_TWOFISH_COMMON
  651. tristate
  652. help
  653. Common parts of the Twofish cipher algorithm shared by the
  654. generic c and the assembler implementations.
  655. config CRYPTO_TWOFISH_586
  656. tristate "Twofish cipher algorithms (i586)"
  657. depends on (X86 || UML_X86) && !64BIT
  658. select CRYPTO_ALGAPI
  659. select CRYPTO_TWOFISH_COMMON
  660. help
  661. Twofish cipher algorithm.
  662. Twofish was submitted as an AES (Advanced Encryption Standard)
  663. candidate cipher by researchers at CounterPane Systems. It is a
  664. 16 round block cipher supporting key sizes of 128, 192, and 256
  665. bits.
  666. See also:
  667. <http://www.schneier.com/twofish.html>
  668. config CRYPTO_TWOFISH_X86_64
  669. tristate "Twofish cipher algorithm (x86_64)"
  670. depends on (X86 || UML_X86) && 64BIT
  671. select CRYPTO_ALGAPI
  672. select CRYPTO_TWOFISH_COMMON
  673. help
  674. Twofish cipher algorithm (x86_64).
  675. Twofish was submitted as an AES (Advanced Encryption Standard)
  676. candidate cipher by researchers at CounterPane Systems. It is a
  677. 16 round block cipher supporting key sizes of 128, 192, and 256
  678. bits.
  679. See also:
  680. <http://www.schneier.com/twofish.html>
  681. config CRYPTO_TWOFISH_X86_64_3WAY
  682. tristate "Twofish cipher algorithm (x86_64, 3-way parallel)"
  683. depends on (X86 || UML_X86) && 64BIT
  684. select CRYPTO_ALGAPI
  685. select CRYPTO_TWOFISH_COMMON
  686. select CRYPTO_TWOFISH_X86_64
  687. help
  688. Twofish cipher algorithm (x86_64, 3-way parallel).
  689. Twofish was submitted as an AES (Advanced Encryption Standard)
  690. candidate cipher by researchers at CounterPane Systems. It is a
  691. 16 round block cipher supporting key sizes of 128, 192, and 256
  692. bits.
  693. This module provides Twofish cipher algorithm that processes three
  694. blocks parallel, utilizing resources of out-of-order CPUs better.
  695. See also:
  696. <http://www.schneier.com/twofish.html>
  697. comment "Compression"
  698. config CRYPTO_DEFLATE
  699. tristate "Deflate compression algorithm"
  700. select CRYPTO_ALGAPI
  701. select ZLIB_INFLATE
  702. select ZLIB_DEFLATE
  703. help
  704. This is the Deflate algorithm (RFC1951), specified for use in
  705. IPSec with the IPCOMP protocol (RFC3173, RFC2394).
  706. You will most probably want this if using IPSec.
  707. config CRYPTO_ZLIB
  708. tristate "Zlib compression algorithm"
  709. select CRYPTO_PCOMP
  710. select ZLIB_INFLATE
  711. select ZLIB_DEFLATE
  712. select NLATTR
  713. help
  714. This is the zlib algorithm.
  715. config CRYPTO_LZO
  716. tristate "LZO compression algorithm"
  717. select CRYPTO_ALGAPI
  718. select LZO_COMPRESS
  719. select LZO_DECOMPRESS
  720. help
  721. This is the LZO algorithm.
  722. comment "Random Number Generation"
  723. config CRYPTO_ANSI_CPRNG
  724. tristate "Pseudo Random Number Generation for Cryptographic modules"
  725. default m
  726. select CRYPTO_AES
  727. select CRYPTO_RNG
  728. help
  729. This option enables the generic pseudo random number generator
  730. for cryptographic modules. Uses the Algorithm specified in
  731. ANSI X9.31 A.2.4. Note that this option must be enabled if
  732. CRYPTO_FIPS is selected
  733. config CRYPTO_USER_API
  734. tristate
  735. config CRYPTO_USER_API_HASH
  736. tristate "User-space interface for hash algorithms"
  737. depends on NET
  738. select CRYPTO_HASH
  739. select CRYPTO_USER_API
  740. help
  741. This option enables the user-spaces interface for hash
  742. algorithms.
  743. config CRYPTO_USER_API_SKCIPHER
  744. tristate "User-space interface for symmetric key cipher algorithms"
  745. depends on NET
  746. select CRYPTO_BLKCIPHER
  747. select CRYPTO_USER_API
  748. help
  749. This option enables the user-spaces interface for symmetric
  750. key cipher algorithms.
  751. source "drivers/crypto/Kconfig"
  752. endif # if CRYPTO