xref: /linux/crypto/Kconfig (revision 826775bbf38fb7fbc8896482d341dc38cf84c811)
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
516a0fcbb4SHerbert Xu
525cde0af2SHerbert Xuconfig CRYPTO_BLKCIPHER
535cde0af2SHerbert Xu	tristate
546a0fcbb4SHerbert Xu	select CRYPTO_BLKCIPHER2
555cde0af2SHerbert Xu	select CRYPTO_ALGAPI
566a0fcbb4SHerbert Xu
576a0fcbb4SHerbert Xuconfig CRYPTO_BLKCIPHER2
586a0fcbb4SHerbert Xu	tristate
596a0fcbb4SHerbert Xu	select CRYPTO_ALGAPI2
606a0fcbb4SHerbert Xu	select CRYPTO_RNG2
610a2e821dSHuang Ying	select CRYPTO_WORKQUEUE
625cde0af2SHerbert Xu
63055bcee3SHerbert Xuconfig CRYPTO_HASH
64055bcee3SHerbert Xu	tristate
656a0fcbb4SHerbert Xu	select CRYPTO_HASH2
66055bcee3SHerbert Xu	select CRYPTO_ALGAPI
67055bcee3SHerbert Xu
686a0fcbb4SHerbert Xuconfig CRYPTO_HASH2
696a0fcbb4SHerbert Xu	tristate
706a0fcbb4SHerbert Xu	select CRYPTO_ALGAPI2
716a0fcbb4SHerbert Xu
7217f0f4a4SNeil Hormanconfig CRYPTO_RNG
7317f0f4a4SNeil Horman	tristate
746a0fcbb4SHerbert Xu	select CRYPTO_RNG2
7517f0f4a4SNeil Horman	select CRYPTO_ALGAPI
7617f0f4a4SNeil Horman
776a0fcbb4SHerbert Xuconfig CRYPTO_RNG2
786a0fcbb4SHerbert Xu	tristate
796a0fcbb4SHerbert Xu	select CRYPTO_ALGAPI2
806a0fcbb4SHerbert Xu
81401e4238SHerbert Xuconfig CRYPTO_RNG_DEFAULT
82401e4238SHerbert Xu	tristate
83401e4238SHerbert Xu	select CRYPTO_DRBG_MENU
84401e4238SHerbert Xu
85a1d2f095SGeert Uytterhoevenconfig CRYPTO_PCOMP
86a1d2f095SGeert Uytterhoeven	tristate
87bc94e596SHerbert Xu	select CRYPTO_PCOMP2
88bc94e596SHerbert Xu	select CRYPTO_ALGAPI
89bc94e596SHerbert Xu
90bc94e596SHerbert Xuconfig CRYPTO_PCOMP2
91bc94e596SHerbert Xu	tristate
92a1d2f095SGeert Uytterhoeven	select CRYPTO_ALGAPI2
93a1d2f095SGeert Uytterhoeven
942b8c19dbSHerbert Xuconfig CRYPTO_MANAGER
952b8c19dbSHerbert Xu	tristate "Cryptographic algorithm manager"
966a0fcbb4SHerbert Xu	select CRYPTO_MANAGER2
972b8c19dbSHerbert Xu	help
982b8c19dbSHerbert Xu	  Create default cryptographic template instantiations such as
992b8c19dbSHerbert Xu	  cbc(aes).
1002b8c19dbSHerbert Xu
1016a0fcbb4SHerbert Xuconfig CRYPTO_MANAGER2
1026a0fcbb4SHerbert Xu	def_tristate CRYPTO_MANAGER || (CRYPTO_MANAGER!=n && CRYPTO_ALGAPI=y)
1036a0fcbb4SHerbert Xu	select CRYPTO_AEAD2
1046a0fcbb4SHerbert Xu	select CRYPTO_HASH2
1056a0fcbb4SHerbert Xu	select CRYPTO_BLKCIPHER2
106bc94e596SHerbert Xu	select CRYPTO_PCOMP2
1076a0fcbb4SHerbert Xu
108a38f7907SSteffen Klassertconfig CRYPTO_USER
109a38f7907SSteffen Klassert	tristate "Userspace cryptographic algorithm configuration"
1105db017aaSHerbert Xu	depends on NET
111a38f7907SSteffen Klassert	select CRYPTO_MANAGER
112a38f7907SSteffen Klassert	help
113d19978f5SValdis.Kletnieks@vt.edu	  Userspace configuration for cryptographic instantiations such as
114a38f7907SSteffen Klassert	  cbc(aes).
115a38f7907SSteffen Klassert
116326a6346SHerbert Xuconfig CRYPTO_MANAGER_DISABLE_TESTS
117326a6346SHerbert Xu	bool "Disable run-time self tests"
11800ca28a5SHerbert Xu	default y
11900ca28a5SHerbert Xu	depends on CRYPTO_MANAGER2
1200b767f96SAlexander Shishkin	help
121326a6346SHerbert Xu	  Disable run-time self tests that normally take place at
122326a6346SHerbert Xu	  algorithm registration.
1230b767f96SAlexander Shishkin
124584fffc8SSebastian Siewiorconfig CRYPTO_GF128MUL
12508c70fc3SJussi Kivilinna	tristate "GF(2^128) multiplication functions"
126584fffc8SSebastian Siewior	help
127584fffc8SSebastian Siewior	  Efficient table driven implementation of multiplications in the
128584fffc8SSebastian Siewior	  field GF(2^128).  This is needed by some cypher modes. This
129584fffc8SSebastian Siewior	  option will be selected automatically if you select such a
130584fffc8SSebastian Siewior	  cipher mode.  Only select this option by hand if you expect to load
131584fffc8SSebastian Siewior	  an external module that requires these functions.
132584fffc8SSebastian Siewior
133584fffc8SSebastian Siewiorconfig CRYPTO_NULL
134584fffc8SSebastian Siewior	tristate "Null algorithms"
135584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
136584fffc8SSebastian Siewior	select CRYPTO_BLKCIPHER
137d35d2454SHerbert Xu	select CRYPTO_HASH
138584fffc8SSebastian Siewior	help
139584fffc8SSebastian Siewior	  These are 'Null' algorithms, used by IPsec, which do nothing.
140584fffc8SSebastian Siewior
1415068c7a8SSteffen Klassertconfig CRYPTO_PCRYPT
1423b4afaf2SKees Cook	tristate "Parallel crypto engine"
1433b4afaf2SKees Cook	depends on SMP
1445068c7a8SSteffen Klassert	select PADATA
1455068c7a8SSteffen Klassert	select CRYPTO_MANAGER
1465068c7a8SSteffen Klassert	select CRYPTO_AEAD
1475068c7a8SSteffen Klassert	help
1485068c7a8SSteffen Klassert	  This converts an arbitrary crypto algorithm into a parallel
1495068c7a8SSteffen Klassert	  algorithm that executes in kernel threads.
1505068c7a8SSteffen Klassert
15125c38d3fSHuang Yingconfig CRYPTO_WORKQUEUE
15225c38d3fSHuang Ying       tristate
15325c38d3fSHuang Ying
154584fffc8SSebastian Siewiorconfig CRYPTO_CRYPTD
155584fffc8SSebastian Siewior	tristate "Software async crypto daemon"
156584fffc8SSebastian Siewior	select CRYPTO_BLKCIPHER
157b8a28251SLoc Ho	select CRYPTO_HASH
158584fffc8SSebastian Siewior	select CRYPTO_MANAGER
159254eff77SHuang Ying	select CRYPTO_WORKQUEUE
160584fffc8SSebastian Siewior	help
161584fffc8SSebastian Siewior	  This is a generic software asynchronous crypto daemon that
162584fffc8SSebastian Siewior	  converts an arbitrary synchronous software crypto algorithm
163584fffc8SSebastian Siewior	  into an asynchronous algorithm that executes in a kernel thread.
164584fffc8SSebastian Siewior
1651e65b81aSTim Chenconfig CRYPTO_MCRYPTD
1661e65b81aSTim Chen	tristate "Software async multi-buffer crypto daemon"
1671e65b81aSTim Chen	select CRYPTO_BLKCIPHER
1681e65b81aSTim Chen	select CRYPTO_HASH
1691e65b81aSTim Chen	select CRYPTO_MANAGER
1701e65b81aSTim Chen	select CRYPTO_WORKQUEUE
1711e65b81aSTim Chen	help
1721e65b81aSTim Chen	  This is a generic software asynchronous crypto daemon that
1731e65b81aSTim Chen	  provides the kernel thread to assist multi-buffer crypto
1741e65b81aSTim Chen	  algorithms for submitting jobs and flushing jobs in multi-buffer
1751e65b81aSTim Chen	  crypto algorithms.  Multi-buffer crypto algorithms are executed
1761e65b81aSTim Chen	  in the context of this kernel thread and drivers can post
1770e56673bSTed Percival	  their crypto request asynchronously to be processed by this daemon.
1781e65b81aSTim Chen
179584fffc8SSebastian Siewiorconfig CRYPTO_AUTHENC
180584fffc8SSebastian Siewior	tristate "Authenc support"
181584fffc8SSebastian Siewior	select CRYPTO_AEAD
182584fffc8SSebastian Siewior	select CRYPTO_BLKCIPHER
183584fffc8SSebastian Siewior	select CRYPTO_MANAGER
184584fffc8SSebastian Siewior	select CRYPTO_HASH
185584fffc8SSebastian Siewior	help
186584fffc8SSebastian Siewior	  Authenc: Combined mode wrapper for IPsec.
187584fffc8SSebastian Siewior	  This is required for IPSec.
188584fffc8SSebastian Siewior
189584fffc8SSebastian Siewiorconfig CRYPTO_TEST
190584fffc8SSebastian Siewior	tristate "Testing module"
191584fffc8SSebastian Siewior	depends on m
192da7f033dSHerbert Xu	select CRYPTO_MANAGER
193584fffc8SSebastian Siewior	help
194584fffc8SSebastian Siewior	  Quick & dirty crypto test module.
195584fffc8SSebastian Siewior
196a62b01cdSArd Biesheuvelconfig CRYPTO_ABLK_HELPER
197ffaf9156SJussi Kivilinna	tristate
198ffaf9156SJussi Kivilinna	select CRYPTO_CRYPTD
199ffaf9156SJussi Kivilinna
200596d8750SJussi Kivilinnaconfig CRYPTO_GLUE_HELPER_X86
201596d8750SJussi Kivilinna	tristate
202596d8750SJussi Kivilinna	depends on X86
203596d8750SJussi Kivilinna	select CRYPTO_ALGAPI
204596d8750SJussi Kivilinna
205584fffc8SSebastian Siewiorcomment "Authenticated Encryption with Associated Data"
206584fffc8SSebastian Siewior
207584fffc8SSebastian Siewiorconfig CRYPTO_CCM
208584fffc8SSebastian Siewior	tristate "CCM support"
209584fffc8SSebastian Siewior	select CRYPTO_CTR
210584fffc8SSebastian Siewior	select CRYPTO_AEAD
211584fffc8SSebastian Siewior	help
212584fffc8SSebastian Siewior	  Support for Counter with CBC MAC. Required for IPsec.
213584fffc8SSebastian Siewior
214584fffc8SSebastian Siewiorconfig CRYPTO_GCM
215584fffc8SSebastian Siewior	tristate "GCM/GMAC support"
216584fffc8SSebastian Siewior	select CRYPTO_CTR
217584fffc8SSebastian Siewior	select CRYPTO_AEAD
2189382d97aSHuang Ying	select CRYPTO_GHASH
2199489667dSJussi Kivilinna	select CRYPTO_NULL
220584fffc8SSebastian Siewior	help
221584fffc8SSebastian Siewior	  Support for Galois/Counter Mode (GCM) and Galois Message
222584fffc8SSebastian Siewior	  Authentication Code (GMAC). Required for IPSec.
223584fffc8SSebastian Siewior
22471ebc4d1SMartin Williconfig CRYPTO_CHACHA20POLY1305
22571ebc4d1SMartin Willi	tristate "ChaCha20-Poly1305 AEAD support"
22671ebc4d1SMartin Willi	select CRYPTO_CHACHA20
22771ebc4d1SMartin Willi	select CRYPTO_POLY1305
22871ebc4d1SMartin Willi	select CRYPTO_AEAD
22971ebc4d1SMartin Willi	help
23071ebc4d1SMartin Willi	  ChaCha20-Poly1305 AEAD support, RFC7539.
23171ebc4d1SMartin Willi
23271ebc4d1SMartin Willi	  Support for the AEAD wrapper using the ChaCha20 stream cipher combined
23371ebc4d1SMartin Willi	  with the Poly1305 authenticator. It is defined in RFC7539 for use in
23471ebc4d1SMartin Willi	  IETF protocols.
23571ebc4d1SMartin Willi
236584fffc8SSebastian Siewiorconfig CRYPTO_SEQIV
237584fffc8SSebastian Siewior	tristate "Sequence Number IV Generator"
238584fffc8SSebastian Siewior	select CRYPTO_AEAD
239584fffc8SSebastian Siewior	select CRYPTO_BLKCIPHER
240856e3f40SHerbert Xu	select CRYPTO_NULL
241401e4238SHerbert Xu	select CRYPTO_RNG_DEFAULT
242584fffc8SSebastian Siewior	help
243584fffc8SSebastian Siewior	  This IV generator generates an IV based on a sequence number by
244584fffc8SSebastian Siewior	  xoring it with a salt.  This algorithm is mainly useful for CTR
245584fffc8SSebastian Siewior
246a10f554fSHerbert Xuconfig CRYPTO_ECHAINIV
247a10f554fSHerbert Xu	tristate "Encrypted Chain IV Generator"
248a10f554fSHerbert Xu	select CRYPTO_AEAD
249a10f554fSHerbert Xu	select CRYPTO_NULL
250401e4238SHerbert Xu	select CRYPTO_RNG_DEFAULT
2513491244cSHerbert Xu	default m
252a10f554fSHerbert Xu	help
253a10f554fSHerbert Xu	  This IV generator generates an IV based on the encryption of
254a10f554fSHerbert Xu	  a sequence number xored with a salt.  This is the default
255a10f554fSHerbert Xu	  algorithm for CBC.
256a10f554fSHerbert Xu
257584fffc8SSebastian Siewiorcomment "Block modes"
258584fffc8SSebastian Siewior
259584fffc8SSebastian Siewiorconfig CRYPTO_CBC
260584fffc8SSebastian Siewior	tristate "CBC support"
261584fffc8SSebastian Siewior	select CRYPTO_BLKCIPHER
262584fffc8SSebastian Siewior	select CRYPTO_MANAGER
263584fffc8SSebastian Siewior	help
264584fffc8SSebastian Siewior	  CBC: Cipher Block Chaining mode
265584fffc8SSebastian Siewior	  This block cipher algorithm is required for IPSec.
266584fffc8SSebastian Siewior
267584fffc8SSebastian Siewiorconfig CRYPTO_CTR
268584fffc8SSebastian Siewior	tristate "CTR support"
269584fffc8SSebastian Siewior	select CRYPTO_BLKCIPHER
270584fffc8SSebastian Siewior	select CRYPTO_SEQIV
271584fffc8SSebastian Siewior	select CRYPTO_MANAGER
272584fffc8SSebastian Siewior	help
273584fffc8SSebastian Siewior	  CTR: Counter mode
274584fffc8SSebastian Siewior	  This block cipher algorithm is required for IPSec.
275584fffc8SSebastian Siewior
276584fffc8SSebastian Siewiorconfig CRYPTO_CTS
277584fffc8SSebastian Siewior	tristate "CTS support"
278584fffc8SSebastian Siewior	select CRYPTO_BLKCIPHER
279584fffc8SSebastian Siewior	help
280584fffc8SSebastian Siewior	  CTS: Cipher Text Stealing
281584fffc8SSebastian Siewior	  This is the Cipher Text Stealing mode as described by
282584fffc8SSebastian Siewior	  Section 8 of rfc2040 and referenced by rfc3962.
283584fffc8SSebastian Siewior	  (rfc3962 includes errata information in its Appendix A)
284584fffc8SSebastian Siewior	  This mode is required for Kerberos gss mechanism support
285584fffc8SSebastian Siewior	  for AES encryption.
286584fffc8SSebastian Siewior
287584fffc8SSebastian Siewiorconfig CRYPTO_ECB
288584fffc8SSebastian Siewior	tristate "ECB support"
289584fffc8SSebastian Siewior	select CRYPTO_BLKCIPHER
290584fffc8SSebastian Siewior	select CRYPTO_MANAGER
291584fffc8SSebastian Siewior	help
292584fffc8SSebastian Siewior	  ECB: Electronic CodeBook mode
293584fffc8SSebastian Siewior	  This is the simplest block cipher algorithm.  It simply encrypts
294584fffc8SSebastian Siewior	  the input block by block.
295584fffc8SSebastian Siewior
296584fffc8SSebastian Siewiorconfig CRYPTO_LRW
2972470a2b2SJussi Kivilinna	tristate "LRW support"
298584fffc8SSebastian Siewior	select CRYPTO_BLKCIPHER
299584fffc8SSebastian Siewior	select CRYPTO_MANAGER
300584fffc8SSebastian Siewior	select CRYPTO_GF128MUL
301584fffc8SSebastian Siewior	help
302584fffc8SSebastian Siewior	  LRW: Liskov Rivest Wagner, a tweakable, non malleable, non movable
303584fffc8SSebastian Siewior	  narrow block cipher mode for dm-crypt.  Use it with cipher
304584fffc8SSebastian Siewior	  specification string aes-lrw-benbi, the key must be 256, 320 or 384.
305584fffc8SSebastian Siewior	  The first 128, 192 or 256 bits in the key are used for AES and the
306584fffc8SSebastian Siewior	  rest is used to tie each cipher block to its logical position.
307584fffc8SSebastian Siewior
308584fffc8SSebastian Siewiorconfig CRYPTO_PCBC
309584fffc8SSebastian Siewior	tristate "PCBC support"
310584fffc8SSebastian Siewior	select CRYPTO_BLKCIPHER
311584fffc8SSebastian Siewior	select CRYPTO_MANAGER
312584fffc8SSebastian Siewior	help
313584fffc8SSebastian Siewior	  PCBC: Propagating Cipher Block Chaining mode
314584fffc8SSebastian Siewior	  This block cipher algorithm is required for RxRPC.
315584fffc8SSebastian Siewior
316584fffc8SSebastian Siewiorconfig CRYPTO_XTS
3175bcf8e6dSJussi Kivilinna	tristate "XTS support"
318584fffc8SSebastian Siewior	select CRYPTO_BLKCIPHER
319584fffc8SSebastian Siewior	select CRYPTO_MANAGER
320584fffc8SSebastian Siewior	select CRYPTO_GF128MUL
321584fffc8SSebastian Siewior	help
322584fffc8SSebastian Siewior	  XTS: IEEE1619/D16 narrow block cipher use with aes-xts-plain,
323584fffc8SSebastian Siewior	  key size 256, 384 or 512 bits. This implementation currently
324584fffc8SSebastian Siewior	  can't handle a sectorsize which is not a multiple of 16 bytes.
325584fffc8SSebastian Siewior
326584fffc8SSebastian Siewiorcomment "Hash modes"
327584fffc8SSebastian Siewior
32893b5e86aSJussi Kivilinnaconfig CRYPTO_CMAC
32993b5e86aSJussi Kivilinna	tristate "CMAC support"
33093b5e86aSJussi Kivilinna	select CRYPTO_HASH
33193b5e86aSJussi Kivilinna	select CRYPTO_MANAGER
33293b5e86aSJussi Kivilinna	help
33393b5e86aSJussi Kivilinna	  Cipher-based Message Authentication Code (CMAC) specified by
33493b5e86aSJussi Kivilinna	  The National Institute of Standards and Technology (NIST).
33593b5e86aSJussi Kivilinna
33693b5e86aSJussi Kivilinna	  https://tools.ietf.org/html/rfc4493
33793b5e86aSJussi Kivilinna	  http://csrc.nist.gov/publications/nistpubs/800-38B/SP_800-38B.pdf
33893b5e86aSJussi Kivilinna
3391da177e4SLinus Torvaldsconfig CRYPTO_HMAC
3408425165dSHerbert Xu	tristate "HMAC support"
3410796ae06SHerbert Xu	select CRYPTO_HASH
34243518407SHerbert Xu	select CRYPTO_MANAGER
3431da177e4SLinus Torvalds	help
3441da177e4SLinus Torvalds	  HMAC: Keyed-Hashing for Message Authentication (RFC2104).
3451da177e4SLinus Torvalds	  This is required for IPSec.
3461da177e4SLinus Torvalds
347333b0d7eSKazunori MIYAZAWAconfig CRYPTO_XCBC
348333b0d7eSKazunori MIYAZAWA	tristate "XCBC support"
349333b0d7eSKazunori MIYAZAWA	select CRYPTO_HASH
350333b0d7eSKazunori MIYAZAWA	select CRYPTO_MANAGER
351333b0d7eSKazunori MIYAZAWA	help
352333b0d7eSKazunori MIYAZAWA	  XCBC: Keyed-Hashing with encryption algorithm
353333b0d7eSKazunori MIYAZAWA		http://www.ietf.org/rfc/rfc3566.txt
354333b0d7eSKazunori MIYAZAWA		http://csrc.nist.gov/encryption/modes/proposedmodes/
355333b0d7eSKazunori MIYAZAWA		 xcbc-mac/xcbc-mac-spec.pdf
356333b0d7eSKazunori MIYAZAWA
357f1939f7cSShane Wangconfig CRYPTO_VMAC
358f1939f7cSShane Wang	tristate "VMAC support"
359f1939f7cSShane Wang	select CRYPTO_HASH
360f1939f7cSShane Wang	select CRYPTO_MANAGER
361f1939f7cSShane Wang	help
362f1939f7cSShane Wang	  VMAC is a message authentication algorithm designed for
363f1939f7cSShane Wang	  very high speed on 64-bit architectures.
364f1939f7cSShane Wang
365f1939f7cSShane Wang	  See also:
366f1939f7cSShane Wang	  <http://fastcrypto.org/vmac>
367f1939f7cSShane Wang
368584fffc8SSebastian Siewiorcomment "Digest"
369584fffc8SSebastian Siewior
370584fffc8SSebastian Siewiorconfig CRYPTO_CRC32C
371584fffc8SSebastian Siewior	tristate "CRC32c CRC algorithm"
3725773a3e6SHerbert Xu	select CRYPTO_HASH
3736a0962b2SDarrick J. Wong	select CRC32
3741da177e4SLinus Torvalds	help
375584fffc8SSebastian Siewior	  Castagnoli, et al Cyclic Redundancy-Check Algorithm.  Used
376584fffc8SSebastian Siewior	  by iSCSI for header and data digests and by others.
37769c35efcSHerbert Xu	  See Castagnoli93.  Module will be crc32c.
3781da177e4SLinus Torvalds
3798cb51ba8SAustin Zhangconfig CRYPTO_CRC32C_INTEL
3808cb51ba8SAustin Zhang	tristate "CRC32c INTEL hardware acceleration"
3818cb51ba8SAustin Zhang	depends on X86
3828cb51ba8SAustin Zhang	select CRYPTO_HASH
3838cb51ba8SAustin Zhang	help
3848cb51ba8SAustin Zhang	  In Intel processor with SSE4.2 supported, the processor will
3858cb51ba8SAustin Zhang	  support CRC32C implementation using hardware accelerated CRC32
3868cb51ba8SAustin Zhang	  instruction. This option will create 'crc32c-intel' module,
3878cb51ba8SAustin Zhang	  which will enable any routine to use the CRC32 instruction to
3888cb51ba8SAustin Zhang	  gain performance compared with software implementation.
3898cb51ba8SAustin Zhang	  Module will be crc32c-intel.
3908cb51ba8SAustin Zhang
391442a7c40SDavid S. Millerconfig CRYPTO_CRC32C_SPARC64
392442a7c40SDavid S. Miller	tristate "CRC32c CRC algorithm (SPARC64)"
393442a7c40SDavid S. Miller	depends on SPARC64
394442a7c40SDavid S. Miller	select CRYPTO_HASH
395442a7c40SDavid S. Miller	select CRC32
396442a7c40SDavid S. Miller	help
397442a7c40SDavid S. Miller	  CRC32c CRC algorithm implemented using sparc64 crypto instructions,
398442a7c40SDavid S. Miller	  when available.
399442a7c40SDavid S. Miller
40078c37d19SAlexander Boykoconfig CRYPTO_CRC32
40178c37d19SAlexander Boyko	tristate "CRC32 CRC algorithm"
40278c37d19SAlexander Boyko	select CRYPTO_HASH
40378c37d19SAlexander Boyko	select CRC32
40478c37d19SAlexander Boyko	help
40578c37d19SAlexander Boyko	  CRC-32-IEEE 802.3 cyclic redundancy-check algorithm.
40678c37d19SAlexander Boyko	  Shash crypto api wrappers to crc32_le function.
40778c37d19SAlexander Boyko
40878c37d19SAlexander Boykoconfig CRYPTO_CRC32_PCLMUL
40978c37d19SAlexander Boyko	tristate "CRC32 PCLMULQDQ hardware acceleration"
41078c37d19SAlexander Boyko	depends on X86
41178c37d19SAlexander Boyko	select CRYPTO_HASH
41278c37d19SAlexander Boyko	select CRC32
41378c37d19SAlexander Boyko	help
41478c37d19SAlexander Boyko	  From Intel Westmere and AMD Bulldozer processor with SSE4.2
41578c37d19SAlexander Boyko	  and PCLMULQDQ supported, the processor will support
41678c37d19SAlexander Boyko	  CRC32 PCLMULQDQ implementation using hardware accelerated PCLMULQDQ
41778c37d19SAlexander Boyko	  instruction. This option will create 'crc32-plcmul' module,
41878c37d19SAlexander Boyko	  which will enable any routine to use the CRC-32-IEEE 802.3 checksum
41978c37d19SAlexander Boyko	  and gain better performance as compared with the table implementation.
42078c37d19SAlexander Boyko
42168411521SHerbert Xuconfig CRYPTO_CRCT10DIF
42268411521SHerbert Xu	tristate "CRCT10DIF algorithm"
42368411521SHerbert Xu	select CRYPTO_HASH
42468411521SHerbert Xu	help
42568411521SHerbert Xu	  CRC T10 Data Integrity Field computation is being cast as
42668411521SHerbert Xu	  a crypto transform.  This allows for faster crc t10 diff
42768411521SHerbert Xu	  transforms to be used if they are available.
42868411521SHerbert Xu
42968411521SHerbert Xuconfig CRYPTO_CRCT10DIF_PCLMUL
43068411521SHerbert Xu	tristate "CRCT10DIF PCLMULQDQ hardware acceleration"
43168411521SHerbert Xu	depends on X86 && 64BIT && CRC_T10DIF
43268411521SHerbert Xu	select CRYPTO_HASH
43368411521SHerbert Xu	help
43468411521SHerbert Xu	  For x86_64 processors with SSE4.2 and PCLMULQDQ supported,
43568411521SHerbert Xu	  CRC T10 DIF PCLMULQDQ computation can be hardware
43668411521SHerbert Xu	  accelerated PCLMULQDQ instruction. This option will create
43768411521SHerbert Xu	  'crct10dif-plcmul' module, which is faster when computing the
43868411521SHerbert Xu	  crct10dif checksum as compared with the generic table implementation.
43968411521SHerbert Xu
4402cdc6899SHuang Yingconfig CRYPTO_GHASH
4412cdc6899SHuang Ying	tristate "GHASH digest algorithm"
4422cdc6899SHuang Ying	select CRYPTO_GF128MUL
4432cdc6899SHuang Ying	help
4442cdc6899SHuang Ying	  GHASH is message digest algorithm for GCM (Galois/Counter Mode).
4452cdc6899SHuang Ying
446f979e014SMartin Williconfig CRYPTO_POLY1305
447f979e014SMartin Willi	tristate "Poly1305 authenticator algorithm"
448f979e014SMartin Willi	help
449f979e014SMartin Willi	  Poly1305 authenticator algorithm, RFC7539.
450f979e014SMartin Willi
451f979e014SMartin Willi	  Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein.
452f979e014SMartin Willi	  It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use
453f979e014SMartin Willi	  in IETF protocols. This is the portable C implementation of Poly1305.
454f979e014SMartin Willi
4551da177e4SLinus Torvaldsconfig CRYPTO_MD4
4561da177e4SLinus Torvalds	tristate "MD4 digest algorithm"
457808a1763SAdrian-Ken Rueegsegger	select CRYPTO_HASH
4581da177e4SLinus Torvalds	help
4591da177e4SLinus Torvalds	  MD4 message digest algorithm (RFC1320).
4601da177e4SLinus Torvalds
4611da177e4SLinus Torvaldsconfig CRYPTO_MD5
4621da177e4SLinus Torvalds	tristate "MD5 digest algorithm"
46314b75ba7SAdrian-Ken Rueegsegger	select CRYPTO_HASH
4641da177e4SLinus Torvalds	help
4651da177e4SLinus Torvalds	  MD5 message digest algorithm (RFC1321).
4661da177e4SLinus Torvalds
467d69e75deSAaro Koskinenconfig CRYPTO_MD5_OCTEON
468d69e75deSAaro Koskinen	tristate "MD5 digest algorithm (OCTEON)"
469d69e75deSAaro Koskinen	depends on CPU_CAVIUM_OCTEON
470d69e75deSAaro Koskinen	select CRYPTO_MD5
471d69e75deSAaro Koskinen	select CRYPTO_HASH
472d69e75deSAaro Koskinen	help
473d69e75deSAaro Koskinen	  MD5 message digest algorithm (RFC1321) implemented
474d69e75deSAaro Koskinen	  using OCTEON crypto instructions, when available.
475d69e75deSAaro Koskinen
476e8e59953SMarkus Stockhausenconfig CRYPTO_MD5_PPC
477e8e59953SMarkus Stockhausen	tristate "MD5 digest algorithm (PPC)"
478e8e59953SMarkus Stockhausen	depends on PPC
479e8e59953SMarkus Stockhausen	select CRYPTO_HASH
480e8e59953SMarkus Stockhausen	help
481e8e59953SMarkus Stockhausen	  MD5 message digest algorithm (RFC1321) implemented
482e8e59953SMarkus Stockhausen	  in PPC assembler.
483e8e59953SMarkus Stockhausen
484fa4dfedcSDavid S. Millerconfig CRYPTO_MD5_SPARC64
485fa4dfedcSDavid S. Miller	tristate "MD5 digest algorithm (SPARC64)"
486fa4dfedcSDavid S. Miller	depends on SPARC64
487fa4dfedcSDavid S. Miller	select CRYPTO_MD5
488fa4dfedcSDavid S. Miller	select CRYPTO_HASH
489fa4dfedcSDavid S. Miller	help
490fa4dfedcSDavid S. Miller	  MD5 message digest algorithm (RFC1321) implemented
491fa4dfedcSDavid S. Miller	  using sparc64 crypto instructions, when available.
492fa4dfedcSDavid S. Miller
493584fffc8SSebastian Siewiorconfig CRYPTO_MICHAEL_MIC
494584fffc8SSebastian Siewior	tristate "Michael MIC keyed digest algorithm"
49519e2bf14SAdrian-Ken Rueegsegger	select CRYPTO_HASH
496584fffc8SSebastian Siewior	help
497584fffc8SSebastian Siewior	  Michael MIC is used for message integrity protection in TKIP
498584fffc8SSebastian Siewior	  (IEEE 802.11i). This algorithm is required for TKIP, but it
499584fffc8SSebastian Siewior	  should not be used for other purposes because of the weakness
500584fffc8SSebastian Siewior	  of the algorithm.
501584fffc8SSebastian Siewior
50282798f90SAdrian-Ken Rueegseggerconfig CRYPTO_RMD128
50382798f90SAdrian-Ken Rueegsegger	tristate "RIPEMD-128 digest algorithm"
5047c4468bcSHerbert Xu	select CRYPTO_HASH
50582798f90SAdrian-Ken Rueegsegger	help
50682798f90SAdrian-Ken Rueegsegger	  RIPEMD-128 (ISO/IEC 10118-3:2004).
50782798f90SAdrian-Ken Rueegsegger
50882798f90SAdrian-Ken Rueegsegger	  RIPEMD-128 is a 128-bit cryptographic hash function. It should only
50935ed4b35SMichael Witten	  be used as a secure replacement for RIPEMD. For other use cases,
51082798f90SAdrian-Ken Rueegsegger	  RIPEMD-160 should be used.
51182798f90SAdrian-Ken Rueegsegger
51282798f90SAdrian-Ken Rueegsegger	  Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
5136d8de74cSJustin P. Mattock	  See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
51482798f90SAdrian-Ken Rueegsegger
51582798f90SAdrian-Ken Rueegseggerconfig CRYPTO_RMD160
51682798f90SAdrian-Ken Rueegsegger	tristate "RIPEMD-160 digest algorithm"
517e5835fbaSHerbert Xu	select CRYPTO_HASH
51882798f90SAdrian-Ken Rueegsegger	help
51982798f90SAdrian-Ken Rueegsegger	  RIPEMD-160 (ISO/IEC 10118-3:2004).
52082798f90SAdrian-Ken Rueegsegger
52182798f90SAdrian-Ken Rueegsegger	  RIPEMD-160 is a 160-bit cryptographic hash function. It is intended
52282798f90SAdrian-Ken Rueegsegger	  to be used as a secure replacement for the 128-bit hash functions
523b6d44341SAdrian Bunk	  MD4, MD5 and it's predecessor RIPEMD
524b6d44341SAdrian Bunk	  (not to be confused with RIPEMD-128).
52582798f90SAdrian-Ken Rueegsegger
526b6d44341SAdrian Bunk	  It's speed is comparable to SHA1 and there are no known attacks
527b6d44341SAdrian Bunk	  against RIPEMD-160.
528534fe2c1SAdrian-Ken Rueegsegger
529534fe2c1SAdrian-Ken Rueegsegger	  Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
5306d8de74cSJustin P. Mattock	  See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
531534fe2c1SAdrian-Ken Rueegsegger
532534fe2c1SAdrian-Ken Rueegseggerconfig CRYPTO_RMD256
533534fe2c1SAdrian-Ken Rueegsegger	tristate "RIPEMD-256 digest algorithm"
534d8a5e2e9SHerbert Xu	select CRYPTO_HASH
535534fe2c1SAdrian-Ken Rueegsegger	help
536b6d44341SAdrian Bunk	  RIPEMD-256 is an optional extension of RIPEMD-128 with a
537b6d44341SAdrian Bunk	  256 bit hash. It is intended for applications that require
538b6d44341SAdrian Bunk	  longer hash-results, without needing a larger security level
539b6d44341SAdrian Bunk	  (than RIPEMD-128).
540534fe2c1SAdrian-Ken Rueegsegger
541534fe2c1SAdrian-Ken Rueegsegger	  Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
5426d8de74cSJustin P. Mattock	  See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
543534fe2c1SAdrian-Ken Rueegsegger
544534fe2c1SAdrian-Ken Rueegseggerconfig CRYPTO_RMD320
545534fe2c1SAdrian-Ken Rueegsegger	tristate "RIPEMD-320 digest algorithm"
5463b8efb4cSHerbert Xu	select CRYPTO_HASH
547534fe2c1SAdrian-Ken Rueegsegger	help
548b6d44341SAdrian Bunk	  RIPEMD-320 is an optional extension of RIPEMD-160 with a
549b6d44341SAdrian Bunk	  320 bit hash. It is intended for applications that require
550b6d44341SAdrian Bunk	  longer hash-results, without needing a larger security level
551b6d44341SAdrian Bunk	  (than RIPEMD-160).
552534fe2c1SAdrian-Ken Rueegsegger
55382798f90SAdrian-Ken Rueegsegger	  Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
5546d8de74cSJustin P. Mattock	  See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
55582798f90SAdrian-Ken Rueegsegger
5561da177e4SLinus Torvaldsconfig CRYPTO_SHA1
5571da177e4SLinus Torvalds	tristate "SHA1 digest algorithm"
55854ccb367SAdrian-Ken Rueegsegger	select CRYPTO_HASH
5591da177e4SLinus Torvalds	help
5601da177e4SLinus Torvalds	  SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
5611da177e4SLinus Torvalds
56266be8951SMathias Krauseconfig CRYPTO_SHA1_SSSE3
5637c1da8d0Schandramouli narayanan	tristate "SHA1 digest algorithm (SSSE3/AVX/AVX2)"
56466be8951SMathias Krause	depends on X86 && 64BIT
56566be8951SMathias Krause	select CRYPTO_SHA1
56666be8951SMathias Krause	select CRYPTO_HASH
56766be8951SMathias Krause	help
56866be8951SMathias Krause	  SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
56966be8951SMathias Krause	  using Supplemental SSE3 (SSSE3) instructions or Advanced Vector
5707c1da8d0Schandramouli narayanan	  Extensions (AVX/AVX2), when available.
57166be8951SMathias Krause
5728275d1aaSTim Chenconfig CRYPTO_SHA256_SSSE3
5738275d1aaSTim Chen	tristate "SHA256 digest algorithm (SSSE3/AVX/AVX2)"
5748275d1aaSTim Chen	depends on X86 && 64BIT
5758275d1aaSTim Chen	select CRYPTO_SHA256
5768275d1aaSTim Chen	select CRYPTO_HASH
5778275d1aaSTim Chen	help
5788275d1aaSTim Chen	  SHA-256 secure hash standard (DFIPS 180-2) implemented
5798275d1aaSTim Chen	  using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
5808275d1aaSTim Chen	  Extensions version 1 (AVX1), or Advanced Vector Extensions
5818275d1aaSTim Chen	  version 2 (AVX2) instructions, when available.
5828275d1aaSTim Chen
58387de4579STim Chenconfig CRYPTO_SHA512_SSSE3
58487de4579STim Chen	tristate "SHA512 digest algorithm (SSSE3/AVX/AVX2)"
58587de4579STim Chen	depends on X86 && 64BIT
58687de4579STim Chen	select CRYPTO_SHA512
58787de4579STim Chen	select CRYPTO_HASH
58887de4579STim Chen	help
58987de4579STim Chen	  SHA-512 secure hash standard (DFIPS 180-2) implemented
59087de4579STim Chen	  using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
59187de4579STim Chen	  Extensions version 1 (AVX1), or Advanced Vector Extensions
59287de4579STim Chen	  version 2 (AVX2) instructions, when available.
59387de4579STim Chen
594efdb6f6eSAaro Koskinenconfig CRYPTO_SHA1_OCTEON
595efdb6f6eSAaro Koskinen	tristate "SHA1 digest algorithm (OCTEON)"
596efdb6f6eSAaro Koskinen	depends on CPU_CAVIUM_OCTEON
597efdb6f6eSAaro Koskinen	select CRYPTO_SHA1
598efdb6f6eSAaro Koskinen	select CRYPTO_HASH
599efdb6f6eSAaro Koskinen	help
600efdb6f6eSAaro Koskinen	  SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
601efdb6f6eSAaro Koskinen	  using OCTEON crypto instructions, when available.
602efdb6f6eSAaro Koskinen
6034ff28d4cSDavid S. Millerconfig CRYPTO_SHA1_SPARC64
6044ff28d4cSDavid S. Miller	tristate "SHA1 digest algorithm (SPARC64)"
6054ff28d4cSDavid S. Miller	depends on SPARC64
6064ff28d4cSDavid S. Miller	select CRYPTO_SHA1
6074ff28d4cSDavid S. Miller	select CRYPTO_HASH
6084ff28d4cSDavid S. Miller	help
6094ff28d4cSDavid S. Miller	  SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
6104ff28d4cSDavid S. Miller	  using sparc64 crypto instructions, when available.
6114ff28d4cSDavid S. Miller
612323a6bf1SMichael Ellermanconfig CRYPTO_SHA1_PPC
613323a6bf1SMichael Ellerman	tristate "SHA1 digest algorithm (powerpc)"
614323a6bf1SMichael Ellerman	depends on PPC
615323a6bf1SMichael Ellerman	help
616323a6bf1SMichael Ellerman	  This is the powerpc hardware accelerated implementation of the
617323a6bf1SMichael Ellerman	  SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
618323a6bf1SMichael Ellerman
619d9850fc5SMarkus Stockhausenconfig CRYPTO_SHA1_PPC_SPE
620d9850fc5SMarkus Stockhausen	tristate "SHA1 digest algorithm (PPC SPE)"
621d9850fc5SMarkus Stockhausen	depends on PPC && SPE
622d9850fc5SMarkus Stockhausen	help
623d9850fc5SMarkus Stockhausen	  SHA-1 secure hash standard (DFIPS 180-4) implemented
624d9850fc5SMarkus Stockhausen	  using powerpc SPE SIMD instruction set.
625d9850fc5SMarkus Stockhausen
6261e65b81aSTim Chenconfig CRYPTO_SHA1_MB
6271e65b81aSTim Chen	tristate "SHA1 digest algorithm (x86_64 Multi-Buffer, Experimental)"
6281e65b81aSTim Chen	depends on X86 && 64BIT
6291e65b81aSTim Chen	select CRYPTO_SHA1
6301e65b81aSTim Chen	select CRYPTO_HASH
6311e65b81aSTim Chen	select CRYPTO_MCRYPTD
6321e65b81aSTim Chen	help
6331e65b81aSTim Chen	  SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
6341e65b81aSTim Chen	  using multi-buffer technique.  This algorithm computes on
6351e65b81aSTim Chen	  multiple data lanes concurrently with SIMD instructions for
6361e65b81aSTim Chen	  better throughput.  It should not be enabled by default but
6371e65b81aSTim Chen	  used when there is significant amount of work to keep the keep
6381e65b81aSTim Chen	  the data lanes filled to get performance benefit.  If the data
6391e65b81aSTim Chen	  lanes remain unfilled, a flush operation will be initiated to
6401e65b81aSTim Chen	  process the crypto jobs, adding a slight latency.
6411e65b81aSTim Chen
6421da177e4SLinus Torvaldsconfig CRYPTO_SHA256
643cd12fb90SJonathan Lynch	tristate "SHA224 and SHA256 digest algorithm"
64450e109b5SAdrian-Ken Rueegsegger	select CRYPTO_HASH
6451da177e4SLinus Torvalds	help
6461da177e4SLinus Torvalds	  SHA256 secure hash standard (DFIPS 180-2).
6471da177e4SLinus Torvalds
6481da177e4SLinus Torvalds	  This version of SHA implements a 256 bit hash with 128 bits of
6491da177e4SLinus Torvalds	  security against collision attacks.
6501da177e4SLinus Torvalds
651cd12fb90SJonathan Lynch	  This code also includes SHA-224, a 224 bit hash with 112 bits
652cd12fb90SJonathan Lynch	  of security against collision attacks.
653cd12fb90SJonathan Lynch
6542ecc1e95SMarkus Stockhausenconfig CRYPTO_SHA256_PPC_SPE
6552ecc1e95SMarkus Stockhausen	tristate "SHA224 and SHA256 digest algorithm (PPC SPE)"
6562ecc1e95SMarkus Stockhausen	depends on PPC && SPE
6572ecc1e95SMarkus Stockhausen	select CRYPTO_SHA256
6582ecc1e95SMarkus Stockhausen	select CRYPTO_HASH
6592ecc1e95SMarkus Stockhausen	help
6602ecc1e95SMarkus Stockhausen	  SHA224 and SHA256 secure hash standard (DFIPS 180-2)
6612ecc1e95SMarkus Stockhausen	  implemented using powerpc SPE SIMD instruction set.
6622ecc1e95SMarkus Stockhausen
663efdb6f6eSAaro Koskinenconfig CRYPTO_SHA256_OCTEON
664efdb6f6eSAaro Koskinen	tristate "SHA224 and SHA256 digest algorithm (OCTEON)"
665efdb6f6eSAaro Koskinen	depends on CPU_CAVIUM_OCTEON
666efdb6f6eSAaro Koskinen	select CRYPTO_SHA256
667efdb6f6eSAaro Koskinen	select CRYPTO_HASH
668efdb6f6eSAaro Koskinen	help
669efdb6f6eSAaro Koskinen	  SHA-256 secure hash standard (DFIPS 180-2) implemented
670efdb6f6eSAaro Koskinen	  using OCTEON crypto instructions, when available.
671efdb6f6eSAaro Koskinen
67286c93b24SDavid S. Millerconfig CRYPTO_SHA256_SPARC64
67386c93b24SDavid S. Miller	tristate "SHA224 and SHA256 digest algorithm (SPARC64)"
67486c93b24SDavid S. Miller	depends on SPARC64
67586c93b24SDavid S. Miller	select CRYPTO_SHA256
67686c93b24SDavid S. Miller	select CRYPTO_HASH
67786c93b24SDavid S. Miller	help
67886c93b24SDavid S. Miller	  SHA-256 secure hash standard (DFIPS 180-2) implemented
67986c93b24SDavid S. Miller	  using sparc64 crypto instructions, when available.
68086c93b24SDavid S. Miller
6811da177e4SLinus Torvaldsconfig CRYPTO_SHA512
6821da177e4SLinus Torvalds	tristate "SHA384 and SHA512 digest algorithms"
683bd9d20dbSAdrian-Ken Rueegsegger	select CRYPTO_HASH
6841da177e4SLinus Torvalds	help
6851da177e4SLinus Torvalds	  SHA512 secure hash standard (DFIPS 180-2).
6861da177e4SLinus Torvalds
6871da177e4SLinus Torvalds	  This version of SHA implements a 512 bit hash with 256 bits of
6881da177e4SLinus Torvalds	  security against collision attacks.
6891da177e4SLinus Torvalds
6901da177e4SLinus Torvalds	  This code also includes SHA-384, a 384 bit hash with 192 bits
6911da177e4SLinus Torvalds	  of security against collision attacks.
6921da177e4SLinus Torvalds
693efdb6f6eSAaro Koskinenconfig CRYPTO_SHA512_OCTEON
694efdb6f6eSAaro Koskinen	tristate "SHA384 and SHA512 digest algorithms (OCTEON)"
695efdb6f6eSAaro Koskinen	depends on CPU_CAVIUM_OCTEON
696efdb6f6eSAaro Koskinen	select CRYPTO_SHA512
697efdb6f6eSAaro Koskinen	select CRYPTO_HASH
698efdb6f6eSAaro Koskinen	help
699efdb6f6eSAaro Koskinen	  SHA-512 secure hash standard (DFIPS 180-2) implemented
700efdb6f6eSAaro Koskinen	  using OCTEON crypto instructions, when available.
701efdb6f6eSAaro Koskinen
702775e0c69SDavid S. Millerconfig CRYPTO_SHA512_SPARC64
703775e0c69SDavid S. Miller	tristate "SHA384 and SHA512 digest algorithm (SPARC64)"
704775e0c69SDavid S. Miller	depends on SPARC64
705775e0c69SDavid S. Miller	select CRYPTO_SHA512
706775e0c69SDavid S. Miller	select CRYPTO_HASH
707775e0c69SDavid S. Miller	help
708775e0c69SDavid S. Miller	  SHA-512 secure hash standard (DFIPS 180-2) implemented
709775e0c69SDavid S. Miller	  using sparc64 crypto instructions, when available.
710775e0c69SDavid S. Miller
7111da177e4SLinus Torvaldsconfig CRYPTO_TGR192
7121da177e4SLinus Torvalds	tristate "Tiger digest algorithms"
713f63fbd3dSAdrian-Ken Rueegsegger	select CRYPTO_HASH
7141da177e4SLinus Torvalds	help
7151da177e4SLinus Torvalds	  Tiger hash algorithm 192, 160 and 128-bit hashes
7161da177e4SLinus Torvalds
7171da177e4SLinus Torvalds	  Tiger is a hash function optimized for 64-bit processors while
7181da177e4SLinus Torvalds	  still having decent performance on 32-bit processors.
7191da177e4SLinus Torvalds	  Tiger was developed by Ross Anderson and Eli Biham.
7201da177e4SLinus Torvalds
7211da177e4SLinus Torvalds	  See also:
7221da177e4SLinus Torvalds	  <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>.
7231da177e4SLinus Torvalds
724584fffc8SSebastian Siewiorconfig CRYPTO_WP512
725584fffc8SSebastian Siewior	tristate "Whirlpool digest algorithms"
7264946510bSAdrian-Ken Rueegsegger	select CRYPTO_HASH
7271da177e4SLinus Torvalds	help
728584fffc8SSebastian Siewior	  Whirlpool hash algorithm 512, 384 and 256-bit hashes
7291da177e4SLinus Torvalds
730584fffc8SSebastian Siewior	  Whirlpool-512 is part of the NESSIE cryptographic primitives.
731584fffc8SSebastian Siewior	  Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard
7321da177e4SLinus Torvalds
7331da177e4SLinus Torvalds	  See also:
7346d8de74cSJustin P. Mattock	  <http://www.larc.usp.br/~pbarreto/WhirlpoolPage.html>
7351da177e4SLinus Torvalds
7360e1227d3SHuang Yingconfig CRYPTO_GHASH_CLMUL_NI_INTEL
7370e1227d3SHuang Ying	tristate "GHASH digest algorithm (CLMUL-NI accelerated)"
7388af00860SRichard Weinberger	depends on X86 && 64BIT
7390e1227d3SHuang Ying	select CRYPTO_CRYPTD
7400e1227d3SHuang Ying	help
7410e1227d3SHuang Ying	  GHASH is message digest algorithm for GCM (Galois/Counter Mode).
7420e1227d3SHuang Ying	  The implementation is accelerated by CLMUL-NI of Intel.
7430e1227d3SHuang Ying
744584fffc8SSebastian Siewiorcomment "Ciphers"
7451da177e4SLinus Torvalds
7461da177e4SLinus Torvaldsconfig CRYPTO_AES
7471da177e4SLinus Torvalds	tristate "AES cipher algorithms"
748cce9e06dSHerbert Xu	select CRYPTO_ALGAPI
7491da177e4SLinus Torvalds	help
7501da177e4SLinus Torvalds	  AES cipher algorithms (FIPS-197). AES uses the Rijndael
7511da177e4SLinus Torvalds	  algorithm.
7521da177e4SLinus Torvalds
7531da177e4SLinus Torvalds	  Rijndael appears to be consistently a very good performer in
7541da177e4SLinus Torvalds	  both hardware and software across a wide range of computing
7551da177e4SLinus Torvalds	  environments regardless of its use in feedback or non-feedback
7561da177e4SLinus Torvalds	  modes. Its key setup time is excellent, and its key agility is
7571da177e4SLinus Torvalds	  good. Rijndael's very low memory requirements make it very well
7581da177e4SLinus Torvalds	  suited for restricted-space environments, in which it also
7591da177e4SLinus Torvalds	  demonstrates excellent performance. Rijndael's operations are
7601da177e4SLinus Torvalds	  among the easiest to defend against power and timing attacks.
7611da177e4SLinus Torvalds
7621da177e4SLinus Torvalds	  The AES specifies three key sizes: 128, 192 and 256 bits
7631da177e4SLinus Torvalds
7641da177e4SLinus Torvalds	  See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information.
7651da177e4SLinus Torvalds
7661da177e4SLinus Torvaldsconfig CRYPTO_AES_586
7671da177e4SLinus Torvalds	tristate "AES cipher algorithms (i586)"
768cce9e06dSHerbert Xu	depends on (X86 || UML_X86) && !64BIT
769cce9e06dSHerbert Xu	select CRYPTO_ALGAPI
7705157dea8SSebastian Siewior	select CRYPTO_AES
7711da177e4SLinus Torvalds	help
7721da177e4SLinus Torvalds	  AES cipher algorithms (FIPS-197). AES uses the Rijndael
7731da177e4SLinus Torvalds	  algorithm.
7741da177e4SLinus Torvalds
7751da177e4SLinus Torvalds	  Rijndael appears to be consistently a very good performer in
7761da177e4SLinus Torvalds	  both hardware and software across a wide range of computing
7771da177e4SLinus Torvalds	  environments regardless of its use in feedback or non-feedback
7781da177e4SLinus Torvalds	  modes. Its key setup time is excellent, and its key agility is
7791da177e4SLinus Torvalds	  good. Rijndael's very low memory requirements make it very well
7801da177e4SLinus Torvalds	  suited for restricted-space environments, in which it also
7811da177e4SLinus Torvalds	  demonstrates excellent performance. Rijndael's operations are
7821da177e4SLinus Torvalds	  among the easiest to defend against power and timing attacks.
7831da177e4SLinus Torvalds
7841da177e4SLinus Torvalds	  The AES specifies three key sizes: 128, 192 and 256 bits
7851da177e4SLinus Torvalds
7861da177e4SLinus Torvalds	  See <http://csrc.nist.gov/encryption/aes/> for more information.
7871da177e4SLinus Torvalds
788a2a892a2SAndreas Steinmetzconfig CRYPTO_AES_X86_64
789a2a892a2SAndreas Steinmetz	tristate "AES cipher algorithms (x86_64)"
790cce9e06dSHerbert Xu	depends on (X86 || UML_X86) && 64BIT
791cce9e06dSHerbert Xu	select CRYPTO_ALGAPI
79281190b32SSebastian Siewior	select CRYPTO_AES
793a2a892a2SAndreas Steinmetz	help
794a2a892a2SAndreas Steinmetz	  AES cipher algorithms (FIPS-197). AES uses the Rijndael
795a2a892a2SAndreas Steinmetz	  algorithm.
796a2a892a2SAndreas Steinmetz
797a2a892a2SAndreas Steinmetz	  Rijndael appears to be consistently a very good performer in
798a2a892a2SAndreas Steinmetz	  both hardware and software across a wide range of computing
799a2a892a2SAndreas Steinmetz	  environments regardless of its use in feedback or non-feedback
800a2a892a2SAndreas Steinmetz	  modes. Its key setup time is excellent, and its key agility is
801a2a892a2SAndreas Steinmetz	  good. Rijndael's very low memory requirements make it very well
802a2a892a2SAndreas Steinmetz	  suited for restricted-space environments, in which it also
803a2a892a2SAndreas Steinmetz	  demonstrates excellent performance. Rijndael's operations are
804a2a892a2SAndreas Steinmetz	  among the easiest to defend against power and timing attacks.
805a2a892a2SAndreas Steinmetz
806a2a892a2SAndreas Steinmetz	  The AES specifies three key sizes: 128, 192 and 256 bits
807a2a892a2SAndreas Steinmetz
808a2a892a2SAndreas Steinmetz	  See <http://csrc.nist.gov/encryption/aes/> for more information.
809a2a892a2SAndreas Steinmetz
81054b6a1bdSHuang Yingconfig CRYPTO_AES_NI_INTEL
81154b6a1bdSHuang Ying	tristate "AES cipher algorithms (AES-NI)"
8128af00860SRichard Weinberger	depends on X86
8130d258efbSMathias Krause	select CRYPTO_AES_X86_64 if 64BIT
8140d258efbSMathias Krause	select CRYPTO_AES_586 if !64BIT
81554b6a1bdSHuang Ying	select CRYPTO_CRYPTD
816801201aaSArd Biesheuvel	select CRYPTO_ABLK_HELPER
81754b6a1bdSHuang Ying	select CRYPTO_ALGAPI
8187643a11aSJussi Kivilinna	select CRYPTO_GLUE_HELPER_X86 if 64BIT
819023af608SJussi Kivilinna	select CRYPTO_LRW
820023af608SJussi Kivilinna	select CRYPTO_XTS
82154b6a1bdSHuang Ying	help
82254b6a1bdSHuang Ying	  Use Intel AES-NI instructions for AES algorithm.
82354b6a1bdSHuang Ying
82454b6a1bdSHuang Ying	  AES cipher algorithms (FIPS-197). AES uses the Rijndael
82554b6a1bdSHuang Ying	  algorithm.
82654b6a1bdSHuang Ying
82754b6a1bdSHuang Ying	  Rijndael appears to be consistently a very good performer in
82854b6a1bdSHuang Ying	  both hardware and software across a wide range of computing
82954b6a1bdSHuang Ying	  environments regardless of its use in feedback or non-feedback
83054b6a1bdSHuang Ying	  modes. Its key setup time is excellent, and its key agility is
83154b6a1bdSHuang Ying	  good. Rijndael's very low memory requirements make it very well
83254b6a1bdSHuang Ying	  suited for restricted-space environments, in which it also
83354b6a1bdSHuang Ying	  demonstrates excellent performance. Rijndael's operations are
83454b6a1bdSHuang Ying	  among the easiest to defend against power and timing attacks.
83554b6a1bdSHuang Ying
83654b6a1bdSHuang Ying	  The AES specifies three key sizes: 128, 192 and 256 bits
83754b6a1bdSHuang Ying
83854b6a1bdSHuang Ying	  See <http://csrc.nist.gov/encryption/aes/> for more information.
83954b6a1bdSHuang Ying
8400d258efbSMathias Krause	  In addition to AES cipher algorithm support, the acceleration
8410d258efbSMathias Krause	  for some popular block cipher mode is supported too, including
8420d258efbSMathias Krause	  ECB, CBC, LRW, PCBC, XTS. The 64 bit version has additional
8430d258efbSMathias Krause	  acceleration for CTR.
8442cf4ac8bSHuang Ying
8459bf4852dSDavid S. Millerconfig CRYPTO_AES_SPARC64
8469bf4852dSDavid S. Miller	tristate "AES cipher algorithms (SPARC64)"
8479bf4852dSDavid S. Miller	depends on SPARC64
8489bf4852dSDavid S. Miller	select CRYPTO_CRYPTD
8499bf4852dSDavid S. Miller	select CRYPTO_ALGAPI
8509bf4852dSDavid S. Miller	help
8519bf4852dSDavid S. Miller	  Use SPARC64 crypto opcodes for AES algorithm.
8529bf4852dSDavid S. Miller
8539bf4852dSDavid S. Miller	  AES cipher algorithms (FIPS-197). AES uses the Rijndael
8549bf4852dSDavid S. Miller	  algorithm.
8559bf4852dSDavid S. Miller
8569bf4852dSDavid S. Miller	  Rijndael appears to be consistently a very good performer in
8579bf4852dSDavid S. Miller	  both hardware and software across a wide range of computing
8589bf4852dSDavid S. Miller	  environments regardless of its use in feedback or non-feedback
8599bf4852dSDavid S. Miller	  modes. Its key setup time is excellent, and its key agility is
8609bf4852dSDavid S. Miller	  good. Rijndael's very low memory requirements make it very well
8619bf4852dSDavid S. Miller	  suited for restricted-space environments, in which it also
8629bf4852dSDavid S. Miller	  demonstrates excellent performance. Rijndael's operations are
8639bf4852dSDavid S. Miller	  among the easiest to defend against power and timing attacks.
8649bf4852dSDavid S. Miller
8659bf4852dSDavid S. Miller	  The AES specifies three key sizes: 128, 192 and 256 bits
8669bf4852dSDavid S. Miller
8679bf4852dSDavid S. Miller	  See <http://csrc.nist.gov/encryption/aes/> for more information.
8689bf4852dSDavid S. Miller
8699bf4852dSDavid S. Miller	  In addition to AES cipher algorithm support, the acceleration
8709bf4852dSDavid S. Miller	  for some popular block cipher mode is supported too, including
8719bf4852dSDavid S. Miller	  ECB and CBC.
8729bf4852dSDavid S. Miller
873504c6143SMarkus Stockhausenconfig CRYPTO_AES_PPC_SPE
874504c6143SMarkus Stockhausen	tristate "AES cipher algorithms (PPC SPE)"
875504c6143SMarkus Stockhausen	depends on PPC && SPE
876504c6143SMarkus Stockhausen	help
877504c6143SMarkus Stockhausen	  AES cipher algorithms (FIPS-197). Additionally the acceleration
878504c6143SMarkus Stockhausen	  for popular block cipher modes ECB, CBC, CTR and XTS is supported.
879504c6143SMarkus Stockhausen	  This module should only be used for low power (router) devices
880504c6143SMarkus Stockhausen	  without hardware AES acceleration (e.g. caam crypto). It reduces the
881504c6143SMarkus Stockhausen	  size of the AES tables from 16KB to 8KB + 256 bytes and mitigates
882504c6143SMarkus Stockhausen	  timining attacks. Nevertheless it might be not as secure as other
883504c6143SMarkus Stockhausen	  architecture specific assembler implementations that work on 1KB
884504c6143SMarkus Stockhausen	  tables or 256 bytes S-boxes.
885504c6143SMarkus Stockhausen
8861da177e4SLinus Torvaldsconfig CRYPTO_ANUBIS
8871da177e4SLinus Torvalds	tristate "Anubis cipher algorithm"
888cce9e06dSHerbert Xu	select CRYPTO_ALGAPI
8891da177e4SLinus Torvalds	help
8901da177e4SLinus Torvalds	  Anubis cipher algorithm.
8911da177e4SLinus Torvalds
8921da177e4SLinus Torvalds	  Anubis is a variable key length cipher which can use keys from
8931da177e4SLinus Torvalds	  128 bits to 320 bits in length.  It was evaluated as a entrant
8941da177e4SLinus Torvalds	  in the NESSIE competition.
8951da177e4SLinus Torvalds
8961da177e4SLinus Torvalds	  See also:
8976d8de74cSJustin P. Mattock	  <https://www.cosic.esat.kuleuven.be/nessie/reports/>
8986d8de74cSJustin P. Mattock	  <http://www.larc.usp.br/~pbarreto/AnubisPage.html>
8991da177e4SLinus Torvalds
900584fffc8SSebastian Siewiorconfig CRYPTO_ARC4
901584fffc8SSebastian Siewior	tristate "ARC4 cipher algorithm"
902b9b0f080SSebastian Andrzej Siewior	select CRYPTO_BLKCIPHER
903e2ee95b8SHye-Shik Chang	help
904584fffc8SSebastian Siewior	  ARC4 cipher algorithm.
905e2ee95b8SHye-Shik Chang
906584fffc8SSebastian Siewior	  ARC4 is a stream cipher using keys ranging from 8 bits to 2048
907584fffc8SSebastian Siewior	  bits in length.  This algorithm is required for driver-based
908584fffc8SSebastian Siewior	  WEP, but it should not be for other purposes because of the
909584fffc8SSebastian Siewior	  weakness of the algorithm.
910584fffc8SSebastian Siewior
911584fffc8SSebastian Siewiorconfig CRYPTO_BLOWFISH
912584fffc8SSebastian Siewior	tristate "Blowfish cipher algorithm"
913584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
91452ba867cSJussi Kivilinna	select CRYPTO_BLOWFISH_COMMON
915584fffc8SSebastian Siewior	help
916584fffc8SSebastian Siewior	  Blowfish cipher algorithm, by Bruce Schneier.
917584fffc8SSebastian Siewior
918584fffc8SSebastian Siewior	  This is a variable key length cipher which can use keys from 32
919584fffc8SSebastian Siewior	  bits to 448 bits in length.  It's fast, simple and specifically
920584fffc8SSebastian Siewior	  designed for use on "large microprocessors".
921e2ee95b8SHye-Shik Chang
922e2ee95b8SHye-Shik Chang	  See also:
923584fffc8SSebastian Siewior	  <http://www.schneier.com/blowfish.html>
924584fffc8SSebastian Siewior
92552ba867cSJussi Kivilinnaconfig CRYPTO_BLOWFISH_COMMON
92652ba867cSJussi Kivilinna	tristate
92752ba867cSJussi Kivilinna	help
92852ba867cSJussi Kivilinna	  Common parts of the Blowfish cipher algorithm shared by the
92952ba867cSJussi Kivilinna	  generic c and the assembler implementations.
93052ba867cSJussi Kivilinna
93152ba867cSJussi Kivilinna	  See also:
93252ba867cSJussi Kivilinna	  <http://www.schneier.com/blowfish.html>
93352ba867cSJussi Kivilinna
93464b94ceaSJussi Kivilinnaconfig CRYPTO_BLOWFISH_X86_64
93564b94ceaSJussi Kivilinna	tristate "Blowfish cipher algorithm (x86_64)"
936f21a7c19SAl Viro	depends on X86 && 64BIT
93764b94ceaSJussi Kivilinna	select CRYPTO_ALGAPI
93864b94ceaSJussi Kivilinna	select CRYPTO_BLOWFISH_COMMON
93964b94ceaSJussi Kivilinna	help
94064b94ceaSJussi Kivilinna	  Blowfish cipher algorithm (x86_64), by Bruce Schneier.
94164b94ceaSJussi Kivilinna
94264b94ceaSJussi Kivilinna	  This is a variable key length cipher which can use keys from 32
94364b94ceaSJussi Kivilinna	  bits to 448 bits in length.  It's fast, simple and specifically
94464b94ceaSJussi Kivilinna	  designed for use on "large microprocessors".
94564b94ceaSJussi Kivilinna
94664b94ceaSJussi Kivilinna	  See also:
94764b94ceaSJussi Kivilinna	  <http://www.schneier.com/blowfish.html>
94864b94ceaSJussi Kivilinna
949584fffc8SSebastian Siewiorconfig CRYPTO_CAMELLIA
950584fffc8SSebastian Siewior	tristate "Camellia cipher algorithms"
951584fffc8SSebastian Siewior	depends on CRYPTO
952584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
953584fffc8SSebastian Siewior	help
954584fffc8SSebastian Siewior	  Camellia cipher algorithms module.
955584fffc8SSebastian Siewior
956584fffc8SSebastian Siewior	  Camellia is a symmetric key block cipher developed jointly
957584fffc8SSebastian Siewior	  at NTT and Mitsubishi Electric Corporation.
958584fffc8SSebastian Siewior
959584fffc8SSebastian Siewior	  The Camellia specifies three key sizes: 128, 192 and 256 bits.
960584fffc8SSebastian Siewior
961584fffc8SSebastian Siewior	  See also:
962584fffc8SSebastian Siewior	  <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
963584fffc8SSebastian Siewior
9640b95ec56SJussi Kivilinnaconfig CRYPTO_CAMELLIA_X86_64
9650b95ec56SJussi Kivilinna	tristate "Camellia cipher algorithm (x86_64)"
966f21a7c19SAl Viro	depends on X86 && 64BIT
9670b95ec56SJussi Kivilinna	depends on CRYPTO
9680b95ec56SJussi Kivilinna	select CRYPTO_ALGAPI
969964263afSJussi Kivilinna	select CRYPTO_GLUE_HELPER_X86
9700b95ec56SJussi Kivilinna	select CRYPTO_LRW
9710b95ec56SJussi Kivilinna	select CRYPTO_XTS
9720b95ec56SJussi Kivilinna	help
9730b95ec56SJussi Kivilinna	  Camellia cipher algorithm module (x86_64).
9740b95ec56SJussi Kivilinna
9750b95ec56SJussi Kivilinna	  Camellia is a symmetric key block cipher developed jointly
9760b95ec56SJussi Kivilinna	  at NTT and Mitsubishi Electric Corporation.
9770b95ec56SJussi Kivilinna
9780b95ec56SJussi Kivilinna	  The Camellia specifies three key sizes: 128, 192 and 256 bits.
9790b95ec56SJussi Kivilinna
9800b95ec56SJussi Kivilinna	  See also:
9810b95ec56SJussi Kivilinna	  <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
9820b95ec56SJussi Kivilinna
983d9b1d2e7SJussi Kivilinnaconfig CRYPTO_CAMELLIA_AESNI_AVX_X86_64
984d9b1d2e7SJussi Kivilinna	tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX)"
985d9b1d2e7SJussi Kivilinna	depends on X86 && 64BIT
986d9b1d2e7SJussi Kivilinna	depends on CRYPTO
987d9b1d2e7SJussi Kivilinna	select CRYPTO_ALGAPI
988d9b1d2e7SJussi Kivilinna	select CRYPTO_CRYPTD
989801201aaSArd Biesheuvel	select CRYPTO_ABLK_HELPER
990d9b1d2e7SJussi Kivilinna	select CRYPTO_GLUE_HELPER_X86
991d9b1d2e7SJussi Kivilinna	select CRYPTO_CAMELLIA_X86_64
992d9b1d2e7SJussi Kivilinna	select CRYPTO_LRW
993d9b1d2e7SJussi Kivilinna	select CRYPTO_XTS
994d9b1d2e7SJussi Kivilinna	help
995d9b1d2e7SJussi Kivilinna	  Camellia cipher algorithm module (x86_64/AES-NI/AVX).
996d9b1d2e7SJussi Kivilinna
997d9b1d2e7SJussi Kivilinna	  Camellia is a symmetric key block cipher developed jointly
998d9b1d2e7SJussi Kivilinna	  at NTT and Mitsubishi Electric Corporation.
999d9b1d2e7SJussi Kivilinna
1000d9b1d2e7SJussi Kivilinna	  The Camellia specifies three key sizes: 128, 192 and 256 bits.
1001d9b1d2e7SJussi Kivilinna
1002d9b1d2e7SJussi Kivilinna	  See also:
1003d9b1d2e7SJussi Kivilinna	  <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1004d9b1d2e7SJussi Kivilinna
1005f3f935a7SJussi Kivilinnaconfig CRYPTO_CAMELLIA_AESNI_AVX2_X86_64
1006f3f935a7SJussi Kivilinna	tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX2)"
1007f3f935a7SJussi Kivilinna	depends on X86 && 64BIT
1008f3f935a7SJussi Kivilinna	depends on CRYPTO
1009f3f935a7SJussi Kivilinna	select CRYPTO_ALGAPI
1010f3f935a7SJussi Kivilinna	select CRYPTO_CRYPTD
1011801201aaSArd Biesheuvel	select CRYPTO_ABLK_HELPER
1012f3f935a7SJussi Kivilinna	select CRYPTO_GLUE_HELPER_X86
1013f3f935a7SJussi Kivilinna	select CRYPTO_CAMELLIA_X86_64
1014f3f935a7SJussi Kivilinna	select CRYPTO_CAMELLIA_AESNI_AVX_X86_64
1015f3f935a7SJussi Kivilinna	select CRYPTO_LRW
1016f3f935a7SJussi Kivilinna	select CRYPTO_XTS
1017f3f935a7SJussi Kivilinna	help
1018f3f935a7SJussi Kivilinna	  Camellia cipher algorithm module (x86_64/AES-NI/AVX2).
1019f3f935a7SJussi Kivilinna
1020f3f935a7SJussi Kivilinna	  Camellia is a symmetric key block cipher developed jointly
1021f3f935a7SJussi Kivilinna	  at NTT and Mitsubishi Electric Corporation.
1022f3f935a7SJussi Kivilinna
1023f3f935a7SJussi Kivilinna	  The Camellia specifies three key sizes: 128, 192 and 256 bits.
1024f3f935a7SJussi Kivilinna
1025f3f935a7SJussi Kivilinna	  See also:
1026f3f935a7SJussi Kivilinna	  <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1027f3f935a7SJussi Kivilinna
102881658ad0SDavid S. Millerconfig CRYPTO_CAMELLIA_SPARC64
102981658ad0SDavid S. Miller	tristate "Camellia cipher algorithm (SPARC64)"
103081658ad0SDavid S. Miller	depends on SPARC64
103181658ad0SDavid S. Miller	depends on CRYPTO
103281658ad0SDavid S. Miller	select CRYPTO_ALGAPI
103381658ad0SDavid S. Miller	help
103481658ad0SDavid S. Miller	  Camellia cipher algorithm module (SPARC64).
103581658ad0SDavid S. Miller
103681658ad0SDavid S. Miller	  Camellia is a symmetric key block cipher developed jointly
103781658ad0SDavid S. Miller	  at NTT and Mitsubishi Electric Corporation.
103881658ad0SDavid S. Miller
103981658ad0SDavid S. Miller	  The Camellia specifies three key sizes: 128, 192 and 256 bits.
104081658ad0SDavid S. Miller
104181658ad0SDavid S. Miller	  See also:
104281658ad0SDavid S. Miller	  <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
104381658ad0SDavid S. Miller
1044044ab525SJussi Kivilinnaconfig CRYPTO_CAST_COMMON
1045044ab525SJussi Kivilinna	tristate
1046044ab525SJussi Kivilinna	help
1047044ab525SJussi Kivilinna	  Common parts of the CAST cipher algorithms shared by the
1048044ab525SJussi Kivilinna	  generic c and the assembler implementations.
1049044ab525SJussi Kivilinna
1050584fffc8SSebastian Siewiorconfig CRYPTO_CAST5
1051584fffc8SSebastian Siewior	tristate "CAST5 (CAST-128) cipher algorithm"
1052584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
1053044ab525SJussi Kivilinna	select CRYPTO_CAST_COMMON
1054584fffc8SSebastian Siewior	help
1055584fffc8SSebastian Siewior	  The CAST5 encryption algorithm (synonymous with CAST-128) is
1056584fffc8SSebastian Siewior	  described in RFC2144.
1057584fffc8SSebastian Siewior
10584d6d6a2cSJohannes Goetzfriedconfig CRYPTO_CAST5_AVX_X86_64
10594d6d6a2cSJohannes Goetzfried	tristate "CAST5 (CAST-128) cipher algorithm (x86_64/AVX)"
10604d6d6a2cSJohannes Goetzfried	depends on X86 && 64BIT
10614d6d6a2cSJohannes Goetzfried	select CRYPTO_ALGAPI
10624d6d6a2cSJohannes Goetzfried	select CRYPTO_CRYPTD
1063801201aaSArd Biesheuvel	select CRYPTO_ABLK_HELPER
1064044ab525SJussi Kivilinna	select CRYPTO_CAST_COMMON
10654d6d6a2cSJohannes Goetzfried	select CRYPTO_CAST5
10664d6d6a2cSJohannes Goetzfried	help
10674d6d6a2cSJohannes Goetzfried	  The CAST5 encryption algorithm (synonymous with CAST-128) is
10684d6d6a2cSJohannes Goetzfried	  described in RFC2144.
10694d6d6a2cSJohannes Goetzfried
10704d6d6a2cSJohannes Goetzfried	  This module provides the Cast5 cipher algorithm that processes
10714d6d6a2cSJohannes Goetzfried	  sixteen blocks parallel using the AVX instruction set.
10724d6d6a2cSJohannes Goetzfried
1073584fffc8SSebastian Siewiorconfig CRYPTO_CAST6
1074584fffc8SSebastian Siewior	tristate "CAST6 (CAST-256) cipher algorithm"
1075584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
1076044ab525SJussi Kivilinna	select CRYPTO_CAST_COMMON
1077584fffc8SSebastian Siewior	help
1078584fffc8SSebastian Siewior	  The CAST6 encryption algorithm (synonymous with CAST-256) is
1079584fffc8SSebastian Siewior	  described in RFC2612.
1080584fffc8SSebastian Siewior
10814ea1277dSJohannes Goetzfriedconfig CRYPTO_CAST6_AVX_X86_64
10824ea1277dSJohannes Goetzfried	tristate "CAST6 (CAST-256) cipher algorithm (x86_64/AVX)"
10834ea1277dSJohannes Goetzfried	depends on X86 && 64BIT
10844ea1277dSJohannes Goetzfried	select CRYPTO_ALGAPI
10854ea1277dSJohannes Goetzfried	select CRYPTO_CRYPTD
1086801201aaSArd Biesheuvel	select CRYPTO_ABLK_HELPER
10874ea1277dSJohannes Goetzfried	select CRYPTO_GLUE_HELPER_X86
1088044ab525SJussi Kivilinna	select CRYPTO_CAST_COMMON
10894ea1277dSJohannes Goetzfried	select CRYPTO_CAST6
10904ea1277dSJohannes Goetzfried	select CRYPTO_LRW
10914ea1277dSJohannes Goetzfried	select CRYPTO_XTS
10924ea1277dSJohannes Goetzfried	help
10934ea1277dSJohannes Goetzfried	  The CAST6 encryption algorithm (synonymous with CAST-256) is
10944ea1277dSJohannes Goetzfried	  described in RFC2612.
10954ea1277dSJohannes Goetzfried
10964ea1277dSJohannes Goetzfried	  This module provides the Cast6 cipher algorithm that processes
10974ea1277dSJohannes Goetzfried	  eight blocks parallel using the AVX instruction set.
10984ea1277dSJohannes Goetzfried
1099584fffc8SSebastian Siewiorconfig CRYPTO_DES
1100584fffc8SSebastian Siewior	tristate "DES and Triple DES EDE cipher algorithms"
1101584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
1102584fffc8SSebastian Siewior	help
1103584fffc8SSebastian Siewior	  DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
1104584fffc8SSebastian Siewior
1105c5aac2dfSDavid S. Millerconfig CRYPTO_DES_SPARC64
1106c5aac2dfSDavid S. Miller	tristate "DES and Triple DES EDE cipher algorithms (SPARC64)"
110797da37b3SDave Jones	depends on SPARC64
1108c5aac2dfSDavid S. Miller	select CRYPTO_ALGAPI
1109c5aac2dfSDavid S. Miller	select CRYPTO_DES
1110c5aac2dfSDavid S. Miller	help
1111c5aac2dfSDavid S. Miller	  DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3),
1112c5aac2dfSDavid S. Miller	  optimized using SPARC64 crypto opcodes.
1113c5aac2dfSDavid S. Miller
11146574e6c6SJussi Kivilinnaconfig CRYPTO_DES3_EDE_X86_64
11156574e6c6SJussi Kivilinna	tristate "Triple DES EDE cipher algorithm (x86-64)"
11166574e6c6SJussi Kivilinna	depends on X86 && 64BIT
11176574e6c6SJussi Kivilinna	select CRYPTO_ALGAPI
11186574e6c6SJussi Kivilinna	select CRYPTO_DES
11196574e6c6SJussi Kivilinna	help
11206574e6c6SJussi Kivilinna	  Triple DES EDE (FIPS 46-3) algorithm.
11216574e6c6SJussi Kivilinna
11226574e6c6SJussi Kivilinna	  This module provides implementation of the Triple DES EDE cipher
11236574e6c6SJussi Kivilinna	  algorithm that is optimized for x86-64 processors. Two versions of
11246574e6c6SJussi Kivilinna	  algorithm are provided; regular processing one input block and
11256574e6c6SJussi Kivilinna	  one that processes three blocks parallel.
11266574e6c6SJussi Kivilinna
1127584fffc8SSebastian Siewiorconfig CRYPTO_FCRYPT
1128584fffc8SSebastian Siewior	tristate "FCrypt cipher algorithm"
1129584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
1130584fffc8SSebastian Siewior	select CRYPTO_BLKCIPHER
1131584fffc8SSebastian Siewior	help
1132584fffc8SSebastian Siewior	  FCrypt algorithm used by RxRPC.
1133584fffc8SSebastian Siewior
1134584fffc8SSebastian Siewiorconfig CRYPTO_KHAZAD
1135584fffc8SSebastian Siewior	tristate "Khazad cipher algorithm"
1136584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
1137584fffc8SSebastian Siewior	help
1138584fffc8SSebastian Siewior	  Khazad cipher algorithm.
1139584fffc8SSebastian Siewior
1140584fffc8SSebastian Siewior	  Khazad was a finalist in the initial NESSIE competition.  It is
1141584fffc8SSebastian Siewior	  an algorithm optimized for 64-bit processors with good performance
1142584fffc8SSebastian Siewior	  on 32-bit processors.  Khazad uses an 128 bit key size.
1143584fffc8SSebastian Siewior
1144584fffc8SSebastian Siewior	  See also:
11456d8de74cSJustin P. Mattock	  <http://www.larc.usp.br/~pbarreto/KhazadPage.html>
1146e2ee95b8SHye-Shik Chang
11472407d608STan Swee Hengconfig CRYPTO_SALSA20
11483b4afaf2SKees Cook	tristate "Salsa20 stream cipher algorithm"
11492407d608STan Swee Heng	select CRYPTO_BLKCIPHER
11502407d608STan Swee Heng	help
11512407d608STan Swee Heng	  Salsa20 stream cipher algorithm.
11522407d608STan Swee Heng
11532407d608STan Swee Heng	  Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
11542407d608STan Swee Heng	  Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
11552407d608STan Swee Heng
11562407d608STan Swee Heng	  The Salsa20 stream cipher algorithm is designed by Daniel J.
11572407d608STan Swee Heng	  Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
11581da177e4SLinus Torvalds
1159974e4b75STan Swee Hengconfig CRYPTO_SALSA20_586
11603b4afaf2SKees Cook	tristate "Salsa20 stream cipher algorithm (i586)"
1161974e4b75STan Swee Heng	depends on (X86 || UML_X86) && !64BIT
1162974e4b75STan Swee Heng	select CRYPTO_BLKCIPHER
1163974e4b75STan Swee Heng	help
1164974e4b75STan Swee Heng	  Salsa20 stream cipher algorithm.
1165974e4b75STan Swee Heng
1166974e4b75STan Swee Heng	  Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
1167974e4b75STan Swee Heng	  Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
1168974e4b75STan Swee Heng
1169974e4b75STan Swee Heng	  The Salsa20 stream cipher algorithm is designed by Daniel J.
1170974e4b75STan Swee Heng	  Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
1171974e4b75STan Swee Heng
11729a7dafbbSTan Swee Hengconfig CRYPTO_SALSA20_X86_64
11733b4afaf2SKees Cook	tristate "Salsa20 stream cipher algorithm (x86_64)"
11749a7dafbbSTan Swee Heng	depends on (X86 || UML_X86) && 64BIT
11759a7dafbbSTan Swee Heng	select CRYPTO_BLKCIPHER
11769a7dafbbSTan Swee Heng	help
11779a7dafbbSTan Swee Heng	  Salsa20 stream cipher algorithm.
11789a7dafbbSTan Swee Heng
11799a7dafbbSTan Swee Heng	  Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
11809a7dafbbSTan Swee Heng	  Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
11819a7dafbbSTan Swee Heng
11829a7dafbbSTan Swee Heng	  The Salsa20 stream cipher algorithm is designed by Daniel J.
11839a7dafbbSTan Swee Heng	  Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
11849a7dafbbSTan Swee Heng
1185c08d0e64SMartin Williconfig CRYPTO_CHACHA20
1186c08d0e64SMartin Willi	tristate "ChaCha20 cipher algorithm"
1187c08d0e64SMartin Willi	select CRYPTO_BLKCIPHER
1188c08d0e64SMartin Willi	help
1189c08d0e64SMartin Willi	  ChaCha20 cipher algorithm, RFC7539.
1190c08d0e64SMartin Willi
1191c08d0e64SMartin Willi	  ChaCha20 is a 256-bit high-speed stream cipher designed by Daniel J.
1192c08d0e64SMartin Willi	  Bernstein and further specified in RFC7539 for use in IETF protocols.
1193c08d0e64SMartin Willi	  This is the portable C implementation of ChaCha20.
1194c08d0e64SMartin Willi
1195c08d0e64SMartin Willi	  See also:
1196c08d0e64SMartin Willi	  <http://cr.yp.to/chacha/chacha-20080128.pdf>
1197c08d0e64SMartin Willi
1198584fffc8SSebastian Siewiorconfig CRYPTO_SEED
1199584fffc8SSebastian Siewior	tristate "SEED cipher algorithm"
1200584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
1201584fffc8SSebastian Siewior	help
1202584fffc8SSebastian Siewior	  SEED cipher algorithm (RFC4269).
1203584fffc8SSebastian Siewior
1204584fffc8SSebastian Siewior	  SEED is a 128-bit symmetric key block cipher that has been
1205584fffc8SSebastian Siewior	  developed by KISA (Korea Information Security Agency) as a
1206584fffc8SSebastian Siewior	  national standard encryption algorithm of the Republic of Korea.
1207584fffc8SSebastian Siewior	  It is a 16 round block cipher with the key size of 128 bit.
1208584fffc8SSebastian Siewior
1209584fffc8SSebastian Siewior	  See also:
1210584fffc8SSebastian Siewior	  <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>
1211584fffc8SSebastian Siewior
1212584fffc8SSebastian Siewiorconfig CRYPTO_SERPENT
1213584fffc8SSebastian Siewior	tristate "Serpent cipher algorithm"
1214584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
1215584fffc8SSebastian Siewior	help
1216584fffc8SSebastian Siewior	  Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1217584fffc8SSebastian Siewior
1218584fffc8SSebastian Siewior	  Keys are allowed to be from 0 to 256 bits in length, in steps
1219584fffc8SSebastian Siewior	  of 8 bits.  Also includes the 'Tnepres' algorithm, a reversed
1220584fffc8SSebastian Siewior	  variant of Serpent for compatibility with old kerneli.org code.
1221584fffc8SSebastian Siewior
1222584fffc8SSebastian Siewior	  See also:
1223584fffc8SSebastian Siewior	  <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1224584fffc8SSebastian Siewior
1225937c30d7SJussi Kivilinnaconfig CRYPTO_SERPENT_SSE2_X86_64
1226937c30d7SJussi Kivilinna	tristate "Serpent cipher algorithm (x86_64/SSE2)"
1227937c30d7SJussi Kivilinna	depends on X86 && 64BIT
1228937c30d7SJussi Kivilinna	select CRYPTO_ALGAPI
1229341975bfSJussi Kivilinna	select CRYPTO_CRYPTD
1230801201aaSArd Biesheuvel	select CRYPTO_ABLK_HELPER
1231596d8750SJussi Kivilinna	select CRYPTO_GLUE_HELPER_X86
1232937c30d7SJussi Kivilinna	select CRYPTO_SERPENT
1233feaf0cfcSJussi Kivilinna	select CRYPTO_LRW
1234feaf0cfcSJussi Kivilinna	select CRYPTO_XTS
1235937c30d7SJussi Kivilinna	help
1236937c30d7SJussi Kivilinna	  Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1237937c30d7SJussi Kivilinna
1238937c30d7SJussi Kivilinna	  Keys are allowed to be from 0 to 256 bits in length, in steps
1239937c30d7SJussi Kivilinna	  of 8 bits.
1240937c30d7SJussi Kivilinna
12411e6232f8SMasanari Iida	  This module provides Serpent cipher algorithm that processes eight
1242937c30d7SJussi Kivilinna	  blocks parallel using SSE2 instruction set.
1243937c30d7SJussi Kivilinna
1244937c30d7SJussi Kivilinna	  See also:
1245937c30d7SJussi Kivilinna	  <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1246937c30d7SJussi Kivilinna
1247251496dbSJussi Kivilinnaconfig CRYPTO_SERPENT_SSE2_586
1248251496dbSJussi Kivilinna	tristate "Serpent cipher algorithm (i586/SSE2)"
1249251496dbSJussi Kivilinna	depends on X86 && !64BIT
1250251496dbSJussi Kivilinna	select CRYPTO_ALGAPI
1251341975bfSJussi Kivilinna	select CRYPTO_CRYPTD
1252801201aaSArd Biesheuvel	select CRYPTO_ABLK_HELPER
1253596d8750SJussi Kivilinna	select CRYPTO_GLUE_HELPER_X86
1254251496dbSJussi Kivilinna	select CRYPTO_SERPENT
1255feaf0cfcSJussi Kivilinna	select CRYPTO_LRW
1256feaf0cfcSJussi Kivilinna	select CRYPTO_XTS
1257251496dbSJussi Kivilinna	help
1258251496dbSJussi Kivilinna	  Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1259251496dbSJussi Kivilinna
1260251496dbSJussi Kivilinna	  Keys are allowed to be from 0 to 256 bits in length, in steps
1261251496dbSJussi Kivilinna	  of 8 bits.
1262251496dbSJussi Kivilinna
1263251496dbSJussi Kivilinna	  This module provides Serpent cipher algorithm that processes four
1264251496dbSJussi Kivilinna	  blocks parallel using SSE2 instruction set.
1265251496dbSJussi Kivilinna
1266251496dbSJussi Kivilinna	  See also:
1267251496dbSJussi Kivilinna	  <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1268251496dbSJussi Kivilinna
12697efe4076SJohannes Goetzfriedconfig CRYPTO_SERPENT_AVX_X86_64
12707efe4076SJohannes Goetzfried	tristate "Serpent cipher algorithm (x86_64/AVX)"
12717efe4076SJohannes Goetzfried	depends on X86 && 64BIT
12727efe4076SJohannes Goetzfried	select CRYPTO_ALGAPI
12737efe4076SJohannes Goetzfried	select CRYPTO_CRYPTD
1274801201aaSArd Biesheuvel	select CRYPTO_ABLK_HELPER
12751d0debbdSJussi Kivilinna	select CRYPTO_GLUE_HELPER_X86
12767efe4076SJohannes Goetzfried	select CRYPTO_SERPENT
12777efe4076SJohannes Goetzfried	select CRYPTO_LRW
12787efe4076SJohannes Goetzfried	select CRYPTO_XTS
12797efe4076SJohannes Goetzfried	help
12807efe4076SJohannes Goetzfried	  Serpent cipher algorithm, by Anderson, Biham & Knudsen.
12817efe4076SJohannes Goetzfried
12827efe4076SJohannes Goetzfried	  Keys are allowed to be from 0 to 256 bits in length, in steps
12837efe4076SJohannes Goetzfried	  of 8 bits.
12847efe4076SJohannes Goetzfried
12857efe4076SJohannes Goetzfried	  This module provides the Serpent cipher algorithm that processes
12867efe4076SJohannes Goetzfried	  eight blocks parallel using the AVX instruction set.
12877efe4076SJohannes Goetzfried
12887efe4076SJohannes Goetzfried	  See also:
12897efe4076SJohannes Goetzfried	  <http://www.cl.cam.ac.uk/~rja14/serpent.html>
12907efe4076SJohannes Goetzfried
129156d76c96SJussi Kivilinnaconfig CRYPTO_SERPENT_AVX2_X86_64
129256d76c96SJussi Kivilinna	tristate "Serpent cipher algorithm (x86_64/AVX2)"
129356d76c96SJussi Kivilinna	depends on X86 && 64BIT
129456d76c96SJussi Kivilinna	select CRYPTO_ALGAPI
129556d76c96SJussi Kivilinna	select CRYPTO_CRYPTD
1296801201aaSArd Biesheuvel	select CRYPTO_ABLK_HELPER
129756d76c96SJussi Kivilinna	select CRYPTO_GLUE_HELPER_X86
129856d76c96SJussi Kivilinna	select CRYPTO_SERPENT
129956d76c96SJussi Kivilinna	select CRYPTO_SERPENT_AVX_X86_64
130056d76c96SJussi Kivilinna	select CRYPTO_LRW
130156d76c96SJussi Kivilinna	select CRYPTO_XTS
130256d76c96SJussi Kivilinna	help
130356d76c96SJussi Kivilinna	  Serpent cipher algorithm, by Anderson, Biham & Knudsen.
130456d76c96SJussi Kivilinna
130556d76c96SJussi Kivilinna	  Keys are allowed to be from 0 to 256 bits in length, in steps
130656d76c96SJussi Kivilinna	  of 8 bits.
130756d76c96SJussi Kivilinna
130856d76c96SJussi Kivilinna	  This module provides Serpent cipher algorithm that processes 16
130956d76c96SJussi Kivilinna	  blocks parallel using AVX2 instruction set.
131056d76c96SJussi Kivilinna
131156d76c96SJussi Kivilinna	  See also:
131256d76c96SJussi Kivilinna	  <http://www.cl.cam.ac.uk/~rja14/serpent.html>
131356d76c96SJussi Kivilinna
1314584fffc8SSebastian Siewiorconfig CRYPTO_TEA
1315584fffc8SSebastian Siewior	tristate "TEA, XTEA and XETA cipher algorithms"
1316584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
1317584fffc8SSebastian Siewior	help
1318584fffc8SSebastian Siewior	  TEA cipher algorithm.
1319584fffc8SSebastian Siewior
1320584fffc8SSebastian Siewior	  Tiny Encryption Algorithm is a simple cipher that uses
1321584fffc8SSebastian Siewior	  many rounds for security.  It is very fast and uses
1322584fffc8SSebastian Siewior	  little memory.
1323584fffc8SSebastian Siewior
1324584fffc8SSebastian Siewior	  Xtendend Tiny Encryption Algorithm is a modification to
1325584fffc8SSebastian Siewior	  the TEA algorithm to address a potential key weakness
1326584fffc8SSebastian Siewior	  in the TEA algorithm.
1327584fffc8SSebastian Siewior
1328584fffc8SSebastian Siewior	  Xtendend Encryption Tiny Algorithm is a mis-implementation
1329584fffc8SSebastian Siewior	  of the XTEA algorithm for compatibility purposes.
1330584fffc8SSebastian Siewior
1331584fffc8SSebastian Siewiorconfig CRYPTO_TWOFISH
1332584fffc8SSebastian Siewior	tristate "Twofish cipher algorithm"
1333584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
1334584fffc8SSebastian Siewior	select CRYPTO_TWOFISH_COMMON
1335584fffc8SSebastian Siewior	help
1336584fffc8SSebastian Siewior	  Twofish cipher algorithm.
1337584fffc8SSebastian Siewior
1338584fffc8SSebastian Siewior	  Twofish was submitted as an AES (Advanced Encryption Standard)
1339584fffc8SSebastian Siewior	  candidate cipher by researchers at CounterPane Systems.  It is a
1340584fffc8SSebastian Siewior	  16 round block cipher supporting key sizes of 128, 192, and 256
1341584fffc8SSebastian Siewior	  bits.
1342584fffc8SSebastian Siewior
1343584fffc8SSebastian Siewior	  See also:
1344584fffc8SSebastian Siewior	  <http://www.schneier.com/twofish.html>
1345584fffc8SSebastian Siewior
1346584fffc8SSebastian Siewiorconfig CRYPTO_TWOFISH_COMMON
1347584fffc8SSebastian Siewior	tristate
1348584fffc8SSebastian Siewior	help
1349584fffc8SSebastian Siewior	  Common parts of the Twofish cipher algorithm shared by the
1350584fffc8SSebastian Siewior	  generic c and the assembler implementations.
1351584fffc8SSebastian Siewior
1352584fffc8SSebastian Siewiorconfig CRYPTO_TWOFISH_586
1353584fffc8SSebastian Siewior	tristate "Twofish cipher algorithms (i586)"
1354584fffc8SSebastian Siewior	depends on (X86 || UML_X86) && !64BIT
1355584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
1356584fffc8SSebastian Siewior	select CRYPTO_TWOFISH_COMMON
1357584fffc8SSebastian Siewior	help
1358584fffc8SSebastian Siewior	  Twofish cipher algorithm.
1359584fffc8SSebastian Siewior
1360584fffc8SSebastian Siewior	  Twofish was submitted as an AES (Advanced Encryption Standard)
1361584fffc8SSebastian Siewior	  candidate cipher by researchers at CounterPane Systems.  It is a
1362584fffc8SSebastian Siewior	  16 round block cipher supporting key sizes of 128, 192, and 256
1363584fffc8SSebastian Siewior	  bits.
1364584fffc8SSebastian Siewior
1365584fffc8SSebastian Siewior	  See also:
1366584fffc8SSebastian Siewior	  <http://www.schneier.com/twofish.html>
1367584fffc8SSebastian Siewior
1368584fffc8SSebastian Siewiorconfig CRYPTO_TWOFISH_X86_64
1369584fffc8SSebastian Siewior	tristate "Twofish cipher algorithm (x86_64)"
1370584fffc8SSebastian Siewior	depends on (X86 || UML_X86) && 64BIT
1371584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
1372584fffc8SSebastian Siewior	select CRYPTO_TWOFISH_COMMON
1373584fffc8SSebastian Siewior	help
1374584fffc8SSebastian Siewior	  Twofish cipher algorithm (x86_64).
1375584fffc8SSebastian Siewior
1376584fffc8SSebastian Siewior	  Twofish was submitted as an AES (Advanced Encryption Standard)
1377584fffc8SSebastian Siewior	  candidate cipher by researchers at CounterPane Systems.  It is a
1378584fffc8SSebastian Siewior	  16 round block cipher supporting key sizes of 128, 192, and 256
1379584fffc8SSebastian Siewior	  bits.
1380584fffc8SSebastian Siewior
1381584fffc8SSebastian Siewior	  See also:
1382584fffc8SSebastian Siewior	  <http://www.schneier.com/twofish.html>
1383584fffc8SSebastian Siewior
13848280daadSJussi Kivilinnaconfig CRYPTO_TWOFISH_X86_64_3WAY
13858280daadSJussi Kivilinna	tristate "Twofish cipher algorithm (x86_64, 3-way parallel)"
1386f21a7c19SAl Viro	depends on X86 && 64BIT
13878280daadSJussi Kivilinna	select CRYPTO_ALGAPI
13888280daadSJussi Kivilinna	select CRYPTO_TWOFISH_COMMON
13898280daadSJussi Kivilinna	select CRYPTO_TWOFISH_X86_64
1390414cb5e7SJussi Kivilinna	select CRYPTO_GLUE_HELPER_X86
1391e7cda5d2SJussi Kivilinna	select CRYPTO_LRW
1392e7cda5d2SJussi Kivilinna	select CRYPTO_XTS
13938280daadSJussi Kivilinna	help
13948280daadSJussi Kivilinna	  Twofish cipher algorithm (x86_64, 3-way parallel).
13958280daadSJussi Kivilinna
13968280daadSJussi Kivilinna	  Twofish was submitted as an AES (Advanced Encryption Standard)
13978280daadSJussi Kivilinna	  candidate cipher by researchers at CounterPane Systems.  It is a
13988280daadSJussi Kivilinna	  16 round block cipher supporting key sizes of 128, 192, and 256
13998280daadSJussi Kivilinna	  bits.
14008280daadSJussi Kivilinna
14018280daadSJussi Kivilinna	  This module provides Twofish cipher algorithm that processes three
14028280daadSJussi Kivilinna	  blocks parallel, utilizing resources of out-of-order CPUs better.
14038280daadSJussi Kivilinna
14048280daadSJussi Kivilinna	  See also:
14058280daadSJussi Kivilinna	  <http://www.schneier.com/twofish.html>
14068280daadSJussi Kivilinna
1407107778b5SJohannes Goetzfriedconfig CRYPTO_TWOFISH_AVX_X86_64
1408107778b5SJohannes Goetzfried	tristate "Twofish cipher algorithm (x86_64/AVX)"
1409107778b5SJohannes Goetzfried	depends on X86 && 64BIT
1410107778b5SJohannes Goetzfried	select CRYPTO_ALGAPI
1411107778b5SJohannes Goetzfried	select CRYPTO_CRYPTD
1412801201aaSArd Biesheuvel	select CRYPTO_ABLK_HELPER
1413a7378d4eSJussi Kivilinna	select CRYPTO_GLUE_HELPER_X86
1414107778b5SJohannes Goetzfried	select CRYPTO_TWOFISH_COMMON
1415107778b5SJohannes Goetzfried	select CRYPTO_TWOFISH_X86_64
1416107778b5SJohannes Goetzfried	select CRYPTO_TWOFISH_X86_64_3WAY
1417107778b5SJohannes Goetzfried	select CRYPTO_LRW
1418107778b5SJohannes Goetzfried	select CRYPTO_XTS
1419107778b5SJohannes Goetzfried	help
1420107778b5SJohannes Goetzfried	  Twofish cipher algorithm (x86_64/AVX).
1421107778b5SJohannes Goetzfried
1422107778b5SJohannes Goetzfried	  Twofish was submitted as an AES (Advanced Encryption Standard)
1423107778b5SJohannes Goetzfried	  candidate cipher by researchers at CounterPane Systems.  It is a
1424107778b5SJohannes Goetzfried	  16 round block cipher supporting key sizes of 128, 192, and 256
1425107778b5SJohannes Goetzfried	  bits.
1426107778b5SJohannes Goetzfried
1427107778b5SJohannes Goetzfried	  This module provides the Twofish cipher algorithm that processes
1428107778b5SJohannes Goetzfried	  eight blocks parallel using the AVX Instruction Set.
1429107778b5SJohannes Goetzfried
1430107778b5SJohannes Goetzfried	  See also:
1431107778b5SJohannes Goetzfried	  <http://www.schneier.com/twofish.html>
1432107778b5SJohannes Goetzfried
1433584fffc8SSebastian Siewiorcomment "Compression"
1434584fffc8SSebastian Siewior
14351da177e4SLinus Torvaldsconfig CRYPTO_DEFLATE
14361da177e4SLinus Torvalds	tristate "Deflate compression algorithm"
1437cce9e06dSHerbert Xu	select CRYPTO_ALGAPI
14381da177e4SLinus Torvalds	select ZLIB_INFLATE
14391da177e4SLinus Torvalds	select ZLIB_DEFLATE
14401da177e4SLinus Torvalds	help
14411da177e4SLinus Torvalds	  This is the Deflate algorithm (RFC1951), specified for use in
14421da177e4SLinus Torvalds	  IPSec with the IPCOMP protocol (RFC3173, RFC2394).
14431da177e4SLinus Torvalds
14441da177e4SLinus Torvalds	  You will most probably want this if using IPSec.
14451da177e4SLinus Torvalds
1446bf68e65eSGeert Uytterhoevenconfig CRYPTO_ZLIB
1447bf68e65eSGeert Uytterhoeven	tristate "Zlib compression algorithm"
1448bf68e65eSGeert Uytterhoeven	select CRYPTO_PCOMP
1449bf68e65eSGeert Uytterhoeven	select ZLIB_INFLATE
1450bf68e65eSGeert Uytterhoeven	select ZLIB_DEFLATE
1451bf68e65eSGeert Uytterhoeven	select NLATTR
1452bf68e65eSGeert Uytterhoeven	help
1453bf68e65eSGeert Uytterhoeven	  This is the zlib algorithm.
1454bf68e65eSGeert Uytterhoeven
14550b77abb3SZoltan Sogorconfig CRYPTO_LZO
14560b77abb3SZoltan Sogor	tristate "LZO compression algorithm"
14570b77abb3SZoltan Sogor	select CRYPTO_ALGAPI
14580b77abb3SZoltan Sogor	select LZO_COMPRESS
14590b77abb3SZoltan Sogor	select LZO_DECOMPRESS
14600b77abb3SZoltan Sogor	help
14610b77abb3SZoltan Sogor	  This is the LZO algorithm.
14620b77abb3SZoltan Sogor
146335a1fc18SSeth Jenningsconfig CRYPTO_842
146435a1fc18SSeth Jennings	tristate "842 compression algorithm"
14652062c5b6SDan Streetman	select CRYPTO_ALGAPI
14662062c5b6SDan Streetman	select 842_COMPRESS
14672062c5b6SDan Streetman	select 842_DECOMPRESS
146835a1fc18SSeth Jennings	help
146935a1fc18SSeth Jennings	  This is the 842 algorithm.
147035a1fc18SSeth Jennings
14710ea8530dSChanho Minconfig CRYPTO_LZ4
14720ea8530dSChanho Min	tristate "LZ4 compression algorithm"
14730ea8530dSChanho Min	select CRYPTO_ALGAPI
14740ea8530dSChanho Min	select LZ4_COMPRESS
14750ea8530dSChanho Min	select LZ4_DECOMPRESS
14760ea8530dSChanho Min	help
14770ea8530dSChanho Min	  This is the LZ4 algorithm.
14780ea8530dSChanho Min
14790ea8530dSChanho Minconfig CRYPTO_LZ4HC
14800ea8530dSChanho Min	tristate "LZ4HC compression algorithm"
14810ea8530dSChanho Min	select CRYPTO_ALGAPI
14820ea8530dSChanho Min	select LZ4HC_COMPRESS
14830ea8530dSChanho Min	select LZ4_DECOMPRESS
14840ea8530dSChanho Min	help
14850ea8530dSChanho Min	  This is the LZ4 high compression mode algorithm.
14860ea8530dSChanho Min
148717f0f4a4SNeil Hormancomment "Random Number Generation"
148817f0f4a4SNeil Horman
148917f0f4a4SNeil Hormanconfig CRYPTO_ANSI_CPRNG
149017f0f4a4SNeil Horman	tristate "Pseudo Random Number Generation for Cryptographic modules"
149117f0f4a4SNeil Horman	select CRYPTO_AES
149217f0f4a4SNeil Horman	select CRYPTO_RNG
149317f0f4a4SNeil Horman	help
149417f0f4a4SNeil Horman	  This option enables the generic pseudo random number generator
149517f0f4a4SNeil Horman	  for cryptographic modules.  Uses the Algorithm specified in
14967dd607e8SJiri Kosina	  ANSI X9.31 A.2.4. Note that this option must be enabled if
14977dd607e8SJiri Kosina	  CRYPTO_FIPS is selected
149817f0f4a4SNeil Horman
1499f2c89a10SHerbert Xumenuconfig CRYPTO_DRBG_MENU
1500419090c6SStephan Mueller	tristate "NIST SP800-90A DRBG"
1501419090c6SStephan Mueller	help
1502419090c6SStephan Mueller	  NIST SP800-90A compliant DRBG. In the following submenu, one or
1503419090c6SStephan Mueller	  more of the DRBG types must be selected.
1504419090c6SStephan Mueller
1505f2c89a10SHerbert Xuif CRYPTO_DRBG_MENU
1506419090c6SStephan Mueller
1507419090c6SStephan Muellerconfig CRYPTO_DRBG_HMAC
1508401e4238SHerbert Xu	bool
1509419090c6SStephan Mueller	default y
1510419090c6SStephan Mueller	select CRYPTO_HMAC
1511*826775bbSHerbert Xu	select CRYPTO_SHA256
1512419090c6SStephan Mueller
1513419090c6SStephan Muellerconfig CRYPTO_DRBG_HASH
1514419090c6SStephan Mueller	bool "Enable Hash DRBG"
1515*826775bbSHerbert Xu	select CRYPTO_SHA256
1516419090c6SStephan Mueller	help
1517419090c6SStephan Mueller	  Enable the Hash DRBG variant as defined in NIST SP800-90A.
1518419090c6SStephan Mueller
1519419090c6SStephan Muellerconfig CRYPTO_DRBG_CTR
1520419090c6SStephan Mueller	bool "Enable CTR DRBG"
1521419090c6SStephan Mueller	select CRYPTO_AES
1522419090c6SStephan Mueller	help
1523419090c6SStephan Mueller	  Enable the CTR DRBG variant as defined in NIST SP800-90A.
1524419090c6SStephan Mueller
1525f2c89a10SHerbert Xuconfig CRYPTO_DRBG
1526f2c89a10SHerbert Xu	tristate
1527401e4238SHerbert Xu	default CRYPTO_DRBG_MENU
1528f2c89a10SHerbert Xu	select CRYPTO_RNG
1529bb5530e4SStephan Mueller	select CRYPTO_JITTERENTROPY
1530f2c89a10SHerbert Xu
1531f2c89a10SHerbert Xuendif	# if CRYPTO_DRBG_MENU
1532419090c6SStephan Mueller
1533bb5530e4SStephan Muellerconfig CRYPTO_JITTERENTROPY
1534bb5530e4SStephan Mueller	tristate "Jitterentropy Non-Deterministic Random Number Generator"
1535bb5530e4SStephan Mueller	help
1536bb5530e4SStephan Mueller	  The Jitterentropy RNG is a noise that is intended
1537bb5530e4SStephan Mueller	  to provide seed to another RNG. The RNG does not
1538bb5530e4SStephan Mueller	  perform any cryptographic whitening of the generated
1539bb5530e4SStephan Mueller	  random numbers. This Jitterentropy RNG registers with
1540bb5530e4SStephan Mueller	  the kernel crypto API and can be used by any caller.
1541bb5530e4SStephan Mueller
154203c8efc1SHerbert Xuconfig CRYPTO_USER_API
154303c8efc1SHerbert Xu	tristate
154403c8efc1SHerbert Xu
1545fe869cdbSHerbert Xuconfig CRYPTO_USER_API_HASH
1546fe869cdbSHerbert Xu	tristate "User-space interface for hash algorithms"
15477451708fSHerbert Xu	depends on NET
1548fe869cdbSHerbert Xu	select CRYPTO_HASH
1549fe869cdbSHerbert Xu	select CRYPTO_USER_API
1550fe869cdbSHerbert Xu	help
1551fe869cdbSHerbert Xu	  This option enables the user-spaces interface for hash
1552fe869cdbSHerbert Xu	  algorithms.
1553fe869cdbSHerbert Xu
15548ff59090SHerbert Xuconfig CRYPTO_USER_API_SKCIPHER
15558ff59090SHerbert Xu	tristate "User-space interface for symmetric key cipher algorithms"
15567451708fSHerbert Xu	depends on NET
15578ff59090SHerbert Xu	select CRYPTO_BLKCIPHER
15588ff59090SHerbert Xu	select CRYPTO_USER_API
15598ff59090SHerbert Xu	help
15608ff59090SHerbert Xu	  This option enables the user-spaces interface for symmetric
15618ff59090SHerbert Xu	  key cipher algorithms.
15628ff59090SHerbert Xu
15632f375538SStephan Muellerconfig CRYPTO_USER_API_RNG
15642f375538SStephan Mueller	tristate "User-space interface for random number generator algorithms"
15652f375538SStephan Mueller	depends on NET
15662f375538SStephan Mueller	select CRYPTO_RNG
15672f375538SStephan Mueller	select CRYPTO_USER_API
15682f375538SStephan Mueller	help
15692f375538SStephan Mueller	  This option enables the user-spaces interface for random
15702f375538SStephan Mueller	  number generator algorithms.
15712f375538SStephan Mueller
1572b64a2d95SHerbert Xuconfig CRYPTO_USER_API_AEAD
1573b64a2d95SHerbert Xu	tristate "User-space interface for AEAD cipher algorithms"
1574b64a2d95SHerbert Xu	depends on NET
1575b64a2d95SHerbert Xu	select CRYPTO_AEAD
1576b64a2d95SHerbert Xu	select CRYPTO_USER_API
1577b64a2d95SHerbert Xu	help
1578b64a2d95SHerbert Xu	  This option enables the user-spaces interface for AEAD
1579b64a2d95SHerbert Xu	  cipher algorithms.
1580b64a2d95SHerbert Xu
1581ee08997fSDmitry Kasatkinconfig CRYPTO_HASH_INFO
1582ee08997fSDmitry Kasatkin	bool
1583ee08997fSDmitry Kasatkin
15841da177e4SLinus Torvaldssource "drivers/crypto/Kconfig"
1585964f3b3bSDavid Howellssource crypto/asymmetric_keys/Kconfig
15861da177e4SLinus Torvalds
1587cce9e06dSHerbert Xuendif	# if CRYPTO
1588