Kconfig 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410
  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"
  114. depends on SMP
  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
  149. tristate
  150. select CRYPTO_CRYPTD
  151. config CRYPTO_GLUE_HELPER_X86
  152. tristate
  153. depends on X86
  154. select CRYPTO_ALGAPI
  155. comment "Authenticated Encryption with Associated Data"
  156. config CRYPTO_CCM
  157. tristate "CCM support"
  158. select CRYPTO_CTR
  159. select CRYPTO_AEAD
  160. help
  161. Support for Counter with CBC MAC. Required for IPsec.
  162. config CRYPTO_GCM
  163. tristate "GCM/GMAC support"
  164. select CRYPTO_CTR
  165. select CRYPTO_AEAD
  166. select CRYPTO_GHASH
  167. select CRYPTO_NULL
  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_CMAC
  242. tristate "CMAC support"
  243. select CRYPTO_HASH
  244. select CRYPTO_MANAGER
  245. help
  246. Cipher-based Message Authentication Code (CMAC) specified by
  247. The National Institute of Standards and Technology (NIST).
  248. https://tools.ietf.org/html/rfc4493
  249. http://csrc.nist.gov/publications/nistpubs/800-38B/SP_800-38B.pdf
  250. config CRYPTO_HMAC
  251. tristate "HMAC support"
  252. select CRYPTO_HASH
  253. select CRYPTO_MANAGER
  254. help
  255. HMAC: Keyed-Hashing for Message Authentication (RFC2104).
  256. This is required for IPSec.
  257. config CRYPTO_XCBC
  258. tristate "XCBC support"
  259. select CRYPTO_HASH
  260. select CRYPTO_MANAGER
  261. help
  262. XCBC: Keyed-Hashing with encryption algorithm
  263. http://www.ietf.org/rfc/rfc3566.txt
  264. http://csrc.nist.gov/encryption/modes/proposedmodes/
  265. xcbc-mac/xcbc-mac-spec.pdf
  266. config CRYPTO_VMAC
  267. tristate "VMAC support"
  268. select CRYPTO_HASH
  269. select CRYPTO_MANAGER
  270. help
  271. VMAC is a message authentication algorithm designed for
  272. very high speed on 64-bit architectures.
  273. See also:
  274. <http://fastcrypto.org/vmac>
  275. comment "Digest"
  276. config CRYPTO_CRC32C
  277. tristate "CRC32c CRC algorithm"
  278. select CRYPTO_HASH
  279. select CRC32
  280. help
  281. Castagnoli, et al Cyclic Redundancy-Check Algorithm. Used
  282. by iSCSI for header and data digests and by others.
  283. See Castagnoli93. Module will be crc32c.
  284. config CRYPTO_CRC32C_INTEL
  285. tristate "CRC32c INTEL hardware acceleration"
  286. depends on X86
  287. select CRYPTO_HASH
  288. help
  289. In Intel processor with SSE4.2 supported, the processor will
  290. support CRC32C implementation using hardware accelerated CRC32
  291. instruction. This option will create 'crc32c-intel' module,
  292. which will enable any routine to use the CRC32 instruction to
  293. gain performance compared with software implementation.
  294. Module will be crc32c-intel.
  295. config CRYPTO_CRC32C_SPARC64
  296. tristate "CRC32c CRC algorithm (SPARC64)"
  297. depends on SPARC64
  298. select CRYPTO_HASH
  299. select CRC32
  300. help
  301. CRC32c CRC algorithm implemented using sparc64 crypto instructions,
  302. when available.
  303. config CRYPTO_CRC32
  304. tristate "CRC32 CRC algorithm"
  305. select CRYPTO_HASH
  306. select CRC32
  307. help
  308. CRC-32-IEEE 802.3 cyclic redundancy-check algorithm.
  309. Shash crypto api wrappers to crc32_le function.
  310. config CRYPTO_CRC32_PCLMUL
  311. tristate "CRC32 PCLMULQDQ hardware acceleration"
  312. depends on X86
  313. select CRYPTO_HASH
  314. select CRC32
  315. help
  316. From Intel Westmere and AMD Bulldozer processor with SSE4.2
  317. and PCLMULQDQ supported, the processor will support
  318. CRC32 PCLMULQDQ implementation using hardware accelerated PCLMULQDQ
  319. instruction. This option will create 'crc32-plcmul' module,
  320. which will enable any routine to use the CRC-32-IEEE 802.3 checksum
  321. and gain better performance as compared with the table implementation.
  322. config CRYPTO_CRCT10DIF
  323. tristate "CRCT10DIF algorithm"
  324. select CRYPTO_HASH
  325. help
  326. CRC T10 Data Integrity Field computation is being cast as
  327. a crypto transform. This allows for faster crc t10 diff
  328. transforms to be used if they are available.
  329. config CRYPTO_CRCT10DIF_PCLMUL
  330. tristate "CRCT10DIF PCLMULQDQ hardware acceleration"
  331. depends on X86 && 64BIT && CRC_T10DIF
  332. select CRYPTO_HASH
  333. help
  334. For x86_64 processors with SSE4.2 and PCLMULQDQ supported,
  335. CRC T10 DIF PCLMULQDQ computation can be hardware
  336. accelerated PCLMULQDQ instruction. This option will create
  337. 'crct10dif-plcmul' module, which is faster when computing the
  338. crct10dif checksum as compared with the generic table implementation.
  339. config CRYPTO_GHASH
  340. tristate "GHASH digest algorithm"
  341. select CRYPTO_GF128MUL
  342. help
  343. GHASH is message digest algorithm for GCM (Galois/Counter Mode).
  344. config CRYPTO_MD4
  345. tristate "MD4 digest algorithm"
  346. select CRYPTO_HASH
  347. help
  348. MD4 message digest algorithm (RFC1320).
  349. config CRYPTO_MD5
  350. tristate "MD5 digest algorithm"
  351. select CRYPTO_HASH
  352. help
  353. MD5 message digest algorithm (RFC1321).
  354. config CRYPTO_MD5_SPARC64
  355. tristate "MD5 digest algorithm (SPARC64)"
  356. depends on SPARC64
  357. select CRYPTO_MD5
  358. select CRYPTO_HASH
  359. help
  360. MD5 message digest algorithm (RFC1321) implemented
  361. using sparc64 crypto instructions, when available.
  362. config CRYPTO_MICHAEL_MIC
  363. tristate "Michael MIC keyed digest algorithm"
  364. select CRYPTO_HASH
  365. help
  366. Michael MIC is used for message integrity protection in TKIP
  367. (IEEE 802.11i). This algorithm is required for TKIP, but it
  368. should not be used for other purposes because of the weakness
  369. of the algorithm.
  370. config CRYPTO_RMD128
  371. tristate "RIPEMD-128 digest algorithm"
  372. select CRYPTO_HASH
  373. help
  374. RIPEMD-128 (ISO/IEC 10118-3:2004).
  375. RIPEMD-128 is a 128-bit cryptographic hash function. It should only
  376. be used as a secure replacement for RIPEMD. For other use cases,
  377. RIPEMD-160 should be used.
  378. Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
  379. See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
  380. config CRYPTO_RMD160
  381. tristate "RIPEMD-160 digest algorithm"
  382. select CRYPTO_HASH
  383. help
  384. RIPEMD-160 (ISO/IEC 10118-3:2004).
  385. RIPEMD-160 is a 160-bit cryptographic hash function. It is intended
  386. to be used as a secure replacement for the 128-bit hash functions
  387. MD4, MD5 and it's predecessor RIPEMD
  388. (not to be confused with RIPEMD-128).
  389. It's speed is comparable to SHA1 and there are no known attacks
  390. against RIPEMD-160.
  391. Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
  392. See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
  393. config CRYPTO_RMD256
  394. tristate "RIPEMD-256 digest algorithm"
  395. select CRYPTO_HASH
  396. help
  397. RIPEMD-256 is an optional extension of RIPEMD-128 with a
  398. 256 bit hash. It is intended for applications that require
  399. longer hash-results, without needing a larger security level
  400. (than RIPEMD-128).
  401. Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
  402. See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
  403. config CRYPTO_RMD320
  404. tristate "RIPEMD-320 digest algorithm"
  405. select CRYPTO_HASH
  406. help
  407. RIPEMD-320 is an optional extension of RIPEMD-160 with a
  408. 320 bit hash. It is intended for applications that require
  409. longer hash-results, without needing a larger security level
  410. (than RIPEMD-160).
  411. Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
  412. See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
  413. config CRYPTO_SHA1
  414. tristate "SHA1 digest algorithm"
  415. select CRYPTO_HASH
  416. help
  417. SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
  418. config CRYPTO_SHA1_SSSE3
  419. tristate "SHA1 digest algorithm (SSSE3/AVX)"
  420. depends on X86 && 64BIT
  421. select CRYPTO_SHA1
  422. select CRYPTO_HASH
  423. help
  424. SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
  425. using Supplemental SSE3 (SSSE3) instructions or Advanced Vector
  426. Extensions (AVX), when available.
  427. config CRYPTO_SHA256_SSSE3
  428. tristate "SHA256 digest algorithm (SSSE3/AVX/AVX2)"
  429. depends on X86 && 64BIT
  430. select CRYPTO_SHA256
  431. select CRYPTO_HASH
  432. help
  433. SHA-256 secure hash standard (DFIPS 180-2) implemented
  434. using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
  435. Extensions version 1 (AVX1), or Advanced Vector Extensions
  436. version 2 (AVX2) instructions, when available.
  437. config CRYPTO_SHA512_SSSE3
  438. tristate "SHA512 digest algorithm (SSSE3/AVX/AVX2)"
  439. depends on X86 && 64BIT
  440. select CRYPTO_SHA512
  441. select CRYPTO_HASH
  442. help
  443. SHA-512 secure hash standard (DFIPS 180-2) implemented
  444. using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
  445. Extensions version 1 (AVX1), or Advanced Vector Extensions
  446. version 2 (AVX2) instructions, when available.
  447. config CRYPTO_SHA1_SPARC64
  448. tristate "SHA1 digest algorithm (SPARC64)"
  449. depends on SPARC64
  450. select CRYPTO_SHA1
  451. select CRYPTO_HASH
  452. help
  453. SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
  454. using sparc64 crypto instructions, when available.
  455. config CRYPTO_SHA1_ARM
  456. tristate "SHA1 digest algorithm (ARM-asm)"
  457. depends on ARM
  458. select CRYPTO_SHA1
  459. select CRYPTO_HASH
  460. help
  461. SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
  462. using optimized ARM assembler.
  463. config CRYPTO_SHA1_PPC
  464. tristate "SHA1 digest algorithm (powerpc)"
  465. depends on PPC
  466. help
  467. This is the powerpc hardware accelerated implementation of the
  468. SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
  469. config CRYPTO_SHA256
  470. tristate "SHA224 and SHA256 digest algorithm"
  471. select CRYPTO_HASH
  472. help
  473. SHA256 secure hash standard (DFIPS 180-2).
  474. This version of SHA implements a 256 bit hash with 128 bits of
  475. security against collision attacks.
  476. This code also includes SHA-224, a 224 bit hash with 112 bits
  477. of security against collision attacks.
  478. config CRYPTO_SHA256_SPARC64
  479. tristate "SHA224 and SHA256 digest algorithm (SPARC64)"
  480. depends on SPARC64
  481. select CRYPTO_SHA256
  482. select CRYPTO_HASH
  483. help
  484. SHA-256 secure hash standard (DFIPS 180-2) implemented
  485. using sparc64 crypto instructions, when available.
  486. config CRYPTO_SHA512
  487. tristate "SHA384 and SHA512 digest algorithms"
  488. select CRYPTO_HASH
  489. help
  490. SHA512 secure hash standard (DFIPS 180-2).
  491. This version of SHA implements a 512 bit hash with 256 bits of
  492. security against collision attacks.
  493. This code also includes SHA-384, a 384 bit hash with 192 bits
  494. of security against collision attacks.
  495. config CRYPTO_SHA512_SPARC64
  496. tristate "SHA384 and SHA512 digest algorithm (SPARC64)"
  497. depends on SPARC64
  498. select CRYPTO_SHA512
  499. select CRYPTO_HASH
  500. help
  501. SHA-512 secure hash standard (DFIPS 180-2) implemented
  502. using sparc64 crypto instructions, when available.
  503. config CRYPTO_TGR192
  504. tristate "Tiger digest algorithms"
  505. select CRYPTO_HASH
  506. help
  507. Tiger hash algorithm 192, 160 and 128-bit hashes
  508. Tiger is a hash function optimized for 64-bit processors while
  509. still having decent performance on 32-bit processors.
  510. Tiger was developed by Ross Anderson and Eli Biham.
  511. See also:
  512. <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>.
  513. config CRYPTO_WP512
  514. tristate "Whirlpool digest algorithms"
  515. select CRYPTO_HASH
  516. help
  517. Whirlpool hash algorithm 512, 384 and 256-bit hashes
  518. Whirlpool-512 is part of the NESSIE cryptographic primitives.
  519. Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard
  520. See also:
  521. <http://www.larc.usp.br/~pbarreto/WhirlpoolPage.html>
  522. config CRYPTO_GHASH_CLMUL_NI_INTEL
  523. tristate "GHASH digest algorithm (CLMUL-NI accelerated)"
  524. depends on X86 && 64BIT
  525. select CRYPTO_CRYPTD
  526. help
  527. GHASH is message digest algorithm for GCM (Galois/Counter Mode).
  528. The implementation is accelerated by CLMUL-NI of Intel.
  529. comment "Ciphers"
  530. config CRYPTO_AES
  531. tristate "AES cipher algorithms"
  532. select CRYPTO_ALGAPI
  533. help
  534. AES cipher algorithms (FIPS-197). AES uses the Rijndael
  535. algorithm.
  536. Rijndael appears to be consistently a very good performer in
  537. both hardware and software across a wide range of computing
  538. environments regardless of its use in feedback or non-feedback
  539. modes. Its key setup time is excellent, and its key agility is
  540. good. Rijndael's very low memory requirements make it very well
  541. suited for restricted-space environments, in which it also
  542. demonstrates excellent performance. Rijndael's operations are
  543. among the easiest to defend against power and timing attacks.
  544. The AES specifies three key sizes: 128, 192 and 256 bits
  545. See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information.
  546. config CRYPTO_AES_586
  547. tristate "AES cipher algorithms (i586)"
  548. depends on (X86 || UML_X86) && !64BIT
  549. select CRYPTO_ALGAPI
  550. select CRYPTO_AES
  551. help
  552. AES cipher algorithms (FIPS-197). AES uses the Rijndael
  553. algorithm.
  554. Rijndael appears to be consistently a very good performer in
  555. both hardware and software across a wide range of computing
  556. environments regardless of its use in feedback or non-feedback
  557. modes. Its key setup time is excellent, and its key agility is
  558. good. Rijndael's very low memory requirements make it very well
  559. suited for restricted-space environments, in which it also
  560. demonstrates excellent performance. Rijndael's operations are
  561. among the easiest to defend against power and timing attacks.
  562. The AES specifies three key sizes: 128, 192 and 256 bits
  563. See <http://csrc.nist.gov/encryption/aes/> for more information.
  564. config CRYPTO_AES_X86_64
  565. tristate "AES cipher algorithms (x86_64)"
  566. depends on (X86 || UML_X86) && 64BIT
  567. select CRYPTO_ALGAPI
  568. select CRYPTO_AES
  569. help
  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_AES_NI_INTEL
  583. tristate "AES cipher algorithms (AES-NI)"
  584. depends on X86
  585. select CRYPTO_AES_X86_64 if 64BIT
  586. select CRYPTO_AES_586 if !64BIT
  587. select CRYPTO_CRYPTD
  588. select CRYPTO_ABLK_HELPER
  589. select CRYPTO_ALGAPI
  590. select CRYPTO_GLUE_HELPER_X86 if 64BIT
  591. select CRYPTO_LRW
  592. select CRYPTO_XTS
  593. help
  594. Use Intel AES-NI instructions for AES algorithm.
  595. AES cipher algorithms (FIPS-197). AES uses the Rijndael
  596. algorithm.
  597. Rijndael appears to be consistently a very good performer in
  598. both hardware and software across a wide range of computing
  599. environments regardless of its use in feedback or non-feedback
  600. modes. Its key setup time is excellent, and its key agility is
  601. good. Rijndael's very low memory requirements make it very well
  602. suited for restricted-space environments, in which it also
  603. demonstrates excellent performance. Rijndael's operations are
  604. among the easiest to defend against power and timing attacks.
  605. The AES specifies three key sizes: 128, 192 and 256 bits
  606. See <http://csrc.nist.gov/encryption/aes/> for more information.
  607. In addition to AES cipher algorithm support, the acceleration
  608. for some popular block cipher mode is supported too, including
  609. ECB, CBC, LRW, PCBC, XTS. The 64 bit version has additional
  610. acceleration for CTR.
  611. config CRYPTO_AES_SPARC64
  612. tristate "AES cipher algorithms (SPARC64)"
  613. depends on SPARC64
  614. select CRYPTO_CRYPTD
  615. select CRYPTO_ALGAPI
  616. help
  617. Use SPARC64 crypto opcodes for AES algorithm.
  618. AES cipher algorithms (FIPS-197). AES uses the Rijndael
  619. algorithm.
  620. Rijndael appears to be consistently a very good performer in
  621. both hardware and software across a wide range of computing
  622. environments regardless of its use in feedback or non-feedback
  623. modes. Its key setup time is excellent, and its key agility is
  624. good. Rijndael's very low memory requirements make it very well
  625. suited for restricted-space environments, in which it also
  626. demonstrates excellent performance. Rijndael's operations are
  627. among the easiest to defend against power and timing attacks.
  628. The AES specifies three key sizes: 128, 192 and 256 bits
  629. See <http://csrc.nist.gov/encryption/aes/> for more information.
  630. In addition to AES cipher algorithm support, the acceleration
  631. for some popular block cipher mode is supported too, including
  632. ECB and CBC.
  633. config CRYPTO_AES_ARM
  634. tristate "AES cipher algorithms (ARM-asm)"
  635. depends on ARM
  636. select CRYPTO_ALGAPI
  637. select CRYPTO_AES
  638. help
  639. Use optimized AES assembler routines for ARM platforms.
  640. AES cipher algorithms (FIPS-197). AES uses the Rijndael
  641. algorithm.
  642. Rijndael appears to be consistently a very good performer in
  643. both hardware and software across a wide range of computing
  644. environments regardless of its use in feedback or non-feedback
  645. modes. Its key setup time is excellent, and its key agility is
  646. good. Rijndael's very low memory requirements make it very well
  647. suited for restricted-space environments, in which it also
  648. demonstrates excellent performance. Rijndael's operations are
  649. among the easiest to defend against power and timing attacks.
  650. The AES specifies three key sizes: 128, 192 and 256 bits
  651. See <http://csrc.nist.gov/encryption/aes/> for more information.
  652. config CRYPTO_AES_ARM_BS
  653. tristate "Bit sliced AES using NEON instructions"
  654. depends on ARM && KERNEL_MODE_NEON
  655. select CRYPTO_ALGAPI
  656. select CRYPTO_AES_ARM
  657. select CRYPTO_ABLK_HELPER
  658. help
  659. Use a faster and more secure NEON based implementation of AES in CBC,
  660. CTR and XTS modes
  661. Bit sliced AES gives around 45% speedup on Cortex-A15 for CTR mode
  662. and for XTS mode encryption, CBC and XTS mode decryption speedup is
  663. around 25%. (CBC encryption speed is not affected by this driver.)
  664. This implementation does not rely on any lookup tables so it is
  665. believed to be invulnerable to cache timing attacks.
  666. config CRYPTO_ANUBIS
  667. tristate "Anubis cipher algorithm"
  668. select CRYPTO_ALGAPI
  669. help
  670. Anubis cipher algorithm.
  671. Anubis is a variable key length cipher which can use keys from
  672. 128 bits to 320 bits in length. It was evaluated as a entrant
  673. in the NESSIE competition.
  674. See also:
  675. <https://www.cosic.esat.kuleuven.be/nessie/reports/>
  676. <http://www.larc.usp.br/~pbarreto/AnubisPage.html>
  677. config CRYPTO_ARC4
  678. tristate "ARC4 cipher algorithm"
  679. select CRYPTO_BLKCIPHER
  680. help
  681. ARC4 cipher algorithm.
  682. ARC4 is a stream cipher using keys ranging from 8 bits to 2048
  683. bits in length. This algorithm is required for driver-based
  684. WEP, but it should not be for other purposes because of the
  685. weakness of the algorithm.
  686. config CRYPTO_BLOWFISH
  687. tristate "Blowfish cipher algorithm"
  688. select CRYPTO_ALGAPI
  689. select CRYPTO_BLOWFISH_COMMON
  690. help
  691. Blowfish cipher algorithm, by Bruce Schneier.
  692. This is a variable key length cipher which can use keys from 32
  693. bits to 448 bits in length. It's fast, simple and specifically
  694. designed for use on "large microprocessors".
  695. See also:
  696. <http://www.schneier.com/blowfish.html>
  697. config CRYPTO_BLOWFISH_COMMON
  698. tristate
  699. help
  700. Common parts of the Blowfish cipher algorithm shared by the
  701. generic c and the assembler implementations.
  702. See also:
  703. <http://www.schneier.com/blowfish.html>
  704. config CRYPTO_BLOWFISH_X86_64
  705. tristate "Blowfish cipher algorithm (x86_64)"
  706. depends on X86 && 64BIT
  707. select CRYPTO_ALGAPI
  708. select CRYPTO_BLOWFISH_COMMON
  709. help
  710. Blowfish cipher algorithm (x86_64), by Bruce Schneier.
  711. This is a variable key length cipher which can use keys from 32
  712. bits to 448 bits in length. It's fast, simple and specifically
  713. designed for use on "large microprocessors".
  714. See also:
  715. <http://www.schneier.com/blowfish.html>
  716. config CRYPTO_CAMELLIA
  717. tristate "Camellia cipher algorithms"
  718. depends on CRYPTO
  719. select CRYPTO_ALGAPI
  720. help
  721. Camellia cipher algorithms module.
  722. Camellia is a symmetric key block cipher developed jointly
  723. at NTT and Mitsubishi Electric Corporation.
  724. The Camellia specifies three key sizes: 128, 192 and 256 bits.
  725. See also:
  726. <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
  727. config CRYPTO_CAMELLIA_X86_64
  728. tristate "Camellia cipher algorithm (x86_64)"
  729. depends on X86 && 64BIT
  730. depends on CRYPTO
  731. select CRYPTO_ALGAPI
  732. select CRYPTO_GLUE_HELPER_X86
  733. select CRYPTO_LRW
  734. select CRYPTO_XTS
  735. help
  736. Camellia cipher algorithm module (x86_64).
  737. Camellia is a symmetric key block cipher developed jointly
  738. at NTT and Mitsubishi Electric Corporation.
  739. The Camellia specifies three key sizes: 128, 192 and 256 bits.
  740. See also:
  741. <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
  742. config CRYPTO_CAMELLIA_AESNI_AVX_X86_64
  743. tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX)"
  744. depends on X86 && 64BIT
  745. depends on CRYPTO
  746. select CRYPTO_ALGAPI
  747. select CRYPTO_CRYPTD
  748. select CRYPTO_ABLK_HELPER
  749. select CRYPTO_GLUE_HELPER_X86
  750. select CRYPTO_CAMELLIA_X86_64
  751. select CRYPTO_LRW
  752. select CRYPTO_XTS
  753. help
  754. Camellia cipher algorithm module (x86_64/AES-NI/AVX).
  755. Camellia is a symmetric key block cipher developed jointly
  756. at NTT and Mitsubishi Electric Corporation.
  757. The Camellia specifies three key sizes: 128, 192 and 256 bits.
  758. See also:
  759. <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
  760. config CRYPTO_CAMELLIA_AESNI_AVX2_X86_64
  761. tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX2)"
  762. depends on X86 && 64BIT
  763. depends on CRYPTO
  764. select CRYPTO_ALGAPI
  765. select CRYPTO_CRYPTD
  766. select CRYPTO_ABLK_HELPER
  767. select CRYPTO_GLUE_HELPER_X86
  768. select CRYPTO_CAMELLIA_X86_64
  769. select CRYPTO_CAMELLIA_AESNI_AVX_X86_64
  770. select CRYPTO_LRW
  771. select CRYPTO_XTS
  772. help
  773. Camellia cipher algorithm module (x86_64/AES-NI/AVX2).
  774. Camellia is a symmetric key block cipher developed jointly
  775. at NTT and Mitsubishi Electric Corporation.
  776. The Camellia specifies three key sizes: 128, 192 and 256 bits.
  777. See also:
  778. <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
  779. config CRYPTO_CAMELLIA_SPARC64
  780. tristate "Camellia cipher algorithm (SPARC64)"
  781. depends on SPARC64
  782. depends on CRYPTO
  783. select CRYPTO_ALGAPI
  784. help
  785. Camellia cipher algorithm module (SPARC64).
  786. Camellia is a symmetric key block cipher developed jointly
  787. at NTT and Mitsubishi Electric Corporation.
  788. The Camellia specifies three key sizes: 128, 192 and 256 bits.
  789. See also:
  790. <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
  791. config CRYPTO_CAST_COMMON
  792. tristate
  793. help
  794. Common parts of the CAST cipher algorithms shared by the
  795. generic c and the assembler implementations.
  796. config CRYPTO_CAST5
  797. tristate "CAST5 (CAST-128) cipher algorithm"
  798. select CRYPTO_ALGAPI
  799. select CRYPTO_CAST_COMMON
  800. help
  801. The CAST5 encryption algorithm (synonymous with CAST-128) is
  802. described in RFC2144.
  803. config CRYPTO_CAST5_AVX_X86_64
  804. tristate "CAST5 (CAST-128) cipher algorithm (x86_64/AVX)"
  805. depends on X86 && 64BIT
  806. select CRYPTO_ALGAPI
  807. select CRYPTO_CRYPTD
  808. select CRYPTO_ABLK_HELPER
  809. select CRYPTO_CAST_COMMON
  810. select CRYPTO_CAST5
  811. help
  812. The CAST5 encryption algorithm (synonymous with CAST-128) is
  813. described in RFC2144.
  814. This module provides the Cast5 cipher algorithm that processes
  815. sixteen blocks parallel using the AVX instruction set.
  816. config CRYPTO_CAST6
  817. tristate "CAST6 (CAST-256) cipher algorithm"
  818. select CRYPTO_ALGAPI
  819. select CRYPTO_CAST_COMMON
  820. help
  821. The CAST6 encryption algorithm (synonymous with CAST-256) is
  822. described in RFC2612.
  823. config CRYPTO_CAST6_AVX_X86_64
  824. tristate "CAST6 (CAST-256) cipher algorithm (x86_64/AVX)"
  825. depends on X86 && 64BIT
  826. select CRYPTO_ALGAPI
  827. select CRYPTO_CRYPTD
  828. select CRYPTO_ABLK_HELPER
  829. select CRYPTO_GLUE_HELPER_X86
  830. select CRYPTO_CAST_COMMON
  831. select CRYPTO_CAST6
  832. select CRYPTO_LRW
  833. select CRYPTO_XTS
  834. help
  835. The CAST6 encryption algorithm (synonymous with CAST-256) is
  836. described in RFC2612.
  837. This module provides the Cast6 cipher algorithm that processes
  838. eight blocks parallel using the AVX instruction set.
  839. config CRYPTO_DES
  840. tristate "DES and Triple DES EDE cipher algorithms"
  841. select CRYPTO_ALGAPI
  842. help
  843. DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
  844. config CRYPTO_DES_SPARC64
  845. tristate "DES and Triple DES EDE cipher algorithms (SPARC64)"
  846. depends on SPARC64
  847. select CRYPTO_ALGAPI
  848. select CRYPTO_DES
  849. help
  850. DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3),
  851. optimized using SPARC64 crypto opcodes.
  852. config CRYPTO_FCRYPT
  853. tristate "FCrypt cipher algorithm"
  854. select CRYPTO_ALGAPI
  855. select CRYPTO_BLKCIPHER
  856. help
  857. FCrypt algorithm used by RxRPC.
  858. config CRYPTO_KHAZAD
  859. tristate "Khazad cipher algorithm"
  860. select CRYPTO_ALGAPI
  861. help
  862. Khazad cipher algorithm.
  863. Khazad was a finalist in the initial NESSIE competition. It is
  864. an algorithm optimized for 64-bit processors with good performance
  865. on 32-bit processors. Khazad uses an 128 bit key size.
  866. See also:
  867. <http://www.larc.usp.br/~pbarreto/KhazadPage.html>
  868. config CRYPTO_SALSA20
  869. tristate "Salsa20 stream cipher algorithm"
  870. select CRYPTO_BLKCIPHER
  871. help
  872. Salsa20 stream cipher algorithm.
  873. Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
  874. Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
  875. The Salsa20 stream cipher algorithm is designed by Daniel J.
  876. Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
  877. config CRYPTO_SALSA20_586
  878. tristate "Salsa20 stream cipher algorithm (i586)"
  879. depends on (X86 || UML_X86) && !64BIT
  880. select CRYPTO_BLKCIPHER
  881. help
  882. Salsa20 stream cipher algorithm.
  883. Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
  884. Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
  885. The Salsa20 stream cipher algorithm is designed by Daniel J.
  886. Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
  887. config CRYPTO_SALSA20_X86_64
  888. tristate "Salsa20 stream cipher algorithm (x86_64)"
  889. depends on (X86 || UML_X86) && 64BIT
  890. select CRYPTO_BLKCIPHER
  891. help
  892. Salsa20 stream cipher algorithm.
  893. Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
  894. Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
  895. The Salsa20 stream cipher algorithm is designed by Daniel J.
  896. Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
  897. config CRYPTO_SEED
  898. tristate "SEED cipher algorithm"
  899. select CRYPTO_ALGAPI
  900. help
  901. SEED cipher algorithm (RFC4269).
  902. SEED is a 128-bit symmetric key block cipher that has been
  903. developed by KISA (Korea Information Security Agency) as a
  904. national standard encryption algorithm of the Republic of Korea.
  905. It is a 16 round block cipher with the key size of 128 bit.
  906. See also:
  907. <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>
  908. config CRYPTO_SERPENT
  909. tristate "Serpent cipher algorithm"
  910. select CRYPTO_ALGAPI
  911. help
  912. Serpent cipher algorithm, by Anderson, Biham & Knudsen.
  913. Keys are allowed to be from 0 to 256 bits in length, in steps
  914. of 8 bits. Also includes the 'Tnepres' algorithm, a reversed
  915. variant of Serpent for compatibility with old kerneli.org code.
  916. See also:
  917. <http://www.cl.cam.ac.uk/~rja14/serpent.html>
  918. config CRYPTO_SERPENT_SSE2_X86_64
  919. tristate "Serpent cipher algorithm (x86_64/SSE2)"
  920. depends on X86 && 64BIT
  921. select CRYPTO_ALGAPI
  922. select CRYPTO_CRYPTD
  923. select CRYPTO_ABLK_HELPER
  924. select CRYPTO_GLUE_HELPER_X86
  925. select CRYPTO_SERPENT
  926. select CRYPTO_LRW
  927. select CRYPTO_XTS
  928. help
  929. Serpent cipher algorithm, by Anderson, Biham & Knudsen.
  930. Keys are allowed to be from 0 to 256 bits in length, in steps
  931. of 8 bits.
  932. This module provides Serpent cipher algorithm that processes eigth
  933. blocks parallel using SSE2 instruction set.
  934. See also:
  935. <http://www.cl.cam.ac.uk/~rja14/serpent.html>
  936. config CRYPTO_SERPENT_SSE2_586
  937. tristate "Serpent cipher algorithm (i586/SSE2)"
  938. depends on X86 && !64BIT
  939. select CRYPTO_ALGAPI
  940. select CRYPTO_CRYPTD
  941. select CRYPTO_ABLK_HELPER
  942. select CRYPTO_GLUE_HELPER_X86
  943. select CRYPTO_SERPENT
  944. select CRYPTO_LRW
  945. select CRYPTO_XTS
  946. help
  947. Serpent cipher algorithm, by Anderson, Biham & Knudsen.
  948. Keys are allowed to be from 0 to 256 bits in length, in steps
  949. of 8 bits.
  950. This module provides Serpent cipher algorithm that processes four
  951. blocks parallel using SSE2 instruction set.
  952. See also:
  953. <http://www.cl.cam.ac.uk/~rja14/serpent.html>
  954. config CRYPTO_SERPENT_AVX_X86_64
  955. tristate "Serpent cipher algorithm (x86_64/AVX)"
  956. depends on X86 && 64BIT
  957. select CRYPTO_ALGAPI
  958. select CRYPTO_CRYPTD
  959. select CRYPTO_ABLK_HELPER
  960. select CRYPTO_GLUE_HELPER_X86
  961. select CRYPTO_SERPENT
  962. select CRYPTO_LRW
  963. select CRYPTO_XTS
  964. help
  965. Serpent cipher algorithm, by Anderson, Biham & Knudsen.
  966. Keys are allowed to be from 0 to 256 bits in length, in steps
  967. of 8 bits.
  968. This module provides the Serpent cipher algorithm that processes
  969. eight blocks parallel using the AVX instruction set.
  970. See also:
  971. <http://www.cl.cam.ac.uk/~rja14/serpent.html>
  972. config CRYPTO_SERPENT_AVX2_X86_64
  973. tristate "Serpent cipher algorithm (x86_64/AVX2)"
  974. depends on X86 && 64BIT
  975. select CRYPTO_ALGAPI
  976. select CRYPTO_CRYPTD
  977. select CRYPTO_ABLK_HELPER
  978. select CRYPTO_GLUE_HELPER_X86
  979. select CRYPTO_SERPENT
  980. select CRYPTO_SERPENT_AVX_X86_64
  981. select CRYPTO_LRW
  982. select CRYPTO_XTS
  983. help
  984. Serpent cipher algorithm, by Anderson, Biham & Knudsen.
  985. Keys are allowed to be from 0 to 256 bits in length, in steps
  986. of 8 bits.
  987. This module provides Serpent cipher algorithm that processes 16
  988. blocks parallel using AVX2 instruction set.
  989. See also:
  990. <http://www.cl.cam.ac.uk/~rja14/serpent.html>
  991. config CRYPTO_TEA
  992. tristate "TEA, XTEA and XETA cipher algorithms"
  993. select CRYPTO_ALGAPI
  994. help
  995. TEA cipher algorithm.
  996. Tiny Encryption Algorithm is a simple cipher that uses
  997. many rounds for security. It is very fast and uses
  998. little memory.
  999. Xtendend Tiny Encryption Algorithm is a modification to
  1000. the TEA algorithm to address a potential key weakness
  1001. in the TEA algorithm.
  1002. Xtendend Encryption Tiny Algorithm is a mis-implementation
  1003. of the XTEA algorithm for compatibility purposes.
  1004. config CRYPTO_TWOFISH
  1005. tristate "Twofish cipher algorithm"
  1006. select CRYPTO_ALGAPI
  1007. select CRYPTO_TWOFISH_COMMON
  1008. help
  1009. Twofish cipher algorithm.
  1010. Twofish was submitted as an AES (Advanced Encryption Standard)
  1011. candidate cipher by researchers at CounterPane Systems. It is a
  1012. 16 round block cipher supporting key sizes of 128, 192, and 256
  1013. bits.
  1014. See also:
  1015. <http://www.schneier.com/twofish.html>
  1016. config CRYPTO_TWOFISH_COMMON
  1017. tristate
  1018. help
  1019. Common parts of the Twofish cipher algorithm shared by the
  1020. generic c and the assembler implementations.
  1021. config CRYPTO_TWOFISH_586
  1022. tristate "Twofish cipher algorithms (i586)"
  1023. depends on (X86 || UML_X86) && !64BIT
  1024. select CRYPTO_ALGAPI
  1025. select CRYPTO_TWOFISH_COMMON
  1026. help
  1027. Twofish cipher algorithm.
  1028. Twofish was submitted as an AES (Advanced Encryption Standard)
  1029. candidate cipher by researchers at CounterPane Systems. It is a
  1030. 16 round block cipher supporting key sizes of 128, 192, and 256
  1031. bits.
  1032. See also:
  1033. <http://www.schneier.com/twofish.html>
  1034. config CRYPTO_TWOFISH_X86_64
  1035. tristate "Twofish cipher algorithm (x86_64)"
  1036. depends on (X86 || UML_X86) && 64BIT
  1037. select CRYPTO_ALGAPI
  1038. select CRYPTO_TWOFISH_COMMON
  1039. help
  1040. Twofish cipher algorithm (x86_64).
  1041. Twofish was submitted as an AES (Advanced Encryption Standard)
  1042. candidate cipher by researchers at CounterPane Systems. It is a
  1043. 16 round block cipher supporting key sizes of 128, 192, and 256
  1044. bits.
  1045. See also:
  1046. <http://www.schneier.com/twofish.html>
  1047. config CRYPTO_TWOFISH_X86_64_3WAY
  1048. tristate "Twofish cipher algorithm (x86_64, 3-way parallel)"
  1049. depends on X86 && 64BIT
  1050. select CRYPTO_ALGAPI
  1051. select CRYPTO_TWOFISH_COMMON
  1052. select CRYPTO_TWOFISH_X86_64
  1053. select CRYPTO_GLUE_HELPER_X86
  1054. select CRYPTO_LRW
  1055. select CRYPTO_XTS
  1056. help
  1057. Twofish cipher algorithm (x86_64, 3-way parallel).
  1058. Twofish was submitted as an AES (Advanced Encryption Standard)
  1059. candidate cipher by researchers at CounterPane Systems. It is a
  1060. 16 round block cipher supporting key sizes of 128, 192, and 256
  1061. bits.
  1062. This module provides Twofish cipher algorithm that processes three
  1063. blocks parallel, utilizing resources of out-of-order CPUs better.
  1064. See also:
  1065. <http://www.schneier.com/twofish.html>
  1066. config CRYPTO_TWOFISH_AVX_X86_64
  1067. tristate "Twofish cipher algorithm (x86_64/AVX)"
  1068. depends on X86 && 64BIT
  1069. select CRYPTO_ALGAPI
  1070. select CRYPTO_CRYPTD
  1071. select CRYPTO_ABLK_HELPER
  1072. select CRYPTO_GLUE_HELPER_X86
  1073. select CRYPTO_TWOFISH_COMMON
  1074. select CRYPTO_TWOFISH_X86_64
  1075. select CRYPTO_TWOFISH_X86_64_3WAY
  1076. select CRYPTO_LRW
  1077. select CRYPTO_XTS
  1078. help
  1079. Twofish cipher algorithm (x86_64/AVX).
  1080. Twofish was submitted as an AES (Advanced Encryption Standard)
  1081. candidate cipher by researchers at CounterPane Systems. It is a
  1082. 16 round block cipher supporting key sizes of 128, 192, and 256
  1083. bits.
  1084. This module provides the Twofish cipher algorithm that processes
  1085. eight blocks parallel using the AVX Instruction Set.
  1086. See also:
  1087. <http://www.schneier.com/twofish.html>
  1088. comment "Compression"
  1089. config CRYPTO_DEFLATE
  1090. tristate "Deflate compression algorithm"
  1091. select CRYPTO_ALGAPI
  1092. select ZLIB_INFLATE
  1093. select ZLIB_DEFLATE
  1094. help
  1095. This is the Deflate algorithm (RFC1951), specified for use in
  1096. IPSec with the IPCOMP protocol (RFC3173, RFC2394).
  1097. You will most probably want this if using IPSec.
  1098. config CRYPTO_ZLIB
  1099. tristate "Zlib compression algorithm"
  1100. select CRYPTO_PCOMP
  1101. select ZLIB_INFLATE
  1102. select ZLIB_DEFLATE
  1103. select NLATTR
  1104. help
  1105. This is the zlib algorithm.
  1106. config CRYPTO_LZO
  1107. tristate "LZO compression algorithm"
  1108. select CRYPTO_ALGAPI
  1109. select LZO_COMPRESS
  1110. select LZO_DECOMPRESS
  1111. help
  1112. This is the LZO algorithm.
  1113. config CRYPTO_842
  1114. tristate "842 compression algorithm"
  1115. depends on CRYPTO_DEV_NX_COMPRESS
  1116. # 842 uses lzo if the hardware becomes unavailable
  1117. select LZO_COMPRESS
  1118. select LZO_DECOMPRESS
  1119. help
  1120. This is the 842 algorithm.
  1121. config CRYPTO_LZ4
  1122. tristate "LZ4 compression algorithm"
  1123. select CRYPTO_ALGAPI
  1124. select LZ4_COMPRESS
  1125. select LZ4_DECOMPRESS
  1126. help
  1127. This is the LZ4 algorithm.
  1128. config CRYPTO_LZ4HC
  1129. tristate "LZ4HC compression algorithm"
  1130. select CRYPTO_ALGAPI
  1131. select LZ4HC_COMPRESS
  1132. select LZ4_DECOMPRESS
  1133. help
  1134. This is the LZ4 high compression mode algorithm.
  1135. comment "Random Number Generation"
  1136. config CRYPTO_ANSI_CPRNG
  1137. tristate "Pseudo Random Number Generation for Cryptographic modules"
  1138. default m
  1139. select CRYPTO_AES
  1140. select CRYPTO_RNG
  1141. help
  1142. This option enables the generic pseudo random number generator
  1143. for cryptographic modules. Uses the Algorithm specified in
  1144. ANSI X9.31 A.2.4. Note that this option must be enabled if
  1145. CRYPTO_FIPS is selected
  1146. config CRYPTO_USER_API
  1147. tristate
  1148. config CRYPTO_USER_API_HASH
  1149. tristate "User-space interface for hash algorithms"
  1150. depends on NET
  1151. select CRYPTO_HASH
  1152. select CRYPTO_USER_API
  1153. help
  1154. This option enables the user-spaces interface for hash
  1155. algorithms.
  1156. config CRYPTO_USER_API_SKCIPHER
  1157. tristate "User-space interface for symmetric key cipher algorithms"
  1158. depends on NET
  1159. select CRYPTO_BLKCIPHER
  1160. select CRYPTO_USER_API
  1161. help
  1162. This option enables the user-spaces interface for symmetric
  1163. key cipher algorithms.
  1164. config CRYPTO_HASH_INFO
  1165. bool
  1166. source "drivers/crypto/Kconfig"
  1167. source crypto/asymmetric_keys/Kconfig
  1168. endif # if CRYPTO