Kconfig 47 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640
  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_DRBG) && !CRYPTO_MANAGER_DISABLE_TESTS
  22. depends on MODULE_SIG
  23. help
  24. This options enables the fips boot option which is
  25. required if you want to system to operate in a FIPS 200
  26. certification. You should say no unless you know what
  27. this is.
  28. config CRYPTO_ALGAPI
  29. tristate
  30. select CRYPTO_ALGAPI2
  31. help
  32. This option provides the API for cryptographic algorithms.
  33. config CRYPTO_ALGAPI2
  34. tristate
  35. config CRYPTO_AEAD
  36. tristate
  37. select CRYPTO_AEAD2
  38. select CRYPTO_ALGAPI
  39. config CRYPTO_AEAD2
  40. tristate
  41. select CRYPTO_ALGAPI2
  42. select CRYPTO_NULL2
  43. select CRYPTO_RNG2
  44. config CRYPTO_BLKCIPHER
  45. tristate
  46. select CRYPTO_BLKCIPHER2
  47. select CRYPTO_ALGAPI
  48. config CRYPTO_BLKCIPHER2
  49. tristate
  50. select CRYPTO_ALGAPI2
  51. select CRYPTO_RNG2
  52. select CRYPTO_WORKQUEUE
  53. config CRYPTO_HASH
  54. tristate
  55. select CRYPTO_HASH2
  56. select CRYPTO_ALGAPI
  57. config CRYPTO_HASH2
  58. tristate
  59. select CRYPTO_ALGAPI2
  60. config CRYPTO_RNG
  61. tristate
  62. select CRYPTO_RNG2
  63. select CRYPTO_ALGAPI
  64. config CRYPTO_RNG2
  65. tristate
  66. select CRYPTO_ALGAPI2
  67. config CRYPTO_RNG_DEFAULT
  68. tristate
  69. select CRYPTO_DRBG_MENU
  70. config CRYPTO_PCOMP
  71. tristate
  72. select CRYPTO_PCOMP2
  73. select CRYPTO_ALGAPI
  74. config CRYPTO_PCOMP2
  75. tristate
  76. select CRYPTO_ALGAPI2
  77. config CRYPTO_AKCIPHER2
  78. tristate
  79. select CRYPTO_ALGAPI2
  80. config CRYPTO_AKCIPHER
  81. tristate
  82. select CRYPTO_AKCIPHER2
  83. select CRYPTO_ALGAPI
  84. config CRYPTO_RSA
  85. tristate "RSA algorithm"
  86. select CRYPTO_AKCIPHER
  87. select MPILIB
  88. select ASN1
  89. help
  90. Generic implementation of the RSA public key algorithm.
  91. config CRYPTO_MANAGER
  92. tristate "Cryptographic algorithm manager"
  93. select CRYPTO_MANAGER2
  94. help
  95. Create default cryptographic template instantiations such as
  96. cbc(aes).
  97. config CRYPTO_MANAGER2
  98. def_tristate CRYPTO_MANAGER || (CRYPTO_MANAGER!=n && CRYPTO_ALGAPI=y)
  99. select CRYPTO_AEAD2
  100. select CRYPTO_HASH2
  101. select CRYPTO_BLKCIPHER2
  102. select CRYPTO_PCOMP2
  103. select CRYPTO_AKCIPHER2
  104. config CRYPTO_USER
  105. tristate "Userspace cryptographic algorithm configuration"
  106. depends on NET
  107. select CRYPTO_MANAGER
  108. help
  109. Userspace configuration for cryptographic instantiations such as
  110. cbc(aes).
  111. config CRYPTO_MANAGER_DISABLE_TESTS
  112. bool "Disable run-time self tests"
  113. default y
  114. depends on CRYPTO_MANAGER2
  115. help
  116. Disable run-time self tests that normally take place at
  117. algorithm registration.
  118. config CRYPTO_GF128MUL
  119. tristate "GF(2^128) multiplication functions"
  120. help
  121. Efficient table driven implementation of multiplications in the
  122. field GF(2^128). This is needed by some cypher modes. This
  123. option will be selected automatically if you select such a
  124. cipher mode. Only select this option by hand if you expect to load
  125. an external module that requires these functions.
  126. config CRYPTO_NULL
  127. tristate "Null algorithms"
  128. select CRYPTO_NULL2
  129. help
  130. These are 'Null' algorithms, used by IPsec, which do nothing.
  131. config CRYPTO_NULL2
  132. tristate
  133. select CRYPTO_ALGAPI2
  134. select CRYPTO_BLKCIPHER2
  135. select CRYPTO_HASH2
  136. config CRYPTO_PCRYPT
  137. tristate "Parallel crypto engine"
  138. depends on SMP
  139. select PADATA
  140. select CRYPTO_MANAGER
  141. select CRYPTO_AEAD
  142. help
  143. This converts an arbitrary crypto algorithm into a parallel
  144. algorithm that executes in kernel threads.
  145. config CRYPTO_WORKQUEUE
  146. tristate
  147. config CRYPTO_CRYPTD
  148. tristate "Software async crypto daemon"
  149. select CRYPTO_BLKCIPHER
  150. select CRYPTO_HASH
  151. select CRYPTO_MANAGER
  152. select CRYPTO_WORKQUEUE
  153. help
  154. This is a generic software asynchronous crypto daemon that
  155. converts an arbitrary synchronous software crypto algorithm
  156. into an asynchronous algorithm that executes in a kernel thread.
  157. config CRYPTO_MCRYPTD
  158. tristate "Software async multi-buffer crypto daemon"
  159. select CRYPTO_BLKCIPHER
  160. select CRYPTO_HASH
  161. select CRYPTO_MANAGER
  162. select CRYPTO_WORKQUEUE
  163. help
  164. This is a generic software asynchronous crypto daemon that
  165. provides the kernel thread to assist multi-buffer crypto
  166. algorithms for submitting jobs and flushing jobs in multi-buffer
  167. crypto algorithms. Multi-buffer crypto algorithms are executed
  168. in the context of this kernel thread and drivers can post
  169. their crypto request asynchronously to be processed by this daemon.
  170. config CRYPTO_AUTHENC
  171. tristate "Authenc support"
  172. select CRYPTO_AEAD
  173. select CRYPTO_BLKCIPHER
  174. select CRYPTO_MANAGER
  175. select CRYPTO_HASH
  176. select CRYPTO_NULL
  177. help
  178. Authenc: Combined mode wrapper for IPsec.
  179. This is required for IPSec.
  180. config CRYPTO_TEST
  181. tristate "Testing module"
  182. depends on m
  183. select CRYPTO_MANAGER
  184. help
  185. Quick & dirty crypto test module.
  186. config CRYPTO_ABLK_HELPER
  187. tristate
  188. select CRYPTO_CRYPTD
  189. config CRYPTO_GLUE_HELPER_X86
  190. tristate
  191. depends on X86
  192. select CRYPTO_ALGAPI
  193. comment "Authenticated Encryption with Associated Data"
  194. config CRYPTO_CCM
  195. tristate "CCM support"
  196. select CRYPTO_CTR
  197. select CRYPTO_AEAD
  198. help
  199. Support for Counter with CBC MAC. Required for IPsec.
  200. config CRYPTO_GCM
  201. tristate "GCM/GMAC support"
  202. select CRYPTO_CTR
  203. select CRYPTO_AEAD
  204. select CRYPTO_GHASH
  205. select CRYPTO_NULL
  206. help
  207. Support for Galois/Counter Mode (GCM) and Galois Message
  208. Authentication Code (GMAC). Required for IPSec.
  209. config CRYPTO_CHACHA20POLY1305
  210. tristate "ChaCha20-Poly1305 AEAD support"
  211. select CRYPTO_CHACHA20
  212. select CRYPTO_POLY1305
  213. select CRYPTO_AEAD
  214. help
  215. ChaCha20-Poly1305 AEAD support, RFC7539.
  216. Support for the AEAD wrapper using the ChaCha20 stream cipher combined
  217. with the Poly1305 authenticator. It is defined in RFC7539 for use in
  218. IETF protocols.
  219. config CRYPTO_SEQIV
  220. tristate "Sequence Number IV Generator"
  221. select CRYPTO_AEAD
  222. select CRYPTO_BLKCIPHER
  223. select CRYPTO_NULL
  224. select CRYPTO_RNG_DEFAULT
  225. help
  226. This IV generator generates an IV based on a sequence number by
  227. xoring it with a salt. This algorithm is mainly useful for CTR
  228. config CRYPTO_ECHAINIV
  229. tristate "Encrypted Chain IV Generator"
  230. select CRYPTO_AEAD
  231. select CRYPTO_NULL
  232. select CRYPTO_RNG_DEFAULT
  233. default m
  234. help
  235. This IV generator generates an IV based on the encryption of
  236. a sequence number xored with a salt. This is the default
  237. algorithm for CBC.
  238. comment "Block modes"
  239. config CRYPTO_CBC
  240. tristate "CBC support"
  241. select CRYPTO_BLKCIPHER
  242. select CRYPTO_MANAGER
  243. help
  244. CBC: Cipher Block Chaining mode
  245. This block cipher algorithm is required for IPSec.
  246. config CRYPTO_CTR
  247. tristate "CTR support"
  248. select CRYPTO_BLKCIPHER
  249. select CRYPTO_SEQIV
  250. select CRYPTO_MANAGER
  251. help
  252. CTR: Counter mode
  253. This block cipher algorithm is required for IPSec.
  254. config CRYPTO_CTS
  255. tristate "CTS support"
  256. select CRYPTO_BLKCIPHER
  257. help
  258. CTS: Cipher Text Stealing
  259. This is the Cipher Text Stealing mode as described by
  260. Section 8 of rfc2040 and referenced by rfc3962.
  261. (rfc3962 includes errata information in its Appendix A)
  262. This mode is required for Kerberos gss mechanism support
  263. for AES encryption.
  264. config CRYPTO_ECB
  265. tristate "ECB support"
  266. select CRYPTO_BLKCIPHER
  267. select CRYPTO_MANAGER
  268. help
  269. ECB: Electronic CodeBook mode
  270. This is the simplest block cipher algorithm. It simply encrypts
  271. the input block by block.
  272. config CRYPTO_LRW
  273. tristate "LRW support"
  274. select CRYPTO_BLKCIPHER
  275. select CRYPTO_MANAGER
  276. select CRYPTO_GF128MUL
  277. help
  278. LRW: Liskov Rivest Wagner, a tweakable, non malleable, non movable
  279. narrow block cipher mode for dm-crypt. Use it with cipher
  280. specification string aes-lrw-benbi, the key must be 256, 320 or 384.
  281. The first 128, 192 or 256 bits in the key are used for AES and the
  282. rest is used to tie each cipher block to its logical position.
  283. config CRYPTO_PCBC
  284. tristate "PCBC support"
  285. select CRYPTO_BLKCIPHER
  286. select CRYPTO_MANAGER
  287. help
  288. PCBC: Propagating Cipher Block Chaining mode
  289. This block cipher algorithm is required for RxRPC.
  290. config CRYPTO_XTS
  291. tristate "XTS support"
  292. select CRYPTO_BLKCIPHER
  293. select CRYPTO_MANAGER
  294. select CRYPTO_GF128MUL
  295. help
  296. XTS: IEEE1619/D16 narrow block cipher use with aes-xts-plain,
  297. key size 256, 384 or 512 bits. This implementation currently
  298. can't handle a sectorsize which is not a multiple of 16 bytes.
  299. comment "Hash modes"
  300. config CRYPTO_CMAC
  301. tristate "CMAC support"
  302. select CRYPTO_HASH
  303. select CRYPTO_MANAGER
  304. help
  305. Cipher-based Message Authentication Code (CMAC) specified by
  306. The National Institute of Standards and Technology (NIST).
  307. https://tools.ietf.org/html/rfc4493
  308. http://csrc.nist.gov/publications/nistpubs/800-38B/SP_800-38B.pdf
  309. config CRYPTO_HMAC
  310. tristate "HMAC support"
  311. select CRYPTO_HASH
  312. select CRYPTO_MANAGER
  313. help
  314. HMAC: Keyed-Hashing for Message Authentication (RFC2104).
  315. This is required for IPSec.
  316. config CRYPTO_XCBC
  317. tristate "XCBC support"
  318. select CRYPTO_HASH
  319. select CRYPTO_MANAGER
  320. help
  321. XCBC: Keyed-Hashing with encryption algorithm
  322. http://www.ietf.org/rfc/rfc3566.txt
  323. http://csrc.nist.gov/encryption/modes/proposedmodes/
  324. xcbc-mac/xcbc-mac-spec.pdf
  325. config CRYPTO_VMAC
  326. tristate "VMAC support"
  327. select CRYPTO_HASH
  328. select CRYPTO_MANAGER
  329. help
  330. VMAC is a message authentication algorithm designed for
  331. very high speed on 64-bit architectures.
  332. See also:
  333. <http://fastcrypto.org/vmac>
  334. comment "Digest"
  335. config CRYPTO_CRC32C
  336. tristate "CRC32c CRC algorithm"
  337. select CRYPTO_HASH
  338. select CRC32
  339. help
  340. Castagnoli, et al Cyclic Redundancy-Check Algorithm. Used
  341. by iSCSI for header and data digests and by others.
  342. See Castagnoli93. Module will be crc32c.
  343. config CRYPTO_CRC32C_INTEL
  344. tristate "CRC32c INTEL hardware acceleration"
  345. depends on X86
  346. select CRYPTO_HASH
  347. help
  348. In Intel processor with SSE4.2 supported, the processor will
  349. support CRC32C implementation using hardware accelerated CRC32
  350. instruction. This option will create 'crc32c-intel' module,
  351. which will enable any routine to use the CRC32 instruction to
  352. gain performance compared with software implementation.
  353. Module will be crc32c-intel.
  354. config CRYPTO_CRC32C_SPARC64
  355. tristate "CRC32c CRC algorithm (SPARC64)"
  356. depends on SPARC64
  357. select CRYPTO_HASH
  358. select CRC32
  359. help
  360. CRC32c CRC algorithm implemented using sparc64 crypto instructions,
  361. when available.
  362. config CRYPTO_CRC32
  363. tristate "CRC32 CRC algorithm"
  364. select CRYPTO_HASH
  365. select CRC32
  366. help
  367. CRC-32-IEEE 802.3 cyclic redundancy-check algorithm.
  368. Shash crypto api wrappers to crc32_le function.
  369. config CRYPTO_CRC32_PCLMUL
  370. tristate "CRC32 PCLMULQDQ hardware acceleration"
  371. depends on X86
  372. select CRYPTO_HASH
  373. select CRC32
  374. help
  375. From Intel Westmere and AMD Bulldozer processor with SSE4.2
  376. and PCLMULQDQ supported, the processor will support
  377. CRC32 PCLMULQDQ implementation using hardware accelerated PCLMULQDQ
  378. instruction. This option will create 'crc32-plcmul' module,
  379. which will enable any routine to use the CRC-32-IEEE 802.3 checksum
  380. and gain better performance as compared with the table implementation.
  381. config CRYPTO_CRCT10DIF
  382. tristate "CRCT10DIF algorithm"
  383. select CRYPTO_HASH
  384. help
  385. CRC T10 Data Integrity Field computation is being cast as
  386. a crypto transform. This allows for faster crc t10 diff
  387. transforms to be used if they are available.
  388. config CRYPTO_CRCT10DIF_PCLMUL
  389. tristate "CRCT10DIF PCLMULQDQ hardware acceleration"
  390. depends on X86 && 64BIT && CRC_T10DIF
  391. select CRYPTO_HASH
  392. help
  393. For x86_64 processors with SSE4.2 and PCLMULQDQ supported,
  394. CRC T10 DIF PCLMULQDQ computation can be hardware
  395. accelerated PCLMULQDQ instruction. This option will create
  396. 'crct10dif-plcmul' module, which is faster when computing the
  397. crct10dif checksum as compared with the generic table implementation.
  398. config CRYPTO_GHASH
  399. tristate "GHASH digest algorithm"
  400. select CRYPTO_GF128MUL
  401. help
  402. GHASH is message digest algorithm for GCM (Galois/Counter Mode).
  403. config CRYPTO_POLY1305
  404. tristate "Poly1305 authenticator algorithm"
  405. help
  406. Poly1305 authenticator algorithm, RFC7539.
  407. Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein.
  408. It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use
  409. in IETF protocols. This is the portable C implementation of Poly1305.
  410. config CRYPTO_POLY1305_X86_64
  411. tristate "Poly1305 authenticator algorithm (x86_64/SSE2/AVX2)"
  412. depends on X86 && 64BIT
  413. select CRYPTO_POLY1305
  414. help
  415. Poly1305 authenticator algorithm, RFC7539.
  416. Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein.
  417. It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use
  418. in IETF protocols. This is the x86_64 assembler implementation using SIMD
  419. instructions.
  420. config CRYPTO_MD4
  421. tristate "MD4 digest algorithm"
  422. select CRYPTO_HASH
  423. help
  424. MD4 message digest algorithm (RFC1320).
  425. config CRYPTO_MD5
  426. tristate "MD5 digest algorithm"
  427. select CRYPTO_HASH
  428. help
  429. MD5 message digest algorithm (RFC1321).
  430. config CRYPTO_MD5_OCTEON
  431. tristate "MD5 digest algorithm (OCTEON)"
  432. depends on CPU_CAVIUM_OCTEON
  433. select CRYPTO_MD5
  434. select CRYPTO_HASH
  435. help
  436. MD5 message digest algorithm (RFC1321) implemented
  437. using OCTEON crypto instructions, when available.
  438. config CRYPTO_MD5_PPC
  439. tristate "MD5 digest algorithm (PPC)"
  440. depends on PPC
  441. select CRYPTO_HASH
  442. help
  443. MD5 message digest algorithm (RFC1321) implemented
  444. in PPC assembler.
  445. config CRYPTO_MD5_SPARC64
  446. tristate "MD5 digest algorithm (SPARC64)"
  447. depends on SPARC64
  448. select CRYPTO_MD5
  449. select CRYPTO_HASH
  450. help
  451. MD5 message digest algorithm (RFC1321) implemented
  452. using sparc64 crypto instructions, when available.
  453. config CRYPTO_MICHAEL_MIC
  454. tristate "Michael MIC keyed digest algorithm"
  455. select CRYPTO_HASH
  456. help
  457. Michael MIC is used for message integrity protection in TKIP
  458. (IEEE 802.11i). This algorithm is required for TKIP, but it
  459. should not be used for other purposes because of the weakness
  460. of the algorithm.
  461. config CRYPTO_RMD128
  462. tristate "RIPEMD-128 digest algorithm"
  463. select CRYPTO_HASH
  464. help
  465. RIPEMD-128 (ISO/IEC 10118-3:2004).
  466. RIPEMD-128 is a 128-bit cryptographic hash function. It should only
  467. be used as a secure replacement for RIPEMD. For other use cases,
  468. RIPEMD-160 should be used.
  469. Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
  470. See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
  471. config CRYPTO_RMD160
  472. tristate "RIPEMD-160 digest algorithm"
  473. select CRYPTO_HASH
  474. help
  475. RIPEMD-160 (ISO/IEC 10118-3:2004).
  476. RIPEMD-160 is a 160-bit cryptographic hash function. It is intended
  477. to be used as a secure replacement for the 128-bit hash functions
  478. MD4, MD5 and it's predecessor RIPEMD
  479. (not to be confused with RIPEMD-128).
  480. It's speed is comparable to SHA1 and there are no known attacks
  481. against RIPEMD-160.
  482. Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
  483. See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
  484. config CRYPTO_RMD256
  485. tristate "RIPEMD-256 digest algorithm"
  486. select CRYPTO_HASH
  487. help
  488. RIPEMD-256 is an optional extension of RIPEMD-128 with a
  489. 256 bit hash. It is intended for applications that require
  490. longer hash-results, without needing a larger security level
  491. (than RIPEMD-128).
  492. Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
  493. See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
  494. config CRYPTO_RMD320
  495. tristate "RIPEMD-320 digest algorithm"
  496. select CRYPTO_HASH
  497. help
  498. RIPEMD-320 is an optional extension of RIPEMD-160 with a
  499. 320 bit hash. It is intended for applications that require
  500. longer hash-results, without needing a larger security level
  501. (than RIPEMD-160).
  502. Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
  503. See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
  504. config CRYPTO_SHA1
  505. tristate "SHA1 digest algorithm"
  506. select CRYPTO_HASH
  507. help
  508. SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
  509. config CRYPTO_SHA1_SSSE3
  510. tristate "SHA1 digest algorithm (SSSE3/AVX/AVX2)"
  511. depends on X86 && 64BIT
  512. select CRYPTO_SHA1
  513. select CRYPTO_HASH
  514. help
  515. SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
  516. using Supplemental SSE3 (SSSE3) instructions or Advanced Vector
  517. Extensions (AVX/AVX2), when available.
  518. config CRYPTO_SHA256_SSSE3
  519. tristate "SHA256 digest algorithm (SSSE3/AVX/AVX2)"
  520. depends on X86 && 64BIT
  521. select CRYPTO_SHA256
  522. select CRYPTO_HASH
  523. help
  524. SHA-256 secure hash standard (DFIPS 180-2) implemented
  525. using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
  526. Extensions version 1 (AVX1), or Advanced Vector Extensions
  527. version 2 (AVX2) instructions, when available.
  528. config CRYPTO_SHA512_SSSE3
  529. tristate "SHA512 digest algorithm (SSSE3/AVX/AVX2)"
  530. depends on X86 && 64BIT
  531. select CRYPTO_SHA512
  532. select CRYPTO_HASH
  533. help
  534. SHA-512 secure hash standard (DFIPS 180-2) implemented
  535. using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
  536. Extensions version 1 (AVX1), or Advanced Vector Extensions
  537. version 2 (AVX2) instructions, when available.
  538. config CRYPTO_SHA1_OCTEON
  539. tristate "SHA1 digest algorithm (OCTEON)"
  540. depends on CPU_CAVIUM_OCTEON
  541. select CRYPTO_SHA1
  542. select CRYPTO_HASH
  543. help
  544. SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
  545. using OCTEON crypto instructions, when available.
  546. config CRYPTO_SHA1_SPARC64
  547. tristate "SHA1 digest algorithm (SPARC64)"
  548. depends on SPARC64
  549. select CRYPTO_SHA1
  550. select CRYPTO_HASH
  551. help
  552. SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
  553. using sparc64 crypto instructions, when available.
  554. config CRYPTO_SHA1_PPC
  555. tristate "SHA1 digest algorithm (powerpc)"
  556. depends on PPC
  557. help
  558. This is the powerpc hardware accelerated implementation of the
  559. SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
  560. config CRYPTO_SHA1_PPC_SPE
  561. tristate "SHA1 digest algorithm (PPC SPE)"
  562. depends on PPC && SPE
  563. help
  564. SHA-1 secure hash standard (DFIPS 180-4) implemented
  565. using powerpc SPE SIMD instruction set.
  566. config CRYPTO_SHA1_MB
  567. tristate "SHA1 digest algorithm (x86_64 Multi-Buffer, Experimental)"
  568. depends on X86 && 64BIT
  569. select CRYPTO_SHA1
  570. select CRYPTO_HASH
  571. select CRYPTO_MCRYPTD
  572. help
  573. SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
  574. using multi-buffer technique. This algorithm computes on
  575. multiple data lanes concurrently with SIMD instructions for
  576. better throughput. It should not be enabled by default but
  577. used when there is significant amount of work to keep the keep
  578. the data lanes filled to get performance benefit. If the data
  579. lanes remain unfilled, a flush operation will be initiated to
  580. process the crypto jobs, adding a slight latency.
  581. config CRYPTO_SHA256
  582. tristate "SHA224 and SHA256 digest algorithm"
  583. select CRYPTO_HASH
  584. help
  585. SHA256 secure hash standard (DFIPS 180-2).
  586. This version of SHA implements a 256 bit hash with 128 bits of
  587. security against collision attacks.
  588. This code also includes SHA-224, a 224 bit hash with 112 bits
  589. of security against collision attacks.
  590. config CRYPTO_SHA256_PPC_SPE
  591. tristate "SHA224 and SHA256 digest algorithm (PPC SPE)"
  592. depends on PPC && SPE
  593. select CRYPTO_SHA256
  594. select CRYPTO_HASH
  595. help
  596. SHA224 and SHA256 secure hash standard (DFIPS 180-2)
  597. implemented using powerpc SPE SIMD instruction set.
  598. config CRYPTO_SHA256_OCTEON
  599. tristate "SHA224 and SHA256 digest algorithm (OCTEON)"
  600. depends on CPU_CAVIUM_OCTEON
  601. select CRYPTO_SHA256
  602. select CRYPTO_HASH
  603. help
  604. SHA-256 secure hash standard (DFIPS 180-2) implemented
  605. using OCTEON crypto instructions, when available.
  606. config CRYPTO_SHA256_SPARC64
  607. tristate "SHA224 and SHA256 digest algorithm (SPARC64)"
  608. depends on SPARC64
  609. select CRYPTO_SHA256
  610. select CRYPTO_HASH
  611. help
  612. SHA-256 secure hash standard (DFIPS 180-2) implemented
  613. using sparc64 crypto instructions, when available.
  614. config CRYPTO_SHA512
  615. tristate "SHA384 and SHA512 digest algorithms"
  616. select CRYPTO_HASH
  617. help
  618. SHA512 secure hash standard (DFIPS 180-2).
  619. This version of SHA implements a 512 bit hash with 256 bits of
  620. security against collision attacks.
  621. This code also includes SHA-384, a 384 bit hash with 192 bits
  622. of security against collision attacks.
  623. config CRYPTO_SHA512_OCTEON
  624. tristate "SHA384 and SHA512 digest algorithms (OCTEON)"
  625. depends on CPU_CAVIUM_OCTEON
  626. select CRYPTO_SHA512
  627. select CRYPTO_HASH
  628. help
  629. SHA-512 secure hash standard (DFIPS 180-2) implemented
  630. using OCTEON crypto instructions, when available.
  631. config CRYPTO_SHA512_SPARC64
  632. tristate "SHA384 and SHA512 digest algorithm (SPARC64)"
  633. depends on SPARC64
  634. select CRYPTO_SHA512
  635. select CRYPTO_HASH
  636. help
  637. SHA-512 secure hash standard (DFIPS 180-2) implemented
  638. using sparc64 crypto instructions, when available.
  639. config CRYPTO_TGR192
  640. tristate "Tiger digest algorithms"
  641. select CRYPTO_HASH
  642. help
  643. Tiger hash algorithm 192, 160 and 128-bit hashes
  644. Tiger is a hash function optimized for 64-bit processors while
  645. still having decent performance on 32-bit processors.
  646. Tiger was developed by Ross Anderson and Eli Biham.
  647. See also:
  648. <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>.
  649. config CRYPTO_WP512
  650. tristate "Whirlpool digest algorithms"
  651. select CRYPTO_HASH
  652. help
  653. Whirlpool hash algorithm 512, 384 and 256-bit hashes
  654. Whirlpool-512 is part of the NESSIE cryptographic primitives.
  655. Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard
  656. See also:
  657. <http://www.larc.usp.br/~pbarreto/WhirlpoolPage.html>
  658. config CRYPTO_GHASH_CLMUL_NI_INTEL
  659. tristate "GHASH digest algorithm (CLMUL-NI accelerated)"
  660. depends on X86 && 64BIT
  661. select CRYPTO_CRYPTD
  662. help
  663. GHASH is message digest algorithm for GCM (Galois/Counter Mode).
  664. The implementation is accelerated by CLMUL-NI of Intel.
  665. comment "Ciphers"
  666. config CRYPTO_AES
  667. tristate "AES cipher algorithms"
  668. select CRYPTO_ALGAPI
  669. help
  670. AES cipher algorithms (FIPS-197). AES uses the Rijndael
  671. algorithm.
  672. Rijndael appears to be consistently a very good performer in
  673. both hardware and software across a wide range of computing
  674. environments regardless of its use in feedback or non-feedback
  675. modes. Its key setup time is excellent, and its key agility is
  676. good. Rijndael's very low memory requirements make it very well
  677. suited for restricted-space environments, in which it also
  678. demonstrates excellent performance. Rijndael's operations are
  679. among the easiest to defend against power and timing attacks.
  680. The AES specifies three key sizes: 128, 192 and 256 bits
  681. See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information.
  682. config CRYPTO_AES_586
  683. tristate "AES cipher algorithms (i586)"
  684. depends on (X86 || UML_X86) && !64BIT
  685. select CRYPTO_ALGAPI
  686. select CRYPTO_AES
  687. help
  688. AES cipher algorithms (FIPS-197). AES uses the Rijndael
  689. algorithm.
  690. Rijndael appears to be consistently a very good performer in
  691. both hardware and software across a wide range of computing
  692. environments regardless of its use in feedback or non-feedback
  693. modes. Its key setup time is excellent, and its key agility is
  694. good. Rijndael's very low memory requirements make it very well
  695. suited for restricted-space environments, in which it also
  696. demonstrates excellent performance. Rijndael's operations are
  697. among the easiest to defend against power and timing attacks.
  698. The AES specifies three key sizes: 128, 192 and 256 bits
  699. See <http://csrc.nist.gov/encryption/aes/> for more information.
  700. config CRYPTO_AES_X86_64
  701. tristate "AES cipher algorithms (x86_64)"
  702. depends on (X86 || UML_X86) && 64BIT
  703. select CRYPTO_ALGAPI
  704. select CRYPTO_AES
  705. help
  706. AES cipher algorithms (FIPS-197). AES uses the Rijndael
  707. algorithm.
  708. Rijndael appears to be consistently a very good performer in
  709. both hardware and software across a wide range of computing
  710. environments regardless of its use in feedback or non-feedback
  711. modes. Its key setup time is excellent, and its key agility is
  712. good. Rijndael's very low memory requirements make it very well
  713. suited for restricted-space environments, in which it also
  714. demonstrates excellent performance. Rijndael's operations are
  715. among the easiest to defend against power and timing attacks.
  716. The AES specifies three key sizes: 128, 192 and 256 bits
  717. See <http://csrc.nist.gov/encryption/aes/> for more information.
  718. config CRYPTO_AES_NI_INTEL
  719. tristate "AES cipher algorithms (AES-NI)"
  720. depends on X86
  721. select CRYPTO_AES_X86_64 if 64BIT
  722. select CRYPTO_AES_586 if !64BIT
  723. select CRYPTO_CRYPTD
  724. select CRYPTO_ABLK_HELPER
  725. select CRYPTO_ALGAPI
  726. select CRYPTO_GLUE_HELPER_X86 if 64BIT
  727. select CRYPTO_LRW
  728. select CRYPTO_XTS
  729. help
  730. Use Intel AES-NI instructions for AES algorithm.
  731. AES cipher algorithms (FIPS-197). AES uses the Rijndael
  732. algorithm.
  733. Rijndael appears to be consistently a very good performer in
  734. both hardware and software across a wide range of computing
  735. environments regardless of its use in feedback or non-feedback
  736. modes. Its key setup time is excellent, and its key agility is
  737. good. Rijndael's very low memory requirements make it very well
  738. suited for restricted-space environments, in which it also
  739. demonstrates excellent performance. Rijndael's operations are
  740. among the easiest to defend against power and timing attacks.
  741. The AES specifies three key sizes: 128, 192 and 256 bits
  742. See <http://csrc.nist.gov/encryption/aes/> for more information.
  743. In addition to AES cipher algorithm support, the acceleration
  744. for some popular block cipher mode is supported too, including
  745. ECB, CBC, LRW, PCBC, XTS. The 64 bit version has additional
  746. acceleration for CTR.
  747. config CRYPTO_AES_SPARC64
  748. tristate "AES cipher algorithms (SPARC64)"
  749. depends on SPARC64
  750. select CRYPTO_CRYPTD
  751. select CRYPTO_ALGAPI
  752. help
  753. Use SPARC64 crypto opcodes for AES algorithm.
  754. AES cipher algorithms (FIPS-197). AES uses the Rijndael
  755. algorithm.
  756. Rijndael appears to be consistently a very good performer in
  757. both hardware and software across a wide range of computing
  758. environments regardless of its use in feedback or non-feedback
  759. modes. Its key setup time is excellent, and its key agility is
  760. good. Rijndael's very low memory requirements make it very well
  761. suited for restricted-space environments, in which it also
  762. demonstrates excellent performance. Rijndael's operations are
  763. among the easiest to defend against power and timing attacks.
  764. The AES specifies three key sizes: 128, 192 and 256 bits
  765. See <http://csrc.nist.gov/encryption/aes/> for more information.
  766. In addition to AES cipher algorithm support, the acceleration
  767. for some popular block cipher mode is supported too, including
  768. ECB and CBC.
  769. config CRYPTO_AES_PPC_SPE
  770. tristate "AES cipher algorithms (PPC SPE)"
  771. depends on PPC && SPE
  772. help
  773. AES cipher algorithms (FIPS-197). Additionally the acceleration
  774. for popular block cipher modes ECB, CBC, CTR and XTS is supported.
  775. This module should only be used for low power (router) devices
  776. without hardware AES acceleration (e.g. caam crypto). It reduces the
  777. size of the AES tables from 16KB to 8KB + 256 bytes and mitigates
  778. timining attacks. Nevertheless it might be not as secure as other
  779. architecture specific assembler implementations that work on 1KB
  780. tables or 256 bytes S-boxes.
  781. config CRYPTO_ANUBIS
  782. tristate "Anubis cipher algorithm"
  783. select CRYPTO_ALGAPI
  784. help
  785. Anubis cipher algorithm.
  786. Anubis is a variable key length cipher which can use keys from
  787. 128 bits to 320 bits in length. It was evaluated as a entrant
  788. in the NESSIE competition.
  789. See also:
  790. <https://www.cosic.esat.kuleuven.be/nessie/reports/>
  791. <http://www.larc.usp.br/~pbarreto/AnubisPage.html>
  792. config CRYPTO_ARC4
  793. tristate "ARC4 cipher algorithm"
  794. select CRYPTO_BLKCIPHER
  795. help
  796. ARC4 cipher algorithm.
  797. ARC4 is a stream cipher using keys ranging from 8 bits to 2048
  798. bits in length. This algorithm is required for driver-based
  799. WEP, but it should not be for other purposes because of the
  800. weakness of the algorithm.
  801. config CRYPTO_BLOWFISH
  802. tristate "Blowfish cipher algorithm"
  803. select CRYPTO_ALGAPI
  804. select CRYPTO_BLOWFISH_COMMON
  805. help
  806. Blowfish cipher algorithm, by Bruce Schneier.
  807. This is a variable key length cipher which can use keys from 32
  808. bits to 448 bits in length. It's fast, simple and specifically
  809. designed for use on "large microprocessors".
  810. See also:
  811. <http://www.schneier.com/blowfish.html>
  812. config CRYPTO_BLOWFISH_COMMON
  813. tristate
  814. help
  815. Common parts of the Blowfish cipher algorithm shared by the
  816. generic c and the assembler implementations.
  817. See also:
  818. <http://www.schneier.com/blowfish.html>
  819. config CRYPTO_BLOWFISH_X86_64
  820. tristate "Blowfish cipher algorithm (x86_64)"
  821. depends on X86 && 64BIT
  822. select CRYPTO_ALGAPI
  823. select CRYPTO_BLOWFISH_COMMON
  824. help
  825. Blowfish cipher algorithm (x86_64), by Bruce Schneier.
  826. This is a variable key length cipher which can use keys from 32
  827. bits to 448 bits in length. It's fast, simple and specifically
  828. designed for use on "large microprocessors".
  829. See also:
  830. <http://www.schneier.com/blowfish.html>
  831. config CRYPTO_CAMELLIA
  832. tristate "Camellia cipher algorithms"
  833. depends on CRYPTO
  834. select CRYPTO_ALGAPI
  835. help
  836. Camellia cipher algorithms module.
  837. Camellia is a symmetric key block cipher developed jointly
  838. at NTT and Mitsubishi Electric Corporation.
  839. The Camellia specifies three key sizes: 128, 192 and 256 bits.
  840. See also:
  841. <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
  842. config CRYPTO_CAMELLIA_X86_64
  843. tristate "Camellia cipher algorithm (x86_64)"
  844. depends on X86 && 64BIT
  845. depends on CRYPTO
  846. select CRYPTO_ALGAPI
  847. select CRYPTO_GLUE_HELPER_X86
  848. select CRYPTO_LRW
  849. select CRYPTO_XTS
  850. help
  851. Camellia cipher algorithm module (x86_64).
  852. Camellia is a symmetric key block cipher developed jointly
  853. at NTT and Mitsubishi Electric Corporation.
  854. The Camellia specifies three key sizes: 128, 192 and 256 bits.
  855. See also:
  856. <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
  857. config CRYPTO_CAMELLIA_AESNI_AVX_X86_64
  858. tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX)"
  859. depends on X86 && 64BIT
  860. depends on CRYPTO
  861. select CRYPTO_ALGAPI
  862. select CRYPTO_CRYPTD
  863. select CRYPTO_ABLK_HELPER
  864. select CRYPTO_GLUE_HELPER_X86
  865. select CRYPTO_CAMELLIA_X86_64
  866. select CRYPTO_LRW
  867. select CRYPTO_XTS
  868. help
  869. Camellia cipher algorithm module (x86_64/AES-NI/AVX).
  870. Camellia is a symmetric key block cipher developed jointly
  871. at NTT and Mitsubishi Electric Corporation.
  872. The Camellia specifies three key sizes: 128, 192 and 256 bits.
  873. See also:
  874. <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
  875. config CRYPTO_CAMELLIA_AESNI_AVX2_X86_64
  876. tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX2)"
  877. depends on X86 && 64BIT
  878. depends on CRYPTO
  879. select CRYPTO_ALGAPI
  880. select CRYPTO_CRYPTD
  881. select CRYPTO_ABLK_HELPER
  882. select CRYPTO_GLUE_HELPER_X86
  883. select CRYPTO_CAMELLIA_X86_64
  884. select CRYPTO_CAMELLIA_AESNI_AVX_X86_64
  885. select CRYPTO_LRW
  886. select CRYPTO_XTS
  887. help
  888. Camellia cipher algorithm module (x86_64/AES-NI/AVX2).
  889. Camellia is a symmetric key block cipher developed jointly
  890. at NTT and Mitsubishi Electric Corporation.
  891. The Camellia specifies three key sizes: 128, 192 and 256 bits.
  892. See also:
  893. <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
  894. config CRYPTO_CAMELLIA_SPARC64
  895. tristate "Camellia cipher algorithm (SPARC64)"
  896. depends on SPARC64
  897. depends on CRYPTO
  898. select CRYPTO_ALGAPI
  899. help
  900. Camellia cipher algorithm module (SPARC64).
  901. Camellia is a symmetric key block cipher developed jointly
  902. at NTT and Mitsubishi Electric Corporation.
  903. The Camellia specifies three key sizes: 128, 192 and 256 bits.
  904. See also:
  905. <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
  906. config CRYPTO_CAST_COMMON
  907. tristate
  908. help
  909. Common parts of the CAST cipher algorithms shared by the
  910. generic c and the assembler implementations.
  911. config CRYPTO_CAST5
  912. tristate "CAST5 (CAST-128) cipher algorithm"
  913. select CRYPTO_ALGAPI
  914. select CRYPTO_CAST_COMMON
  915. help
  916. The CAST5 encryption algorithm (synonymous with CAST-128) is
  917. described in RFC2144.
  918. config CRYPTO_CAST5_AVX_X86_64
  919. tristate "CAST5 (CAST-128) cipher algorithm (x86_64/AVX)"
  920. depends on X86 && 64BIT
  921. select CRYPTO_ALGAPI
  922. select CRYPTO_CRYPTD
  923. select CRYPTO_ABLK_HELPER
  924. select CRYPTO_CAST_COMMON
  925. select CRYPTO_CAST5
  926. help
  927. The CAST5 encryption algorithm (synonymous with CAST-128) is
  928. described in RFC2144.
  929. This module provides the Cast5 cipher algorithm that processes
  930. sixteen blocks parallel using the AVX instruction set.
  931. config CRYPTO_CAST6
  932. tristate "CAST6 (CAST-256) cipher algorithm"
  933. select CRYPTO_ALGAPI
  934. select CRYPTO_CAST_COMMON
  935. help
  936. The CAST6 encryption algorithm (synonymous with CAST-256) is
  937. described in RFC2612.
  938. config CRYPTO_CAST6_AVX_X86_64
  939. tristate "CAST6 (CAST-256) cipher algorithm (x86_64/AVX)"
  940. depends on X86 && 64BIT
  941. select CRYPTO_ALGAPI
  942. select CRYPTO_CRYPTD
  943. select CRYPTO_ABLK_HELPER
  944. select CRYPTO_GLUE_HELPER_X86
  945. select CRYPTO_CAST_COMMON
  946. select CRYPTO_CAST6
  947. select CRYPTO_LRW
  948. select CRYPTO_XTS
  949. help
  950. The CAST6 encryption algorithm (synonymous with CAST-256) is
  951. described in RFC2612.
  952. This module provides the Cast6 cipher algorithm that processes
  953. eight blocks parallel using the AVX instruction set.
  954. config CRYPTO_DES
  955. tristate "DES and Triple DES EDE cipher algorithms"
  956. select CRYPTO_ALGAPI
  957. help
  958. DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
  959. config CRYPTO_DES_SPARC64
  960. tristate "DES and Triple DES EDE cipher algorithms (SPARC64)"
  961. depends on SPARC64
  962. select CRYPTO_ALGAPI
  963. select CRYPTO_DES
  964. help
  965. DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3),
  966. optimized using SPARC64 crypto opcodes.
  967. config CRYPTO_DES3_EDE_X86_64
  968. tristate "Triple DES EDE cipher algorithm (x86-64)"
  969. depends on X86 && 64BIT
  970. select CRYPTO_ALGAPI
  971. select CRYPTO_DES
  972. help
  973. Triple DES EDE (FIPS 46-3) algorithm.
  974. This module provides implementation of the Triple DES EDE cipher
  975. algorithm that is optimized for x86-64 processors. Two versions of
  976. algorithm are provided; regular processing one input block and
  977. one that processes three blocks parallel.
  978. config CRYPTO_FCRYPT
  979. tristate "FCrypt cipher algorithm"
  980. select CRYPTO_ALGAPI
  981. select CRYPTO_BLKCIPHER
  982. help
  983. FCrypt algorithm used by RxRPC.
  984. config CRYPTO_KHAZAD
  985. tristate "Khazad cipher algorithm"
  986. select CRYPTO_ALGAPI
  987. help
  988. Khazad cipher algorithm.
  989. Khazad was a finalist in the initial NESSIE competition. It is
  990. an algorithm optimized for 64-bit processors with good performance
  991. on 32-bit processors. Khazad uses an 128 bit key size.
  992. See also:
  993. <http://www.larc.usp.br/~pbarreto/KhazadPage.html>
  994. config CRYPTO_SALSA20
  995. tristate "Salsa20 stream cipher algorithm"
  996. select CRYPTO_BLKCIPHER
  997. help
  998. Salsa20 stream cipher algorithm.
  999. Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
  1000. Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
  1001. The Salsa20 stream cipher algorithm is designed by Daniel J.
  1002. Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
  1003. config CRYPTO_SALSA20_586
  1004. tristate "Salsa20 stream cipher algorithm (i586)"
  1005. depends on (X86 || UML_X86) && !64BIT
  1006. select CRYPTO_BLKCIPHER
  1007. help
  1008. Salsa20 stream cipher algorithm.
  1009. Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
  1010. Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
  1011. The Salsa20 stream cipher algorithm is designed by Daniel J.
  1012. Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
  1013. config CRYPTO_SALSA20_X86_64
  1014. tristate "Salsa20 stream cipher algorithm (x86_64)"
  1015. depends on (X86 || UML_X86) && 64BIT
  1016. select CRYPTO_BLKCIPHER
  1017. help
  1018. Salsa20 stream cipher algorithm.
  1019. Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
  1020. Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
  1021. The Salsa20 stream cipher algorithm is designed by Daniel J.
  1022. Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
  1023. config CRYPTO_CHACHA20
  1024. tristate "ChaCha20 cipher algorithm"
  1025. select CRYPTO_BLKCIPHER
  1026. help
  1027. ChaCha20 cipher algorithm, RFC7539.
  1028. ChaCha20 is a 256-bit high-speed stream cipher designed by Daniel J.
  1029. Bernstein and further specified in RFC7539 for use in IETF protocols.
  1030. This is the portable C implementation of ChaCha20.
  1031. See also:
  1032. <http://cr.yp.to/chacha/chacha-20080128.pdf>
  1033. config CRYPTO_CHACHA20_X86_64
  1034. tristate "ChaCha20 cipher algorithm (x86_64/SSSE3/AVX2)"
  1035. depends on X86 && 64BIT
  1036. select CRYPTO_BLKCIPHER
  1037. select CRYPTO_CHACHA20
  1038. help
  1039. ChaCha20 cipher algorithm, RFC7539.
  1040. ChaCha20 is a 256-bit high-speed stream cipher designed by Daniel J.
  1041. Bernstein and further specified in RFC7539 for use in IETF protocols.
  1042. This is the x86_64 assembler implementation using SIMD instructions.
  1043. See also:
  1044. <http://cr.yp.to/chacha/chacha-20080128.pdf>
  1045. config CRYPTO_SEED
  1046. tristate "SEED cipher algorithm"
  1047. select CRYPTO_ALGAPI
  1048. help
  1049. SEED cipher algorithm (RFC4269).
  1050. SEED is a 128-bit symmetric key block cipher that has been
  1051. developed by KISA (Korea Information Security Agency) as a
  1052. national standard encryption algorithm of the Republic of Korea.
  1053. It is a 16 round block cipher with the key size of 128 bit.
  1054. See also:
  1055. <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>
  1056. config CRYPTO_SERPENT
  1057. tristate "Serpent cipher algorithm"
  1058. select CRYPTO_ALGAPI
  1059. help
  1060. Serpent cipher algorithm, by Anderson, Biham & Knudsen.
  1061. Keys are allowed to be from 0 to 256 bits in length, in steps
  1062. of 8 bits. Also includes the 'Tnepres' algorithm, a reversed
  1063. variant of Serpent for compatibility with old kerneli.org code.
  1064. See also:
  1065. <http://www.cl.cam.ac.uk/~rja14/serpent.html>
  1066. config CRYPTO_SERPENT_SSE2_X86_64
  1067. tristate "Serpent cipher algorithm (x86_64/SSE2)"
  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_SERPENT
  1074. select CRYPTO_LRW
  1075. select CRYPTO_XTS
  1076. help
  1077. Serpent cipher algorithm, by Anderson, Biham & Knudsen.
  1078. Keys are allowed to be from 0 to 256 bits in length, in steps
  1079. of 8 bits.
  1080. This module provides Serpent cipher algorithm that processes eight
  1081. blocks parallel using SSE2 instruction set.
  1082. See also:
  1083. <http://www.cl.cam.ac.uk/~rja14/serpent.html>
  1084. config CRYPTO_SERPENT_SSE2_586
  1085. tristate "Serpent cipher algorithm (i586/SSE2)"
  1086. depends on X86 && !64BIT
  1087. select CRYPTO_ALGAPI
  1088. select CRYPTO_CRYPTD
  1089. select CRYPTO_ABLK_HELPER
  1090. select CRYPTO_GLUE_HELPER_X86
  1091. select CRYPTO_SERPENT
  1092. select CRYPTO_LRW
  1093. select CRYPTO_XTS
  1094. help
  1095. Serpent cipher algorithm, by Anderson, Biham & Knudsen.
  1096. Keys are allowed to be from 0 to 256 bits in length, in steps
  1097. of 8 bits.
  1098. This module provides Serpent cipher algorithm that processes four
  1099. blocks parallel using SSE2 instruction set.
  1100. See also:
  1101. <http://www.cl.cam.ac.uk/~rja14/serpent.html>
  1102. config CRYPTO_SERPENT_AVX_X86_64
  1103. tristate "Serpent cipher algorithm (x86_64/AVX)"
  1104. depends on X86 && 64BIT
  1105. select CRYPTO_ALGAPI
  1106. select CRYPTO_CRYPTD
  1107. select CRYPTO_ABLK_HELPER
  1108. select CRYPTO_GLUE_HELPER_X86
  1109. select CRYPTO_SERPENT
  1110. select CRYPTO_LRW
  1111. select CRYPTO_XTS
  1112. help
  1113. Serpent cipher algorithm, by Anderson, Biham & Knudsen.
  1114. Keys are allowed to be from 0 to 256 bits in length, in steps
  1115. of 8 bits.
  1116. This module provides the Serpent cipher algorithm that processes
  1117. eight blocks parallel using the AVX instruction set.
  1118. See also:
  1119. <http://www.cl.cam.ac.uk/~rja14/serpent.html>
  1120. config CRYPTO_SERPENT_AVX2_X86_64
  1121. tristate "Serpent cipher algorithm (x86_64/AVX2)"
  1122. depends on X86 && 64BIT
  1123. select CRYPTO_ALGAPI
  1124. select CRYPTO_CRYPTD
  1125. select CRYPTO_ABLK_HELPER
  1126. select CRYPTO_GLUE_HELPER_X86
  1127. select CRYPTO_SERPENT
  1128. select CRYPTO_SERPENT_AVX_X86_64
  1129. select CRYPTO_LRW
  1130. select CRYPTO_XTS
  1131. help
  1132. Serpent cipher algorithm, by Anderson, Biham & Knudsen.
  1133. Keys are allowed to be from 0 to 256 bits in length, in steps
  1134. of 8 bits.
  1135. This module provides Serpent cipher algorithm that processes 16
  1136. blocks parallel using AVX2 instruction set.
  1137. See also:
  1138. <http://www.cl.cam.ac.uk/~rja14/serpent.html>
  1139. config CRYPTO_TEA
  1140. tristate "TEA, XTEA and XETA cipher algorithms"
  1141. select CRYPTO_ALGAPI
  1142. help
  1143. TEA cipher algorithm.
  1144. Tiny Encryption Algorithm is a simple cipher that uses
  1145. many rounds for security. It is very fast and uses
  1146. little memory.
  1147. Xtendend Tiny Encryption Algorithm is a modification to
  1148. the TEA algorithm to address a potential key weakness
  1149. in the TEA algorithm.
  1150. Xtendend Encryption Tiny Algorithm is a mis-implementation
  1151. of the XTEA algorithm for compatibility purposes.
  1152. config CRYPTO_TWOFISH
  1153. tristate "Twofish cipher algorithm"
  1154. select CRYPTO_ALGAPI
  1155. select CRYPTO_TWOFISH_COMMON
  1156. help
  1157. Twofish cipher algorithm.
  1158. Twofish was submitted as an AES (Advanced Encryption Standard)
  1159. candidate cipher by researchers at CounterPane Systems. It is a
  1160. 16 round block cipher supporting key sizes of 128, 192, and 256
  1161. bits.
  1162. See also:
  1163. <http://www.schneier.com/twofish.html>
  1164. config CRYPTO_TWOFISH_COMMON
  1165. tristate
  1166. help
  1167. Common parts of the Twofish cipher algorithm shared by the
  1168. generic c and the assembler implementations.
  1169. config CRYPTO_TWOFISH_586
  1170. tristate "Twofish cipher algorithms (i586)"
  1171. depends on (X86 || UML_X86) && !64BIT
  1172. select CRYPTO_ALGAPI
  1173. select CRYPTO_TWOFISH_COMMON
  1174. help
  1175. Twofish cipher algorithm.
  1176. Twofish was submitted as an AES (Advanced Encryption Standard)
  1177. candidate cipher by researchers at CounterPane Systems. It is a
  1178. 16 round block cipher supporting key sizes of 128, 192, and 256
  1179. bits.
  1180. See also:
  1181. <http://www.schneier.com/twofish.html>
  1182. config CRYPTO_TWOFISH_X86_64
  1183. tristate "Twofish cipher algorithm (x86_64)"
  1184. depends on (X86 || UML_X86) && 64BIT
  1185. select CRYPTO_ALGAPI
  1186. select CRYPTO_TWOFISH_COMMON
  1187. help
  1188. Twofish cipher algorithm (x86_64).
  1189. Twofish was submitted as an AES (Advanced Encryption Standard)
  1190. candidate cipher by researchers at CounterPane Systems. It is a
  1191. 16 round block cipher supporting key sizes of 128, 192, and 256
  1192. bits.
  1193. See also:
  1194. <http://www.schneier.com/twofish.html>
  1195. config CRYPTO_TWOFISH_X86_64_3WAY
  1196. tristate "Twofish cipher algorithm (x86_64, 3-way parallel)"
  1197. depends on X86 && 64BIT
  1198. select CRYPTO_ALGAPI
  1199. select CRYPTO_TWOFISH_COMMON
  1200. select CRYPTO_TWOFISH_X86_64
  1201. select CRYPTO_GLUE_HELPER_X86
  1202. select CRYPTO_LRW
  1203. select CRYPTO_XTS
  1204. help
  1205. Twofish cipher algorithm (x86_64, 3-way parallel).
  1206. Twofish was submitted as an AES (Advanced Encryption Standard)
  1207. candidate cipher by researchers at CounterPane Systems. It is a
  1208. 16 round block cipher supporting key sizes of 128, 192, and 256
  1209. bits.
  1210. This module provides Twofish cipher algorithm that processes three
  1211. blocks parallel, utilizing resources of out-of-order CPUs better.
  1212. See also:
  1213. <http://www.schneier.com/twofish.html>
  1214. config CRYPTO_TWOFISH_AVX_X86_64
  1215. tristate "Twofish cipher algorithm (x86_64/AVX)"
  1216. depends on X86 && 64BIT
  1217. select CRYPTO_ALGAPI
  1218. select CRYPTO_CRYPTD
  1219. select CRYPTO_ABLK_HELPER
  1220. select CRYPTO_GLUE_HELPER_X86
  1221. select CRYPTO_TWOFISH_COMMON
  1222. select CRYPTO_TWOFISH_X86_64
  1223. select CRYPTO_TWOFISH_X86_64_3WAY
  1224. select CRYPTO_LRW
  1225. select CRYPTO_XTS
  1226. help
  1227. Twofish cipher algorithm (x86_64/AVX).
  1228. Twofish was submitted as an AES (Advanced Encryption Standard)
  1229. candidate cipher by researchers at CounterPane Systems. It is a
  1230. 16 round block cipher supporting key sizes of 128, 192, and 256
  1231. bits.
  1232. This module provides the Twofish cipher algorithm that processes
  1233. eight blocks parallel using the AVX Instruction Set.
  1234. See also:
  1235. <http://www.schneier.com/twofish.html>
  1236. comment "Compression"
  1237. config CRYPTO_DEFLATE
  1238. tristate "Deflate compression algorithm"
  1239. select CRYPTO_ALGAPI
  1240. select ZLIB_INFLATE
  1241. select ZLIB_DEFLATE
  1242. help
  1243. This is the Deflate algorithm (RFC1951), specified for use in
  1244. IPSec with the IPCOMP protocol (RFC3173, RFC2394).
  1245. You will most probably want this if using IPSec.
  1246. config CRYPTO_ZLIB
  1247. tristate "Zlib compression algorithm"
  1248. select CRYPTO_PCOMP
  1249. select ZLIB_INFLATE
  1250. select ZLIB_DEFLATE
  1251. select NLATTR
  1252. help
  1253. This is the zlib algorithm.
  1254. config CRYPTO_LZO
  1255. tristate "LZO compression algorithm"
  1256. select CRYPTO_ALGAPI
  1257. select LZO_COMPRESS
  1258. select LZO_DECOMPRESS
  1259. help
  1260. This is the LZO algorithm.
  1261. config CRYPTO_842
  1262. tristate "842 compression algorithm"
  1263. select CRYPTO_ALGAPI
  1264. select 842_COMPRESS
  1265. select 842_DECOMPRESS
  1266. help
  1267. This is the 842 algorithm.
  1268. config CRYPTO_LZ4
  1269. tristate "LZ4 compression algorithm"
  1270. select CRYPTO_ALGAPI
  1271. select LZ4_COMPRESS
  1272. select LZ4_DECOMPRESS
  1273. help
  1274. This is the LZ4 algorithm.
  1275. config CRYPTO_LZ4HC
  1276. tristate "LZ4HC compression algorithm"
  1277. select CRYPTO_ALGAPI
  1278. select LZ4HC_COMPRESS
  1279. select LZ4_DECOMPRESS
  1280. help
  1281. This is the LZ4 high compression mode algorithm.
  1282. comment "Random Number Generation"
  1283. config CRYPTO_ANSI_CPRNG
  1284. tristate "Pseudo Random Number Generation for Cryptographic modules"
  1285. select CRYPTO_AES
  1286. select CRYPTO_RNG
  1287. help
  1288. This option enables the generic pseudo random number generator
  1289. for cryptographic modules. Uses the Algorithm specified in
  1290. ANSI X9.31 A.2.4. Note that this option must be enabled if
  1291. CRYPTO_FIPS is selected
  1292. menuconfig CRYPTO_DRBG_MENU
  1293. tristate "NIST SP800-90A DRBG"
  1294. help
  1295. NIST SP800-90A compliant DRBG. In the following submenu, one or
  1296. more of the DRBG types must be selected.
  1297. if CRYPTO_DRBG_MENU
  1298. config CRYPTO_DRBG_HMAC
  1299. bool
  1300. default y
  1301. select CRYPTO_HMAC
  1302. select CRYPTO_SHA256
  1303. config CRYPTO_DRBG_HASH
  1304. bool "Enable Hash DRBG"
  1305. select CRYPTO_SHA256
  1306. help
  1307. Enable the Hash DRBG variant as defined in NIST SP800-90A.
  1308. config CRYPTO_DRBG_CTR
  1309. bool "Enable CTR DRBG"
  1310. select CRYPTO_AES
  1311. help
  1312. Enable the CTR DRBG variant as defined in NIST SP800-90A.
  1313. config CRYPTO_DRBG
  1314. tristate
  1315. default CRYPTO_DRBG_MENU
  1316. select CRYPTO_RNG
  1317. select CRYPTO_JITTERENTROPY
  1318. endif # if CRYPTO_DRBG_MENU
  1319. config CRYPTO_JITTERENTROPY
  1320. tristate "Jitterentropy Non-Deterministic Random Number Generator"
  1321. help
  1322. The Jitterentropy RNG is a noise that is intended
  1323. to provide seed to another RNG. The RNG does not
  1324. perform any cryptographic whitening of the generated
  1325. random numbers. This Jitterentropy RNG registers with
  1326. the kernel crypto API and can be used by any caller.
  1327. config CRYPTO_USER_API
  1328. tristate
  1329. config CRYPTO_USER_API_HASH
  1330. tristate "User-space interface for hash algorithms"
  1331. depends on NET
  1332. select CRYPTO_HASH
  1333. select CRYPTO_USER_API
  1334. help
  1335. This option enables the user-spaces interface for hash
  1336. algorithms.
  1337. config CRYPTO_USER_API_SKCIPHER
  1338. tristate "User-space interface for symmetric key cipher algorithms"
  1339. depends on NET
  1340. select CRYPTO_BLKCIPHER
  1341. select CRYPTO_USER_API
  1342. help
  1343. This option enables the user-spaces interface for symmetric
  1344. key cipher algorithms.
  1345. config CRYPTO_USER_API_RNG
  1346. tristate "User-space interface for random number generator algorithms"
  1347. depends on NET
  1348. select CRYPTO_RNG
  1349. select CRYPTO_USER_API
  1350. help
  1351. This option enables the user-spaces interface for random
  1352. number generator algorithms.
  1353. config CRYPTO_USER_API_AEAD
  1354. tristate "User-space interface for AEAD cipher algorithms"
  1355. depends on NET
  1356. select CRYPTO_AEAD
  1357. select CRYPTO_USER_API
  1358. help
  1359. This option enables the user-spaces interface for AEAD
  1360. cipher algorithms.
  1361. config CRYPTO_HASH_INFO
  1362. bool
  1363. source "drivers/crypto/Kconfig"
  1364. source crypto/asymmetric_keys/Kconfig
  1365. source certs/Kconfig
  1366. endif # if CRYPTO