Kconfig 31 KB

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