Kconfig 31 KB

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