xref: /linux/crypto/Kconfig (revision 53964b9ee63b7075931b8df85307c449da564b50)
11da177e4SLinus Torvalds#
2685784aaSDan Williams# Generic algorithms support
3685784aaSDan Williams#
4685784aaSDan Williamsconfig XOR_BLOCKS
5685784aaSDan Williams	tristate
6685784aaSDan Williams
7685784aaSDan Williams#
89bc89cd8SDan Williams# async_tx api: hardware offloaded memory transfer/transform support
99bc89cd8SDan Williams#
109bc89cd8SDan Williamssource "crypto/async_tx/Kconfig"
119bc89cd8SDan Williams
129bc89cd8SDan Williams#
131da177e4SLinus Torvalds# Cryptographic API Configuration
141da177e4SLinus Torvalds#
152e290f43SJan Engelhardtmenuconfig CRYPTO
16c3715cb9SSebastian Siewior	tristate "Cryptographic API"
171da177e4SLinus Torvalds	help
181da177e4SLinus Torvalds	  This option provides the core Cryptographic API.
191da177e4SLinus Torvalds
20cce9e06dSHerbert Xuif CRYPTO
21cce9e06dSHerbert Xu
22584fffc8SSebastian Siewiorcomment "Crypto core or helper"
23584fffc8SSebastian Siewior
24ccb778e1SNeil Hormanconfig CRYPTO_FIPS
25ccb778e1SNeil Horman	bool "FIPS 200 compliance"
26f2c89a10SHerbert Xu	depends on (CRYPTO_ANSI_CPRNG || CRYPTO_DRBG) && !CRYPTO_MANAGER_DISABLE_TESTS
27002c77a4SJarod Wilson	depends on MODULE_SIG
28ccb778e1SNeil Horman	help
29ccb778e1SNeil Horman	  This options enables the fips boot option which is
30ccb778e1SNeil Horman	  required if you want to system to operate in a FIPS 200
31ccb778e1SNeil Horman	  certification.  You should say no unless you know what
32e84c5480SChuck Ebbert	  this is.
33ccb778e1SNeil Horman
34cce9e06dSHerbert Xuconfig CRYPTO_ALGAPI
35cce9e06dSHerbert Xu	tristate
366a0fcbb4SHerbert Xu	select CRYPTO_ALGAPI2
37cce9e06dSHerbert Xu	help
38cce9e06dSHerbert Xu	  This option provides the API for cryptographic algorithms.
39cce9e06dSHerbert Xu
406a0fcbb4SHerbert Xuconfig CRYPTO_ALGAPI2
416a0fcbb4SHerbert Xu	tristate
426a0fcbb4SHerbert Xu
431ae97820SHerbert Xuconfig CRYPTO_AEAD
441ae97820SHerbert Xu	tristate
456a0fcbb4SHerbert Xu	select CRYPTO_AEAD2
461ae97820SHerbert Xu	select CRYPTO_ALGAPI
471ae97820SHerbert Xu
486a0fcbb4SHerbert Xuconfig CRYPTO_AEAD2
496a0fcbb4SHerbert Xu	tristate
506a0fcbb4SHerbert Xu	select CRYPTO_ALGAPI2
51149a3971SHerbert Xu	select CRYPTO_NULL2
52149a3971SHerbert Xu	select CRYPTO_RNG2
536a0fcbb4SHerbert Xu
545cde0af2SHerbert Xuconfig CRYPTO_BLKCIPHER
555cde0af2SHerbert Xu	tristate
566a0fcbb4SHerbert Xu	select CRYPTO_BLKCIPHER2
575cde0af2SHerbert Xu	select CRYPTO_ALGAPI
586a0fcbb4SHerbert Xu
596a0fcbb4SHerbert Xuconfig CRYPTO_BLKCIPHER2
606a0fcbb4SHerbert Xu	tristate
616a0fcbb4SHerbert Xu	select CRYPTO_ALGAPI2
626a0fcbb4SHerbert Xu	select CRYPTO_RNG2
630a2e821dSHuang Ying	select CRYPTO_WORKQUEUE
645cde0af2SHerbert Xu
65055bcee3SHerbert Xuconfig CRYPTO_HASH
66055bcee3SHerbert Xu	tristate
676a0fcbb4SHerbert Xu	select CRYPTO_HASH2
68055bcee3SHerbert Xu	select CRYPTO_ALGAPI
69055bcee3SHerbert Xu
706a0fcbb4SHerbert Xuconfig CRYPTO_HASH2
716a0fcbb4SHerbert Xu	tristate
726a0fcbb4SHerbert Xu	select CRYPTO_ALGAPI2
736a0fcbb4SHerbert Xu
7417f0f4a4SNeil Hormanconfig CRYPTO_RNG
7517f0f4a4SNeil Horman	tristate
766a0fcbb4SHerbert Xu	select CRYPTO_RNG2
7717f0f4a4SNeil Horman	select CRYPTO_ALGAPI
7817f0f4a4SNeil Horman
796a0fcbb4SHerbert Xuconfig CRYPTO_RNG2
806a0fcbb4SHerbert Xu	tristate
816a0fcbb4SHerbert Xu	select CRYPTO_ALGAPI2
826a0fcbb4SHerbert Xu
83401e4238SHerbert Xuconfig CRYPTO_RNG_DEFAULT
84401e4238SHerbert Xu	tristate
85401e4238SHerbert Xu	select CRYPTO_DRBG_MENU
86401e4238SHerbert Xu
873c339ab8STadeusz Strukconfig CRYPTO_AKCIPHER2
883c339ab8STadeusz Struk	tristate
893c339ab8STadeusz Struk	select CRYPTO_ALGAPI2
903c339ab8STadeusz Struk
913c339ab8STadeusz Strukconfig CRYPTO_AKCIPHER
923c339ab8STadeusz Struk	tristate
933c339ab8STadeusz Struk	select CRYPTO_AKCIPHER2
943c339ab8STadeusz Struk	select CRYPTO_ALGAPI
953c339ab8STadeusz Struk
96cfc2bb32STadeusz Strukconfig CRYPTO_RSA
97cfc2bb32STadeusz Struk	tristate "RSA algorithm"
98425e0172STadeusz Struk	select CRYPTO_AKCIPHER
9958446fefSTadeusz Struk	select CRYPTO_MANAGER
100cfc2bb32STadeusz Struk	select MPILIB
101cfc2bb32STadeusz Struk	select ASN1
102cfc2bb32STadeusz Struk	help
103cfc2bb32STadeusz Struk	  Generic implementation of the RSA public key algorithm.
104cfc2bb32STadeusz Struk
1052b8c19dbSHerbert Xuconfig CRYPTO_MANAGER
1062b8c19dbSHerbert Xu	tristate "Cryptographic algorithm manager"
1076a0fcbb4SHerbert Xu	select CRYPTO_MANAGER2
1082b8c19dbSHerbert Xu	help
1092b8c19dbSHerbert Xu	  Create default cryptographic template instantiations such as
1102b8c19dbSHerbert Xu	  cbc(aes).
1112b8c19dbSHerbert Xu
1126a0fcbb4SHerbert Xuconfig CRYPTO_MANAGER2
1136a0fcbb4SHerbert Xu	def_tristate CRYPTO_MANAGER || (CRYPTO_MANAGER!=n && CRYPTO_ALGAPI=y)
1146a0fcbb4SHerbert Xu	select CRYPTO_AEAD2
1156a0fcbb4SHerbert Xu	select CRYPTO_HASH2
1166a0fcbb4SHerbert Xu	select CRYPTO_BLKCIPHER2
117946cc463STadeusz Struk	select CRYPTO_AKCIPHER2
1186a0fcbb4SHerbert Xu
119a38f7907SSteffen Klassertconfig CRYPTO_USER
120a38f7907SSteffen Klassert	tristate "Userspace cryptographic algorithm configuration"
1215db017aaSHerbert Xu	depends on NET
122a38f7907SSteffen Klassert	select CRYPTO_MANAGER
123a38f7907SSteffen Klassert	help
124d19978f5SValdis.Kletnieks@vt.edu	  Userspace configuration for cryptographic instantiations such as
125a38f7907SSteffen Klassert	  cbc(aes).
126a38f7907SSteffen Klassert
127326a6346SHerbert Xuconfig CRYPTO_MANAGER_DISABLE_TESTS
128326a6346SHerbert Xu	bool "Disable run-time self tests"
12900ca28a5SHerbert Xu	default y
13000ca28a5SHerbert Xu	depends on CRYPTO_MANAGER2
1310b767f96SAlexander Shishkin	help
132326a6346SHerbert Xu	  Disable run-time self tests that normally take place at
133326a6346SHerbert Xu	  algorithm registration.
1340b767f96SAlexander Shishkin
135584fffc8SSebastian Siewiorconfig CRYPTO_GF128MUL
13608c70fc3SJussi Kivilinna	tristate "GF(2^128) multiplication functions"
137584fffc8SSebastian Siewior	help
138584fffc8SSebastian Siewior	  Efficient table driven implementation of multiplications in the
139584fffc8SSebastian Siewior	  field GF(2^128).  This is needed by some cypher modes. This
140584fffc8SSebastian Siewior	  option will be selected automatically if you select such a
141584fffc8SSebastian Siewior	  cipher mode.  Only select this option by hand if you expect to load
142584fffc8SSebastian Siewior	  an external module that requires these functions.
143584fffc8SSebastian Siewior
144584fffc8SSebastian Siewiorconfig CRYPTO_NULL
145584fffc8SSebastian Siewior	tristate "Null algorithms"
146149a3971SHerbert Xu	select CRYPTO_NULL2
147584fffc8SSebastian Siewior	help
148584fffc8SSebastian Siewior	  These are 'Null' algorithms, used by IPsec, which do nothing.
149584fffc8SSebastian Siewior
150149a3971SHerbert Xuconfig CRYPTO_NULL2
151dd43c4e9SHerbert Xu	tristate
152149a3971SHerbert Xu	select CRYPTO_ALGAPI2
153149a3971SHerbert Xu	select CRYPTO_BLKCIPHER2
154149a3971SHerbert Xu	select CRYPTO_HASH2
155149a3971SHerbert Xu
1565068c7a8SSteffen Klassertconfig CRYPTO_PCRYPT
1573b4afaf2SKees Cook	tristate "Parallel crypto engine"
1583b4afaf2SKees Cook	depends on SMP
1595068c7a8SSteffen Klassert	select PADATA
1605068c7a8SSteffen Klassert	select CRYPTO_MANAGER
1615068c7a8SSteffen Klassert	select CRYPTO_AEAD
1625068c7a8SSteffen Klassert	help
1635068c7a8SSteffen Klassert	  This converts an arbitrary crypto algorithm into a parallel
1645068c7a8SSteffen Klassert	  algorithm that executes in kernel threads.
1655068c7a8SSteffen Klassert
16625c38d3fSHuang Yingconfig CRYPTO_WORKQUEUE
16725c38d3fSHuang Ying       tristate
16825c38d3fSHuang Ying
169584fffc8SSebastian Siewiorconfig CRYPTO_CRYPTD
170584fffc8SSebastian Siewior	tristate "Software async crypto daemon"
171584fffc8SSebastian Siewior	select CRYPTO_BLKCIPHER
172b8a28251SLoc Ho	select CRYPTO_HASH
173584fffc8SSebastian Siewior	select CRYPTO_MANAGER
174254eff77SHuang Ying	select CRYPTO_WORKQUEUE
175584fffc8SSebastian Siewior	help
176584fffc8SSebastian Siewior	  This is a generic software asynchronous crypto daemon that
177584fffc8SSebastian Siewior	  converts an arbitrary synchronous software crypto algorithm
178584fffc8SSebastian Siewior	  into an asynchronous algorithm that executes in a kernel thread.
179584fffc8SSebastian Siewior
1801e65b81aSTim Chenconfig CRYPTO_MCRYPTD
1811e65b81aSTim Chen	tristate "Software async multi-buffer crypto daemon"
1821e65b81aSTim Chen	select CRYPTO_BLKCIPHER
1831e65b81aSTim Chen	select CRYPTO_HASH
1841e65b81aSTim Chen	select CRYPTO_MANAGER
1851e65b81aSTim Chen	select CRYPTO_WORKQUEUE
1861e65b81aSTim Chen	help
1871e65b81aSTim Chen	  This is a generic software asynchronous crypto daemon that
1881e65b81aSTim Chen	  provides the kernel thread to assist multi-buffer crypto
1891e65b81aSTim Chen	  algorithms for submitting jobs and flushing jobs in multi-buffer
1901e65b81aSTim Chen	  crypto algorithms.  Multi-buffer crypto algorithms are executed
1911e65b81aSTim Chen	  in the context of this kernel thread and drivers can post
1920e56673bSTed Percival	  their crypto request asynchronously to be processed by this daemon.
1931e65b81aSTim Chen
194584fffc8SSebastian Siewiorconfig CRYPTO_AUTHENC
195584fffc8SSebastian Siewior	tristate "Authenc support"
196584fffc8SSebastian Siewior	select CRYPTO_AEAD
197584fffc8SSebastian Siewior	select CRYPTO_BLKCIPHER
198584fffc8SSebastian Siewior	select CRYPTO_MANAGER
199584fffc8SSebastian Siewior	select CRYPTO_HASH
200e94c6a7aSHerbert Xu	select CRYPTO_NULL
201584fffc8SSebastian Siewior	help
202584fffc8SSebastian Siewior	  Authenc: Combined mode wrapper for IPsec.
203584fffc8SSebastian Siewior	  This is required for IPSec.
204584fffc8SSebastian Siewior
205584fffc8SSebastian Siewiorconfig CRYPTO_TEST
206584fffc8SSebastian Siewior	tristate "Testing module"
207584fffc8SSebastian Siewior	depends on m
208da7f033dSHerbert Xu	select CRYPTO_MANAGER
209584fffc8SSebastian Siewior	help
210584fffc8SSebastian Siewior	  Quick & dirty crypto test module.
211584fffc8SSebastian Siewior
212a62b01cdSArd Biesheuvelconfig CRYPTO_ABLK_HELPER
213ffaf9156SJussi Kivilinna	tristate
214ffaf9156SJussi Kivilinna	select CRYPTO_CRYPTD
215ffaf9156SJussi Kivilinna
216596d8750SJussi Kivilinnaconfig CRYPTO_GLUE_HELPER_X86
217596d8750SJussi Kivilinna	tristate
218596d8750SJussi Kivilinna	depends on X86
219596d8750SJussi Kivilinna	select CRYPTO_ALGAPI
220596d8750SJussi Kivilinna
221735d37b5SBaolin Wangconfig CRYPTO_ENGINE
222735d37b5SBaolin Wang	tristate
223735d37b5SBaolin Wang
224584fffc8SSebastian Siewiorcomment "Authenticated Encryption with Associated Data"
225584fffc8SSebastian Siewior
226584fffc8SSebastian Siewiorconfig CRYPTO_CCM
227584fffc8SSebastian Siewior	tristate "CCM support"
228584fffc8SSebastian Siewior	select CRYPTO_CTR
229584fffc8SSebastian Siewior	select CRYPTO_AEAD
230584fffc8SSebastian Siewior	help
231584fffc8SSebastian Siewior	  Support for Counter with CBC MAC. Required for IPsec.
232584fffc8SSebastian Siewior
233584fffc8SSebastian Siewiorconfig CRYPTO_GCM
234584fffc8SSebastian Siewior	tristate "GCM/GMAC support"
235584fffc8SSebastian Siewior	select CRYPTO_CTR
236584fffc8SSebastian Siewior	select CRYPTO_AEAD
2379382d97aSHuang Ying	select CRYPTO_GHASH
2389489667dSJussi Kivilinna	select CRYPTO_NULL
239584fffc8SSebastian Siewior	help
240584fffc8SSebastian Siewior	  Support for Galois/Counter Mode (GCM) and Galois Message
241584fffc8SSebastian Siewior	  Authentication Code (GMAC). Required for IPSec.
242584fffc8SSebastian Siewior
24371ebc4d1SMartin Williconfig CRYPTO_CHACHA20POLY1305
24471ebc4d1SMartin Willi	tristate "ChaCha20-Poly1305 AEAD support"
24571ebc4d1SMartin Willi	select CRYPTO_CHACHA20
24671ebc4d1SMartin Willi	select CRYPTO_POLY1305
24771ebc4d1SMartin Willi	select CRYPTO_AEAD
24871ebc4d1SMartin Willi	help
24971ebc4d1SMartin Willi	  ChaCha20-Poly1305 AEAD support, RFC7539.
25071ebc4d1SMartin Willi
25171ebc4d1SMartin Willi	  Support for the AEAD wrapper using the ChaCha20 stream cipher combined
25271ebc4d1SMartin Willi	  with the Poly1305 authenticator. It is defined in RFC7539 for use in
25371ebc4d1SMartin Willi	  IETF protocols.
25471ebc4d1SMartin Willi
255584fffc8SSebastian Siewiorconfig CRYPTO_SEQIV
256584fffc8SSebastian Siewior	tristate "Sequence Number IV Generator"
257584fffc8SSebastian Siewior	select CRYPTO_AEAD
258584fffc8SSebastian Siewior	select CRYPTO_BLKCIPHER
259856e3f40SHerbert Xu	select CRYPTO_NULL
260401e4238SHerbert Xu	select CRYPTO_RNG_DEFAULT
261584fffc8SSebastian Siewior	help
262584fffc8SSebastian Siewior	  This IV generator generates an IV based on a sequence number by
263584fffc8SSebastian Siewior	  xoring it with a salt.  This algorithm is mainly useful for CTR
264584fffc8SSebastian Siewior
265a10f554fSHerbert Xuconfig CRYPTO_ECHAINIV
266a10f554fSHerbert Xu	tristate "Encrypted Chain IV Generator"
267a10f554fSHerbert Xu	select CRYPTO_AEAD
268a10f554fSHerbert Xu	select CRYPTO_NULL
269401e4238SHerbert Xu	select CRYPTO_RNG_DEFAULT
2703491244cSHerbert Xu	default m
271a10f554fSHerbert Xu	help
272a10f554fSHerbert Xu	  This IV generator generates an IV based on the encryption of
273a10f554fSHerbert Xu	  a sequence number xored with a salt.  This is the default
274a10f554fSHerbert Xu	  algorithm for CBC.
275a10f554fSHerbert Xu
276584fffc8SSebastian Siewiorcomment "Block modes"
277584fffc8SSebastian Siewior
278584fffc8SSebastian Siewiorconfig CRYPTO_CBC
279584fffc8SSebastian Siewior	tristate "CBC support"
280584fffc8SSebastian Siewior	select CRYPTO_BLKCIPHER
281584fffc8SSebastian Siewior	select CRYPTO_MANAGER
282584fffc8SSebastian Siewior	help
283584fffc8SSebastian Siewior	  CBC: Cipher Block Chaining mode
284584fffc8SSebastian Siewior	  This block cipher algorithm is required for IPSec.
285584fffc8SSebastian Siewior
286584fffc8SSebastian Siewiorconfig CRYPTO_CTR
287584fffc8SSebastian Siewior	tristate "CTR support"
288584fffc8SSebastian Siewior	select CRYPTO_BLKCIPHER
289584fffc8SSebastian Siewior	select CRYPTO_SEQIV
290584fffc8SSebastian Siewior	select CRYPTO_MANAGER
291584fffc8SSebastian Siewior	help
292584fffc8SSebastian Siewior	  CTR: Counter mode
293584fffc8SSebastian Siewior	  This block cipher algorithm is required for IPSec.
294584fffc8SSebastian Siewior
295584fffc8SSebastian Siewiorconfig CRYPTO_CTS
296584fffc8SSebastian Siewior	tristate "CTS support"
297584fffc8SSebastian Siewior	select CRYPTO_BLKCIPHER
298584fffc8SSebastian Siewior	help
299584fffc8SSebastian Siewior	  CTS: Cipher Text Stealing
300584fffc8SSebastian Siewior	  This is the Cipher Text Stealing mode as described by
301584fffc8SSebastian Siewior	  Section 8 of rfc2040 and referenced by rfc3962.
302584fffc8SSebastian Siewior	  (rfc3962 includes errata information in its Appendix A)
303584fffc8SSebastian Siewior	  This mode is required for Kerberos gss mechanism support
304584fffc8SSebastian Siewior	  for AES encryption.
305584fffc8SSebastian Siewior
306584fffc8SSebastian Siewiorconfig CRYPTO_ECB
307584fffc8SSebastian Siewior	tristate "ECB support"
308584fffc8SSebastian Siewior	select CRYPTO_BLKCIPHER
309584fffc8SSebastian Siewior	select CRYPTO_MANAGER
310584fffc8SSebastian Siewior	help
311584fffc8SSebastian Siewior	  ECB: Electronic CodeBook mode
312584fffc8SSebastian Siewior	  This is the simplest block cipher algorithm.  It simply encrypts
313584fffc8SSebastian Siewior	  the input block by block.
314584fffc8SSebastian Siewior
315584fffc8SSebastian Siewiorconfig CRYPTO_LRW
3162470a2b2SJussi Kivilinna	tristate "LRW support"
317584fffc8SSebastian Siewior	select CRYPTO_BLKCIPHER
318584fffc8SSebastian Siewior	select CRYPTO_MANAGER
319584fffc8SSebastian Siewior	select CRYPTO_GF128MUL
320584fffc8SSebastian Siewior	help
321584fffc8SSebastian Siewior	  LRW: Liskov Rivest Wagner, a tweakable, non malleable, non movable
322584fffc8SSebastian Siewior	  narrow block cipher mode for dm-crypt.  Use it with cipher
323584fffc8SSebastian Siewior	  specification string aes-lrw-benbi, the key must be 256, 320 or 384.
324584fffc8SSebastian Siewior	  The first 128, 192 or 256 bits in the key are used for AES and the
325584fffc8SSebastian Siewior	  rest is used to tie each cipher block to its logical position.
326584fffc8SSebastian Siewior
327584fffc8SSebastian Siewiorconfig CRYPTO_PCBC
328584fffc8SSebastian Siewior	tristate "PCBC support"
329584fffc8SSebastian Siewior	select CRYPTO_BLKCIPHER
330584fffc8SSebastian Siewior	select CRYPTO_MANAGER
331584fffc8SSebastian Siewior	help
332584fffc8SSebastian Siewior	  PCBC: Propagating Cipher Block Chaining mode
333584fffc8SSebastian Siewior	  This block cipher algorithm is required for RxRPC.
334584fffc8SSebastian Siewior
335584fffc8SSebastian Siewiorconfig CRYPTO_XTS
3365bcf8e6dSJussi Kivilinna	tristate "XTS support"
337584fffc8SSebastian Siewior	select CRYPTO_BLKCIPHER
338584fffc8SSebastian Siewior	select CRYPTO_MANAGER
339584fffc8SSebastian Siewior	select CRYPTO_GF128MUL
340584fffc8SSebastian Siewior	help
341584fffc8SSebastian Siewior	  XTS: IEEE1619/D16 narrow block cipher use with aes-xts-plain,
342584fffc8SSebastian Siewior	  key size 256, 384 or 512 bits. This implementation currently
343584fffc8SSebastian Siewior	  can't handle a sectorsize which is not a multiple of 16 bytes.
344584fffc8SSebastian Siewior
3451c49678eSStephan Muellerconfig CRYPTO_KEYWRAP
3461c49678eSStephan Mueller	tristate "Key wrapping support"
3471c49678eSStephan Mueller	select CRYPTO_BLKCIPHER
3481c49678eSStephan Mueller	help
3491c49678eSStephan Mueller	  Support for key wrapping (NIST SP800-38F / RFC3394) without
3501c49678eSStephan Mueller	  padding.
3511c49678eSStephan Mueller
352584fffc8SSebastian Siewiorcomment "Hash modes"
353584fffc8SSebastian Siewior
35493b5e86aSJussi Kivilinnaconfig CRYPTO_CMAC
35593b5e86aSJussi Kivilinna	tristate "CMAC support"
35693b5e86aSJussi Kivilinna	select CRYPTO_HASH
35793b5e86aSJussi Kivilinna	select CRYPTO_MANAGER
35893b5e86aSJussi Kivilinna	help
35993b5e86aSJussi Kivilinna	  Cipher-based Message Authentication Code (CMAC) specified by
36093b5e86aSJussi Kivilinna	  The National Institute of Standards and Technology (NIST).
36193b5e86aSJussi Kivilinna
36293b5e86aSJussi Kivilinna	  https://tools.ietf.org/html/rfc4493
36393b5e86aSJussi Kivilinna	  http://csrc.nist.gov/publications/nistpubs/800-38B/SP_800-38B.pdf
36493b5e86aSJussi Kivilinna
3651da177e4SLinus Torvaldsconfig CRYPTO_HMAC
3668425165dSHerbert Xu	tristate "HMAC support"
3670796ae06SHerbert Xu	select CRYPTO_HASH
36843518407SHerbert Xu	select CRYPTO_MANAGER
3691da177e4SLinus Torvalds	help
3701da177e4SLinus Torvalds	  HMAC: Keyed-Hashing for Message Authentication (RFC2104).
3711da177e4SLinus Torvalds	  This is required for IPSec.
3721da177e4SLinus Torvalds
373333b0d7eSKazunori MIYAZAWAconfig CRYPTO_XCBC
374333b0d7eSKazunori MIYAZAWA	tristate "XCBC support"
375333b0d7eSKazunori MIYAZAWA	select CRYPTO_HASH
376333b0d7eSKazunori MIYAZAWA	select CRYPTO_MANAGER
377333b0d7eSKazunori MIYAZAWA	help
378333b0d7eSKazunori MIYAZAWA	  XCBC: Keyed-Hashing with encryption algorithm
379333b0d7eSKazunori MIYAZAWA		http://www.ietf.org/rfc/rfc3566.txt
380333b0d7eSKazunori MIYAZAWA		http://csrc.nist.gov/encryption/modes/proposedmodes/
381333b0d7eSKazunori MIYAZAWA		 xcbc-mac/xcbc-mac-spec.pdf
382333b0d7eSKazunori MIYAZAWA
383f1939f7cSShane Wangconfig CRYPTO_VMAC
384f1939f7cSShane Wang	tristate "VMAC support"
385f1939f7cSShane Wang	select CRYPTO_HASH
386f1939f7cSShane Wang	select CRYPTO_MANAGER
387f1939f7cSShane Wang	help
388f1939f7cSShane Wang	  VMAC is a message authentication algorithm designed for
389f1939f7cSShane Wang	  very high speed on 64-bit architectures.
390f1939f7cSShane Wang
391f1939f7cSShane Wang	  See also:
392f1939f7cSShane Wang	  <http://fastcrypto.org/vmac>
393f1939f7cSShane Wang
394584fffc8SSebastian Siewiorcomment "Digest"
395584fffc8SSebastian Siewior
396584fffc8SSebastian Siewiorconfig CRYPTO_CRC32C
397584fffc8SSebastian Siewior	tristate "CRC32c CRC algorithm"
3985773a3e6SHerbert Xu	select CRYPTO_HASH
3996a0962b2SDarrick J. Wong	select CRC32
4001da177e4SLinus Torvalds	help
401584fffc8SSebastian Siewior	  Castagnoli, et al Cyclic Redundancy-Check Algorithm.  Used
402584fffc8SSebastian Siewior	  by iSCSI for header and data digests and by others.
40369c35efcSHerbert Xu	  See Castagnoli93.  Module will be crc32c.
4041da177e4SLinus Torvalds
4058cb51ba8SAustin Zhangconfig CRYPTO_CRC32C_INTEL
4068cb51ba8SAustin Zhang	tristate "CRC32c INTEL hardware acceleration"
4078cb51ba8SAustin Zhang	depends on X86
4088cb51ba8SAustin Zhang	select CRYPTO_HASH
4098cb51ba8SAustin Zhang	help
4108cb51ba8SAustin Zhang	  In Intel processor with SSE4.2 supported, the processor will
4118cb51ba8SAustin Zhang	  support CRC32C implementation using hardware accelerated CRC32
4128cb51ba8SAustin Zhang	  instruction. This option will create 'crc32c-intel' module,
4138cb51ba8SAustin Zhang	  which will enable any routine to use the CRC32 instruction to
4148cb51ba8SAustin Zhang	  gain performance compared with software implementation.
4158cb51ba8SAustin Zhang	  Module will be crc32c-intel.
4168cb51ba8SAustin Zhang
417442a7c40SDavid S. Millerconfig CRYPTO_CRC32C_SPARC64
418442a7c40SDavid S. Miller	tristate "CRC32c CRC algorithm (SPARC64)"
419442a7c40SDavid S. Miller	depends on SPARC64
420442a7c40SDavid S. Miller	select CRYPTO_HASH
421442a7c40SDavid S. Miller	select CRC32
422442a7c40SDavid S. Miller	help
423442a7c40SDavid S. Miller	  CRC32c CRC algorithm implemented using sparc64 crypto instructions,
424442a7c40SDavid S. Miller	  when available.
425442a7c40SDavid S. Miller
42678c37d19SAlexander Boykoconfig CRYPTO_CRC32
42778c37d19SAlexander Boyko	tristate "CRC32 CRC algorithm"
42878c37d19SAlexander Boyko	select CRYPTO_HASH
42978c37d19SAlexander Boyko	select CRC32
43078c37d19SAlexander Boyko	help
43178c37d19SAlexander Boyko	  CRC-32-IEEE 802.3 cyclic redundancy-check algorithm.
43278c37d19SAlexander Boyko	  Shash crypto api wrappers to crc32_le function.
43378c37d19SAlexander Boyko
43478c37d19SAlexander Boykoconfig CRYPTO_CRC32_PCLMUL
43578c37d19SAlexander Boyko	tristate "CRC32 PCLMULQDQ hardware acceleration"
43678c37d19SAlexander Boyko	depends on X86
43778c37d19SAlexander Boyko	select CRYPTO_HASH
43878c37d19SAlexander Boyko	select CRC32
43978c37d19SAlexander Boyko	help
44078c37d19SAlexander Boyko	  From Intel Westmere and AMD Bulldozer processor with SSE4.2
44178c37d19SAlexander Boyko	  and PCLMULQDQ supported, the processor will support
44278c37d19SAlexander Boyko	  CRC32 PCLMULQDQ implementation using hardware accelerated PCLMULQDQ
44378c37d19SAlexander Boyko	  instruction. This option will create 'crc32-plcmul' module,
44478c37d19SAlexander Boyko	  which will enable any routine to use the CRC-32-IEEE 802.3 checksum
44578c37d19SAlexander Boyko	  and gain better performance as compared with the table implementation.
44678c37d19SAlexander Boyko
44768411521SHerbert Xuconfig CRYPTO_CRCT10DIF
44868411521SHerbert Xu	tristate "CRCT10DIF algorithm"
44968411521SHerbert Xu	select CRYPTO_HASH
45068411521SHerbert Xu	help
45168411521SHerbert Xu	  CRC T10 Data Integrity Field computation is being cast as
45268411521SHerbert Xu	  a crypto transform.  This allows for faster crc t10 diff
45368411521SHerbert Xu	  transforms to be used if they are available.
45468411521SHerbert Xu
45568411521SHerbert Xuconfig CRYPTO_CRCT10DIF_PCLMUL
45668411521SHerbert Xu	tristate "CRCT10DIF PCLMULQDQ hardware acceleration"
45768411521SHerbert Xu	depends on X86 && 64BIT && CRC_T10DIF
45868411521SHerbert Xu	select CRYPTO_HASH
45968411521SHerbert Xu	help
46068411521SHerbert Xu	  For x86_64 processors with SSE4.2 and PCLMULQDQ supported,
46168411521SHerbert Xu	  CRC T10 DIF PCLMULQDQ computation can be hardware
46268411521SHerbert Xu	  accelerated PCLMULQDQ instruction. This option will create
46368411521SHerbert Xu	  'crct10dif-plcmul' module, which is faster when computing the
46468411521SHerbert Xu	  crct10dif checksum as compared with the generic table implementation.
46568411521SHerbert Xu
4662cdc6899SHuang Yingconfig CRYPTO_GHASH
4672cdc6899SHuang Ying	tristate "GHASH digest algorithm"
4682cdc6899SHuang Ying	select CRYPTO_GF128MUL
469578c60fbSArnd Bergmann	select CRYPTO_HASH
4702cdc6899SHuang Ying	help
4712cdc6899SHuang Ying	  GHASH is message digest algorithm for GCM (Galois/Counter Mode).
4722cdc6899SHuang Ying
473f979e014SMartin Williconfig CRYPTO_POLY1305
474f979e014SMartin Willi	tristate "Poly1305 authenticator algorithm"
475578c60fbSArnd Bergmann	select CRYPTO_HASH
476f979e014SMartin Willi	help
477f979e014SMartin Willi	  Poly1305 authenticator algorithm, RFC7539.
478f979e014SMartin Willi
479f979e014SMartin Willi	  Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein.
480f979e014SMartin Willi	  It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use
481f979e014SMartin Willi	  in IETF protocols. This is the portable C implementation of Poly1305.
482f979e014SMartin Willi
483c70f4abeSMartin Williconfig CRYPTO_POLY1305_X86_64
484b1ccc8f4SMartin Willi	tristate "Poly1305 authenticator algorithm (x86_64/SSE2/AVX2)"
485c70f4abeSMartin Willi	depends on X86 && 64BIT
486c70f4abeSMartin Willi	select CRYPTO_POLY1305
487c70f4abeSMartin Willi	help
488c70f4abeSMartin Willi	  Poly1305 authenticator algorithm, RFC7539.
489c70f4abeSMartin Willi
490c70f4abeSMartin Willi	  Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein.
491c70f4abeSMartin Willi	  It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use
492c70f4abeSMartin Willi	  in IETF protocols. This is the x86_64 assembler implementation using SIMD
493c70f4abeSMartin Willi	  instructions.
494c70f4abeSMartin Willi
4951da177e4SLinus Torvaldsconfig CRYPTO_MD4
4961da177e4SLinus Torvalds	tristate "MD4 digest algorithm"
497808a1763SAdrian-Ken Rueegsegger	select CRYPTO_HASH
4981da177e4SLinus Torvalds	help
4991da177e4SLinus Torvalds	  MD4 message digest algorithm (RFC1320).
5001da177e4SLinus Torvalds
5011da177e4SLinus Torvaldsconfig CRYPTO_MD5
5021da177e4SLinus Torvalds	tristate "MD5 digest algorithm"
50314b75ba7SAdrian-Ken Rueegsegger	select CRYPTO_HASH
5041da177e4SLinus Torvalds	help
5051da177e4SLinus Torvalds	  MD5 message digest algorithm (RFC1321).
5061da177e4SLinus Torvalds
507d69e75deSAaro Koskinenconfig CRYPTO_MD5_OCTEON
508d69e75deSAaro Koskinen	tristate "MD5 digest algorithm (OCTEON)"
509d69e75deSAaro Koskinen	depends on CPU_CAVIUM_OCTEON
510d69e75deSAaro Koskinen	select CRYPTO_MD5
511d69e75deSAaro Koskinen	select CRYPTO_HASH
512d69e75deSAaro Koskinen	help
513d69e75deSAaro Koskinen	  MD5 message digest algorithm (RFC1321) implemented
514d69e75deSAaro Koskinen	  using OCTEON crypto instructions, when available.
515d69e75deSAaro Koskinen
516e8e59953SMarkus Stockhausenconfig CRYPTO_MD5_PPC
517e8e59953SMarkus Stockhausen	tristate "MD5 digest algorithm (PPC)"
518e8e59953SMarkus Stockhausen	depends on PPC
519e8e59953SMarkus Stockhausen	select CRYPTO_HASH
520e8e59953SMarkus Stockhausen	help
521e8e59953SMarkus Stockhausen	  MD5 message digest algorithm (RFC1321) implemented
522e8e59953SMarkus Stockhausen	  in PPC assembler.
523e8e59953SMarkus Stockhausen
524fa4dfedcSDavid S. Millerconfig CRYPTO_MD5_SPARC64
525fa4dfedcSDavid S. Miller	tristate "MD5 digest algorithm (SPARC64)"
526fa4dfedcSDavid S. Miller	depends on SPARC64
527fa4dfedcSDavid S. Miller	select CRYPTO_MD5
528fa4dfedcSDavid S. Miller	select CRYPTO_HASH
529fa4dfedcSDavid S. Miller	help
530fa4dfedcSDavid S. Miller	  MD5 message digest algorithm (RFC1321) implemented
531fa4dfedcSDavid S. Miller	  using sparc64 crypto instructions, when available.
532fa4dfedcSDavid S. Miller
533584fffc8SSebastian Siewiorconfig CRYPTO_MICHAEL_MIC
534584fffc8SSebastian Siewior	tristate "Michael MIC keyed digest algorithm"
53519e2bf14SAdrian-Ken Rueegsegger	select CRYPTO_HASH
536584fffc8SSebastian Siewior	help
537584fffc8SSebastian Siewior	  Michael MIC is used for message integrity protection in TKIP
538584fffc8SSebastian Siewior	  (IEEE 802.11i). This algorithm is required for TKIP, but it
539584fffc8SSebastian Siewior	  should not be used for other purposes because of the weakness
540584fffc8SSebastian Siewior	  of the algorithm.
541584fffc8SSebastian Siewior
54282798f90SAdrian-Ken Rueegseggerconfig CRYPTO_RMD128
54382798f90SAdrian-Ken Rueegsegger	tristate "RIPEMD-128 digest algorithm"
5447c4468bcSHerbert Xu	select CRYPTO_HASH
54582798f90SAdrian-Ken Rueegsegger	help
54682798f90SAdrian-Ken Rueegsegger	  RIPEMD-128 (ISO/IEC 10118-3:2004).
54782798f90SAdrian-Ken Rueegsegger
54882798f90SAdrian-Ken Rueegsegger	  RIPEMD-128 is a 128-bit cryptographic hash function. It should only
54935ed4b35SMichael Witten	  be used as a secure replacement for RIPEMD. For other use cases,
55082798f90SAdrian-Ken Rueegsegger	  RIPEMD-160 should be used.
55182798f90SAdrian-Ken Rueegsegger
55282798f90SAdrian-Ken Rueegsegger	  Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
5536d8de74cSJustin P. Mattock	  See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
55482798f90SAdrian-Ken Rueegsegger
55582798f90SAdrian-Ken Rueegseggerconfig CRYPTO_RMD160
55682798f90SAdrian-Ken Rueegsegger	tristate "RIPEMD-160 digest algorithm"
557e5835fbaSHerbert Xu	select CRYPTO_HASH
55882798f90SAdrian-Ken Rueegsegger	help
55982798f90SAdrian-Ken Rueegsegger	  RIPEMD-160 (ISO/IEC 10118-3:2004).
56082798f90SAdrian-Ken Rueegsegger
56182798f90SAdrian-Ken Rueegsegger	  RIPEMD-160 is a 160-bit cryptographic hash function. It is intended
56282798f90SAdrian-Ken Rueegsegger	  to be used as a secure replacement for the 128-bit hash functions
563b6d44341SAdrian Bunk	  MD4, MD5 and it's predecessor RIPEMD
564b6d44341SAdrian Bunk	  (not to be confused with RIPEMD-128).
56582798f90SAdrian-Ken Rueegsegger
566b6d44341SAdrian Bunk	  It's speed is comparable to SHA1 and there are no known attacks
567b6d44341SAdrian Bunk	  against RIPEMD-160.
568534fe2c1SAdrian-Ken Rueegsegger
569534fe2c1SAdrian-Ken Rueegsegger	  Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
5706d8de74cSJustin P. Mattock	  See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
571534fe2c1SAdrian-Ken Rueegsegger
572534fe2c1SAdrian-Ken Rueegseggerconfig CRYPTO_RMD256
573534fe2c1SAdrian-Ken Rueegsegger	tristate "RIPEMD-256 digest algorithm"
574d8a5e2e9SHerbert Xu	select CRYPTO_HASH
575534fe2c1SAdrian-Ken Rueegsegger	help
576b6d44341SAdrian Bunk	  RIPEMD-256 is an optional extension of RIPEMD-128 with a
577b6d44341SAdrian Bunk	  256 bit hash. It is intended for applications that require
578b6d44341SAdrian Bunk	  longer hash-results, without needing a larger security level
579b6d44341SAdrian Bunk	  (than RIPEMD-128).
580534fe2c1SAdrian-Ken Rueegsegger
581534fe2c1SAdrian-Ken Rueegsegger	  Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
5826d8de74cSJustin P. Mattock	  See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
583534fe2c1SAdrian-Ken Rueegsegger
584534fe2c1SAdrian-Ken Rueegseggerconfig CRYPTO_RMD320
585534fe2c1SAdrian-Ken Rueegsegger	tristate "RIPEMD-320 digest algorithm"
5863b8efb4cSHerbert Xu	select CRYPTO_HASH
587534fe2c1SAdrian-Ken Rueegsegger	help
588b6d44341SAdrian Bunk	  RIPEMD-320 is an optional extension of RIPEMD-160 with a
589b6d44341SAdrian Bunk	  320 bit hash. It is intended for applications that require
590b6d44341SAdrian Bunk	  longer hash-results, without needing a larger security level
591b6d44341SAdrian Bunk	  (than RIPEMD-160).
592534fe2c1SAdrian-Ken Rueegsegger
59382798f90SAdrian-Ken Rueegsegger	  Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
5946d8de74cSJustin P. Mattock	  See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
59582798f90SAdrian-Ken Rueegsegger
5961da177e4SLinus Torvaldsconfig CRYPTO_SHA1
5971da177e4SLinus Torvalds	tristate "SHA1 digest algorithm"
59854ccb367SAdrian-Ken Rueegsegger	select CRYPTO_HASH
5991da177e4SLinus Torvalds	help
6001da177e4SLinus Torvalds	  SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
6011da177e4SLinus Torvalds
60266be8951SMathias Krauseconfig CRYPTO_SHA1_SSSE3
603e38b6b7fStim	tristate "SHA1 digest algorithm (SSSE3/AVX/AVX2/SHA-NI)"
60466be8951SMathias Krause	depends on X86 && 64BIT
60566be8951SMathias Krause	select CRYPTO_SHA1
60666be8951SMathias Krause	select CRYPTO_HASH
60766be8951SMathias Krause	help
60866be8951SMathias Krause	  SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
60966be8951SMathias Krause	  using Supplemental SSE3 (SSSE3) instructions or Advanced Vector
610e38b6b7fStim	  Extensions (AVX/AVX2) or SHA-NI(SHA Extensions New Instructions),
611e38b6b7fStim	  when available.
61266be8951SMathias Krause
6138275d1aaSTim Chenconfig CRYPTO_SHA256_SSSE3
614e38b6b7fStim	tristate "SHA256 digest algorithm (SSSE3/AVX/AVX2/SHA-NI)"
6158275d1aaSTim Chen	depends on X86 && 64BIT
6168275d1aaSTim Chen	select CRYPTO_SHA256
6178275d1aaSTim Chen	select CRYPTO_HASH
6188275d1aaSTim Chen	help
6198275d1aaSTim Chen	  SHA-256 secure hash standard (DFIPS 180-2) implemented
6208275d1aaSTim Chen	  using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
6218275d1aaSTim Chen	  Extensions version 1 (AVX1), or Advanced Vector Extensions
622e38b6b7fStim	  version 2 (AVX2) instructions, or SHA-NI (SHA Extensions New
623e38b6b7fStim	  Instructions) when available.
6248275d1aaSTim Chen
62587de4579STim Chenconfig CRYPTO_SHA512_SSSE3
62687de4579STim Chen	tristate "SHA512 digest algorithm (SSSE3/AVX/AVX2)"
62787de4579STim Chen	depends on X86 && 64BIT
62887de4579STim Chen	select CRYPTO_SHA512
62987de4579STim Chen	select CRYPTO_HASH
63087de4579STim Chen	help
63187de4579STim Chen	  SHA-512 secure hash standard (DFIPS 180-2) implemented
63287de4579STim Chen	  using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
63387de4579STim Chen	  Extensions version 1 (AVX1), or Advanced Vector Extensions
63487de4579STim Chen	  version 2 (AVX2) instructions, when available.
63587de4579STim Chen
636efdb6f6eSAaro Koskinenconfig CRYPTO_SHA1_OCTEON
637efdb6f6eSAaro Koskinen	tristate "SHA1 digest algorithm (OCTEON)"
638efdb6f6eSAaro Koskinen	depends on CPU_CAVIUM_OCTEON
639efdb6f6eSAaro Koskinen	select CRYPTO_SHA1
640efdb6f6eSAaro Koskinen	select CRYPTO_HASH
641efdb6f6eSAaro Koskinen	help
642efdb6f6eSAaro Koskinen	  SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
643efdb6f6eSAaro Koskinen	  using OCTEON crypto instructions, when available.
644efdb6f6eSAaro Koskinen
6454ff28d4cSDavid S. Millerconfig CRYPTO_SHA1_SPARC64
6464ff28d4cSDavid S. Miller	tristate "SHA1 digest algorithm (SPARC64)"
6474ff28d4cSDavid S. Miller	depends on SPARC64
6484ff28d4cSDavid S. Miller	select CRYPTO_SHA1
6494ff28d4cSDavid S. Miller	select CRYPTO_HASH
6504ff28d4cSDavid S. Miller	help
6514ff28d4cSDavid S. Miller	  SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
6524ff28d4cSDavid S. Miller	  using sparc64 crypto instructions, when available.
6534ff28d4cSDavid S. Miller
654323a6bf1SMichael Ellermanconfig CRYPTO_SHA1_PPC
655323a6bf1SMichael Ellerman	tristate "SHA1 digest algorithm (powerpc)"
656323a6bf1SMichael Ellerman	depends on PPC
657323a6bf1SMichael Ellerman	help
658323a6bf1SMichael Ellerman	  This is the powerpc hardware accelerated implementation of the
659323a6bf1SMichael Ellerman	  SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
660323a6bf1SMichael Ellerman
661d9850fc5SMarkus Stockhausenconfig CRYPTO_SHA1_PPC_SPE
662d9850fc5SMarkus Stockhausen	tristate "SHA1 digest algorithm (PPC SPE)"
663d9850fc5SMarkus Stockhausen	depends on PPC && SPE
664d9850fc5SMarkus Stockhausen	help
665d9850fc5SMarkus Stockhausen	  SHA-1 secure hash standard (DFIPS 180-4) implemented
666d9850fc5SMarkus Stockhausen	  using powerpc SPE SIMD instruction set.
667d9850fc5SMarkus Stockhausen
6681e65b81aSTim Chenconfig CRYPTO_SHA1_MB
6691e65b81aSTim Chen	tristate "SHA1 digest algorithm (x86_64 Multi-Buffer, Experimental)"
6701e65b81aSTim Chen	depends on X86 && 64BIT
6711e65b81aSTim Chen	select CRYPTO_SHA1
6721e65b81aSTim Chen	select CRYPTO_HASH
6731e65b81aSTim Chen	select CRYPTO_MCRYPTD
6741e65b81aSTim Chen	help
6751e65b81aSTim Chen	  SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
6761e65b81aSTim Chen	  using multi-buffer technique.  This algorithm computes on
6771e65b81aSTim Chen	  multiple data lanes concurrently with SIMD instructions for
6781e65b81aSTim Chen	  better throughput.  It should not be enabled by default but
6791e65b81aSTim Chen	  used when there is significant amount of work to keep the keep
6801e65b81aSTim Chen	  the data lanes filled to get performance benefit.  If the data
6811e65b81aSTim Chen	  lanes remain unfilled, a flush operation will be initiated to
6821e65b81aSTim Chen	  process the crypto jobs, adding a slight latency.
6831e65b81aSTim Chen
6841da177e4SLinus Torvaldsconfig CRYPTO_SHA256
685cd12fb90SJonathan Lynch	tristate "SHA224 and SHA256 digest algorithm"
68650e109b5SAdrian-Ken Rueegsegger	select CRYPTO_HASH
6871da177e4SLinus Torvalds	help
6881da177e4SLinus Torvalds	  SHA256 secure hash standard (DFIPS 180-2).
6891da177e4SLinus Torvalds
6901da177e4SLinus Torvalds	  This version of SHA implements a 256 bit hash with 128 bits of
6911da177e4SLinus Torvalds	  security against collision attacks.
6921da177e4SLinus Torvalds
693cd12fb90SJonathan Lynch	  This code also includes SHA-224, a 224 bit hash with 112 bits
694cd12fb90SJonathan Lynch	  of security against collision attacks.
695cd12fb90SJonathan Lynch
6962ecc1e95SMarkus Stockhausenconfig CRYPTO_SHA256_PPC_SPE
6972ecc1e95SMarkus Stockhausen	tristate "SHA224 and SHA256 digest algorithm (PPC SPE)"
6982ecc1e95SMarkus Stockhausen	depends on PPC && SPE
6992ecc1e95SMarkus Stockhausen	select CRYPTO_SHA256
7002ecc1e95SMarkus Stockhausen	select CRYPTO_HASH
7012ecc1e95SMarkus Stockhausen	help
7022ecc1e95SMarkus Stockhausen	  SHA224 and SHA256 secure hash standard (DFIPS 180-2)
7032ecc1e95SMarkus Stockhausen	  implemented using powerpc SPE SIMD instruction set.
7042ecc1e95SMarkus Stockhausen
705efdb6f6eSAaro Koskinenconfig CRYPTO_SHA256_OCTEON
706efdb6f6eSAaro Koskinen	tristate "SHA224 and SHA256 digest algorithm (OCTEON)"
707efdb6f6eSAaro Koskinen	depends on CPU_CAVIUM_OCTEON
708efdb6f6eSAaro Koskinen	select CRYPTO_SHA256
709efdb6f6eSAaro Koskinen	select CRYPTO_HASH
710efdb6f6eSAaro Koskinen	help
711efdb6f6eSAaro Koskinen	  SHA-256 secure hash standard (DFIPS 180-2) implemented
712efdb6f6eSAaro Koskinen	  using OCTEON crypto instructions, when available.
713efdb6f6eSAaro Koskinen
71486c93b24SDavid S. Millerconfig CRYPTO_SHA256_SPARC64
71586c93b24SDavid S. Miller	tristate "SHA224 and SHA256 digest algorithm (SPARC64)"
71686c93b24SDavid S. Miller	depends on SPARC64
71786c93b24SDavid S. Miller	select CRYPTO_SHA256
71886c93b24SDavid S. Miller	select CRYPTO_HASH
71986c93b24SDavid S. Miller	help
72086c93b24SDavid S. Miller	  SHA-256 secure hash standard (DFIPS 180-2) implemented
72186c93b24SDavid S. Miller	  using sparc64 crypto instructions, when available.
72286c93b24SDavid S. Miller
7231da177e4SLinus Torvaldsconfig CRYPTO_SHA512
7241da177e4SLinus Torvalds	tristate "SHA384 and SHA512 digest algorithms"
725bd9d20dbSAdrian-Ken Rueegsegger	select CRYPTO_HASH
7261da177e4SLinus Torvalds	help
7271da177e4SLinus Torvalds	  SHA512 secure hash standard (DFIPS 180-2).
7281da177e4SLinus Torvalds
7291da177e4SLinus Torvalds	  This version of SHA implements a 512 bit hash with 256 bits of
7301da177e4SLinus Torvalds	  security against collision attacks.
7311da177e4SLinus Torvalds
7321da177e4SLinus Torvalds	  This code also includes SHA-384, a 384 bit hash with 192 bits
7331da177e4SLinus Torvalds	  of security against collision attacks.
7341da177e4SLinus Torvalds
735efdb6f6eSAaro Koskinenconfig CRYPTO_SHA512_OCTEON
736efdb6f6eSAaro Koskinen	tristate "SHA384 and SHA512 digest algorithms (OCTEON)"
737efdb6f6eSAaro Koskinen	depends on CPU_CAVIUM_OCTEON
738efdb6f6eSAaro Koskinen	select CRYPTO_SHA512
739efdb6f6eSAaro Koskinen	select CRYPTO_HASH
740efdb6f6eSAaro Koskinen	help
741efdb6f6eSAaro Koskinen	  SHA-512 secure hash standard (DFIPS 180-2) implemented
742efdb6f6eSAaro Koskinen	  using OCTEON crypto instructions, when available.
743efdb6f6eSAaro Koskinen
744775e0c69SDavid S. Millerconfig CRYPTO_SHA512_SPARC64
745775e0c69SDavid S. Miller	tristate "SHA384 and SHA512 digest algorithm (SPARC64)"
746775e0c69SDavid S. Miller	depends on SPARC64
747775e0c69SDavid S. Miller	select CRYPTO_SHA512
748775e0c69SDavid S. Miller	select CRYPTO_HASH
749775e0c69SDavid S. Miller	help
750775e0c69SDavid S. Miller	  SHA-512 secure hash standard (DFIPS 180-2) implemented
751775e0c69SDavid S. Miller	  using sparc64 crypto instructions, when available.
752775e0c69SDavid S. Miller
753*53964b9eSJeff Garzikconfig CRYPTO_SHA3
754*53964b9eSJeff Garzik	tristate "SHA3 digest algorithm"
755*53964b9eSJeff Garzik	select CRYPTO_HASH
756*53964b9eSJeff Garzik	help
757*53964b9eSJeff Garzik	  SHA-3 secure hash standard (DFIPS 202). It's based on
758*53964b9eSJeff Garzik	  cryptographic sponge function family called Keccak.
759*53964b9eSJeff Garzik
760*53964b9eSJeff Garzik	  References:
761*53964b9eSJeff Garzik	  http://keccak.noekeon.org/
762*53964b9eSJeff Garzik
7631da177e4SLinus Torvaldsconfig CRYPTO_TGR192
7641da177e4SLinus Torvalds	tristate "Tiger digest algorithms"
765f63fbd3dSAdrian-Ken Rueegsegger	select CRYPTO_HASH
7661da177e4SLinus Torvalds	help
7671da177e4SLinus Torvalds	  Tiger hash algorithm 192, 160 and 128-bit hashes
7681da177e4SLinus Torvalds
7691da177e4SLinus Torvalds	  Tiger is a hash function optimized for 64-bit processors while
7701da177e4SLinus Torvalds	  still having decent performance on 32-bit processors.
7711da177e4SLinus Torvalds	  Tiger was developed by Ross Anderson and Eli Biham.
7721da177e4SLinus Torvalds
7731da177e4SLinus Torvalds	  See also:
7741da177e4SLinus Torvalds	  <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>.
7751da177e4SLinus Torvalds
776584fffc8SSebastian Siewiorconfig CRYPTO_WP512
777584fffc8SSebastian Siewior	tristate "Whirlpool digest algorithms"
7784946510bSAdrian-Ken Rueegsegger	select CRYPTO_HASH
7791da177e4SLinus Torvalds	help
780584fffc8SSebastian Siewior	  Whirlpool hash algorithm 512, 384 and 256-bit hashes
7811da177e4SLinus Torvalds
782584fffc8SSebastian Siewior	  Whirlpool-512 is part of the NESSIE cryptographic primitives.
783584fffc8SSebastian Siewior	  Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard
7841da177e4SLinus Torvalds
7851da177e4SLinus Torvalds	  See also:
7866d8de74cSJustin P. Mattock	  <http://www.larc.usp.br/~pbarreto/WhirlpoolPage.html>
7871da177e4SLinus Torvalds
7880e1227d3SHuang Yingconfig CRYPTO_GHASH_CLMUL_NI_INTEL
7890e1227d3SHuang Ying	tristate "GHASH digest algorithm (CLMUL-NI accelerated)"
7908af00860SRichard Weinberger	depends on X86 && 64BIT
7910e1227d3SHuang Ying	select CRYPTO_CRYPTD
7920e1227d3SHuang Ying	help
7930e1227d3SHuang Ying	  GHASH is message digest algorithm for GCM (Galois/Counter Mode).
7940e1227d3SHuang Ying	  The implementation is accelerated by CLMUL-NI of Intel.
7950e1227d3SHuang Ying
796584fffc8SSebastian Siewiorcomment "Ciphers"
7971da177e4SLinus Torvalds
7981da177e4SLinus Torvaldsconfig CRYPTO_AES
7991da177e4SLinus Torvalds	tristate "AES cipher algorithms"
800cce9e06dSHerbert Xu	select CRYPTO_ALGAPI
8011da177e4SLinus Torvalds	help
8021da177e4SLinus Torvalds	  AES cipher algorithms (FIPS-197). AES uses the Rijndael
8031da177e4SLinus Torvalds	  algorithm.
8041da177e4SLinus Torvalds
8051da177e4SLinus Torvalds	  Rijndael appears to be consistently a very good performer in
8061da177e4SLinus Torvalds	  both hardware and software across a wide range of computing
8071da177e4SLinus Torvalds	  environments regardless of its use in feedback or non-feedback
8081da177e4SLinus Torvalds	  modes. Its key setup time is excellent, and its key agility is
8091da177e4SLinus Torvalds	  good. Rijndael's very low memory requirements make it very well
8101da177e4SLinus Torvalds	  suited for restricted-space environments, in which it also
8111da177e4SLinus Torvalds	  demonstrates excellent performance. Rijndael's operations are
8121da177e4SLinus Torvalds	  among the easiest to defend against power and timing attacks.
8131da177e4SLinus Torvalds
8141da177e4SLinus Torvalds	  The AES specifies three key sizes: 128, 192 and 256 bits
8151da177e4SLinus Torvalds
8161da177e4SLinus Torvalds	  See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information.
8171da177e4SLinus Torvalds
8181da177e4SLinus Torvaldsconfig CRYPTO_AES_586
8191da177e4SLinus Torvalds	tristate "AES cipher algorithms (i586)"
820cce9e06dSHerbert Xu	depends on (X86 || UML_X86) && !64BIT
821cce9e06dSHerbert Xu	select CRYPTO_ALGAPI
8225157dea8SSebastian Siewior	select CRYPTO_AES
8231da177e4SLinus Torvalds	help
8241da177e4SLinus Torvalds	  AES cipher algorithms (FIPS-197). AES uses the Rijndael
8251da177e4SLinus Torvalds	  algorithm.
8261da177e4SLinus Torvalds
8271da177e4SLinus Torvalds	  Rijndael appears to be consistently a very good performer in
8281da177e4SLinus Torvalds	  both hardware and software across a wide range of computing
8291da177e4SLinus Torvalds	  environments regardless of its use in feedback or non-feedback
8301da177e4SLinus Torvalds	  modes. Its key setup time is excellent, and its key agility is
8311da177e4SLinus Torvalds	  good. Rijndael's very low memory requirements make it very well
8321da177e4SLinus Torvalds	  suited for restricted-space environments, in which it also
8331da177e4SLinus Torvalds	  demonstrates excellent performance. Rijndael's operations are
8341da177e4SLinus Torvalds	  among the easiest to defend against power and timing attacks.
8351da177e4SLinus Torvalds
8361da177e4SLinus Torvalds	  The AES specifies three key sizes: 128, 192 and 256 bits
8371da177e4SLinus Torvalds
8381da177e4SLinus Torvalds	  See <http://csrc.nist.gov/encryption/aes/> for more information.
8391da177e4SLinus Torvalds
840a2a892a2SAndreas Steinmetzconfig CRYPTO_AES_X86_64
841a2a892a2SAndreas Steinmetz	tristate "AES cipher algorithms (x86_64)"
842cce9e06dSHerbert Xu	depends on (X86 || UML_X86) && 64BIT
843cce9e06dSHerbert Xu	select CRYPTO_ALGAPI
84481190b32SSebastian Siewior	select CRYPTO_AES
845a2a892a2SAndreas Steinmetz	help
846a2a892a2SAndreas Steinmetz	  AES cipher algorithms (FIPS-197). AES uses the Rijndael
847a2a892a2SAndreas Steinmetz	  algorithm.
848a2a892a2SAndreas Steinmetz
849a2a892a2SAndreas Steinmetz	  Rijndael appears to be consistently a very good performer in
850a2a892a2SAndreas Steinmetz	  both hardware and software across a wide range of computing
851a2a892a2SAndreas Steinmetz	  environments regardless of its use in feedback or non-feedback
852a2a892a2SAndreas Steinmetz	  modes. Its key setup time is excellent, and its key agility is
853a2a892a2SAndreas Steinmetz	  good. Rijndael's very low memory requirements make it very well
854a2a892a2SAndreas Steinmetz	  suited for restricted-space environments, in which it also
855a2a892a2SAndreas Steinmetz	  demonstrates excellent performance. Rijndael's operations are
856a2a892a2SAndreas Steinmetz	  among the easiest to defend against power and timing attacks.
857a2a892a2SAndreas Steinmetz
858a2a892a2SAndreas Steinmetz	  The AES specifies three key sizes: 128, 192 and 256 bits
859a2a892a2SAndreas Steinmetz
860a2a892a2SAndreas Steinmetz	  See <http://csrc.nist.gov/encryption/aes/> for more information.
861a2a892a2SAndreas Steinmetz
86254b6a1bdSHuang Yingconfig CRYPTO_AES_NI_INTEL
86354b6a1bdSHuang Ying	tristate "AES cipher algorithms (AES-NI)"
8648af00860SRichard Weinberger	depends on X86
8650d258efbSMathias Krause	select CRYPTO_AES_X86_64 if 64BIT
8660d258efbSMathias Krause	select CRYPTO_AES_586 if !64BIT
86754b6a1bdSHuang Ying	select CRYPTO_CRYPTD
868801201aaSArd Biesheuvel	select CRYPTO_ABLK_HELPER
86954b6a1bdSHuang Ying	select CRYPTO_ALGAPI
8707643a11aSJussi Kivilinna	select CRYPTO_GLUE_HELPER_X86 if 64BIT
871023af608SJussi Kivilinna	select CRYPTO_LRW
872023af608SJussi Kivilinna	select CRYPTO_XTS
87354b6a1bdSHuang Ying	help
87454b6a1bdSHuang Ying	  Use Intel AES-NI instructions for AES algorithm.
87554b6a1bdSHuang Ying
87654b6a1bdSHuang Ying	  AES cipher algorithms (FIPS-197). AES uses the Rijndael
87754b6a1bdSHuang Ying	  algorithm.
87854b6a1bdSHuang Ying
87954b6a1bdSHuang Ying	  Rijndael appears to be consistently a very good performer in
88054b6a1bdSHuang Ying	  both hardware and software across a wide range of computing
88154b6a1bdSHuang Ying	  environments regardless of its use in feedback or non-feedback
88254b6a1bdSHuang Ying	  modes. Its key setup time is excellent, and its key agility is
88354b6a1bdSHuang Ying	  good. Rijndael's very low memory requirements make it very well
88454b6a1bdSHuang Ying	  suited for restricted-space environments, in which it also
88554b6a1bdSHuang Ying	  demonstrates excellent performance. Rijndael's operations are
88654b6a1bdSHuang Ying	  among the easiest to defend against power and timing attacks.
88754b6a1bdSHuang Ying
88854b6a1bdSHuang Ying	  The AES specifies three key sizes: 128, 192 and 256 bits
88954b6a1bdSHuang Ying
89054b6a1bdSHuang Ying	  See <http://csrc.nist.gov/encryption/aes/> for more information.
89154b6a1bdSHuang Ying
8920d258efbSMathias Krause	  In addition to AES cipher algorithm support, the acceleration
8930d258efbSMathias Krause	  for some popular block cipher mode is supported too, including
8940d258efbSMathias Krause	  ECB, CBC, LRW, PCBC, XTS. The 64 bit version has additional
8950d258efbSMathias Krause	  acceleration for CTR.
8962cf4ac8bSHuang Ying
8979bf4852dSDavid S. Millerconfig CRYPTO_AES_SPARC64
8989bf4852dSDavid S. Miller	tristate "AES cipher algorithms (SPARC64)"
8999bf4852dSDavid S. Miller	depends on SPARC64
9009bf4852dSDavid S. Miller	select CRYPTO_CRYPTD
9019bf4852dSDavid S. Miller	select CRYPTO_ALGAPI
9029bf4852dSDavid S. Miller	help
9039bf4852dSDavid S. Miller	  Use SPARC64 crypto opcodes for AES algorithm.
9049bf4852dSDavid S. Miller
9059bf4852dSDavid S. Miller	  AES cipher algorithms (FIPS-197). AES uses the Rijndael
9069bf4852dSDavid S. Miller	  algorithm.
9079bf4852dSDavid S. Miller
9089bf4852dSDavid S. Miller	  Rijndael appears to be consistently a very good performer in
9099bf4852dSDavid S. Miller	  both hardware and software across a wide range of computing
9109bf4852dSDavid S. Miller	  environments regardless of its use in feedback or non-feedback
9119bf4852dSDavid S. Miller	  modes. Its key setup time is excellent, and its key agility is
9129bf4852dSDavid S. Miller	  good. Rijndael's very low memory requirements make it very well
9139bf4852dSDavid S. Miller	  suited for restricted-space environments, in which it also
9149bf4852dSDavid S. Miller	  demonstrates excellent performance. Rijndael's operations are
9159bf4852dSDavid S. Miller	  among the easiest to defend against power and timing attacks.
9169bf4852dSDavid S. Miller
9179bf4852dSDavid S. Miller	  The AES specifies three key sizes: 128, 192 and 256 bits
9189bf4852dSDavid S. Miller
9199bf4852dSDavid S. Miller	  See <http://csrc.nist.gov/encryption/aes/> for more information.
9209bf4852dSDavid S. Miller
9219bf4852dSDavid S. Miller	  In addition to AES cipher algorithm support, the acceleration
9229bf4852dSDavid S. Miller	  for some popular block cipher mode is supported too, including
9239bf4852dSDavid S. Miller	  ECB and CBC.
9249bf4852dSDavid S. Miller
925504c6143SMarkus Stockhausenconfig CRYPTO_AES_PPC_SPE
926504c6143SMarkus Stockhausen	tristate "AES cipher algorithms (PPC SPE)"
927504c6143SMarkus Stockhausen	depends on PPC && SPE
928504c6143SMarkus Stockhausen	help
929504c6143SMarkus Stockhausen	  AES cipher algorithms (FIPS-197). Additionally the acceleration
930504c6143SMarkus Stockhausen	  for popular block cipher modes ECB, CBC, CTR and XTS is supported.
931504c6143SMarkus Stockhausen	  This module should only be used for low power (router) devices
932504c6143SMarkus Stockhausen	  without hardware AES acceleration (e.g. caam crypto). It reduces the
933504c6143SMarkus Stockhausen	  size of the AES tables from 16KB to 8KB + 256 bytes and mitigates
934504c6143SMarkus Stockhausen	  timining attacks. Nevertheless it might be not as secure as other
935504c6143SMarkus Stockhausen	  architecture specific assembler implementations that work on 1KB
936504c6143SMarkus Stockhausen	  tables or 256 bytes S-boxes.
937504c6143SMarkus Stockhausen
9381da177e4SLinus Torvaldsconfig CRYPTO_ANUBIS
9391da177e4SLinus Torvalds	tristate "Anubis cipher algorithm"
940cce9e06dSHerbert Xu	select CRYPTO_ALGAPI
9411da177e4SLinus Torvalds	help
9421da177e4SLinus Torvalds	  Anubis cipher algorithm.
9431da177e4SLinus Torvalds
9441da177e4SLinus Torvalds	  Anubis is a variable key length cipher which can use keys from
9451da177e4SLinus Torvalds	  128 bits to 320 bits in length.  It was evaluated as a entrant
9461da177e4SLinus Torvalds	  in the NESSIE competition.
9471da177e4SLinus Torvalds
9481da177e4SLinus Torvalds	  See also:
9496d8de74cSJustin P. Mattock	  <https://www.cosic.esat.kuleuven.be/nessie/reports/>
9506d8de74cSJustin P. Mattock	  <http://www.larc.usp.br/~pbarreto/AnubisPage.html>
9511da177e4SLinus Torvalds
952584fffc8SSebastian Siewiorconfig CRYPTO_ARC4
953584fffc8SSebastian Siewior	tristate "ARC4 cipher algorithm"
954b9b0f080SSebastian Andrzej Siewior	select CRYPTO_BLKCIPHER
955e2ee95b8SHye-Shik Chang	help
956584fffc8SSebastian Siewior	  ARC4 cipher algorithm.
957e2ee95b8SHye-Shik Chang
958584fffc8SSebastian Siewior	  ARC4 is a stream cipher using keys ranging from 8 bits to 2048
959584fffc8SSebastian Siewior	  bits in length.  This algorithm is required for driver-based
960584fffc8SSebastian Siewior	  WEP, but it should not be for other purposes because of the
961584fffc8SSebastian Siewior	  weakness of the algorithm.
962584fffc8SSebastian Siewior
963584fffc8SSebastian Siewiorconfig CRYPTO_BLOWFISH
964584fffc8SSebastian Siewior	tristate "Blowfish cipher algorithm"
965584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
96652ba867cSJussi Kivilinna	select CRYPTO_BLOWFISH_COMMON
967584fffc8SSebastian Siewior	help
968584fffc8SSebastian Siewior	  Blowfish cipher algorithm, by Bruce Schneier.
969584fffc8SSebastian Siewior
970584fffc8SSebastian Siewior	  This is a variable key length cipher which can use keys from 32
971584fffc8SSebastian Siewior	  bits to 448 bits in length.  It's fast, simple and specifically
972584fffc8SSebastian Siewior	  designed for use on "large microprocessors".
973e2ee95b8SHye-Shik Chang
974e2ee95b8SHye-Shik Chang	  See also:
975584fffc8SSebastian Siewior	  <http://www.schneier.com/blowfish.html>
976584fffc8SSebastian Siewior
97752ba867cSJussi Kivilinnaconfig CRYPTO_BLOWFISH_COMMON
97852ba867cSJussi Kivilinna	tristate
97952ba867cSJussi Kivilinna	help
98052ba867cSJussi Kivilinna	  Common parts of the Blowfish cipher algorithm shared by the
98152ba867cSJussi Kivilinna	  generic c and the assembler implementations.
98252ba867cSJussi Kivilinna
98352ba867cSJussi Kivilinna	  See also:
98452ba867cSJussi Kivilinna	  <http://www.schneier.com/blowfish.html>
98552ba867cSJussi Kivilinna
98664b94ceaSJussi Kivilinnaconfig CRYPTO_BLOWFISH_X86_64
98764b94ceaSJussi Kivilinna	tristate "Blowfish cipher algorithm (x86_64)"
988f21a7c19SAl Viro	depends on X86 && 64BIT
98964b94ceaSJussi Kivilinna	select CRYPTO_ALGAPI
99064b94ceaSJussi Kivilinna	select CRYPTO_BLOWFISH_COMMON
99164b94ceaSJussi Kivilinna	help
99264b94ceaSJussi Kivilinna	  Blowfish cipher algorithm (x86_64), by Bruce Schneier.
99364b94ceaSJussi Kivilinna
99464b94ceaSJussi Kivilinna	  This is a variable key length cipher which can use keys from 32
99564b94ceaSJussi Kivilinna	  bits to 448 bits in length.  It's fast, simple and specifically
99664b94ceaSJussi Kivilinna	  designed for use on "large microprocessors".
99764b94ceaSJussi Kivilinna
99864b94ceaSJussi Kivilinna	  See also:
99964b94ceaSJussi Kivilinna	  <http://www.schneier.com/blowfish.html>
100064b94ceaSJussi Kivilinna
1001584fffc8SSebastian Siewiorconfig CRYPTO_CAMELLIA
1002584fffc8SSebastian Siewior	tristate "Camellia cipher algorithms"
1003584fffc8SSebastian Siewior	depends on CRYPTO
1004584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
1005584fffc8SSebastian Siewior	help
1006584fffc8SSebastian Siewior	  Camellia cipher algorithms module.
1007584fffc8SSebastian Siewior
1008584fffc8SSebastian Siewior	  Camellia is a symmetric key block cipher developed jointly
1009584fffc8SSebastian Siewior	  at NTT and Mitsubishi Electric Corporation.
1010584fffc8SSebastian Siewior
1011584fffc8SSebastian Siewior	  The Camellia specifies three key sizes: 128, 192 and 256 bits.
1012584fffc8SSebastian Siewior
1013584fffc8SSebastian Siewior	  See also:
1014584fffc8SSebastian Siewior	  <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1015584fffc8SSebastian Siewior
10160b95ec56SJussi Kivilinnaconfig CRYPTO_CAMELLIA_X86_64
10170b95ec56SJussi Kivilinna	tristate "Camellia cipher algorithm (x86_64)"
1018f21a7c19SAl Viro	depends on X86 && 64BIT
10190b95ec56SJussi Kivilinna	depends on CRYPTO
10200b95ec56SJussi Kivilinna	select CRYPTO_ALGAPI
1021964263afSJussi Kivilinna	select CRYPTO_GLUE_HELPER_X86
10220b95ec56SJussi Kivilinna	select CRYPTO_LRW
10230b95ec56SJussi Kivilinna	select CRYPTO_XTS
10240b95ec56SJussi Kivilinna	help
10250b95ec56SJussi Kivilinna	  Camellia cipher algorithm module (x86_64).
10260b95ec56SJussi Kivilinna
10270b95ec56SJussi Kivilinna	  Camellia is a symmetric key block cipher developed jointly
10280b95ec56SJussi Kivilinna	  at NTT and Mitsubishi Electric Corporation.
10290b95ec56SJussi Kivilinna
10300b95ec56SJussi Kivilinna	  The Camellia specifies three key sizes: 128, 192 and 256 bits.
10310b95ec56SJussi Kivilinna
10320b95ec56SJussi Kivilinna	  See also:
10330b95ec56SJussi Kivilinna	  <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
10340b95ec56SJussi Kivilinna
1035d9b1d2e7SJussi Kivilinnaconfig CRYPTO_CAMELLIA_AESNI_AVX_X86_64
1036d9b1d2e7SJussi Kivilinna	tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX)"
1037d9b1d2e7SJussi Kivilinna	depends on X86 && 64BIT
1038d9b1d2e7SJussi Kivilinna	depends on CRYPTO
1039d9b1d2e7SJussi Kivilinna	select CRYPTO_ALGAPI
1040d9b1d2e7SJussi Kivilinna	select CRYPTO_CRYPTD
1041801201aaSArd Biesheuvel	select CRYPTO_ABLK_HELPER
1042d9b1d2e7SJussi Kivilinna	select CRYPTO_GLUE_HELPER_X86
1043d9b1d2e7SJussi Kivilinna	select CRYPTO_CAMELLIA_X86_64
1044d9b1d2e7SJussi Kivilinna	select CRYPTO_LRW
1045d9b1d2e7SJussi Kivilinna	select CRYPTO_XTS
1046d9b1d2e7SJussi Kivilinna	help
1047d9b1d2e7SJussi Kivilinna	  Camellia cipher algorithm module (x86_64/AES-NI/AVX).
1048d9b1d2e7SJussi Kivilinna
1049d9b1d2e7SJussi Kivilinna	  Camellia is a symmetric key block cipher developed jointly
1050d9b1d2e7SJussi Kivilinna	  at NTT and Mitsubishi Electric Corporation.
1051d9b1d2e7SJussi Kivilinna
1052d9b1d2e7SJussi Kivilinna	  The Camellia specifies three key sizes: 128, 192 and 256 bits.
1053d9b1d2e7SJussi Kivilinna
1054d9b1d2e7SJussi Kivilinna	  See also:
1055d9b1d2e7SJussi Kivilinna	  <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1056d9b1d2e7SJussi Kivilinna
1057f3f935a7SJussi Kivilinnaconfig CRYPTO_CAMELLIA_AESNI_AVX2_X86_64
1058f3f935a7SJussi Kivilinna	tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX2)"
1059f3f935a7SJussi Kivilinna	depends on X86 && 64BIT
1060f3f935a7SJussi Kivilinna	depends on CRYPTO
1061f3f935a7SJussi Kivilinna	select CRYPTO_ALGAPI
1062f3f935a7SJussi Kivilinna	select CRYPTO_CRYPTD
1063801201aaSArd Biesheuvel	select CRYPTO_ABLK_HELPER
1064f3f935a7SJussi Kivilinna	select CRYPTO_GLUE_HELPER_X86
1065f3f935a7SJussi Kivilinna	select CRYPTO_CAMELLIA_X86_64
1066f3f935a7SJussi Kivilinna	select CRYPTO_CAMELLIA_AESNI_AVX_X86_64
1067f3f935a7SJussi Kivilinna	select CRYPTO_LRW
1068f3f935a7SJussi Kivilinna	select CRYPTO_XTS
1069f3f935a7SJussi Kivilinna	help
1070f3f935a7SJussi Kivilinna	  Camellia cipher algorithm module (x86_64/AES-NI/AVX2).
1071f3f935a7SJussi Kivilinna
1072f3f935a7SJussi Kivilinna	  Camellia is a symmetric key block cipher developed jointly
1073f3f935a7SJussi Kivilinna	  at NTT and Mitsubishi Electric Corporation.
1074f3f935a7SJussi Kivilinna
1075f3f935a7SJussi Kivilinna	  The Camellia specifies three key sizes: 128, 192 and 256 bits.
1076f3f935a7SJussi Kivilinna
1077f3f935a7SJussi Kivilinna	  See also:
1078f3f935a7SJussi Kivilinna	  <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1079f3f935a7SJussi Kivilinna
108081658ad0SDavid S. Millerconfig CRYPTO_CAMELLIA_SPARC64
108181658ad0SDavid S. Miller	tristate "Camellia cipher algorithm (SPARC64)"
108281658ad0SDavid S. Miller	depends on SPARC64
108381658ad0SDavid S. Miller	depends on CRYPTO
108481658ad0SDavid S. Miller	select CRYPTO_ALGAPI
108581658ad0SDavid S. Miller	help
108681658ad0SDavid S. Miller	  Camellia cipher algorithm module (SPARC64).
108781658ad0SDavid S. Miller
108881658ad0SDavid S. Miller	  Camellia is a symmetric key block cipher developed jointly
108981658ad0SDavid S. Miller	  at NTT and Mitsubishi Electric Corporation.
109081658ad0SDavid S. Miller
109181658ad0SDavid S. Miller	  The Camellia specifies three key sizes: 128, 192 and 256 bits.
109281658ad0SDavid S. Miller
109381658ad0SDavid S. Miller	  See also:
109481658ad0SDavid S. Miller	  <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
109581658ad0SDavid S. Miller
1096044ab525SJussi Kivilinnaconfig CRYPTO_CAST_COMMON
1097044ab525SJussi Kivilinna	tristate
1098044ab525SJussi Kivilinna	help
1099044ab525SJussi Kivilinna	  Common parts of the CAST cipher algorithms shared by the
1100044ab525SJussi Kivilinna	  generic c and the assembler implementations.
1101044ab525SJussi Kivilinna
1102584fffc8SSebastian Siewiorconfig CRYPTO_CAST5
1103584fffc8SSebastian Siewior	tristate "CAST5 (CAST-128) cipher algorithm"
1104584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
1105044ab525SJussi Kivilinna	select CRYPTO_CAST_COMMON
1106584fffc8SSebastian Siewior	help
1107584fffc8SSebastian Siewior	  The CAST5 encryption algorithm (synonymous with CAST-128) is
1108584fffc8SSebastian Siewior	  described in RFC2144.
1109584fffc8SSebastian Siewior
11104d6d6a2cSJohannes Goetzfriedconfig CRYPTO_CAST5_AVX_X86_64
11114d6d6a2cSJohannes Goetzfried	tristate "CAST5 (CAST-128) cipher algorithm (x86_64/AVX)"
11124d6d6a2cSJohannes Goetzfried	depends on X86 && 64BIT
11134d6d6a2cSJohannes Goetzfried	select CRYPTO_ALGAPI
11144d6d6a2cSJohannes Goetzfried	select CRYPTO_CRYPTD
1115801201aaSArd Biesheuvel	select CRYPTO_ABLK_HELPER
1116044ab525SJussi Kivilinna	select CRYPTO_CAST_COMMON
11174d6d6a2cSJohannes Goetzfried	select CRYPTO_CAST5
11184d6d6a2cSJohannes Goetzfried	help
11194d6d6a2cSJohannes Goetzfried	  The CAST5 encryption algorithm (synonymous with CAST-128) is
11204d6d6a2cSJohannes Goetzfried	  described in RFC2144.
11214d6d6a2cSJohannes Goetzfried
11224d6d6a2cSJohannes Goetzfried	  This module provides the Cast5 cipher algorithm that processes
11234d6d6a2cSJohannes Goetzfried	  sixteen blocks parallel using the AVX instruction set.
11244d6d6a2cSJohannes Goetzfried
1125584fffc8SSebastian Siewiorconfig CRYPTO_CAST6
1126584fffc8SSebastian Siewior	tristate "CAST6 (CAST-256) cipher algorithm"
1127584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
1128044ab525SJussi Kivilinna	select CRYPTO_CAST_COMMON
1129584fffc8SSebastian Siewior	help
1130584fffc8SSebastian Siewior	  The CAST6 encryption algorithm (synonymous with CAST-256) is
1131584fffc8SSebastian Siewior	  described in RFC2612.
1132584fffc8SSebastian Siewior
11334ea1277dSJohannes Goetzfriedconfig CRYPTO_CAST6_AVX_X86_64
11344ea1277dSJohannes Goetzfried	tristate "CAST6 (CAST-256) cipher algorithm (x86_64/AVX)"
11354ea1277dSJohannes Goetzfried	depends on X86 && 64BIT
11364ea1277dSJohannes Goetzfried	select CRYPTO_ALGAPI
11374ea1277dSJohannes Goetzfried	select CRYPTO_CRYPTD
1138801201aaSArd Biesheuvel	select CRYPTO_ABLK_HELPER
11394ea1277dSJohannes Goetzfried	select CRYPTO_GLUE_HELPER_X86
1140044ab525SJussi Kivilinna	select CRYPTO_CAST_COMMON
11414ea1277dSJohannes Goetzfried	select CRYPTO_CAST6
11424ea1277dSJohannes Goetzfried	select CRYPTO_LRW
11434ea1277dSJohannes Goetzfried	select CRYPTO_XTS
11444ea1277dSJohannes Goetzfried	help
11454ea1277dSJohannes Goetzfried	  The CAST6 encryption algorithm (synonymous with CAST-256) is
11464ea1277dSJohannes Goetzfried	  described in RFC2612.
11474ea1277dSJohannes Goetzfried
11484ea1277dSJohannes Goetzfried	  This module provides the Cast6 cipher algorithm that processes
11494ea1277dSJohannes Goetzfried	  eight blocks parallel using the AVX instruction set.
11504ea1277dSJohannes Goetzfried
1151584fffc8SSebastian Siewiorconfig CRYPTO_DES
1152584fffc8SSebastian Siewior	tristate "DES and Triple DES EDE cipher algorithms"
1153584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
1154584fffc8SSebastian Siewior	help
1155584fffc8SSebastian Siewior	  DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
1156584fffc8SSebastian Siewior
1157c5aac2dfSDavid S. Millerconfig CRYPTO_DES_SPARC64
1158c5aac2dfSDavid S. Miller	tristate "DES and Triple DES EDE cipher algorithms (SPARC64)"
115997da37b3SDave Jones	depends on SPARC64
1160c5aac2dfSDavid S. Miller	select CRYPTO_ALGAPI
1161c5aac2dfSDavid S. Miller	select CRYPTO_DES
1162c5aac2dfSDavid S. Miller	help
1163c5aac2dfSDavid S. Miller	  DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3),
1164c5aac2dfSDavid S. Miller	  optimized using SPARC64 crypto opcodes.
1165c5aac2dfSDavid S. Miller
11666574e6c6SJussi Kivilinnaconfig CRYPTO_DES3_EDE_X86_64
11676574e6c6SJussi Kivilinna	tristate "Triple DES EDE cipher algorithm (x86-64)"
11686574e6c6SJussi Kivilinna	depends on X86 && 64BIT
11696574e6c6SJussi Kivilinna	select CRYPTO_ALGAPI
11706574e6c6SJussi Kivilinna	select CRYPTO_DES
11716574e6c6SJussi Kivilinna	help
11726574e6c6SJussi Kivilinna	  Triple DES EDE (FIPS 46-3) algorithm.
11736574e6c6SJussi Kivilinna
11746574e6c6SJussi Kivilinna	  This module provides implementation of the Triple DES EDE cipher
11756574e6c6SJussi Kivilinna	  algorithm that is optimized for x86-64 processors. Two versions of
11766574e6c6SJussi Kivilinna	  algorithm are provided; regular processing one input block and
11776574e6c6SJussi Kivilinna	  one that processes three blocks parallel.
11786574e6c6SJussi Kivilinna
1179584fffc8SSebastian Siewiorconfig CRYPTO_FCRYPT
1180584fffc8SSebastian Siewior	tristate "FCrypt cipher algorithm"
1181584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
1182584fffc8SSebastian Siewior	select CRYPTO_BLKCIPHER
1183584fffc8SSebastian Siewior	help
1184584fffc8SSebastian Siewior	  FCrypt algorithm used by RxRPC.
1185584fffc8SSebastian Siewior
1186584fffc8SSebastian Siewiorconfig CRYPTO_KHAZAD
1187584fffc8SSebastian Siewior	tristate "Khazad cipher algorithm"
1188584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
1189584fffc8SSebastian Siewior	help
1190584fffc8SSebastian Siewior	  Khazad cipher algorithm.
1191584fffc8SSebastian Siewior
1192584fffc8SSebastian Siewior	  Khazad was a finalist in the initial NESSIE competition.  It is
1193584fffc8SSebastian Siewior	  an algorithm optimized for 64-bit processors with good performance
1194584fffc8SSebastian Siewior	  on 32-bit processors.  Khazad uses an 128 bit key size.
1195584fffc8SSebastian Siewior
1196584fffc8SSebastian Siewior	  See also:
11976d8de74cSJustin P. Mattock	  <http://www.larc.usp.br/~pbarreto/KhazadPage.html>
1198e2ee95b8SHye-Shik Chang
11992407d608STan Swee Hengconfig CRYPTO_SALSA20
12003b4afaf2SKees Cook	tristate "Salsa20 stream cipher algorithm"
12012407d608STan Swee Heng	select CRYPTO_BLKCIPHER
12022407d608STan Swee Heng	help
12032407d608STan Swee Heng	  Salsa20 stream cipher algorithm.
12042407d608STan Swee Heng
12052407d608STan Swee Heng	  Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
12062407d608STan Swee Heng	  Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
12072407d608STan Swee Heng
12082407d608STan Swee Heng	  The Salsa20 stream cipher algorithm is designed by Daniel J.
12092407d608STan Swee Heng	  Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
12101da177e4SLinus Torvalds
1211974e4b75STan Swee Hengconfig CRYPTO_SALSA20_586
12123b4afaf2SKees Cook	tristate "Salsa20 stream cipher algorithm (i586)"
1213974e4b75STan Swee Heng	depends on (X86 || UML_X86) && !64BIT
1214974e4b75STan Swee Heng	select CRYPTO_BLKCIPHER
1215974e4b75STan Swee Heng	help
1216974e4b75STan Swee Heng	  Salsa20 stream cipher algorithm.
1217974e4b75STan Swee Heng
1218974e4b75STan Swee Heng	  Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
1219974e4b75STan Swee Heng	  Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
1220974e4b75STan Swee Heng
1221974e4b75STan Swee Heng	  The Salsa20 stream cipher algorithm is designed by Daniel J.
1222974e4b75STan Swee Heng	  Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
1223974e4b75STan Swee Heng
12249a7dafbbSTan Swee Hengconfig CRYPTO_SALSA20_X86_64
12253b4afaf2SKees Cook	tristate "Salsa20 stream cipher algorithm (x86_64)"
12269a7dafbbSTan Swee Heng	depends on (X86 || UML_X86) && 64BIT
12279a7dafbbSTan Swee Heng	select CRYPTO_BLKCIPHER
12289a7dafbbSTan Swee Heng	help
12299a7dafbbSTan Swee Heng	  Salsa20 stream cipher algorithm.
12309a7dafbbSTan Swee Heng
12319a7dafbbSTan Swee Heng	  Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
12329a7dafbbSTan Swee Heng	  Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
12339a7dafbbSTan Swee Heng
12349a7dafbbSTan Swee Heng	  The Salsa20 stream cipher algorithm is designed by Daniel J.
12359a7dafbbSTan Swee Heng	  Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
12369a7dafbbSTan Swee Heng
1237c08d0e64SMartin Williconfig CRYPTO_CHACHA20
1238c08d0e64SMartin Willi	tristate "ChaCha20 cipher algorithm"
1239c08d0e64SMartin Willi	select CRYPTO_BLKCIPHER
1240c08d0e64SMartin Willi	help
1241c08d0e64SMartin Willi	  ChaCha20 cipher algorithm, RFC7539.
1242c08d0e64SMartin Willi
1243c08d0e64SMartin Willi	  ChaCha20 is a 256-bit high-speed stream cipher designed by Daniel J.
1244c08d0e64SMartin Willi	  Bernstein and further specified in RFC7539 for use in IETF protocols.
1245c08d0e64SMartin Willi	  This is the portable C implementation of ChaCha20.
1246c08d0e64SMartin Willi
1247c08d0e64SMartin Willi	  See also:
1248c08d0e64SMartin Willi	  <http://cr.yp.to/chacha/chacha-20080128.pdf>
1249c08d0e64SMartin Willi
1250c9320b6dSMartin Williconfig CRYPTO_CHACHA20_X86_64
12513d1e93cdSMartin Willi	tristate "ChaCha20 cipher algorithm (x86_64/SSSE3/AVX2)"
1252c9320b6dSMartin Willi	depends on X86 && 64BIT
1253c9320b6dSMartin Willi	select CRYPTO_BLKCIPHER
1254c9320b6dSMartin Willi	select CRYPTO_CHACHA20
1255c9320b6dSMartin Willi	help
1256c9320b6dSMartin Willi	  ChaCha20 cipher algorithm, RFC7539.
1257c9320b6dSMartin Willi
1258c9320b6dSMartin Willi	  ChaCha20 is a 256-bit high-speed stream cipher designed by Daniel J.
1259c9320b6dSMartin Willi	  Bernstein and further specified in RFC7539 for use in IETF protocols.
1260c9320b6dSMartin Willi	  This is the x86_64 assembler implementation using SIMD instructions.
1261c9320b6dSMartin Willi
1262c9320b6dSMartin Willi	  See also:
1263c9320b6dSMartin Willi	  <http://cr.yp.to/chacha/chacha-20080128.pdf>
1264c9320b6dSMartin Willi
1265584fffc8SSebastian Siewiorconfig CRYPTO_SEED
1266584fffc8SSebastian Siewior	tristate "SEED cipher algorithm"
1267584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
1268584fffc8SSebastian Siewior	help
1269584fffc8SSebastian Siewior	  SEED cipher algorithm (RFC4269).
1270584fffc8SSebastian Siewior
1271584fffc8SSebastian Siewior	  SEED is a 128-bit symmetric key block cipher that has been
1272584fffc8SSebastian Siewior	  developed by KISA (Korea Information Security Agency) as a
1273584fffc8SSebastian Siewior	  national standard encryption algorithm of the Republic of Korea.
1274584fffc8SSebastian Siewior	  It is a 16 round block cipher with the key size of 128 bit.
1275584fffc8SSebastian Siewior
1276584fffc8SSebastian Siewior	  See also:
1277584fffc8SSebastian Siewior	  <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>
1278584fffc8SSebastian Siewior
1279584fffc8SSebastian Siewiorconfig CRYPTO_SERPENT
1280584fffc8SSebastian Siewior	tristate "Serpent cipher algorithm"
1281584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
1282584fffc8SSebastian Siewior	help
1283584fffc8SSebastian Siewior	  Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1284584fffc8SSebastian Siewior
1285584fffc8SSebastian Siewior	  Keys are allowed to be from 0 to 256 bits in length, in steps
1286584fffc8SSebastian Siewior	  of 8 bits.  Also includes the 'Tnepres' algorithm, a reversed
1287584fffc8SSebastian Siewior	  variant of Serpent for compatibility with old kerneli.org code.
1288584fffc8SSebastian Siewior
1289584fffc8SSebastian Siewior	  See also:
1290584fffc8SSebastian Siewior	  <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1291584fffc8SSebastian Siewior
1292937c30d7SJussi Kivilinnaconfig CRYPTO_SERPENT_SSE2_X86_64
1293937c30d7SJussi Kivilinna	tristate "Serpent cipher algorithm (x86_64/SSE2)"
1294937c30d7SJussi Kivilinna	depends on X86 && 64BIT
1295937c30d7SJussi Kivilinna	select CRYPTO_ALGAPI
1296341975bfSJussi Kivilinna	select CRYPTO_CRYPTD
1297801201aaSArd Biesheuvel	select CRYPTO_ABLK_HELPER
1298596d8750SJussi Kivilinna	select CRYPTO_GLUE_HELPER_X86
1299937c30d7SJussi Kivilinna	select CRYPTO_SERPENT
1300feaf0cfcSJussi Kivilinna	select CRYPTO_LRW
1301feaf0cfcSJussi Kivilinna	select CRYPTO_XTS
1302937c30d7SJussi Kivilinna	help
1303937c30d7SJussi Kivilinna	  Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1304937c30d7SJussi Kivilinna
1305937c30d7SJussi Kivilinna	  Keys are allowed to be from 0 to 256 bits in length, in steps
1306937c30d7SJussi Kivilinna	  of 8 bits.
1307937c30d7SJussi Kivilinna
13081e6232f8SMasanari Iida	  This module provides Serpent cipher algorithm that processes eight
1309937c30d7SJussi Kivilinna	  blocks parallel using SSE2 instruction set.
1310937c30d7SJussi Kivilinna
1311937c30d7SJussi Kivilinna	  See also:
1312937c30d7SJussi Kivilinna	  <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1313937c30d7SJussi Kivilinna
1314251496dbSJussi Kivilinnaconfig CRYPTO_SERPENT_SSE2_586
1315251496dbSJussi Kivilinna	tristate "Serpent cipher algorithm (i586/SSE2)"
1316251496dbSJussi Kivilinna	depends on X86 && !64BIT
1317251496dbSJussi Kivilinna	select CRYPTO_ALGAPI
1318341975bfSJussi Kivilinna	select CRYPTO_CRYPTD
1319801201aaSArd Biesheuvel	select CRYPTO_ABLK_HELPER
1320596d8750SJussi Kivilinna	select CRYPTO_GLUE_HELPER_X86
1321251496dbSJussi Kivilinna	select CRYPTO_SERPENT
1322feaf0cfcSJussi Kivilinna	select CRYPTO_LRW
1323feaf0cfcSJussi Kivilinna	select CRYPTO_XTS
1324251496dbSJussi Kivilinna	help
1325251496dbSJussi Kivilinna	  Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1326251496dbSJussi Kivilinna
1327251496dbSJussi Kivilinna	  Keys are allowed to be from 0 to 256 bits in length, in steps
1328251496dbSJussi Kivilinna	  of 8 bits.
1329251496dbSJussi Kivilinna
1330251496dbSJussi Kivilinna	  This module provides Serpent cipher algorithm that processes four
1331251496dbSJussi Kivilinna	  blocks parallel using SSE2 instruction set.
1332251496dbSJussi Kivilinna
1333251496dbSJussi Kivilinna	  See also:
1334251496dbSJussi Kivilinna	  <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1335251496dbSJussi Kivilinna
13367efe4076SJohannes Goetzfriedconfig CRYPTO_SERPENT_AVX_X86_64
13377efe4076SJohannes Goetzfried	tristate "Serpent cipher algorithm (x86_64/AVX)"
13387efe4076SJohannes Goetzfried	depends on X86 && 64BIT
13397efe4076SJohannes Goetzfried	select CRYPTO_ALGAPI
13407efe4076SJohannes Goetzfried	select CRYPTO_CRYPTD
1341801201aaSArd Biesheuvel	select CRYPTO_ABLK_HELPER
13421d0debbdSJussi Kivilinna	select CRYPTO_GLUE_HELPER_X86
13437efe4076SJohannes Goetzfried	select CRYPTO_SERPENT
13447efe4076SJohannes Goetzfried	select CRYPTO_LRW
13457efe4076SJohannes Goetzfried	select CRYPTO_XTS
13467efe4076SJohannes Goetzfried	help
13477efe4076SJohannes Goetzfried	  Serpent cipher algorithm, by Anderson, Biham & Knudsen.
13487efe4076SJohannes Goetzfried
13497efe4076SJohannes Goetzfried	  Keys are allowed to be from 0 to 256 bits in length, in steps
13507efe4076SJohannes Goetzfried	  of 8 bits.
13517efe4076SJohannes Goetzfried
13527efe4076SJohannes Goetzfried	  This module provides the Serpent cipher algorithm that processes
13537efe4076SJohannes Goetzfried	  eight blocks parallel using the AVX instruction set.
13547efe4076SJohannes Goetzfried
13557efe4076SJohannes Goetzfried	  See also:
13567efe4076SJohannes Goetzfried	  <http://www.cl.cam.ac.uk/~rja14/serpent.html>
13577efe4076SJohannes Goetzfried
135856d76c96SJussi Kivilinnaconfig CRYPTO_SERPENT_AVX2_X86_64
135956d76c96SJussi Kivilinna	tristate "Serpent cipher algorithm (x86_64/AVX2)"
136056d76c96SJussi Kivilinna	depends on X86 && 64BIT
136156d76c96SJussi Kivilinna	select CRYPTO_ALGAPI
136256d76c96SJussi Kivilinna	select CRYPTO_CRYPTD
1363801201aaSArd Biesheuvel	select CRYPTO_ABLK_HELPER
136456d76c96SJussi Kivilinna	select CRYPTO_GLUE_HELPER_X86
136556d76c96SJussi Kivilinna	select CRYPTO_SERPENT
136656d76c96SJussi Kivilinna	select CRYPTO_SERPENT_AVX_X86_64
136756d76c96SJussi Kivilinna	select CRYPTO_LRW
136856d76c96SJussi Kivilinna	select CRYPTO_XTS
136956d76c96SJussi Kivilinna	help
137056d76c96SJussi Kivilinna	  Serpent cipher algorithm, by Anderson, Biham & Knudsen.
137156d76c96SJussi Kivilinna
137256d76c96SJussi Kivilinna	  Keys are allowed to be from 0 to 256 bits in length, in steps
137356d76c96SJussi Kivilinna	  of 8 bits.
137456d76c96SJussi Kivilinna
137556d76c96SJussi Kivilinna	  This module provides Serpent cipher algorithm that processes 16
137656d76c96SJussi Kivilinna	  blocks parallel using AVX2 instruction set.
137756d76c96SJussi Kivilinna
137856d76c96SJussi Kivilinna	  See also:
137956d76c96SJussi Kivilinna	  <http://www.cl.cam.ac.uk/~rja14/serpent.html>
138056d76c96SJussi Kivilinna
1381584fffc8SSebastian Siewiorconfig CRYPTO_TEA
1382584fffc8SSebastian Siewior	tristate "TEA, XTEA and XETA cipher algorithms"
1383584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
1384584fffc8SSebastian Siewior	help
1385584fffc8SSebastian Siewior	  TEA cipher algorithm.
1386584fffc8SSebastian Siewior
1387584fffc8SSebastian Siewior	  Tiny Encryption Algorithm is a simple cipher that uses
1388584fffc8SSebastian Siewior	  many rounds for security.  It is very fast and uses
1389584fffc8SSebastian Siewior	  little memory.
1390584fffc8SSebastian Siewior
1391584fffc8SSebastian Siewior	  Xtendend Tiny Encryption Algorithm is a modification to
1392584fffc8SSebastian Siewior	  the TEA algorithm to address a potential key weakness
1393584fffc8SSebastian Siewior	  in the TEA algorithm.
1394584fffc8SSebastian Siewior
1395584fffc8SSebastian Siewior	  Xtendend Encryption Tiny Algorithm is a mis-implementation
1396584fffc8SSebastian Siewior	  of the XTEA algorithm for compatibility purposes.
1397584fffc8SSebastian Siewior
1398584fffc8SSebastian Siewiorconfig CRYPTO_TWOFISH
1399584fffc8SSebastian Siewior	tristate "Twofish cipher algorithm"
1400584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
1401584fffc8SSebastian Siewior	select CRYPTO_TWOFISH_COMMON
1402584fffc8SSebastian Siewior	help
1403584fffc8SSebastian Siewior	  Twofish cipher algorithm.
1404584fffc8SSebastian Siewior
1405584fffc8SSebastian Siewior	  Twofish was submitted as an AES (Advanced Encryption Standard)
1406584fffc8SSebastian Siewior	  candidate cipher by researchers at CounterPane Systems.  It is a
1407584fffc8SSebastian Siewior	  16 round block cipher supporting key sizes of 128, 192, and 256
1408584fffc8SSebastian Siewior	  bits.
1409584fffc8SSebastian Siewior
1410584fffc8SSebastian Siewior	  See also:
1411584fffc8SSebastian Siewior	  <http://www.schneier.com/twofish.html>
1412584fffc8SSebastian Siewior
1413584fffc8SSebastian Siewiorconfig CRYPTO_TWOFISH_COMMON
1414584fffc8SSebastian Siewior	tristate
1415584fffc8SSebastian Siewior	help
1416584fffc8SSebastian Siewior	  Common parts of the Twofish cipher algorithm shared by the
1417584fffc8SSebastian Siewior	  generic c and the assembler implementations.
1418584fffc8SSebastian Siewior
1419584fffc8SSebastian Siewiorconfig CRYPTO_TWOFISH_586
1420584fffc8SSebastian Siewior	tristate "Twofish cipher algorithms (i586)"
1421584fffc8SSebastian Siewior	depends on (X86 || UML_X86) && !64BIT
1422584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
1423584fffc8SSebastian Siewior	select CRYPTO_TWOFISH_COMMON
1424584fffc8SSebastian Siewior	help
1425584fffc8SSebastian Siewior	  Twofish cipher algorithm.
1426584fffc8SSebastian Siewior
1427584fffc8SSebastian Siewior	  Twofish was submitted as an AES (Advanced Encryption Standard)
1428584fffc8SSebastian Siewior	  candidate cipher by researchers at CounterPane Systems.  It is a
1429584fffc8SSebastian Siewior	  16 round block cipher supporting key sizes of 128, 192, and 256
1430584fffc8SSebastian Siewior	  bits.
1431584fffc8SSebastian Siewior
1432584fffc8SSebastian Siewior	  See also:
1433584fffc8SSebastian Siewior	  <http://www.schneier.com/twofish.html>
1434584fffc8SSebastian Siewior
1435584fffc8SSebastian Siewiorconfig CRYPTO_TWOFISH_X86_64
1436584fffc8SSebastian Siewior	tristate "Twofish cipher algorithm (x86_64)"
1437584fffc8SSebastian Siewior	depends on (X86 || UML_X86) && 64BIT
1438584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
1439584fffc8SSebastian Siewior	select CRYPTO_TWOFISH_COMMON
1440584fffc8SSebastian Siewior	help
1441584fffc8SSebastian Siewior	  Twofish cipher algorithm (x86_64).
1442584fffc8SSebastian Siewior
1443584fffc8SSebastian Siewior	  Twofish was submitted as an AES (Advanced Encryption Standard)
1444584fffc8SSebastian Siewior	  candidate cipher by researchers at CounterPane Systems.  It is a
1445584fffc8SSebastian Siewior	  16 round block cipher supporting key sizes of 128, 192, and 256
1446584fffc8SSebastian Siewior	  bits.
1447584fffc8SSebastian Siewior
1448584fffc8SSebastian Siewior	  See also:
1449584fffc8SSebastian Siewior	  <http://www.schneier.com/twofish.html>
1450584fffc8SSebastian Siewior
14518280daadSJussi Kivilinnaconfig CRYPTO_TWOFISH_X86_64_3WAY
14528280daadSJussi Kivilinna	tristate "Twofish cipher algorithm (x86_64, 3-way parallel)"
1453f21a7c19SAl Viro	depends on X86 && 64BIT
14548280daadSJussi Kivilinna	select CRYPTO_ALGAPI
14558280daadSJussi Kivilinna	select CRYPTO_TWOFISH_COMMON
14568280daadSJussi Kivilinna	select CRYPTO_TWOFISH_X86_64
1457414cb5e7SJussi Kivilinna	select CRYPTO_GLUE_HELPER_X86
1458e7cda5d2SJussi Kivilinna	select CRYPTO_LRW
1459e7cda5d2SJussi Kivilinna	select CRYPTO_XTS
14608280daadSJussi Kivilinna	help
14618280daadSJussi Kivilinna	  Twofish cipher algorithm (x86_64, 3-way parallel).
14628280daadSJussi Kivilinna
14638280daadSJussi Kivilinna	  Twofish was submitted as an AES (Advanced Encryption Standard)
14648280daadSJussi Kivilinna	  candidate cipher by researchers at CounterPane Systems.  It is a
14658280daadSJussi Kivilinna	  16 round block cipher supporting key sizes of 128, 192, and 256
14668280daadSJussi Kivilinna	  bits.
14678280daadSJussi Kivilinna
14688280daadSJussi Kivilinna	  This module provides Twofish cipher algorithm that processes three
14698280daadSJussi Kivilinna	  blocks parallel, utilizing resources of out-of-order CPUs better.
14708280daadSJussi Kivilinna
14718280daadSJussi Kivilinna	  See also:
14728280daadSJussi Kivilinna	  <http://www.schneier.com/twofish.html>
14738280daadSJussi Kivilinna
1474107778b5SJohannes Goetzfriedconfig CRYPTO_TWOFISH_AVX_X86_64
1475107778b5SJohannes Goetzfried	tristate "Twofish cipher algorithm (x86_64/AVX)"
1476107778b5SJohannes Goetzfried	depends on X86 && 64BIT
1477107778b5SJohannes Goetzfried	select CRYPTO_ALGAPI
1478107778b5SJohannes Goetzfried	select CRYPTO_CRYPTD
1479801201aaSArd Biesheuvel	select CRYPTO_ABLK_HELPER
1480a7378d4eSJussi Kivilinna	select CRYPTO_GLUE_HELPER_X86
1481107778b5SJohannes Goetzfried	select CRYPTO_TWOFISH_COMMON
1482107778b5SJohannes Goetzfried	select CRYPTO_TWOFISH_X86_64
1483107778b5SJohannes Goetzfried	select CRYPTO_TWOFISH_X86_64_3WAY
1484107778b5SJohannes Goetzfried	select CRYPTO_LRW
1485107778b5SJohannes Goetzfried	select CRYPTO_XTS
1486107778b5SJohannes Goetzfried	help
1487107778b5SJohannes Goetzfried	  Twofish cipher algorithm (x86_64/AVX).
1488107778b5SJohannes Goetzfried
1489107778b5SJohannes Goetzfried	  Twofish was submitted as an AES (Advanced Encryption Standard)
1490107778b5SJohannes Goetzfried	  candidate cipher by researchers at CounterPane Systems.  It is a
1491107778b5SJohannes Goetzfried	  16 round block cipher supporting key sizes of 128, 192, and 256
1492107778b5SJohannes Goetzfried	  bits.
1493107778b5SJohannes Goetzfried
1494107778b5SJohannes Goetzfried	  This module provides the Twofish cipher algorithm that processes
1495107778b5SJohannes Goetzfried	  eight blocks parallel using the AVX Instruction Set.
1496107778b5SJohannes Goetzfried
1497107778b5SJohannes Goetzfried	  See also:
1498107778b5SJohannes Goetzfried	  <http://www.schneier.com/twofish.html>
1499107778b5SJohannes Goetzfried
1500584fffc8SSebastian Siewiorcomment "Compression"
1501584fffc8SSebastian Siewior
15021da177e4SLinus Torvaldsconfig CRYPTO_DEFLATE
15031da177e4SLinus Torvalds	tristate "Deflate compression algorithm"
1504cce9e06dSHerbert Xu	select CRYPTO_ALGAPI
15051da177e4SLinus Torvalds	select ZLIB_INFLATE
15061da177e4SLinus Torvalds	select ZLIB_DEFLATE
15071da177e4SLinus Torvalds	help
15081da177e4SLinus Torvalds	  This is the Deflate algorithm (RFC1951), specified for use in
15091da177e4SLinus Torvalds	  IPSec with the IPCOMP protocol (RFC3173, RFC2394).
15101da177e4SLinus Torvalds
15111da177e4SLinus Torvalds	  You will most probably want this if using IPSec.
15121da177e4SLinus Torvalds
15130b77abb3SZoltan Sogorconfig CRYPTO_LZO
15140b77abb3SZoltan Sogor	tristate "LZO compression algorithm"
15150b77abb3SZoltan Sogor	select CRYPTO_ALGAPI
15160b77abb3SZoltan Sogor	select LZO_COMPRESS
15170b77abb3SZoltan Sogor	select LZO_DECOMPRESS
15180b77abb3SZoltan Sogor	help
15190b77abb3SZoltan Sogor	  This is the LZO algorithm.
15200b77abb3SZoltan Sogor
152135a1fc18SSeth Jenningsconfig CRYPTO_842
152235a1fc18SSeth Jennings	tristate "842 compression algorithm"
15232062c5b6SDan Streetman	select CRYPTO_ALGAPI
15242062c5b6SDan Streetman	select 842_COMPRESS
15252062c5b6SDan Streetman	select 842_DECOMPRESS
152635a1fc18SSeth Jennings	help
152735a1fc18SSeth Jennings	  This is the 842 algorithm.
152835a1fc18SSeth Jennings
15290ea8530dSChanho Minconfig CRYPTO_LZ4
15300ea8530dSChanho Min	tristate "LZ4 compression algorithm"
15310ea8530dSChanho Min	select CRYPTO_ALGAPI
15320ea8530dSChanho Min	select LZ4_COMPRESS
15330ea8530dSChanho Min	select LZ4_DECOMPRESS
15340ea8530dSChanho Min	help
15350ea8530dSChanho Min	  This is the LZ4 algorithm.
15360ea8530dSChanho Min
15370ea8530dSChanho Minconfig CRYPTO_LZ4HC
15380ea8530dSChanho Min	tristate "LZ4HC compression algorithm"
15390ea8530dSChanho Min	select CRYPTO_ALGAPI
15400ea8530dSChanho Min	select LZ4HC_COMPRESS
15410ea8530dSChanho Min	select LZ4_DECOMPRESS
15420ea8530dSChanho Min	help
15430ea8530dSChanho Min	  This is the LZ4 high compression mode algorithm.
15440ea8530dSChanho Min
154517f0f4a4SNeil Hormancomment "Random Number Generation"
154617f0f4a4SNeil Horman
154717f0f4a4SNeil Hormanconfig CRYPTO_ANSI_CPRNG
154817f0f4a4SNeil Horman	tristate "Pseudo Random Number Generation for Cryptographic modules"
154917f0f4a4SNeil Horman	select CRYPTO_AES
155017f0f4a4SNeil Horman	select CRYPTO_RNG
155117f0f4a4SNeil Horman	help
155217f0f4a4SNeil Horman	  This option enables the generic pseudo random number generator
155317f0f4a4SNeil Horman	  for cryptographic modules.  Uses the Algorithm specified in
15547dd607e8SJiri Kosina	  ANSI X9.31 A.2.4. Note that this option must be enabled if
15557dd607e8SJiri Kosina	  CRYPTO_FIPS is selected
155617f0f4a4SNeil Horman
1557f2c89a10SHerbert Xumenuconfig CRYPTO_DRBG_MENU
1558419090c6SStephan Mueller	tristate "NIST SP800-90A DRBG"
1559419090c6SStephan Mueller	help
1560419090c6SStephan Mueller	  NIST SP800-90A compliant DRBG. In the following submenu, one or
1561419090c6SStephan Mueller	  more of the DRBG types must be selected.
1562419090c6SStephan Mueller
1563f2c89a10SHerbert Xuif CRYPTO_DRBG_MENU
1564419090c6SStephan Mueller
1565419090c6SStephan Muellerconfig CRYPTO_DRBG_HMAC
1566401e4238SHerbert Xu	bool
1567419090c6SStephan Mueller	default y
1568419090c6SStephan Mueller	select CRYPTO_HMAC
1569826775bbSHerbert Xu	select CRYPTO_SHA256
1570419090c6SStephan Mueller
1571419090c6SStephan Muellerconfig CRYPTO_DRBG_HASH
1572419090c6SStephan Mueller	bool "Enable Hash DRBG"
1573826775bbSHerbert Xu	select CRYPTO_SHA256
1574419090c6SStephan Mueller	help
1575419090c6SStephan Mueller	  Enable the Hash DRBG variant as defined in NIST SP800-90A.
1576419090c6SStephan Mueller
1577419090c6SStephan Muellerconfig CRYPTO_DRBG_CTR
1578419090c6SStephan Mueller	bool "Enable CTR DRBG"
1579419090c6SStephan Mueller	select CRYPTO_AES
158035591285SStephan Mueller	depends on CRYPTO_CTR
1581419090c6SStephan Mueller	help
1582419090c6SStephan Mueller	  Enable the CTR DRBG variant as defined in NIST SP800-90A.
1583419090c6SStephan Mueller
1584f2c89a10SHerbert Xuconfig CRYPTO_DRBG
1585f2c89a10SHerbert Xu	tristate
1586401e4238SHerbert Xu	default CRYPTO_DRBG_MENU
1587f2c89a10SHerbert Xu	select CRYPTO_RNG
1588bb5530e4SStephan Mueller	select CRYPTO_JITTERENTROPY
1589f2c89a10SHerbert Xu
1590f2c89a10SHerbert Xuendif	# if CRYPTO_DRBG_MENU
1591419090c6SStephan Mueller
1592bb5530e4SStephan Muellerconfig CRYPTO_JITTERENTROPY
1593bb5530e4SStephan Mueller	tristate "Jitterentropy Non-Deterministic Random Number Generator"
15942f313e02SArnd Bergmann	select CRYPTO_RNG
1595bb5530e4SStephan Mueller	help
1596bb5530e4SStephan Mueller	  The Jitterentropy RNG is a noise that is intended
1597bb5530e4SStephan Mueller	  to provide seed to another RNG. The RNG does not
1598bb5530e4SStephan Mueller	  perform any cryptographic whitening of the generated
1599bb5530e4SStephan Mueller	  random numbers. This Jitterentropy RNG registers with
1600bb5530e4SStephan Mueller	  the kernel crypto API and can be used by any caller.
1601bb5530e4SStephan Mueller
160203c8efc1SHerbert Xuconfig CRYPTO_USER_API
160303c8efc1SHerbert Xu	tristate
160403c8efc1SHerbert Xu
1605fe869cdbSHerbert Xuconfig CRYPTO_USER_API_HASH
1606fe869cdbSHerbert Xu	tristate "User-space interface for hash algorithms"
16077451708fSHerbert Xu	depends on NET
1608fe869cdbSHerbert Xu	select CRYPTO_HASH
1609fe869cdbSHerbert Xu	select CRYPTO_USER_API
1610fe869cdbSHerbert Xu	help
1611fe869cdbSHerbert Xu	  This option enables the user-spaces interface for hash
1612fe869cdbSHerbert Xu	  algorithms.
1613fe869cdbSHerbert Xu
16148ff59090SHerbert Xuconfig CRYPTO_USER_API_SKCIPHER
16158ff59090SHerbert Xu	tristate "User-space interface for symmetric key cipher algorithms"
16167451708fSHerbert Xu	depends on NET
16178ff59090SHerbert Xu	select CRYPTO_BLKCIPHER
16188ff59090SHerbert Xu	select CRYPTO_USER_API
16198ff59090SHerbert Xu	help
16208ff59090SHerbert Xu	  This option enables the user-spaces interface for symmetric
16218ff59090SHerbert Xu	  key cipher algorithms.
16228ff59090SHerbert Xu
16232f375538SStephan Muellerconfig CRYPTO_USER_API_RNG
16242f375538SStephan Mueller	tristate "User-space interface for random number generator algorithms"
16252f375538SStephan Mueller	depends on NET
16262f375538SStephan Mueller	select CRYPTO_RNG
16272f375538SStephan Mueller	select CRYPTO_USER_API
16282f375538SStephan Mueller	help
16292f375538SStephan Mueller	  This option enables the user-spaces interface for random
16302f375538SStephan Mueller	  number generator algorithms.
16312f375538SStephan Mueller
1632b64a2d95SHerbert Xuconfig CRYPTO_USER_API_AEAD
1633b64a2d95SHerbert Xu	tristate "User-space interface for AEAD cipher algorithms"
1634b64a2d95SHerbert Xu	depends on NET
1635b64a2d95SHerbert Xu	select CRYPTO_AEAD
1636b64a2d95SHerbert Xu	select CRYPTO_USER_API
1637b64a2d95SHerbert Xu	help
1638b64a2d95SHerbert Xu	  This option enables the user-spaces interface for AEAD
1639b64a2d95SHerbert Xu	  cipher algorithms.
1640b64a2d95SHerbert Xu
1641ee08997fSDmitry Kasatkinconfig CRYPTO_HASH_INFO
1642ee08997fSDmitry Kasatkin	bool
1643ee08997fSDmitry Kasatkin
16441da177e4SLinus Torvaldssource "drivers/crypto/Kconfig"
1645964f3b3bSDavid Howellssource crypto/asymmetric_keys/Kconfig
1646cfc411e7SDavid Howellssource certs/Kconfig
16471da177e4SLinus Torvalds
1648cce9e06dSHerbert Xuendif	# if CRYPTO
1649