Kconfig 27 KB

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