Kconfig 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221
  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_SHA1_ARM
  393. tristate "SHA1 digest algorithm (ARM-asm)"
  394. depends on ARM
  395. select CRYPTO_SHA1
  396. select CRYPTO_HASH
  397. help
  398. SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
  399. using optimized ARM assembler.
  400. config CRYPTO_SHA256
  401. tristate "SHA224 and SHA256 digest algorithm"
  402. select CRYPTO_HASH
  403. help
  404. SHA256 secure hash standard (DFIPS 180-2).
  405. This version of SHA implements a 256 bit hash with 128 bits of
  406. security against collision attacks.
  407. This code also includes SHA-224, a 224 bit hash with 112 bits
  408. of security against collision attacks.
  409. config CRYPTO_SHA256_SPARC64
  410. tristate "SHA224 and SHA256 digest algorithm (SPARC64)"
  411. depends on SPARC64
  412. select CRYPTO_SHA256
  413. select CRYPTO_HASH
  414. help
  415. SHA-256 secure hash standard (DFIPS 180-2) implemented
  416. using sparc64 crypto instructions, when available.
  417. config CRYPTO_SHA512
  418. tristate "SHA384 and SHA512 digest algorithms"
  419. select CRYPTO_HASH
  420. help
  421. SHA512 secure hash standard (DFIPS 180-2).
  422. This version of SHA implements a 512 bit hash with 256 bits of
  423. security against collision attacks.
  424. This code also includes SHA-384, a 384 bit hash with 192 bits
  425. of security against collision attacks.
  426. config CRYPTO_SHA512_SPARC64
  427. tristate "SHA384 and SHA512 digest algorithm (SPARC64)"
  428. depends on SPARC64
  429. select CRYPTO_SHA512
  430. select CRYPTO_HASH
  431. help
  432. SHA-512 secure hash standard (DFIPS 180-2) implemented
  433. using sparc64 crypto instructions, when available.
  434. config CRYPTO_TGR192
  435. tristate "Tiger digest algorithms"
  436. select CRYPTO_HASH
  437. help
  438. Tiger hash algorithm 192, 160 and 128-bit hashes
  439. Tiger is a hash function optimized for 64-bit processors while
  440. still having decent performance on 32-bit processors.
  441. Tiger was developed by Ross Anderson and Eli Biham.
  442. See also:
  443. <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>.
  444. config CRYPTO_WP512
  445. tristate "Whirlpool digest algorithms"
  446. select CRYPTO_HASH
  447. help
  448. Whirlpool hash algorithm 512, 384 and 256-bit hashes
  449. Whirlpool-512 is part of the NESSIE cryptographic primitives.
  450. Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard
  451. See also:
  452. <http://www.larc.usp.br/~pbarreto/WhirlpoolPage.html>
  453. config CRYPTO_GHASH_CLMUL_NI_INTEL
  454. tristate "GHASH digest algorithm (CLMUL-NI accelerated)"
  455. depends on X86 && 64BIT
  456. select CRYPTO_CRYPTD
  457. help
  458. GHASH is message digest algorithm for GCM (Galois/Counter Mode).
  459. The implementation is accelerated by CLMUL-NI of Intel.
  460. comment "Ciphers"
  461. config CRYPTO_AES
  462. tristate "AES cipher algorithms"
  463. select CRYPTO_ALGAPI
  464. help
  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/CryptoToolkit/aes/> for more information.
  477. config CRYPTO_AES_586
  478. tristate "AES cipher algorithms (i586)"
  479. depends on (X86 || UML_X86) && !64BIT
  480. select CRYPTO_ALGAPI
  481. select CRYPTO_AES
  482. help
  483. AES cipher algorithms (FIPS-197). AES uses the Rijndael
  484. algorithm.
  485. Rijndael appears to be consistently a very good performer in
  486. both hardware and software across a wide range of computing
  487. environments regardless of its use in feedback or non-feedback
  488. modes. Its key setup time is excellent, and its key agility is
  489. good. Rijndael's very low memory requirements make it very well
  490. suited for restricted-space environments, in which it also
  491. demonstrates excellent performance. Rijndael's operations are
  492. among the easiest to defend against power and timing attacks.
  493. The AES specifies three key sizes: 128, 192 and 256 bits
  494. See <http://csrc.nist.gov/encryption/aes/> for more information.
  495. config CRYPTO_AES_X86_64
  496. tristate "AES cipher algorithms (x86_64)"
  497. depends on (X86 || UML_X86) && 64BIT
  498. select CRYPTO_ALGAPI
  499. select CRYPTO_AES
  500. help
  501. AES cipher algorithms (FIPS-197). AES uses the Rijndael
  502. algorithm.
  503. Rijndael appears to be consistently a very good performer in
  504. both hardware and software across a wide range of computing
  505. environments regardless of its use in feedback or non-feedback
  506. modes. Its key setup time is excellent, and its key agility is
  507. good. Rijndael's very low memory requirements make it very well
  508. suited for restricted-space environments, in which it also
  509. demonstrates excellent performance. Rijndael's operations are
  510. among the easiest to defend against power and timing attacks.
  511. The AES specifies three key sizes: 128, 192 and 256 bits
  512. See <http://csrc.nist.gov/encryption/aes/> for more information.
  513. config CRYPTO_AES_NI_INTEL
  514. tristate "AES cipher algorithms (AES-NI)"
  515. depends on X86
  516. select CRYPTO_AES_X86_64 if 64BIT
  517. select CRYPTO_AES_586 if !64BIT
  518. select CRYPTO_CRYPTD
  519. select CRYPTO_ABLK_HELPER_X86
  520. select CRYPTO_ALGAPI
  521. select CRYPTO_LRW
  522. select CRYPTO_XTS
  523. help
  524. Use Intel AES-NI instructions for AES algorithm.
  525. AES cipher algorithms (FIPS-197). AES uses the Rijndael
  526. algorithm.
  527. Rijndael appears to be consistently a very good performer in
  528. both hardware and software across a wide range of computing
  529. environments regardless of its use in feedback or non-feedback
  530. modes. Its key setup time is excellent, and its key agility is
  531. good. Rijndael's very low memory requirements make it very well
  532. suited for restricted-space environments, in which it also
  533. demonstrates excellent performance. Rijndael's operations are
  534. among the easiest to defend against power and timing attacks.
  535. The AES specifies three key sizes: 128, 192 and 256 bits
  536. See <http://csrc.nist.gov/encryption/aes/> for more information.
  537. In addition to AES cipher algorithm support, the acceleration
  538. for some popular block cipher mode is supported too, including
  539. ECB, CBC, LRW, PCBC, XTS. The 64 bit version has additional
  540. acceleration for CTR.
  541. config CRYPTO_AES_SPARC64
  542. tristate "AES cipher algorithms (SPARC64)"
  543. depends on SPARC64
  544. select CRYPTO_CRYPTD
  545. select CRYPTO_ALGAPI
  546. help
  547. Use SPARC64 crypto opcodes for AES algorithm.
  548. AES cipher algorithms (FIPS-197). AES uses the Rijndael
  549. algorithm.
  550. Rijndael appears to be consistently a very good performer in
  551. both hardware and software across a wide range of computing
  552. environments regardless of its use in feedback or non-feedback
  553. modes. Its key setup time is excellent, and its key agility is
  554. good. Rijndael's very low memory requirements make it very well
  555. suited for restricted-space environments, in which it also
  556. demonstrates excellent performance. Rijndael's operations are
  557. among the easiest to defend against power and timing attacks.
  558. The AES specifies three key sizes: 128, 192 and 256 bits
  559. See <http://csrc.nist.gov/encryption/aes/> for more information.
  560. In addition to AES cipher algorithm support, the acceleration
  561. for some popular block cipher mode is supported too, including
  562. ECB and CBC.
  563. config CRYPTO_AES_ARM
  564. tristate "AES cipher algorithms (ARM-asm)"
  565. depends on ARM
  566. select CRYPTO_ALGAPI
  567. select CRYPTO_AES
  568. help
  569. Use optimized AES assembler routines for ARM platforms.
  570. AES cipher algorithms (FIPS-197). AES uses the Rijndael
  571. algorithm.
  572. Rijndael appears to be consistently a very good performer in
  573. both hardware and software across a wide range of computing
  574. environments regardless of its use in feedback or non-feedback
  575. modes. Its key setup time is excellent, and its key agility is
  576. good. Rijndael's very low memory requirements make it very well
  577. suited for restricted-space environments, in which it also
  578. demonstrates excellent performance. Rijndael's operations are
  579. among the easiest to defend against power and timing attacks.
  580. The AES specifies three key sizes: 128, 192 and 256 bits
  581. See <http://csrc.nist.gov/encryption/aes/> for more information.
  582. config CRYPTO_ANUBIS
  583. tristate "Anubis cipher algorithm"
  584. select CRYPTO_ALGAPI
  585. help
  586. Anubis cipher algorithm.
  587. Anubis is a variable key length cipher which can use keys from
  588. 128 bits to 320 bits in length. It was evaluated as a entrant
  589. in the NESSIE competition.
  590. See also:
  591. <https://www.cosic.esat.kuleuven.be/nessie/reports/>
  592. <http://www.larc.usp.br/~pbarreto/AnubisPage.html>
  593. config CRYPTO_ARC4
  594. tristate "ARC4 cipher algorithm"
  595. select CRYPTO_BLKCIPHER
  596. help
  597. ARC4 cipher algorithm.
  598. ARC4 is a stream cipher using keys ranging from 8 bits to 2048
  599. bits in length. This algorithm is required for driver-based
  600. WEP, but it should not be for other purposes because of the
  601. weakness of the algorithm.
  602. config CRYPTO_BLOWFISH
  603. tristate "Blowfish cipher algorithm"
  604. select CRYPTO_ALGAPI
  605. select CRYPTO_BLOWFISH_COMMON
  606. help
  607. Blowfish cipher algorithm, by Bruce Schneier.
  608. This is a variable key length cipher which can use keys from 32
  609. bits to 448 bits in length. It's fast, simple and specifically
  610. designed for use on "large microprocessors".
  611. See also:
  612. <http://www.schneier.com/blowfish.html>
  613. config CRYPTO_BLOWFISH_COMMON
  614. tristate
  615. help
  616. Common parts of the Blowfish cipher algorithm shared by the
  617. generic c and the assembler implementations.
  618. See also:
  619. <http://www.schneier.com/blowfish.html>
  620. config CRYPTO_BLOWFISH_X86_64
  621. tristate "Blowfish cipher algorithm (x86_64)"
  622. depends on X86 && 64BIT
  623. select CRYPTO_ALGAPI
  624. select CRYPTO_BLOWFISH_COMMON
  625. help
  626. Blowfish cipher algorithm (x86_64), by Bruce Schneier.
  627. This is a variable key length cipher which can use keys from 32
  628. bits to 448 bits in length. It's fast, simple and specifically
  629. designed for use on "large microprocessors".
  630. See also:
  631. <http://www.schneier.com/blowfish.html>
  632. config CRYPTO_CAMELLIA
  633. tristate "Camellia cipher algorithms"
  634. depends on CRYPTO
  635. select CRYPTO_ALGAPI
  636. help
  637. Camellia cipher algorithms module.
  638. Camellia is a symmetric key block cipher developed jointly
  639. at NTT and Mitsubishi Electric Corporation.
  640. The Camellia specifies three key sizes: 128, 192 and 256 bits.
  641. See also:
  642. <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
  643. config CRYPTO_CAMELLIA_X86_64
  644. tristate "Camellia cipher algorithm (x86_64)"
  645. depends on X86 && 64BIT
  646. depends on CRYPTO
  647. select CRYPTO_ALGAPI
  648. select CRYPTO_GLUE_HELPER_X86
  649. select CRYPTO_LRW
  650. select CRYPTO_XTS
  651. help
  652. Camellia cipher algorithm module (x86_64).
  653. Camellia is a symmetric key block cipher developed jointly
  654. at NTT and Mitsubishi Electric Corporation.
  655. The Camellia specifies three key sizes: 128, 192 and 256 bits.
  656. See also:
  657. <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
  658. config CRYPTO_CAMELLIA_SPARC64
  659. tristate "Camellia cipher algorithm (SPARC64)"
  660. depends on SPARC64
  661. depends on CRYPTO
  662. select CRYPTO_ALGAPI
  663. help
  664. Camellia cipher algorithm module (SPARC64).
  665. Camellia is a symmetric key block cipher developed jointly
  666. at NTT and Mitsubishi Electric Corporation.
  667. The Camellia specifies three key sizes: 128, 192 and 256 bits.
  668. See also:
  669. <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
  670. config CRYPTO_CAST5
  671. tristate "CAST5 (CAST-128) cipher algorithm"
  672. select CRYPTO_ALGAPI
  673. help
  674. The CAST5 encryption algorithm (synonymous with CAST-128) is
  675. described in RFC2144.
  676. config CRYPTO_CAST5_AVX_X86_64
  677. tristate "CAST5 (CAST-128) cipher algorithm (x86_64/AVX)"
  678. depends on X86 && 64BIT
  679. select CRYPTO_ALGAPI
  680. select CRYPTO_CRYPTD
  681. select CRYPTO_ABLK_HELPER_X86
  682. select CRYPTO_CAST5
  683. help
  684. The CAST5 encryption algorithm (synonymous with CAST-128) is
  685. described in RFC2144.
  686. This module provides the Cast5 cipher algorithm that processes
  687. sixteen blocks parallel using the AVX instruction set.
  688. config CRYPTO_CAST6
  689. tristate "CAST6 (CAST-256) cipher algorithm"
  690. select CRYPTO_ALGAPI
  691. help
  692. The CAST6 encryption algorithm (synonymous with CAST-256) is
  693. described in RFC2612.
  694. config CRYPTO_CAST6_AVX_X86_64
  695. tristate "CAST6 (CAST-256) cipher algorithm (x86_64/AVX)"
  696. depends on X86 && 64BIT
  697. select CRYPTO_ALGAPI
  698. select CRYPTO_CRYPTD
  699. select CRYPTO_ABLK_HELPER_X86
  700. select CRYPTO_GLUE_HELPER_X86
  701. select CRYPTO_CAST6
  702. select CRYPTO_LRW
  703. select CRYPTO_XTS
  704. help
  705. The CAST6 encryption algorithm (synonymous with CAST-256) is
  706. described in RFC2612.
  707. This module provides the Cast6 cipher algorithm that processes
  708. eight blocks parallel using the AVX instruction set.
  709. config CRYPTO_DES
  710. tristate "DES and Triple DES EDE cipher algorithms"
  711. select CRYPTO_ALGAPI
  712. help
  713. DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
  714. config CRYPTO_DES_SPARC64
  715. tristate "DES and Triple DES EDE cipher algorithms (SPARC64)"
  716. depends on SPARC64
  717. select CRYPTO_ALGAPI
  718. select CRYPTO_DES
  719. help
  720. DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3),
  721. optimized using SPARC64 crypto opcodes.
  722. config CRYPTO_FCRYPT
  723. tristate "FCrypt cipher algorithm"
  724. select CRYPTO_ALGAPI
  725. select CRYPTO_BLKCIPHER
  726. help
  727. FCrypt algorithm used by RxRPC.
  728. config CRYPTO_KHAZAD
  729. tristate "Khazad cipher algorithm"
  730. select CRYPTO_ALGAPI
  731. help
  732. Khazad cipher algorithm.
  733. Khazad was a finalist in the initial NESSIE competition. It is
  734. an algorithm optimized for 64-bit processors with good performance
  735. on 32-bit processors. Khazad uses an 128 bit key size.
  736. See also:
  737. <http://www.larc.usp.br/~pbarreto/KhazadPage.html>
  738. config CRYPTO_SALSA20
  739. tristate "Salsa20 stream cipher algorithm (EXPERIMENTAL)"
  740. depends on EXPERIMENTAL
  741. select CRYPTO_BLKCIPHER
  742. help
  743. Salsa20 stream cipher algorithm.
  744. Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
  745. Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
  746. The Salsa20 stream cipher algorithm is designed by Daniel J.
  747. Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
  748. config CRYPTO_SALSA20_586
  749. tristate "Salsa20 stream cipher algorithm (i586) (EXPERIMENTAL)"
  750. depends on (X86 || UML_X86) && !64BIT
  751. depends on EXPERIMENTAL
  752. select CRYPTO_BLKCIPHER
  753. help
  754. Salsa20 stream cipher algorithm.
  755. Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
  756. Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
  757. The Salsa20 stream cipher algorithm is designed by Daniel J.
  758. Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
  759. config CRYPTO_SALSA20_X86_64
  760. tristate "Salsa20 stream cipher algorithm (x86_64) (EXPERIMENTAL)"
  761. depends on (X86 || UML_X86) && 64BIT
  762. depends on EXPERIMENTAL
  763. select CRYPTO_BLKCIPHER
  764. help
  765. Salsa20 stream cipher algorithm.
  766. Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
  767. Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
  768. The Salsa20 stream cipher algorithm is designed by Daniel J.
  769. Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
  770. config CRYPTO_SEED
  771. tristate "SEED cipher algorithm"
  772. select CRYPTO_ALGAPI
  773. help
  774. SEED cipher algorithm (RFC4269).
  775. SEED is a 128-bit symmetric key block cipher that has been
  776. developed by KISA (Korea Information Security Agency) as a
  777. national standard encryption algorithm of the Republic of Korea.
  778. It is a 16 round block cipher with the key size of 128 bit.
  779. See also:
  780. <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>
  781. config CRYPTO_SERPENT
  782. tristate "Serpent cipher algorithm"
  783. select CRYPTO_ALGAPI
  784. help
  785. Serpent cipher algorithm, by Anderson, Biham & Knudsen.
  786. Keys are allowed to be from 0 to 256 bits in length, in steps
  787. of 8 bits. Also includes the 'Tnepres' algorithm, a reversed
  788. variant of Serpent for compatibility with old kerneli.org code.
  789. See also:
  790. <http://www.cl.cam.ac.uk/~rja14/serpent.html>
  791. config CRYPTO_SERPENT_SSE2_X86_64
  792. tristate "Serpent cipher algorithm (x86_64/SSE2)"
  793. depends on X86 && 64BIT
  794. select CRYPTO_ALGAPI
  795. select CRYPTO_CRYPTD
  796. select CRYPTO_ABLK_HELPER_X86
  797. select CRYPTO_GLUE_HELPER_X86
  798. select CRYPTO_SERPENT
  799. select CRYPTO_LRW
  800. select CRYPTO_XTS
  801. help
  802. Serpent cipher algorithm, by Anderson, Biham & Knudsen.
  803. Keys are allowed to be from 0 to 256 bits in length, in steps
  804. of 8 bits.
  805. This module provides Serpent cipher algorithm that processes eigth
  806. blocks parallel using SSE2 instruction set.
  807. See also:
  808. <http://www.cl.cam.ac.uk/~rja14/serpent.html>
  809. config CRYPTO_SERPENT_SSE2_586
  810. tristate "Serpent cipher algorithm (i586/SSE2)"
  811. depends on X86 && !64BIT
  812. select CRYPTO_ALGAPI
  813. select CRYPTO_CRYPTD
  814. select CRYPTO_ABLK_HELPER_X86
  815. select CRYPTO_GLUE_HELPER_X86
  816. select CRYPTO_SERPENT
  817. select CRYPTO_LRW
  818. select CRYPTO_XTS
  819. help
  820. Serpent cipher algorithm, by Anderson, Biham & Knudsen.
  821. Keys are allowed to be from 0 to 256 bits in length, in steps
  822. of 8 bits.
  823. This module provides Serpent cipher algorithm that processes four
  824. blocks parallel using SSE2 instruction set.
  825. See also:
  826. <http://www.cl.cam.ac.uk/~rja14/serpent.html>
  827. config CRYPTO_SERPENT_AVX_X86_64
  828. tristate "Serpent cipher algorithm (x86_64/AVX)"
  829. depends on X86 && 64BIT
  830. select CRYPTO_ALGAPI
  831. select CRYPTO_CRYPTD
  832. select CRYPTO_ABLK_HELPER_X86
  833. select CRYPTO_GLUE_HELPER_X86
  834. select CRYPTO_SERPENT
  835. select CRYPTO_LRW
  836. select CRYPTO_XTS
  837. help
  838. Serpent cipher algorithm, by Anderson, Biham & Knudsen.
  839. Keys are allowed to be from 0 to 256 bits in length, in steps
  840. of 8 bits.
  841. This module provides the Serpent cipher algorithm that processes
  842. eight blocks parallel using the AVX instruction set.
  843. See also:
  844. <http://www.cl.cam.ac.uk/~rja14/serpent.html>
  845. config CRYPTO_TEA
  846. tristate "TEA, XTEA and XETA cipher algorithms"
  847. select CRYPTO_ALGAPI
  848. help
  849. TEA cipher algorithm.
  850. Tiny Encryption Algorithm is a simple cipher that uses
  851. many rounds for security. It is very fast and uses
  852. little memory.
  853. Xtendend Tiny Encryption Algorithm is a modification to
  854. the TEA algorithm to address a potential key weakness
  855. in the TEA algorithm.
  856. Xtendend Encryption Tiny Algorithm is a mis-implementation
  857. of the XTEA algorithm for compatibility purposes.
  858. config CRYPTO_TWOFISH
  859. tristate "Twofish cipher algorithm"
  860. select CRYPTO_ALGAPI
  861. select CRYPTO_TWOFISH_COMMON
  862. help
  863. Twofish cipher algorithm.
  864. Twofish was submitted as an AES (Advanced Encryption Standard)
  865. candidate cipher by researchers at CounterPane Systems. It is a
  866. 16 round block cipher supporting key sizes of 128, 192, and 256
  867. bits.
  868. See also:
  869. <http://www.schneier.com/twofish.html>
  870. config CRYPTO_TWOFISH_COMMON
  871. tristate
  872. help
  873. Common parts of the Twofish cipher algorithm shared by the
  874. generic c and the assembler implementations.
  875. config CRYPTO_TWOFISH_586
  876. tristate "Twofish cipher algorithms (i586)"
  877. depends on (X86 || UML_X86) && !64BIT
  878. select CRYPTO_ALGAPI
  879. select CRYPTO_TWOFISH_COMMON
  880. help
  881. Twofish cipher algorithm.
  882. Twofish was submitted as an AES (Advanced Encryption Standard)
  883. candidate cipher by researchers at CounterPane Systems. It is a
  884. 16 round block cipher supporting key sizes of 128, 192, and 256
  885. bits.
  886. See also:
  887. <http://www.schneier.com/twofish.html>
  888. config CRYPTO_TWOFISH_X86_64
  889. tristate "Twofish cipher algorithm (x86_64)"
  890. depends on (X86 || UML_X86) && 64BIT
  891. select CRYPTO_ALGAPI
  892. select CRYPTO_TWOFISH_COMMON
  893. help
  894. Twofish cipher algorithm (x86_64).
  895. Twofish was submitted as an AES (Advanced Encryption Standard)
  896. candidate cipher by researchers at CounterPane Systems. It is a
  897. 16 round block cipher supporting key sizes of 128, 192, and 256
  898. bits.
  899. See also:
  900. <http://www.schneier.com/twofish.html>
  901. config CRYPTO_TWOFISH_X86_64_3WAY
  902. tristate "Twofish cipher algorithm (x86_64, 3-way parallel)"
  903. depends on X86 && 64BIT
  904. select CRYPTO_ALGAPI
  905. select CRYPTO_TWOFISH_COMMON
  906. select CRYPTO_TWOFISH_X86_64
  907. select CRYPTO_GLUE_HELPER_X86
  908. select CRYPTO_LRW
  909. select CRYPTO_XTS
  910. help
  911. Twofish cipher algorithm (x86_64, 3-way parallel).
  912. Twofish was submitted as an AES (Advanced Encryption Standard)
  913. candidate cipher by researchers at CounterPane Systems. It is a
  914. 16 round block cipher supporting key sizes of 128, 192, and 256
  915. bits.
  916. This module provides Twofish cipher algorithm that processes three
  917. blocks parallel, utilizing resources of out-of-order CPUs better.
  918. See also:
  919. <http://www.schneier.com/twofish.html>
  920. config CRYPTO_TWOFISH_AVX_X86_64
  921. tristate "Twofish cipher algorithm (x86_64/AVX)"
  922. depends on X86 && 64BIT
  923. select CRYPTO_ALGAPI
  924. select CRYPTO_CRYPTD
  925. select CRYPTO_ABLK_HELPER_X86
  926. select CRYPTO_GLUE_HELPER_X86
  927. select CRYPTO_TWOFISH_COMMON
  928. select CRYPTO_TWOFISH_X86_64
  929. select CRYPTO_TWOFISH_X86_64_3WAY
  930. select CRYPTO_LRW
  931. select CRYPTO_XTS
  932. help
  933. Twofish cipher algorithm (x86_64/AVX).
  934. Twofish was submitted as an AES (Advanced Encryption Standard)
  935. candidate cipher by researchers at CounterPane Systems. It is a
  936. 16 round block cipher supporting key sizes of 128, 192, and 256
  937. bits.
  938. This module provides the Twofish cipher algorithm that processes
  939. eight blocks parallel using the AVX Instruction Set.
  940. See also:
  941. <http://www.schneier.com/twofish.html>
  942. comment "Compression"
  943. config CRYPTO_DEFLATE
  944. tristate "Deflate compression algorithm"
  945. select CRYPTO_ALGAPI
  946. select ZLIB_INFLATE
  947. select ZLIB_DEFLATE
  948. help
  949. This is the Deflate algorithm (RFC1951), specified for use in
  950. IPSec with the IPCOMP protocol (RFC3173, RFC2394).
  951. You will most probably want this if using IPSec.
  952. config CRYPTO_ZLIB
  953. tristate "Zlib compression algorithm"
  954. select CRYPTO_PCOMP
  955. select ZLIB_INFLATE
  956. select ZLIB_DEFLATE
  957. select NLATTR
  958. help
  959. This is the zlib algorithm.
  960. config CRYPTO_LZO
  961. tristate "LZO compression algorithm"
  962. select CRYPTO_ALGAPI
  963. select LZO_COMPRESS
  964. select LZO_DECOMPRESS
  965. help
  966. This is the LZO algorithm.
  967. config CRYPTO_842
  968. tristate "842 compression algorithm"
  969. depends on CRYPTO_DEV_NX_COMPRESS
  970. # 842 uses lzo if the hardware becomes unavailable
  971. select LZO_COMPRESS
  972. select LZO_DECOMPRESS
  973. help
  974. This is the 842 algorithm.
  975. comment "Random Number Generation"
  976. config CRYPTO_ANSI_CPRNG
  977. tristate "Pseudo Random Number Generation for Cryptographic modules"
  978. default m
  979. select CRYPTO_AES
  980. select CRYPTO_RNG
  981. help
  982. This option enables the generic pseudo random number generator
  983. for cryptographic modules. Uses the Algorithm specified in
  984. ANSI X9.31 A.2.4. Note that this option must be enabled if
  985. CRYPTO_FIPS is selected
  986. config CRYPTO_USER_API
  987. tristate
  988. config CRYPTO_USER_API_HASH
  989. tristate "User-space interface for hash algorithms"
  990. depends on NET
  991. select CRYPTO_HASH
  992. select CRYPTO_USER_API
  993. help
  994. This option enables the user-spaces interface for hash
  995. algorithms.
  996. config CRYPTO_USER_API_SKCIPHER
  997. tristate "User-space interface for symmetric key cipher algorithms"
  998. depends on NET
  999. select CRYPTO_BLKCIPHER
  1000. select CRYPTO_USER_API
  1001. help
  1002. This option enables the user-spaces interface for symmetric
  1003. key cipher algorithms.
  1004. source "drivers/crypto/Kconfig"
  1005. source crypto/asymmetric_keys/Kconfig
  1006. endif # if CRYPTO