xref: /linux/crypto/Kconfig (revision 93b5e86a6d13c5dec18c6611933fb38d7d80f0d2)
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"
26e84c5480SChuck Ebbert	depends on CRYPTO_ANSI_CPRNG && !CRYPTO_MANAGER_DISABLE_TESTS
27ccb778e1SNeil Horman	help
28ccb778e1SNeil Horman	  This options enables the fips boot option which is
29ccb778e1SNeil Horman	  required if you want to system to operate in a FIPS 200
30ccb778e1SNeil Horman	  certification.  You should say no unless you know what
31e84c5480SChuck Ebbert	  this is.
32ccb778e1SNeil Horman
33cce9e06dSHerbert Xuconfig CRYPTO_ALGAPI
34cce9e06dSHerbert Xu	tristate
356a0fcbb4SHerbert Xu	select CRYPTO_ALGAPI2
36cce9e06dSHerbert Xu	help
37cce9e06dSHerbert Xu	  This option provides the API for cryptographic algorithms.
38cce9e06dSHerbert Xu
396a0fcbb4SHerbert Xuconfig CRYPTO_ALGAPI2
406a0fcbb4SHerbert Xu	tristate
416a0fcbb4SHerbert Xu
421ae97820SHerbert Xuconfig CRYPTO_AEAD
431ae97820SHerbert Xu	tristate
446a0fcbb4SHerbert Xu	select CRYPTO_AEAD2
451ae97820SHerbert Xu	select CRYPTO_ALGAPI
461ae97820SHerbert Xu
476a0fcbb4SHerbert Xuconfig CRYPTO_AEAD2
486a0fcbb4SHerbert Xu	tristate
496a0fcbb4SHerbert Xu	select CRYPTO_ALGAPI2
506a0fcbb4SHerbert Xu
515cde0af2SHerbert Xuconfig CRYPTO_BLKCIPHER
525cde0af2SHerbert Xu	tristate
536a0fcbb4SHerbert Xu	select CRYPTO_BLKCIPHER2
545cde0af2SHerbert Xu	select CRYPTO_ALGAPI
556a0fcbb4SHerbert Xu
566a0fcbb4SHerbert Xuconfig CRYPTO_BLKCIPHER2
576a0fcbb4SHerbert Xu	tristate
586a0fcbb4SHerbert Xu	select CRYPTO_ALGAPI2
596a0fcbb4SHerbert Xu	select CRYPTO_RNG2
600a2e821dSHuang Ying	select CRYPTO_WORKQUEUE
615cde0af2SHerbert Xu
62055bcee3SHerbert Xuconfig CRYPTO_HASH
63055bcee3SHerbert Xu	tristate
646a0fcbb4SHerbert Xu	select CRYPTO_HASH2
65055bcee3SHerbert Xu	select CRYPTO_ALGAPI
66055bcee3SHerbert Xu
676a0fcbb4SHerbert Xuconfig CRYPTO_HASH2
686a0fcbb4SHerbert Xu	tristate
696a0fcbb4SHerbert Xu	select CRYPTO_ALGAPI2
706a0fcbb4SHerbert Xu
7117f0f4a4SNeil Hormanconfig CRYPTO_RNG
7217f0f4a4SNeil Horman	tristate
736a0fcbb4SHerbert Xu	select CRYPTO_RNG2
7417f0f4a4SNeil Horman	select CRYPTO_ALGAPI
7517f0f4a4SNeil Horman
766a0fcbb4SHerbert Xuconfig CRYPTO_RNG2
776a0fcbb4SHerbert Xu	tristate
786a0fcbb4SHerbert Xu	select CRYPTO_ALGAPI2
796a0fcbb4SHerbert Xu
80a1d2f095SGeert Uytterhoevenconfig CRYPTO_PCOMP
81a1d2f095SGeert Uytterhoeven	tristate
82bc94e596SHerbert Xu	select CRYPTO_PCOMP2
83bc94e596SHerbert Xu	select CRYPTO_ALGAPI
84bc94e596SHerbert Xu
85bc94e596SHerbert Xuconfig CRYPTO_PCOMP2
86bc94e596SHerbert Xu	tristate
87a1d2f095SGeert Uytterhoeven	select CRYPTO_ALGAPI2
88a1d2f095SGeert Uytterhoeven
892b8c19dbSHerbert Xuconfig CRYPTO_MANAGER
902b8c19dbSHerbert Xu	tristate "Cryptographic algorithm manager"
916a0fcbb4SHerbert Xu	select CRYPTO_MANAGER2
922b8c19dbSHerbert Xu	help
932b8c19dbSHerbert Xu	  Create default cryptographic template instantiations such as
942b8c19dbSHerbert Xu	  cbc(aes).
952b8c19dbSHerbert Xu
966a0fcbb4SHerbert Xuconfig CRYPTO_MANAGER2
976a0fcbb4SHerbert Xu	def_tristate CRYPTO_MANAGER || (CRYPTO_MANAGER!=n && CRYPTO_ALGAPI=y)
986a0fcbb4SHerbert Xu	select CRYPTO_AEAD2
996a0fcbb4SHerbert Xu	select CRYPTO_HASH2
1006a0fcbb4SHerbert Xu	select CRYPTO_BLKCIPHER2
101bc94e596SHerbert Xu	select CRYPTO_PCOMP2
1026a0fcbb4SHerbert Xu
103a38f7907SSteffen Klassertconfig CRYPTO_USER
104a38f7907SSteffen Klassert	tristate "Userspace cryptographic algorithm configuration"
1055db017aaSHerbert Xu	depends on NET
106a38f7907SSteffen Klassert	select CRYPTO_MANAGER
107a38f7907SSteffen Klassert	help
108d19978f5SValdis.Kletnieks@vt.edu	  Userspace configuration for cryptographic instantiations such as
109a38f7907SSteffen Klassert	  cbc(aes).
110a38f7907SSteffen Klassert
111326a6346SHerbert Xuconfig CRYPTO_MANAGER_DISABLE_TESTS
112326a6346SHerbert Xu	bool "Disable run-time self tests"
11300ca28a5SHerbert Xu	default y
11400ca28a5SHerbert Xu	depends on CRYPTO_MANAGER2
1150b767f96SAlexander Shishkin	help
116326a6346SHerbert Xu	  Disable run-time self tests that normally take place at
117326a6346SHerbert Xu	  algorithm registration.
1180b767f96SAlexander Shishkin
119584fffc8SSebastian Siewiorconfig CRYPTO_GF128MUL
12008c70fc3SJussi Kivilinna	tristate "GF(2^128) multiplication functions"
121584fffc8SSebastian Siewior	help
122584fffc8SSebastian Siewior	  Efficient table driven implementation of multiplications in the
123584fffc8SSebastian Siewior	  field GF(2^128).  This is needed by some cypher modes. This
124584fffc8SSebastian Siewior	  option will be selected automatically if you select such a
125584fffc8SSebastian Siewior	  cipher mode.  Only select this option by hand if you expect to load
126584fffc8SSebastian Siewior	  an external module that requires these functions.
127584fffc8SSebastian Siewior
128584fffc8SSebastian Siewiorconfig CRYPTO_NULL
129584fffc8SSebastian Siewior	tristate "Null algorithms"
130584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
131584fffc8SSebastian Siewior	select CRYPTO_BLKCIPHER
132d35d2454SHerbert Xu	select CRYPTO_HASH
133584fffc8SSebastian Siewior	help
134584fffc8SSebastian Siewior	  These are 'Null' algorithms, used by IPsec, which do nothing.
135584fffc8SSebastian Siewior
1365068c7a8SSteffen Klassertconfig CRYPTO_PCRYPT
1373b4afaf2SKees Cook	tristate "Parallel crypto engine"
1383b4afaf2SKees Cook	depends on SMP
1395068c7a8SSteffen Klassert	select PADATA
1405068c7a8SSteffen Klassert	select CRYPTO_MANAGER
1415068c7a8SSteffen Klassert	select CRYPTO_AEAD
1425068c7a8SSteffen Klassert	help
1435068c7a8SSteffen Klassert	  This converts an arbitrary crypto algorithm into a parallel
1445068c7a8SSteffen Klassert	  algorithm that executes in kernel threads.
1455068c7a8SSteffen Klassert
14625c38d3fSHuang Yingconfig CRYPTO_WORKQUEUE
14725c38d3fSHuang Ying       tristate
14825c38d3fSHuang Ying
149584fffc8SSebastian Siewiorconfig CRYPTO_CRYPTD
150584fffc8SSebastian Siewior	tristate "Software async crypto daemon"
151584fffc8SSebastian Siewior	select CRYPTO_BLKCIPHER
152b8a28251SLoc Ho	select CRYPTO_HASH
153584fffc8SSebastian Siewior	select CRYPTO_MANAGER
154254eff77SHuang Ying	select CRYPTO_WORKQUEUE
155584fffc8SSebastian Siewior	help
156584fffc8SSebastian Siewior	  This is a generic software asynchronous crypto daemon that
157584fffc8SSebastian Siewior	  converts an arbitrary synchronous software crypto algorithm
158584fffc8SSebastian Siewior	  into an asynchronous algorithm that executes in a kernel thread.
159584fffc8SSebastian Siewior
160584fffc8SSebastian Siewiorconfig CRYPTO_AUTHENC
161584fffc8SSebastian Siewior	tristate "Authenc support"
162584fffc8SSebastian Siewior	select CRYPTO_AEAD
163584fffc8SSebastian Siewior	select CRYPTO_BLKCIPHER
164584fffc8SSebastian Siewior	select CRYPTO_MANAGER
165584fffc8SSebastian Siewior	select CRYPTO_HASH
166584fffc8SSebastian Siewior	help
167584fffc8SSebastian Siewior	  Authenc: Combined mode wrapper for IPsec.
168584fffc8SSebastian Siewior	  This is required for IPSec.
169584fffc8SSebastian Siewior
170584fffc8SSebastian Siewiorconfig CRYPTO_TEST
171584fffc8SSebastian Siewior	tristate "Testing module"
172584fffc8SSebastian Siewior	depends on m
173da7f033dSHerbert Xu	select CRYPTO_MANAGER
174584fffc8SSebastian Siewior	help
175584fffc8SSebastian Siewior	  Quick & dirty crypto test module.
176584fffc8SSebastian Siewior
177ffaf9156SJussi Kivilinnaconfig CRYPTO_ABLK_HELPER_X86
178ffaf9156SJussi Kivilinna	tristate
179ffaf9156SJussi Kivilinna	depends on X86
180ffaf9156SJussi Kivilinna	select CRYPTO_CRYPTD
181ffaf9156SJussi Kivilinna
182596d8750SJussi Kivilinnaconfig CRYPTO_GLUE_HELPER_X86
183596d8750SJussi Kivilinna	tristate
184596d8750SJussi Kivilinna	depends on X86
185596d8750SJussi Kivilinna	select CRYPTO_ALGAPI
186596d8750SJussi Kivilinna
187584fffc8SSebastian Siewiorcomment "Authenticated Encryption with Associated Data"
188584fffc8SSebastian Siewior
189584fffc8SSebastian Siewiorconfig CRYPTO_CCM
190584fffc8SSebastian Siewior	tristate "CCM support"
191584fffc8SSebastian Siewior	select CRYPTO_CTR
192584fffc8SSebastian Siewior	select CRYPTO_AEAD
193584fffc8SSebastian Siewior	help
194584fffc8SSebastian Siewior	  Support for Counter with CBC MAC. Required for IPsec.
195584fffc8SSebastian Siewior
196584fffc8SSebastian Siewiorconfig CRYPTO_GCM
197584fffc8SSebastian Siewior	tristate "GCM/GMAC support"
198584fffc8SSebastian Siewior	select CRYPTO_CTR
199584fffc8SSebastian Siewior	select CRYPTO_AEAD
2009382d97aSHuang Ying	select CRYPTO_GHASH
2019489667dSJussi Kivilinna	select CRYPTO_NULL
202584fffc8SSebastian Siewior	help
203584fffc8SSebastian Siewior	  Support for Galois/Counter Mode (GCM) and Galois Message
204584fffc8SSebastian Siewior	  Authentication Code (GMAC). Required for IPSec.
205584fffc8SSebastian Siewior
206584fffc8SSebastian Siewiorconfig CRYPTO_SEQIV
207584fffc8SSebastian Siewior	tristate "Sequence Number IV Generator"
208584fffc8SSebastian Siewior	select CRYPTO_AEAD
209584fffc8SSebastian Siewior	select CRYPTO_BLKCIPHER
210a0f000ecSHerbert Xu	select CRYPTO_RNG
211584fffc8SSebastian Siewior	help
212584fffc8SSebastian Siewior	  This IV generator generates an IV based on a sequence number by
213584fffc8SSebastian Siewior	  xoring it with a salt.  This algorithm is mainly useful for CTR
214584fffc8SSebastian Siewior
215584fffc8SSebastian Siewiorcomment "Block modes"
216584fffc8SSebastian Siewior
217584fffc8SSebastian Siewiorconfig CRYPTO_CBC
218584fffc8SSebastian Siewior	tristate "CBC support"
219584fffc8SSebastian Siewior	select CRYPTO_BLKCIPHER
220584fffc8SSebastian Siewior	select CRYPTO_MANAGER
221584fffc8SSebastian Siewior	help
222584fffc8SSebastian Siewior	  CBC: Cipher Block Chaining mode
223584fffc8SSebastian Siewior	  This block cipher algorithm is required for IPSec.
224584fffc8SSebastian Siewior
225584fffc8SSebastian Siewiorconfig CRYPTO_CTR
226584fffc8SSebastian Siewior	tristate "CTR support"
227584fffc8SSebastian Siewior	select CRYPTO_BLKCIPHER
228584fffc8SSebastian Siewior	select CRYPTO_SEQIV
229584fffc8SSebastian Siewior	select CRYPTO_MANAGER
230584fffc8SSebastian Siewior	help
231584fffc8SSebastian Siewior	  CTR: Counter mode
232584fffc8SSebastian Siewior	  This block cipher algorithm is required for IPSec.
233584fffc8SSebastian Siewior
234584fffc8SSebastian Siewiorconfig CRYPTO_CTS
235584fffc8SSebastian Siewior	tristate "CTS support"
236584fffc8SSebastian Siewior	select CRYPTO_BLKCIPHER
237584fffc8SSebastian Siewior	help
238584fffc8SSebastian Siewior	  CTS: Cipher Text Stealing
239584fffc8SSebastian Siewior	  This is the Cipher Text Stealing mode as described by
240584fffc8SSebastian Siewior	  Section 8 of rfc2040 and referenced by rfc3962.
241584fffc8SSebastian Siewior	  (rfc3962 includes errata information in its Appendix A)
242584fffc8SSebastian Siewior	  This mode is required for Kerberos gss mechanism support
243584fffc8SSebastian Siewior	  for AES encryption.
244584fffc8SSebastian Siewior
245584fffc8SSebastian Siewiorconfig CRYPTO_ECB
246584fffc8SSebastian Siewior	tristate "ECB support"
247584fffc8SSebastian Siewior	select CRYPTO_BLKCIPHER
248584fffc8SSebastian Siewior	select CRYPTO_MANAGER
249584fffc8SSebastian Siewior	help
250584fffc8SSebastian Siewior	  ECB: Electronic CodeBook mode
251584fffc8SSebastian Siewior	  This is the simplest block cipher algorithm.  It simply encrypts
252584fffc8SSebastian Siewior	  the input block by block.
253584fffc8SSebastian Siewior
254584fffc8SSebastian Siewiorconfig CRYPTO_LRW
2552470a2b2SJussi Kivilinna	tristate "LRW support"
256584fffc8SSebastian Siewior	select CRYPTO_BLKCIPHER
257584fffc8SSebastian Siewior	select CRYPTO_MANAGER
258584fffc8SSebastian Siewior	select CRYPTO_GF128MUL
259584fffc8SSebastian Siewior	help
260584fffc8SSebastian Siewior	  LRW: Liskov Rivest Wagner, a tweakable, non malleable, non movable
261584fffc8SSebastian Siewior	  narrow block cipher mode for dm-crypt.  Use it with cipher
262584fffc8SSebastian Siewior	  specification string aes-lrw-benbi, the key must be 256, 320 or 384.
263584fffc8SSebastian Siewior	  The first 128, 192 or 256 bits in the key are used for AES and the
264584fffc8SSebastian Siewior	  rest is used to tie each cipher block to its logical position.
265584fffc8SSebastian Siewior
266584fffc8SSebastian Siewiorconfig CRYPTO_PCBC
267584fffc8SSebastian Siewior	tristate "PCBC support"
268584fffc8SSebastian Siewior	select CRYPTO_BLKCIPHER
269584fffc8SSebastian Siewior	select CRYPTO_MANAGER
270584fffc8SSebastian Siewior	help
271584fffc8SSebastian Siewior	  PCBC: Propagating Cipher Block Chaining mode
272584fffc8SSebastian Siewior	  This block cipher algorithm is required for RxRPC.
273584fffc8SSebastian Siewior
274584fffc8SSebastian Siewiorconfig CRYPTO_XTS
2755bcf8e6dSJussi Kivilinna	tristate "XTS support"
276584fffc8SSebastian Siewior	select CRYPTO_BLKCIPHER
277584fffc8SSebastian Siewior	select CRYPTO_MANAGER
278584fffc8SSebastian Siewior	select CRYPTO_GF128MUL
279584fffc8SSebastian Siewior	help
280584fffc8SSebastian Siewior	  XTS: IEEE1619/D16 narrow block cipher use with aes-xts-plain,
281584fffc8SSebastian Siewior	  key size 256, 384 or 512 bits. This implementation currently
282584fffc8SSebastian Siewior	  can't handle a sectorsize which is not a multiple of 16 bytes.
283584fffc8SSebastian Siewior
284584fffc8SSebastian Siewiorcomment "Hash modes"
285584fffc8SSebastian Siewior
286*93b5e86aSJussi Kivilinnaconfig CRYPTO_CMAC
287*93b5e86aSJussi Kivilinna	tristate "CMAC support"
288*93b5e86aSJussi Kivilinna	select CRYPTO_HASH
289*93b5e86aSJussi Kivilinna	select CRYPTO_MANAGER
290*93b5e86aSJussi Kivilinna	help
291*93b5e86aSJussi Kivilinna	  Cipher-based Message Authentication Code (CMAC) specified by
292*93b5e86aSJussi Kivilinna	  The National Institute of Standards and Technology (NIST).
293*93b5e86aSJussi Kivilinna
294*93b5e86aSJussi Kivilinna	  https://tools.ietf.org/html/rfc4493
295*93b5e86aSJussi Kivilinna	  http://csrc.nist.gov/publications/nistpubs/800-38B/SP_800-38B.pdf
296*93b5e86aSJussi Kivilinna
2971da177e4SLinus Torvaldsconfig CRYPTO_HMAC
2988425165dSHerbert Xu	tristate "HMAC support"
2990796ae06SHerbert Xu	select CRYPTO_HASH
30043518407SHerbert Xu	select CRYPTO_MANAGER
3011da177e4SLinus Torvalds	help
3021da177e4SLinus Torvalds	  HMAC: Keyed-Hashing for Message Authentication (RFC2104).
3031da177e4SLinus Torvalds	  This is required for IPSec.
3041da177e4SLinus Torvalds
305333b0d7eSKazunori MIYAZAWAconfig CRYPTO_XCBC
306333b0d7eSKazunori MIYAZAWA	tristate "XCBC support"
307333b0d7eSKazunori MIYAZAWA	select CRYPTO_HASH
308333b0d7eSKazunori MIYAZAWA	select CRYPTO_MANAGER
309333b0d7eSKazunori MIYAZAWA	help
310333b0d7eSKazunori MIYAZAWA	  XCBC: Keyed-Hashing with encryption algorithm
311333b0d7eSKazunori MIYAZAWA		http://www.ietf.org/rfc/rfc3566.txt
312333b0d7eSKazunori MIYAZAWA		http://csrc.nist.gov/encryption/modes/proposedmodes/
313333b0d7eSKazunori MIYAZAWA		 xcbc-mac/xcbc-mac-spec.pdf
314333b0d7eSKazunori MIYAZAWA
315f1939f7cSShane Wangconfig CRYPTO_VMAC
316f1939f7cSShane Wang	tristate "VMAC support"
317f1939f7cSShane Wang	select CRYPTO_HASH
318f1939f7cSShane Wang	select CRYPTO_MANAGER
319f1939f7cSShane Wang	help
320f1939f7cSShane Wang	  VMAC is a message authentication algorithm designed for
321f1939f7cSShane Wang	  very high speed on 64-bit architectures.
322f1939f7cSShane Wang
323f1939f7cSShane Wang	  See also:
324f1939f7cSShane Wang	  <http://fastcrypto.org/vmac>
325f1939f7cSShane Wang
326584fffc8SSebastian Siewiorcomment "Digest"
327584fffc8SSebastian Siewior
328584fffc8SSebastian Siewiorconfig CRYPTO_CRC32C
329584fffc8SSebastian Siewior	tristate "CRC32c CRC algorithm"
3305773a3e6SHerbert Xu	select CRYPTO_HASH
3316a0962b2SDarrick J. Wong	select CRC32
3321da177e4SLinus Torvalds	help
333584fffc8SSebastian Siewior	  Castagnoli, et al Cyclic Redundancy-Check Algorithm.  Used
334584fffc8SSebastian Siewior	  by iSCSI for header and data digests and by others.
33569c35efcSHerbert Xu	  See Castagnoli93.  Module will be crc32c.
3361da177e4SLinus Torvalds
3378cb51ba8SAustin Zhangconfig CRYPTO_CRC32C_INTEL
3388cb51ba8SAustin Zhang	tristate "CRC32c INTEL hardware acceleration"
3398cb51ba8SAustin Zhang	depends on X86
3408cb51ba8SAustin Zhang	select CRYPTO_HASH
3418cb51ba8SAustin Zhang	help
3428cb51ba8SAustin Zhang	  In Intel processor with SSE4.2 supported, the processor will
3438cb51ba8SAustin Zhang	  support CRC32C implementation using hardware accelerated CRC32
3448cb51ba8SAustin Zhang	  instruction. This option will create 'crc32c-intel' module,
3458cb51ba8SAustin Zhang	  which will enable any routine to use the CRC32 instruction to
3468cb51ba8SAustin Zhang	  gain performance compared with software implementation.
3478cb51ba8SAustin Zhang	  Module will be crc32c-intel.
3488cb51ba8SAustin Zhang
349442a7c40SDavid S. Millerconfig CRYPTO_CRC32C_SPARC64
350442a7c40SDavid S. Miller	tristate "CRC32c CRC algorithm (SPARC64)"
351442a7c40SDavid S. Miller	depends on SPARC64
352442a7c40SDavid S. Miller	select CRYPTO_HASH
353442a7c40SDavid S. Miller	select CRC32
354442a7c40SDavid S. Miller	help
355442a7c40SDavid S. Miller	  CRC32c CRC algorithm implemented using sparc64 crypto instructions,
356442a7c40SDavid S. Miller	  when available.
357442a7c40SDavid S. Miller
35878c37d19SAlexander Boykoconfig CRYPTO_CRC32
35978c37d19SAlexander Boyko	tristate "CRC32 CRC algorithm"
36078c37d19SAlexander Boyko	select CRYPTO_HASH
36178c37d19SAlexander Boyko	select CRC32
36278c37d19SAlexander Boyko	help
36378c37d19SAlexander Boyko	  CRC-32-IEEE 802.3 cyclic redundancy-check algorithm.
36478c37d19SAlexander Boyko	  Shash crypto api wrappers to crc32_le function.
36578c37d19SAlexander Boyko
36678c37d19SAlexander Boykoconfig CRYPTO_CRC32_PCLMUL
36778c37d19SAlexander Boyko	tristate "CRC32 PCLMULQDQ hardware acceleration"
36878c37d19SAlexander Boyko	depends on X86
36978c37d19SAlexander Boyko	select CRYPTO_HASH
37078c37d19SAlexander Boyko	select CRC32
37178c37d19SAlexander Boyko	help
37278c37d19SAlexander Boyko	  From Intel Westmere and AMD Bulldozer processor with SSE4.2
37378c37d19SAlexander Boyko	  and PCLMULQDQ supported, the processor will support
37478c37d19SAlexander Boyko	  CRC32 PCLMULQDQ implementation using hardware accelerated PCLMULQDQ
37578c37d19SAlexander Boyko	  instruction. This option will create 'crc32-plcmul' module,
37678c37d19SAlexander Boyko	  which will enable any routine to use the CRC-32-IEEE 802.3 checksum
37778c37d19SAlexander Boyko	  and gain better performance as compared with the table implementation.
37878c37d19SAlexander Boyko
3792cdc6899SHuang Yingconfig CRYPTO_GHASH
3802cdc6899SHuang Ying	tristate "GHASH digest algorithm"
3812cdc6899SHuang Ying	select CRYPTO_GF128MUL
3822cdc6899SHuang Ying	help
3832cdc6899SHuang Ying	  GHASH is message digest algorithm for GCM (Galois/Counter Mode).
3842cdc6899SHuang Ying
3851da177e4SLinus Torvaldsconfig CRYPTO_MD4
3861da177e4SLinus Torvalds	tristate "MD4 digest algorithm"
387808a1763SAdrian-Ken Rueegsegger	select CRYPTO_HASH
3881da177e4SLinus Torvalds	help
3891da177e4SLinus Torvalds	  MD4 message digest algorithm (RFC1320).
3901da177e4SLinus Torvalds
3911da177e4SLinus Torvaldsconfig CRYPTO_MD5
3921da177e4SLinus Torvalds	tristate "MD5 digest algorithm"
39314b75ba7SAdrian-Ken Rueegsegger	select CRYPTO_HASH
3941da177e4SLinus Torvalds	help
3951da177e4SLinus Torvalds	  MD5 message digest algorithm (RFC1321).
3961da177e4SLinus Torvalds
397fa4dfedcSDavid S. Millerconfig CRYPTO_MD5_SPARC64
398fa4dfedcSDavid S. Miller	tristate "MD5 digest algorithm (SPARC64)"
399fa4dfedcSDavid S. Miller	depends on SPARC64
400fa4dfedcSDavid S. Miller	select CRYPTO_MD5
401fa4dfedcSDavid S. Miller	select CRYPTO_HASH
402fa4dfedcSDavid S. Miller	help
403fa4dfedcSDavid S. Miller	  MD5 message digest algorithm (RFC1321) implemented
404fa4dfedcSDavid S. Miller	  using sparc64 crypto instructions, when available.
405fa4dfedcSDavid S. Miller
406584fffc8SSebastian Siewiorconfig CRYPTO_MICHAEL_MIC
407584fffc8SSebastian Siewior	tristate "Michael MIC keyed digest algorithm"
40819e2bf14SAdrian-Ken Rueegsegger	select CRYPTO_HASH
409584fffc8SSebastian Siewior	help
410584fffc8SSebastian Siewior	  Michael MIC is used for message integrity protection in TKIP
411584fffc8SSebastian Siewior	  (IEEE 802.11i). This algorithm is required for TKIP, but it
412584fffc8SSebastian Siewior	  should not be used for other purposes because of the weakness
413584fffc8SSebastian Siewior	  of the algorithm.
414584fffc8SSebastian Siewior
41582798f90SAdrian-Ken Rueegseggerconfig CRYPTO_RMD128
41682798f90SAdrian-Ken Rueegsegger	tristate "RIPEMD-128 digest algorithm"
4177c4468bcSHerbert Xu	select CRYPTO_HASH
41882798f90SAdrian-Ken Rueegsegger	help
41982798f90SAdrian-Ken Rueegsegger	  RIPEMD-128 (ISO/IEC 10118-3:2004).
42082798f90SAdrian-Ken Rueegsegger
42182798f90SAdrian-Ken Rueegsegger	  RIPEMD-128 is a 128-bit cryptographic hash function. It should only
42235ed4b35SMichael Witten	  be used as a secure replacement for RIPEMD. For other use cases,
42382798f90SAdrian-Ken Rueegsegger	  RIPEMD-160 should be used.
42482798f90SAdrian-Ken Rueegsegger
42582798f90SAdrian-Ken Rueegsegger	  Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
4266d8de74cSJustin P. Mattock	  See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
42782798f90SAdrian-Ken Rueegsegger
42882798f90SAdrian-Ken Rueegseggerconfig CRYPTO_RMD160
42982798f90SAdrian-Ken Rueegsegger	tristate "RIPEMD-160 digest algorithm"
430e5835fbaSHerbert Xu	select CRYPTO_HASH
43182798f90SAdrian-Ken Rueegsegger	help
43282798f90SAdrian-Ken Rueegsegger	  RIPEMD-160 (ISO/IEC 10118-3:2004).
43382798f90SAdrian-Ken Rueegsegger
43482798f90SAdrian-Ken Rueegsegger	  RIPEMD-160 is a 160-bit cryptographic hash function. It is intended
43582798f90SAdrian-Ken Rueegsegger	  to be used as a secure replacement for the 128-bit hash functions
436b6d44341SAdrian Bunk	  MD4, MD5 and it's predecessor RIPEMD
437b6d44341SAdrian Bunk	  (not to be confused with RIPEMD-128).
43882798f90SAdrian-Ken Rueegsegger
439b6d44341SAdrian Bunk	  It's speed is comparable to SHA1 and there are no known attacks
440b6d44341SAdrian Bunk	  against RIPEMD-160.
441534fe2c1SAdrian-Ken Rueegsegger
442534fe2c1SAdrian-Ken Rueegsegger	  Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
4436d8de74cSJustin P. Mattock	  See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
444534fe2c1SAdrian-Ken Rueegsegger
445534fe2c1SAdrian-Ken Rueegseggerconfig CRYPTO_RMD256
446534fe2c1SAdrian-Ken Rueegsegger	tristate "RIPEMD-256 digest algorithm"
447d8a5e2e9SHerbert Xu	select CRYPTO_HASH
448534fe2c1SAdrian-Ken Rueegsegger	help
449b6d44341SAdrian Bunk	  RIPEMD-256 is an optional extension of RIPEMD-128 with a
450b6d44341SAdrian Bunk	  256 bit hash. It is intended for applications that require
451b6d44341SAdrian Bunk	  longer hash-results, without needing a larger security level
452b6d44341SAdrian Bunk	  (than RIPEMD-128).
453534fe2c1SAdrian-Ken Rueegsegger
454534fe2c1SAdrian-Ken Rueegsegger	  Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
4556d8de74cSJustin P. Mattock	  See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
456534fe2c1SAdrian-Ken Rueegsegger
457534fe2c1SAdrian-Ken Rueegseggerconfig CRYPTO_RMD320
458534fe2c1SAdrian-Ken Rueegsegger	tristate "RIPEMD-320 digest algorithm"
4593b8efb4cSHerbert Xu	select CRYPTO_HASH
460534fe2c1SAdrian-Ken Rueegsegger	help
461b6d44341SAdrian Bunk	  RIPEMD-320 is an optional extension of RIPEMD-160 with a
462b6d44341SAdrian Bunk	  320 bit hash. It is intended for applications that require
463b6d44341SAdrian Bunk	  longer hash-results, without needing a larger security level
464b6d44341SAdrian Bunk	  (than RIPEMD-160).
465534fe2c1SAdrian-Ken Rueegsegger
46682798f90SAdrian-Ken Rueegsegger	  Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
4676d8de74cSJustin P. Mattock	  See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
46882798f90SAdrian-Ken Rueegsegger
4691da177e4SLinus Torvaldsconfig CRYPTO_SHA1
4701da177e4SLinus Torvalds	tristate "SHA1 digest algorithm"
47154ccb367SAdrian-Ken Rueegsegger	select CRYPTO_HASH
4721da177e4SLinus Torvalds	help
4731da177e4SLinus Torvalds	  SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
4741da177e4SLinus Torvalds
47566be8951SMathias Krauseconfig CRYPTO_SHA1_SSSE3
47666be8951SMathias Krause	tristate "SHA1 digest algorithm (SSSE3/AVX)"
47766be8951SMathias Krause	depends on X86 && 64BIT
47866be8951SMathias Krause	select CRYPTO_SHA1
47966be8951SMathias Krause	select CRYPTO_HASH
48066be8951SMathias Krause	help
48166be8951SMathias Krause	  SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
48266be8951SMathias Krause	  using Supplemental SSE3 (SSSE3) instructions or Advanced Vector
48366be8951SMathias Krause	  Extensions (AVX), when available.
48466be8951SMathias Krause
4858275d1aaSTim Chenconfig CRYPTO_SHA256_SSSE3
4868275d1aaSTim Chen	tristate "SHA256 digest algorithm (SSSE3/AVX/AVX2)"
4878275d1aaSTim Chen	depends on X86 && 64BIT
4888275d1aaSTim Chen	select CRYPTO_SHA256
4898275d1aaSTim Chen	select CRYPTO_HASH
4908275d1aaSTim Chen	help
4918275d1aaSTim Chen	  SHA-256 secure hash standard (DFIPS 180-2) implemented
4928275d1aaSTim Chen	  using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
4938275d1aaSTim Chen	  Extensions version 1 (AVX1), or Advanced Vector Extensions
4948275d1aaSTim Chen	  version 2 (AVX2) instructions, when available.
4958275d1aaSTim Chen
49687de4579STim Chenconfig CRYPTO_SHA512_SSSE3
49787de4579STim Chen	tristate "SHA512 digest algorithm (SSSE3/AVX/AVX2)"
49887de4579STim Chen	depends on X86 && 64BIT
49987de4579STim Chen	select CRYPTO_SHA512
50087de4579STim Chen	select CRYPTO_HASH
50187de4579STim Chen	help
50287de4579STim Chen	  SHA-512 secure hash standard (DFIPS 180-2) implemented
50387de4579STim Chen	  using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
50487de4579STim Chen	  Extensions version 1 (AVX1), or Advanced Vector Extensions
50587de4579STim Chen	  version 2 (AVX2) instructions, when available.
50687de4579STim Chen
5074ff28d4cSDavid S. Millerconfig CRYPTO_SHA1_SPARC64
5084ff28d4cSDavid S. Miller	tristate "SHA1 digest algorithm (SPARC64)"
5094ff28d4cSDavid S. Miller	depends on SPARC64
5104ff28d4cSDavid S. Miller	select CRYPTO_SHA1
5114ff28d4cSDavid S. Miller	select CRYPTO_HASH
5124ff28d4cSDavid S. Miller	help
5134ff28d4cSDavid S. Miller	  SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
5144ff28d4cSDavid S. Miller	  using sparc64 crypto instructions, when available.
5154ff28d4cSDavid S. Miller
516f0be44f4SDavid McCulloughconfig CRYPTO_SHA1_ARM
517f0be44f4SDavid McCullough	tristate "SHA1 digest algorithm (ARM-asm)"
518f0be44f4SDavid McCullough	depends on ARM
519f0be44f4SDavid McCullough	select CRYPTO_SHA1
520f0be44f4SDavid McCullough	select CRYPTO_HASH
521f0be44f4SDavid McCullough	help
522f0be44f4SDavid McCullough	  SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
523f0be44f4SDavid McCullough	  using optimized ARM assembler.
524f0be44f4SDavid McCullough
525323a6bf1SMichael Ellermanconfig CRYPTO_SHA1_PPC
526323a6bf1SMichael Ellerman	tristate "SHA1 digest algorithm (powerpc)"
527323a6bf1SMichael Ellerman	depends on PPC
528323a6bf1SMichael Ellerman	help
529323a6bf1SMichael Ellerman	  This is the powerpc hardware accelerated implementation of the
530323a6bf1SMichael Ellerman	  SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
531323a6bf1SMichael Ellerman
5321da177e4SLinus Torvaldsconfig CRYPTO_SHA256
533cd12fb90SJonathan Lynch	tristate "SHA224 and SHA256 digest algorithm"
53450e109b5SAdrian-Ken Rueegsegger	select CRYPTO_HASH
5351da177e4SLinus Torvalds	help
5361da177e4SLinus Torvalds	  SHA256 secure hash standard (DFIPS 180-2).
5371da177e4SLinus Torvalds
5381da177e4SLinus Torvalds	  This version of SHA implements a 256 bit hash with 128 bits of
5391da177e4SLinus Torvalds	  security against collision attacks.
5401da177e4SLinus Torvalds
541cd12fb90SJonathan Lynch	  This code also includes SHA-224, a 224 bit hash with 112 bits
542cd12fb90SJonathan Lynch	  of security against collision attacks.
543cd12fb90SJonathan Lynch
54486c93b24SDavid S. Millerconfig CRYPTO_SHA256_SPARC64
54586c93b24SDavid S. Miller	tristate "SHA224 and SHA256 digest algorithm (SPARC64)"
54686c93b24SDavid S. Miller	depends on SPARC64
54786c93b24SDavid S. Miller	select CRYPTO_SHA256
54886c93b24SDavid S. Miller	select CRYPTO_HASH
54986c93b24SDavid S. Miller	help
55086c93b24SDavid S. Miller	  SHA-256 secure hash standard (DFIPS 180-2) implemented
55186c93b24SDavid S. Miller	  using sparc64 crypto instructions, when available.
55286c93b24SDavid S. Miller
5531da177e4SLinus Torvaldsconfig CRYPTO_SHA512
5541da177e4SLinus Torvalds	tristate "SHA384 and SHA512 digest algorithms"
555bd9d20dbSAdrian-Ken Rueegsegger	select CRYPTO_HASH
5561da177e4SLinus Torvalds	help
5571da177e4SLinus Torvalds	  SHA512 secure hash standard (DFIPS 180-2).
5581da177e4SLinus Torvalds
5591da177e4SLinus Torvalds	  This version of SHA implements a 512 bit hash with 256 bits of
5601da177e4SLinus Torvalds	  security against collision attacks.
5611da177e4SLinus Torvalds
5621da177e4SLinus Torvalds	  This code also includes SHA-384, a 384 bit hash with 192 bits
5631da177e4SLinus Torvalds	  of security against collision attacks.
5641da177e4SLinus Torvalds
565775e0c69SDavid S. Millerconfig CRYPTO_SHA512_SPARC64
566775e0c69SDavid S. Miller	tristate "SHA384 and SHA512 digest algorithm (SPARC64)"
567775e0c69SDavid S. Miller	depends on SPARC64
568775e0c69SDavid S. Miller	select CRYPTO_SHA512
569775e0c69SDavid S. Miller	select CRYPTO_HASH
570775e0c69SDavid S. Miller	help
571775e0c69SDavid S. Miller	  SHA-512 secure hash standard (DFIPS 180-2) implemented
572775e0c69SDavid S. Miller	  using sparc64 crypto instructions, when available.
573775e0c69SDavid S. Miller
5741da177e4SLinus Torvaldsconfig CRYPTO_TGR192
5751da177e4SLinus Torvalds	tristate "Tiger digest algorithms"
576f63fbd3dSAdrian-Ken Rueegsegger	select CRYPTO_HASH
5771da177e4SLinus Torvalds	help
5781da177e4SLinus Torvalds	  Tiger hash algorithm 192, 160 and 128-bit hashes
5791da177e4SLinus Torvalds
5801da177e4SLinus Torvalds	  Tiger is a hash function optimized for 64-bit processors while
5811da177e4SLinus Torvalds	  still having decent performance on 32-bit processors.
5821da177e4SLinus Torvalds	  Tiger was developed by Ross Anderson and Eli Biham.
5831da177e4SLinus Torvalds
5841da177e4SLinus Torvalds	  See also:
5851da177e4SLinus Torvalds	  <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>.
5861da177e4SLinus Torvalds
587584fffc8SSebastian Siewiorconfig CRYPTO_WP512
588584fffc8SSebastian Siewior	tristate "Whirlpool digest algorithms"
5894946510bSAdrian-Ken Rueegsegger	select CRYPTO_HASH
5901da177e4SLinus Torvalds	help
591584fffc8SSebastian Siewior	  Whirlpool hash algorithm 512, 384 and 256-bit hashes
5921da177e4SLinus Torvalds
593584fffc8SSebastian Siewior	  Whirlpool-512 is part of the NESSIE cryptographic primitives.
594584fffc8SSebastian Siewior	  Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard
5951da177e4SLinus Torvalds
5961da177e4SLinus Torvalds	  See also:
5976d8de74cSJustin P. Mattock	  <http://www.larc.usp.br/~pbarreto/WhirlpoolPage.html>
5981da177e4SLinus Torvalds
5990e1227d3SHuang Yingconfig CRYPTO_GHASH_CLMUL_NI_INTEL
6000e1227d3SHuang Ying	tristate "GHASH digest algorithm (CLMUL-NI accelerated)"
6018af00860SRichard Weinberger	depends on X86 && 64BIT
6020e1227d3SHuang Ying	select CRYPTO_CRYPTD
6030e1227d3SHuang Ying	help
6040e1227d3SHuang Ying	  GHASH is message digest algorithm for GCM (Galois/Counter Mode).
6050e1227d3SHuang Ying	  The implementation is accelerated by CLMUL-NI of Intel.
6060e1227d3SHuang Ying
607584fffc8SSebastian Siewiorcomment "Ciphers"
6081da177e4SLinus Torvalds
6091da177e4SLinus Torvaldsconfig CRYPTO_AES
6101da177e4SLinus Torvalds	tristate "AES cipher algorithms"
611cce9e06dSHerbert Xu	select CRYPTO_ALGAPI
6121da177e4SLinus Torvalds	help
6131da177e4SLinus Torvalds	  AES cipher algorithms (FIPS-197). AES uses the Rijndael
6141da177e4SLinus Torvalds	  algorithm.
6151da177e4SLinus Torvalds
6161da177e4SLinus Torvalds	  Rijndael appears to be consistently a very good performer in
6171da177e4SLinus Torvalds	  both hardware and software across a wide range of computing
6181da177e4SLinus Torvalds	  environments regardless of its use in feedback or non-feedback
6191da177e4SLinus Torvalds	  modes. Its key setup time is excellent, and its key agility is
6201da177e4SLinus Torvalds	  good. Rijndael's very low memory requirements make it very well
6211da177e4SLinus Torvalds	  suited for restricted-space environments, in which it also
6221da177e4SLinus Torvalds	  demonstrates excellent performance. Rijndael's operations are
6231da177e4SLinus Torvalds	  among the easiest to defend against power and timing attacks.
6241da177e4SLinus Torvalds
6251da177e4SLinus Torvalds	  The AES specifies three key sizes: 128, 192 and 256 bits
6261da177e4SLinus Torvalds
6271da177e4SLinus Torvalds	  See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information.
6281da177e4SLinus Torvalds
6291da177e4SLinus Torvaldsconfig CRYPTO_AES_586
6301da177e4SLinus Torvalds	tristate "AES cipher algorithms (i586)"
631cce9e06dSHerbert Xu	depends on (X86 || UML_X86) && !64BIT
632cce9e06dSHerbert Xu	select CRYPTO_ALGAPI
6335157dea8SSebastian Siewior	select CRYPTO_AES
6341da177e4SLinus Torvalds	help
6351da177e4SLinus Torvalds	  AES cipher algorithms (FIPS-197). AES uses the Rijndael
6361da177e4SLinus Torvalds	  algorithm.
6371da177e4SLinus Torvalds
6381da177e4SLinus Torvalds	  Rijndael appears to be consistently a very good performer in
6391da177e4SLinus Torvalds	  both hardware and software across a wide range of computing
6401da177e4SLinus Torvalds	  environments regardless of its use in feedback or non-feedback
6411da177e4SLinus Torvalds	  modes. Its key setup time is excellent, and its key agility is
6421da177e4SLinus Torvalds	  good. Rijndael's very low memory requirements make it very well
6431da177e4SLinus Torvalds	  suited for restricted-space environments, in which it also
6441da177e4SLinus Torvalds	  demonstrates excellent performance. Rijndael's operations are
6451da177e4SLinus Torvalds	  among the easiest to defend against power and timing attacks.
6461da177e4SLinus Torvalds
6471da177e4SLinus Torvalds	  The AES specifies three key sizes: 128, 192 and 256 bits
6481da177e4SLinus Torvalds
6491da177e4SLinus Torvalds	  See <http://csrc.nist.gov/encryption/aes/> for more information.
6501da177e4SLinus Torvalds
651a2a892a2SAndreas Steinmetzconfig CRYPTO_AES_X86_64
652a2a892a2SAndreas Steinmetz	tristate "AES cipher algorithms (x86_64)"
653cce9e06dSHerbert Xu	depends on (X86 || UML_X86) && 64BIT
654cce9e06dSHerbert Xu	select CRYPTO_ALGAPI
65581190b32SSebastian Siewior	select CRYPTO_AES
656a2a892a2SAndreas Steinmetz	help
657a2a892a2SAndreas Steinmetz	  AES cipher algorithms (FIPS-197). AES uses the Rijndael
658a2a892a2SAndreas Steinmetz	  algorithm.
659a2a892a2SAndreas Steinmetz
660a2a892a2SAndreas Steinmetz	  Rijndael appears to be consistently a very good performer in
661a2a892a2SAndreas Steinmetz	  both hardware and software across a wide range of computing
662a2a892a2SAndreas Steinmetz	  environments regardless of its use in feedback or non-feedback
663a2a892a2SAndreas Steinmetz	  modes. Its key setup time is excellent, and its key agility is
664a2a892a2SAndreas Steinmetz	  good. Rijndael's very low memory requirements make it very well
665a2a892a2SAndreas Steinmetz	  suited for restricted-space environments, in which it also
666a2a892a2SAndreas Steinmetz	  demonstrates excellent performance. Rijndael's operations are
667a2a892a2SAndreas Steinmetz	  among the easiest to defend against power and timing attacks.
668a2a892a2SAndreas Steinmetz
669a2a892a2SAndreas Steinmetz	  The AES specifies three key sizes: 128, 192 and 256 bits
670a2a892a2SAndreas Steinmetz
671a2a892a2SAndreas Steinmetz	  See <http://csrc.nist.gov/encryption/aes/> for more information.
672a2a892a2SAndreas Steinmetz
67354b6a1bdSHuang Yingconfig CRYPTO_AES_NI_INTEL
67454b6a1bdSHuang Ying	tristate "AES cipher algorithms (AES-NI)"
6758af00860SRichard Weinberger	depends on X86
6760d258efbSMathias Krause	select CRYPTO_AES_X86_64 if 64BIT
6770d258efbSMathias Krause	select CRYPTO_AES_586 if !64BIT
67854b6a1bdSHuang Ying	select CRYPTO_CRYPTD
679a9629d71SJussi Kivilinna	select CRYPTO_ABLK_HELPER_X86
68054b6a1bdSHuang Ying	select CRYPTO_ALGAPI
681023af608SJussi Kivilinna	select CRYPTO_LRW
682023af608SJussi Kivilinna	select CRYPTO_XTS
68354b6a1bdSHuang Ying	help
68454b6a1bdSHuang Ying	  Use Intel AES-NI instructions for AES algorithm.
68554b6a1bdSHuang Ying
68654b6a1bdSHuang Ying	  AES cipher algorithms (FIPS-197). AES uses the Rijndael
68754b6a1bdSHuang Ying	  algorithm.
68854b6a1bdSHuang Ying
68954b6a1bdSHuang Ying	  Rijndael appears to be consistently a very good performer in
69054b6a1bdSHuang Ying	  both hardware and software across a wide range of computing
69154b6a1bdSHuang Ying	  environments regardless of its use in feedback or non-feedback
69254b6a1bdSHuang Ying	  modes. Its key setup time is excellent, and its key agility is
69354b6a1bdSHuang Ying	  good. Rijndael's very low memory requirements make it very well
69454b6a1bdSHuang Ying	  suited for restricted-space environments, in which it also
69554b6a1bdSHuang Ying	  demonstrates excellent performance. Rijndael's operations are
69654b6a1bdSHuang Ying	  among the easiest to defend against power and timing attacks.
69754b6a1bdSHuang Ying
69854b6a1bdSHuang Ying	  The AES specifies three key sizes: 128, 192 and 256 bits
69954b6a1bdSHuang Ying
70054b6a1bdSHuang Ying	  See <http://csrc.nist.gov/encryption/aes/> for more information.
70154b6a1bdSHuang Ying
7020d258efbSMathias Krause	  In addition to AES cipher algorithm support, the acceleration
7030d258efbSMathias Krause	  for some popular block cipher mode is supported too, including
7040d258efbSMathias Krause	  ECB, CBC, LRW, PCBC, XTS. The 64 bit version has additional
7050d258efbSMathias Krause	  acceleration for CTR.
7062cf4ac8bSHuang Ying
7079bf4852dSDavid S. Millerconfig CRYPTO_AES_SPARC64
7089bf4852dSDavid S. Miller	tristate "AES cipher algorithms (SPARC64)"
7099bf4852dSDavid S. Miller	depends on SPARC64
7109bf4852dSDavid S. Miller	select CRYPTO_CRYPTD
7119bf4852dSDavid S. Miller	select CRYPTO_ALGAPI
7129bf4852dSDavid S. Miller	help
7139bf4852dSDavid S. Miller	  Use SPARC64 crypto opcodes for AES algorithm.
7149bf4852dSDavid S. Miller
7159bf4852dSDavid S. Miller	  AES cipher algorithms (FIPS-197). AES uses the Rijndael
7169bf4852dSDavid S. Miller	  algorithm.
7179bf4852dSDavid S. Miller
7189bf4852dSDavid S. Miller	  Rijndael appears to be consistently a very good performer in
7199bf4852dSDavid S. Miller	  both hardware and software across a wide range of computing
7209bf4852dSDavid S. Miller	  environments regardless of its use in feedback or non-feedback
7219bf4852dSDavid S. Miller	  modes. Its key setup time is excellent, and its key agility is
7229bf4852dSDavid S. Miller	  good. Rijndael's very low memory requirements make it very well
7239bf4852dSDavid S. Miller	  suited for restricted-space environments, in which it also
7249bf4852dSDavid S. Miller	  demonstrates excellent performance. Rijndael's operations are
7259bf4852dSDavid S. Miller	  among the easiest to defend against power and timing attacks.
7269bf4852dSDavid S. Miller
7279bf4852dSDavid S. Miller	  The AES specifies three key sizes: 128, 192 and 256 bits
7289bf4852dSDavid S. Miller
7299bf4852dSDavid S. Miller	  See <http://csrc.nist.gov/encryption/aes/> for more information.
7309bf4852dSDavid S. Miller
7319bf4852dSDavid S. Miller	  In addition to AES cipher algorithm support, the acceleration
7329bf4852dSDavid S. Miller	  for some popular block cipher mode is supported too, including
7339bf4852dSDavid S. Miller	  ECB and CBC.
7349bf4852dSDavid S. Miller
735f0be44f4SDavid McCulloughconfig CRYPTO_AES_ARM
736f0be44f4SDavid McCullough	tristate "AES cipher algorithms (ARM-asm)"
737f0be44f4SDavid McCullough	depends on ARM
738f0be44f4SDavid McCullough	select CRYPTO_ALGAPI
739f0be44f4SDavid McCullough	select CRYPTO_AES
740f0be44f4SDavid McCullough	help
741f0be44f4SDavid McCullough	  Use optimized AES assembler routines for ARM platforms.
742f0be44f4SDavid McCullough
743f0be44f4SDavid McCullough	  AES cipher algorithms (FIPS-197). AES uses the Rijndael
744f0be44f4SDavid McCullough	  algorithm.
745f0be44f4SDavid McCullough
746f0be44f4SDavid McCullough	  Rijndael appears to be consistently a very good performer in
747f0be44f4SDavid McCullough	  both hardware and software across a wide range of computing
748f0be44f4SDavid McCullough	  environments regardless of its use in feedback or non-feedback
749f0be44f4SDavid McCullough	  modes. Its key setup time is excellent, and its key agility is
750f0be44f4SDavid McCullough	  good. Rijndael's very low memory requirements make it very well
751f0be44f4SDavid McCullough	  suited for restricted-space environments, in which it also
752f0be44f4SDavid McCullough	  demonstrates excellent performance. Rijndael's operations are
753f0be44f4SDavid McCullough	  among the easiest to defend against power and timing attacks.
754f0be44f4SDavid McCullough
755f0be44f4SDavid McCullough	  The AES specifies three key sizes: 128, 192 and 256 bits
756f0be44f4SDavid McCullough
757f0be44f4SDavid McCullough	  See <http://csrc.nist.gov/encryption/aes/> for more information.
758f0be44f4SDavid McCullough
7591da177e4SLinus Torvaldsconfig CRYPTO_ANUBIS
7601da177e4SLinus Torvalds	tristate "Anubis cipher algorithm"
761cce9e06dSHerbert Xu	select CRYPTO_ALGAPI
7621da177e4SLinus Torvalds	help
7631da177e4SLinus Torvalds	  Anubis cipher algorithm.
7641da177e4SLinus Torvalds
7651da177e4SLinus Torvalds	  Anubis is a variable key length cipher which can use keys from
7661da177e4SLinus Torvalds	  128 bits to 320 bits in length.  It was evaluated as a entrant
7671da177e4SLinus Torvalds	  in the NESSIE competition.
7681da177e4SLinus Torvalds
7691da177e4SLinus Torvalds	  See also:
7706d8de74cSJustin P. Mattock	  <https://www.cosic.esat.kuleuven.be/nessie/reports/>
7716d8de74cSJustin P. Mattock	  <http://www.larc.usp.br/~pbarreto/AnubisPage.html>
7721da177e4SLinus Torvalds
773584fffc8SSebastian Siewiorconfig CRYPTO_ARC4
774584fffc8SSebastian Siewior	tristate "ARC4 cipher algorithm"
775b9b0f080SSebastian Andrzej Siewior	select CRYPTO_BLKCIPHER
776e2ee95b8SHye-Shik Chang	help
777584fffc8SSebastian Siewior	  ARC4 cipher algorithm.
778e2ee95b8SHye-Shik Chang
779584fffc8SSebastian Siewior	  ARC4 is a stream cipher using keys ranging from 8 bits to 2048
780584fffc8SSebastian Siewior	  bits in length.  This algorithm is required for driver-based
781584fffc8SSebastian Siewior	  WEP, but it should not be for other purposes because of the
782584fffc8SSebastian Siewior	  weakness of the algorithm.
783584fffc8SSebastian Siewior
784584fffc8SSebastian Siewiorconfig CRYPTO_BLOWFISH
785584fffc8SSebastian Siewior	tristate "Blowfish cipher algorithm"
786584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
78752ba867cSJussi Kivilinna	select CRYPTO_BLOWFISH_COMMON
788584fffc8SSebastian Siewior	help
789584fffc8SSebastian Siewior	  Blowfish cipher algorithm, by Bruce Schneier.
790584fffc8SSebastian Siewior
791584fffc8SSebastian Siewior	  This is a variable key length cipher which can use keys from 32
792584fffc8SSebastian Siewior	  bits to 448 bits in length.  It's fast, simple and specifically
793584fffc8SSebastian Siewior	  designed for use on "large microprocessors".
794e2ee95b8SHye-Shik Chang
795e2ee95b8SHye-Shik Chang	  See also:
796584fffc8SSebastian Siewior	  <http://www.schneier.com/blowfish.html>
797584fffc8SSebastian Siewior
79852ba867cSJussi Kivilinnaconfig CRYPTO_BLOWFISH_COMMON
79952ba867cSJussi Kivilinna	tristate
80052ba867cSJussi Kivilinna	help
80152ba867cSJussi Kivilinna	  Common parts of the Blowfish cipher algorithm shared by the
80252ba867cSJussi Kivilinna	  generic c and the assembler implementations.
80352ba867cSJussi Kivilinna
80452ba867cSJussi Kivilinna	  See also:
80552ba867cSJussi Kivilinna	  <http://www.schneier.com/blowfish.html>
80652ba867cSJussi Kivilinna
80764b94ceaSJussi Kivilinnaconfig CRYPTO_BLOWFISH_X86_64
80864b94ceaSJussi Kivilinna	tristate "Blowfish cipher algorithm (x86_64)"
809f21a7c19SAl Viro	depends on X86 && 64BIT
81064b94ceaSJussi Kivilinna	select CRYPTO_ALGAPI
81164b94ceaSJussi Kivilinna	select CRYPTO_BLOWFISH_COMMON
81264b94ceaSJussi Kivilinna	help
81364b94ceaSJussi Kivilinna	  Blowfish cipher algorithm (x86_64), by Bruce Schneier.
81464b94ceaSJussi Kivilinna
81564b94ceaSJussi Kivilinna	  This is a variable key length cipher which can use keys from 32
81664b94ceaSJussi Kivilinna	  bits to 448 bits in length.  It's fast, simple and specifically
81764b94ceaSJussi Kivilinna	  designed for use on "large microprocessors".
81864b94ceaSJussi Kivilinna
81964b94ceaSJussi Kivilinna	  See also:
82064b94ceaSJussi Kivilinna	  <http://www.schneier.com/blowfish.html>
82164b94ceaSJussi Kivilinna
822584fffc8SSebastian Siewiorconfig CRYPTO_CAMELLIA
823584fffc8SSebastian Siewior	tristate "Camellia cipher algorithms"
824584fffc8SSebastian Siewior	depends on CRYPTO
825584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
826584fffc8SSebastian Siewior	help
827584fffc8SSebastian Siewior	  Camellia cipher algorithms module.
828584fffc8SSebastian Siewior
829584fffc8SSebastian Siewior	  Camellia is a symmetric key block cipher developed jointly
830584fffc8SSebastian Siewior	  at NTT and Mitsubishi Electric Corporation.
831584fffc8SSebastian Siewior
832584fffc8SSebastian Siewior	  The Camellia specifies three key sizes: 128, 192 and 256 bits.
833584fffc8SSebastian Siewior
834584fffc8SSebastian Siewior	  See also:
835584fffc8SSebastian Siewior	  <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
836584fffc8SSebastian Siewior
8370b95ec56SJussi Kivilinnaconfig CRYPTO_CAMELLIA_X86_64
8380b95ec56SJussi Kivilinna	tristate "Camellia cipher algorithm (x86_64)"
839f21a7c19SAl Viro	depends on X86 && 64BIT
8400b95ec56SJussi Kivilinna	depends on CRYPTO
8410b95ec56SJussi Kivilinna	select CRYPTO_ALGAPI
842964263afSJussi Kivilinna	select CRYPTO_GLUE_HELPER_X86
8430b95ec56SJussi Kivilinna	select CRYPTO_LRW
8440b95ec56SJussi Kivilinna	select CRYPTO_XTS
8450b95ec56SJussi Kivilinna	help
8460b95ec56SJussi Kivilinna	  Camellia cipher algorithm module (x86_64).
8470b95ec56SJussi Kivilinna
8480b95ec56SJussi Kivilinna	  Camellia is a symmetric key block cipher developed jointly
8490b95ec56SJussi Kivilinna	  at NTT and Mitsubishi Electric Corporation.
8500b95ec56SJussi Kivilinna
8510b95ec56SJussi Kivilinna	  The Camellia specifies three key sizes: 128, 192 and 256 bits.
8520b95ec56SJussi Kivilinna
8530b95ec56SJussi Kivilinna	  See also:
8540b95ec56SJussi Kivilinna	  <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
8550b95ec56SJussi Kivilinna
856d9b1d2e7SJussi Kivilinnaconfig CRYPTO_CAMELLIA_AESNI_AVX_X86_64
857d9b1d2e7SJussi Kivilinna	tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX)"
858d9b1d2e7SJussi Kivilinna	depends on X86 && 64BIT
859d9b1d2e7SJussi Kivilinna	depends on CRYPTO
860d9b1d2e7SJussi Kivilinna	select CRYPTO_ALGAPI
861d9b1d2e7SJussi Kivilinna	select CRYPTO_CRYPTD
862d9b1d2e7SJussi Kivilinna	select CRYPTO_ABLK_HELPER_X86
863d9b1d2e7SJussi Kivilinna	select CRYPTO_GLUE_HELPER_X86
864d9b1d2e7SJussi Kivilinna	select CRYPTO_CAMELLIA_X86_64
865d9b1d2e7SJussi Kivilinna	select CRYPTO_LRW
866d9b1d2e7SJussi Kivilinna	select CRYPTO_XTS
867d9b1d2e7SJussi Kivilinna	help
868d9b1d2e7SJussi Kivilinna	  Camellia cipher algorithm module (x86_64/AES-NI/AVX).
869d9b1d2e7SJussi Kivilinna
870d9b1d2e7SJussi Kivilinna	  Camellia is a symmetric key block cipher developed jointly
871d9b1d2e7SJussi Kivilinna	  at NTT and Mitsubishi Electric Corporation.
872d9b1d2e7SJussi Kivilinna
873d9b1d2e7SJussi Kivilinna	  The Camellia specifies three key sizes: 128, 192 and 256 bits.
874d9b1d2e7SJussi Kivilinna
875d9b1d2e7SJussi Kivilinna	  See also:
876d9b1d2e7SJussi Kivilinna	  <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
877d9b1d2e7SJussi Kivilinna
87881658ad0SDavid S. Millerconfig CRYPTO_CAMELLIA_SPARC64
87981658ad0SDavid S. Miller	tristate "Camellia cipher algorithm (SPARC64)"
88081658ad0SDavid S. Miller	depends on SPARC64
88181658ad0SDavid S. Miller	depends on CRYPTO
88281658ad0SDavid S. Miller	select CRYPTO_ALGAPI
88381658ad0SDavid S. Miller	help
88481658ad0SDavid S. Miller	  Camellia cipher algorithm module (SPARC64).
88581658ad0SDavid S. Miller
88681658ad0SDavid S. Miller	  Camellia is a symmetric key block cipher developed jointly
88781658ad0SDavid S. Miller	  at NTT and Mitsubishi Electric Corporation.
88881658ad0SDavid S. Miller
88981658ad0SDavid S. Miller	  The Camellia specifies three key sizes: 128, 192 and 256 bits.
89081658ad0SDavid S. Miller
89181658ad0SDavid S. Miller	  See also:
89281658ad0SDavid S. Miller	  <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
89381658ad0SDavid S. Miller
894044ab525SJussi Kivilinnaconfig CRYPTO_CAST_COMMON
895044ab525SJussi Kivilinna	tristate
896044ab525SJussi Kivilinna	help
897044ab525SJussi Kivilinna	  Common parts of the CAST cipher algorithms shared by the
898044ab525SJussi Kivilinna	  generic c and the assembler implementations.
899044ab525SJussi Kivilinna
900584fffc8SSebastian Siewiorconfig CRYPTO_CAST5
901584fffc8SSebastian Siewior	tristate "CAST5 (CAST-128) cipher algorithm"
902584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
903044ab525SJussi Kivilinna	select CRYPTO_CAST_COMMON
904584fffc8SSebastian Siewior	help
905584fffc8SSebastian Siewior	  The CAST5 encryption algorithm (synonymous with CAST-128) is
906584fffc8SSebastian Siewior	  described in RFC2144.
907584fffc8SSebastian Siewior
9084d6d6a2cSJohannes Goetzfriedconfig CRYPTO_CAST5_AVX_X86_64
9094d6d6a2cSJohannes Goetzfried	tristate "CAST5 (CAST-128) cipher algorithm (x86_64/AVX)"
9104d6d6a2cSJohannes Goetzfried	depends on X86 && 64BIT
9114d6d6a2cSJohannes Goetzfried	select CRYPTO_ALGAPI
9124d6d6a2cSJohannes Goetzfried	select CRYPTO_CRYPTD
9134d6d6a2cSJohannes Goetzfried	select CRYPTO_ABLK_HELPER_X86
914044ab525SJussi Kivilinna	select CRYPTO_CAST_COMMON
9154d6d6a2cSJohannes Goetzfried	select CRYPTO_CAST5
9164d6d6a2cSJohannes Goetzfried	help
9174d6d6a2cSJohannes Goetzfried	  The CAST5 encryption algorithm (synonymous with CAST-128) is
9184d6d6a2cSJohannes Goetzfried	  described in RFC2144.
9194d6d6a2cSJohannes Goetzfried
9204d6d6a2cSJohannes Goetzfried	  This module provides the Cast5 cipher algorithm that processes
9214d6d6a2cSJohannes Goetzfried	  sixteen blocks parallel using the AVX instruction set.
9224d6d6a2cSJohannes Goetzfried
923584fffc8SSebastian Siewiorconfig CRYPTO_CAST6
924584fffc8SSebastian Siewior	tristate "CAST6 (CAST-256) cipher algorithm"
925584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
926044ab525SJussi Kivilinna	select CRYPTO_CAST_COMMON
927584fffc8SSebastian Siewior	help
928584fffc8SSebastian Siewior	  The CAST6 encryption algorithm (synonymous with CAST-256) is
929584fffc8SSebastian Siewior	  described in RFC2612.
930584fffc8SSebastian Siewior
9314ea1277dSJohannes Goetzfriedconfig CRYPTO_CAST6_AVX_X86_64
9324ea1277dSJohannes Goetzfried	tristate "CAST6 (CAST-256) cipher algorithm (x86_64/AVX)"
9334ea1277dSJohannes Goetzfried	depends on X86 && 64BIT
9344ea1277dSJohannes Goetzfried	select CRYPTO_ALGAPI
9354ea1277dSJohannes Goetzfried	select CRYPTO_CRYPTD
9364ea1277dSJohannes Goetzfried	select CRYPTO_ABLK_HELPER_X86
9374ea1277dSJohannes Goetzfried	select CRYPTO_GLUE_HELPER_X86
938044ab525SJussi Kivilinna	select CRYPTO_CAST_COMMON
9394ea1277dSJohannes Goetzfried	select CRYPTO_CAST6
9404ea1277dSJohannes Goetzfried	select CRYPTO_LRW
9414ea1277dSJohannes Goetzfried	select CRYPTO_XTS
9424ea1277dSJohannes Goetzfried	help
9434ea1277dSJohannes Goetzfried	  The CAST6 encryption algorithm (synonymous with CAST-256) is
9444ea1277dSJohannes Goetzfried	  described in RFC2612.
9454ea1277dSJohannes Goetzfried
9464ea1277dSJohannes Goetzfried	  This module provides the Cast6 cipher algorithm that processes
9474ea1277dSJohannes Goetzfried	  eight blocks parallel using the AVX instruction set.
9484ea1277dSJohannes Goetzfried
949584fffc8SSebastian Siewiorconfig CRYPTO_DES
950584fffc8SSebastian Siewior	tristate "DES and Triple DES EDE cipher algorithms"
951584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
952584fffc8SSebastian Siewior	help
953584fffc8SSebastian Siewior	  DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
954584fffc8SSebastian Siewior
955c5aac2dfSDavid S. Millerconfig CRYPTO_DES_SPARC64
956c5aac2dfSDavid S. Miller	tristate "DES and Triple DES EDE cipher algorithms (SPARC64)"
95797da37b3SDave Jones	depends on SPARC64
958c5aac2dfSDavid S. Miller	select CRYPTO_ALGAPI
959c5aac2dfSDavid S. Miller	select CRYPTO_DES
960c5aac2dfSDavid S. Miller	help
961c5aac2dfSDavid S. Miller	  DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3),
962c5aac2dfSDavid S. Miller	  optimized using SPARC64 crypto opcodes.
963c5aac2dfSDavid S. Miller
964584fffc8SSebastian Siewiorconfig CRYPTO_FCRYPT
965584fffc8SSebastian Siewior	tristate "FCrypt cipher algorithm"
966584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
967584fffc8SSebastian Siewior	select CRYPTO_BLKCIPHER
968584fffc8SSebastian Siewior	help
969584fffc8SSebastian Siewior	  FCrypt algorithm used by RxRPC.
970584fffc8SSebastian Siewior
971584fffc8SSebastian Siewiorconfig CRYPTO_KHAZAD
972584fffc8SSebastian Siewior	tristate "Khazad cipher algorithm"
973584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
974584fffc8SSebastian Siewior	help
975584fffc8SSebastian Siewior	  Khazad cipher algorithm.
976584fffc8SSebastian Siewior
977584fffc8SSebastian Siewior	  Khazad was a finalist in the initial NESSIE competition.  It is
978584fffc8SSebastian Siewior	  an algorithm optimized for 64-bit processors with good performance
979584fffc8SSebastian Siewior	  on 32-bit processors.  Khazad uses an 128 bit key size.
980584fffc8SSebastian Siewior
981584fffc8SSebastian Siewior	  See also:
9826d8de74cSJustin P. Mattock	  <http://www.larc.usp.br/~pbarreto/KhazadPage.html>
983e2ee95b8SHye-Shik Chang
9842407d608STan Swee Hengconfig CRYPTO_SALSA20
9853b4afaf2SKees Cook	tristate "Salsa20 stream cipher algorithm"
9862407d608STan Swee Heng	select CRYPTO_BLKCIPHER
9872407d608STan Swee Heng	help
9882407d608STan Swee Heng	  Salsa20 stream cipher algorithm.
9892407d608STan Swee Heng
9902407d608STan Swee Heng	  Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
9912407d608STan Swee Heng	  Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
9922407d608STan Swee Heng
9932407d608STan Swee Heng	  The Salsa20 stream cipher algorithm is designed by Daniel J.
9942407d608STan Swee Heng	  Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
9951da177e4SLinus Torvalds
996974e4b75STan Swee Hengconfig CRYPTO_SALSA20_586
9973b4afaf2SKees Cook	tristate "Salsa20 stream cipher algorithm (i586)"
998974e4b75STan Swee Heng	depends on (X86 || UML_X86) && !64BIT
999974e4b75STan Swee Heng	select CRYPTO_BLKCIPHER
1000974e4b75STan Swee Heng	help
1001974e4b75STan Swee Heng	  Salsa20 stream cipher algorithm.
1002974e4b75STan Swee Heng
1003974e4b75STan Swee Heng	  Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
1004974e4b75STan Swee Heng	  Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
1005974e4b75STan Swee Heng
1006974e4b75STan Swee Heng	  The Salsa20 stream cipher algorithm is designed by Daniel J.
1007974e4b75STan Swee Heng	  Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
1008974e4b75STan Swee Heng
10099a7dafbbSTan Swee Hengconfig CRYPTO_SALSA20_X86_64
10103b4afaf2SKees Cook	tristate "Salsa20 stream cipher algorithm (x86_64)"
10119a7dafbbSTan Swee Heng	depends on (X86 || UML_X86) && 64BIT
10129a7dafbbSTan Swee Heng	select CRYPTO_BLKCIPHER
10139a7dafbbSTan Swee Heng	help
10149a7dafbbSTan Swee Heng	  Salsa20 stream cipher algorithm.
10159a7dafbbSTan Swee Heng
10169a7dafbbSTan Swee Heng	  Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
10179a7dafbbSTan Swee Heng	  Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
10189a7dafbbSTan Swee Heng
10199a7dafbbSTan Swee Heng	  The Salsa20 stream cipher algorithm is designed by Daniel J.
10209a7dafbbSTan Swee Heng	  Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
10219a7dafbbSTan Swee Heng
1022584fffc8SSebastian Siewiorconfig CRYPTO_SEED
1023584fffc8SSebastian Siewior	tristate "SEED cipher algorithm"
1024584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
1025584fffc8SSebastian Siewior	help
1026584fffc8SSebastian Siewior	  SEED cipher algorithm (RFC4269).
1027584fffc8SSebastian Siewior
1028584fffc8SSebastian Siewior	  SEED is a 128-bit symmetric key block cipher that has been
1029584fffc8SSebastian Siewior	  developed by KISA (Korea Information Security Agency) as a
1030584fffc8SSebastian Siewior	  national standard encryption algorithm of the Republic of Korea.
1031584fffc8SSebastian Siewior	  It is a 16 round block cipher with the key size of 128 bit.
1032584fffc8SSebastian Siewior
1033584fffc8SSebastian Siewior	  See also:
1034584fffc8SSebastian Siewior	  <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>
1035584fffc8SSebastian Siewior
1036584fffc8SSebastian Siewiorconfig CRYPTO_SERPENT
1037584fffc8SSebastian Siewior	tristate "Serpent cipher algorithm"
1038584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
1039584fffc8SSebastian Siewior	help
1040584fffc8SSebastian Siewior	  Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1041584fffc8SSebastian Siewior
1042584fffc8SSebastian Siewior	  Keys are allowed to be from 0 to 256 bits in length, in steps
1043584fffc8SSebastian Siewior	  of 8 bits.  Also includes the 'Tnepres' algorithm, a reversed
1044584fffc8SSebastian Siewior	  variant of Serpent for compatibility with old kerneli.org code.
1045584fffc8SSebastian Siewior
1046584fffc8SSebastian Siewior	  See also:
1047584fffc8SSebastian Siewior	  <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1048584fffc8SSebastian Siewior
1049937c30d7SJussi Kivilinnaconfig CRYPTO_SERPENT_SSE2_X86_64
1050937c30d7SJussi Kivilinna	tristate "Serpent cipher algorithm (x86_64/SSE2)"
1051937c30d7SJussi Kivilinna	depends on X86 && 64BIT
1052937c30d7SJussi Kivilinna	select CRYPTO_ALGAPI
1053341975bfSJussi Kivilinna	select CRYPTO_CRYPTD
1054ffaf9156SJussi Kivilinna	select CRYPTO_ABLK_HELPER_X86
1055596d8750SJussi Kivilinna	select CRYPTO_GLUE_HELPER_X86
1056937c30d7SJussi Kivilinna	select CRYPTO_SERPENT
1057feaf0cfcSJussi Kivilinna	select CRYPTO_LRW
1058feaf0cfcSJussi Kivilinna	select CRYPTO_XTS
1059937c30d7SJussi Kivilinna	help
1060937c30d7SJussi Kivilinna	  Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1061937c30d7SJussi Kivilinna
1062937c30d7SJussi Kivilinna	  Keys are allowed to be from 0 to 256 bits in length, in steps
1063937c30d7SJussi Kivilinna	  of 8 bits.
1064937c30d7SJussi Kivilinna
1065937c30d7SJussi Kivilinna	  This module provides Serpent cipher algorithm that processes eigth
1066937c30d7SJussi Kivilinna	  blocks parallel using SSE2 instruction set.
1067937c30d7SJussi Kivilinna
1068937c30d7SJussi Kivilinna	  See also:
1069937c30d7SJussi Kivilinna	  <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1070937c30d7SJussi Kivilinna
1071251496dbSJussi Kivilinnaconfig CRYPTO_SERPENT_SSE2_586
1072251496dbSJussi Kivilinna	tristate "Serpent cipher algorithm (i586/SSE2)"
1073251496dbSJussi Kivilinna	depends on X86 && !64BIT
1074251496dbSJussi Kivilinna	select CRYPTO_ALGAPI
1075341975bfSJussi Kivilinna	select CRYPTO_CRYPTD
1076ffaf9156SJussi Kivilinna	select CRYPTO_ABLK_HELPER_X86
1077596d8750SJussi Kivilinna	select CRYPTO_GLUE_HELPER_X86
1078251496dbSJussi Kivilinna	select CRYPTO_SERPENT
1079feaf0cfcSJussi Kivilinna	select CRYPTO_LRW
1080feaf0cfcSJussi Kivilinna	select CRYPTO_XTS
1081251496dbSJussi Kivilinna	help
1082251496dbSJussi Kivilinna	  Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1083251496dbSJussi Kivilinna
1084251496dbSJussi Kivilinna	  Keys are allowed to be from 0 to 256 bits in length, in steps
1085251496dbSJussi Kivilinna	  of 8 bits.
1086251496dbSJussi Kivilinna
1087251496dbSJussi Kivilinna	  This module provides Serpent cipher algorithm that processes four
1088251496dbSJussi Kivilinna	  blocks parallel using SSE2 instruction set.
1089251496dbSJussi Kivilinna
1090251496dbSJussi Kivilinna	  See also:
1091251496dbSJussi Kivilinna	  <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1092251496dbSJussi Kivilinna
10937efe4076SJohannes Goetzfriedconfig CRYPTO_SERPENT_AVX_X86_64
10947efe4076SJohannes Goetzfried	tristate "Serpent cipher algorithm (x86_64/AVX)"
10957efe4076SJohannes Goetzfried	depends on X86 && 64BIT
10967efe4076SJohannes Goetzfried	select CRYPTO_ALGAPI
10977efe4076SJohannes Goetzfried	select CRYPTO_CRYPTD
1098ffaf9156SJussi Kivilinna	select CRYPTO_ABLK_HELPER_X86
10991d0debbdSJussi Kivilinna	select CRYPTO_GLUE_HELPER_X86
11007efe4076SJohannes Goetzfried	select CRYPTO_SERPENT
11017efe4076SJohannes Goetzfried	select CRYPTO_LRW
11027efe4076SJohannes Goetzfried	select CRYPTO_XTS
11037efe4076SJohannes Goetzfried	help
11047efe4076SJohannes Goetzfried	  Serpent cipher algorithm, by Anderson, Biham & Knudsen.
11057efe4076SJohannes Goetzfried
11067efe4076SJohannes Goetzfried	  Keys are allowed to be from 0 to 256 bits in length, in steps
11077efe4076SJohannes Goetzfried	  of 8 bits.
11087efe4076SJohannes Goetzfried
11097efe4076SJohannes Goetzfried	  This module provides the Serpent cipher algorithm that processes
11107efe4076SJohannes Goetzfried	  eight blocks parallel using the AVX instruction set.
11117efe4076SJohannes Goetzfried
11127efe4076SJohannes Goetzfried	  See also:
11137efe4076SJohannes Goetzfried	  <http://www.cl.cam.ac.uk/~rja14/serpent.html>
11147efe4076SJohannes Goetzfried
1115584fffc8SSebastian Siewiorconfig CRYPTO_TEA
1116584fffc8SSebastian Siewior	tristate "TEA, XTEA and XETA cipher algorithms"
1117584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
1118584fffc8SSebastian Siewior	help
1119584fffc8SSebastian Siewior	  TEA cipher algorithm.
1120584fffc8SSebastian Siewior
1121584fffc8SSebastian Siewior	  Tiny Encryption Algorithm is a simple cipher that uses
1122584fffc8SSebastian Siewior	  many rounds for security.  It is very fast and uses
1123584fffc8SSebastian Siewior	  little memory.
1124584fffc8SSebastian Siewior
1125584fffc8SSebastian Siewior	  Xtendend Tiny Encryption Algorithm is a modification to
1126584fffc8SSebastian Siewior	  the TEA algorithm to address a potential key weakness
1127584fffc8SSebastian Siewior	  in the TEA algorithm.
1128584fffc8SSebastian Siewior
1129584fffc8SSebastian Siewior	  Xtendend Encryption Tiny Algorithm is a mis-implementation
1130584fffc8SSebastian Siewior	  of the XTEA algorithm for compatibility purposes.
1131584fffc8SSebastian Siewior
1132584fffc8SSebastian Siewiorconfig CRYPTO_TWOFISH
1133584fffc8SSebastian Siewior	tristate "Twofish cipher algorithm"
1134584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
1135584fffc8SSebastian Siewior	select CRYPTO_TWOFISH_COMMON
1136584fffc8SSebastian Siewior	help
1137584fffc8SSebastian Siewior	  Twofish cipher algorithm.
1138584fffc8SSebastian Siewior
1139584fffc8SSebastian Siewior	  Twofish was submitted as an AES (Advanced Encryption Standard)
1140584fffc8SSebastian Siewior	  candidate cipher by researchers at CounterPane Systems.  It is a
1141584fffc8SSebastian Siewior	  16 round block cipher supporting key sizes of 128, 192, and 256
1142584fffc8SSebastian Siewior	  bits.
1143584fffc8SSebastian Siewior
1144584fffc8SSebastian Siewior	  See also:
1145584fffc8SSebastian Siewior	  <http://www.schneier.com/twofish.html>
1146584fffc8SSebastian Siewior
1147584fffc8SSebastian Siewiorconfig CRYPTO_TWOFISH_COMMON
1148584fffc8SSebastian Siewior	tristate
1149584fffc8SSebastian Siewior	help
1150584fffc8SSebastian Siewior	  Common parts of the Twofish cipher algorithm shared by the
1151584fffc8SSebastian Siewior	  generic c and the assembler implementations.
1152584fffc8SSebastian Siewior
1153584fffc8SSebastian Siewiorconfig CRYPTO_TWOFISH_586
1154584fffc8SSebastian Siewior	tristate "Twofish cipher algorithms (i586)"
1155584fffc8SSebastian Siewior	depends on (X86 || UML_X86) && !64BIT
1156584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
1157584fffc8SSebastian Siewior	select CRYPTO_TWOFISH_COMMON
1158584fffc8SSebastian Siewior	help
1159584fffc8SSebastian Siewior	  Twofish cipher algorithm.
1160584fffc8SSebastian Siewior
1161584fffc8SSebastian Siewior	  Twofish was submitted as an AES (Advanced Encryption Standard)
1162584fffc8SSebastian Siewior	  candidate cipher by researchers at CounterPane Systems.  It is a
1163584fffc8SSebastian Siewior	  16 round block cipher supporting key sizes of 128, 192, and 256
1164584fffc8SSebastian Siewior	  bits.
1165584fffc8SSebastian Siewior
1166584fffc8SSebastian Siewior	  See also:
1167584fffc8SSebastian Siewior	  <http://www.schneier.com/twofish.html>
1168584fffc8SSebastian Siewior
1169584fffc8SSebastian Siewiorconfig CRYPTO_TWOFISH_X86_64
1170584fffc8SSebastian Siewior	tristate "Twofish cipher algorithm (x86_64)"
1171584fffc8SSebastian Siewior	depends on (X86 || UML_X86) && 64BIT
1172584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
1173584fffc8SSebastian Siewior	select CRYPTO_TWOFISH_COMMON
1174584fffc8SSebastian Siewior	help
1175584fffc8SSebastian Siewior	  Twofish cipher algorithm (x86_64).
1176584fffc8SSebastian Siewior
1177584fffc8SSebastian Siewior	  Twofish was submitted as an AES (Advanced Encryption Standard)
1178584fffc8SSebastian Siewior	  candidate cipher by researchers at CounterPane Systems.  It is a
1179584fffc8SSebastian Siewior	  16 round block cipher supporting key sizes of 128, 192, and 256
1180584fffc8SSebastian Siewior	  bits.
1181584fffc8SSebastian Siewior
1182584fffc8SSebastian Siewior	  See also:
1183584fffc8SSebastian Siewior	  <http://www.schneier.com/twofish.html>
1184584fffc8SSebastian Siewior
11858280daadSJussi Kivilinnaconfig CRYPTO_TWOFISH_X86_64_3WAY
11868280daadSJussi Kivilinna	tristate "Twofish cipher algorithm (x86_64, 3-way parallel)"
1187f21a7c19SAl Viro	depends on X86 && 64BIT
11888280daadSJussi Kivilinna	select CRYPTO_ALGAPI
11898280daadSJussi Kivilinna	select CRYPTO_TWOFISH_COMMON
11908280daadSJussi Kivilinna	select CRYPTO_TWOFISH_X86_64
1191414cb5e7SJussi Kivilinna	select CRYPTO_GLUE_HELPER_X86
1192e7cda5d2SJussi Kivilinna	select CRYPTO_LRW
1193e7cda5d2SJussi Kivilinna	select CRYPTO_XTS
11948280daadSJussi Kivilinna	help
11958280daadSJussi Kivilinna	  Twofish cipher algorithm (x86_64, 3-way parallel).
11968280daadSJussi Kivilinna
11978280daadSJussi Kivilinna	  Twofish was submitted as an AES (Advanced Encryption Standard)
11988280daadSJussi Kivilinna	  candidate cipher by researchers at CounterPane Systems.  It is a
11998280daadSJussi Kivilinna	  16 round block cipher supporting key sizes of 128, 192, and 256
12008280daadSJussi Kivilinna	  bits.
12018280daadSJussi Kivilinna
12028280daadSJussi Kivilinna	  This module provides Twofish cipher algorithm that processes three
12038280daadSJussi Kivilinna	  blocks parallel, utilizing resources of out-of-order CPUs better.
12048280daadSJussi Kivilinna
12058280daadSJussi Kivilinna	  See also:
12068280daadSJussi Kivilinna	  <http://www.schneier.com/twofish.html>
12078280daadSJussi Kivilinna
1208107778b5SJohannes Goetzfriedconfig CRYPTO_TWOFISH_AVX_X86_64
1209107778b5SJohannes Goetzfried	tristate "Twofish cipher algorithm (x86_64/AVX)"
1210107778b5SJohannes Goetzfried	depends on X86 && 64BIT
1211107778b5SJohannes Goetzfried	select CRYPTO_ALGAPI
1212107778b5SJohannes Goetzfried	select CRYPTO_CRYPTD
121330a04008SJussi Kivilinna	select CRYPTO_ABLK_HELPER_X86
1214a7378d4eSJussi Kivilinna	select CRYPTO_GLUE_HELPER_X86
1215107778b5SJohannes Goetzfried	select CRYPTO_TWOFISH_COMMON
1216107778b5SJohannes Goetzfried	select CRYPTO_TWOFISH_X86_64
1217107778b5SJohannes Goetzfried	select CRYPTO_TWOFISH_X86_64_3WAY
1218107778b5SJohannes Goetzfried	select CRYPTO_LRW
1219107778b5SJohannes Goetzfried	select CRYPTO_XTS
1220107778b5SJohannes Goetzfried	help
1221107778b5SJohannes Goetzfried	  Twofish cipher algorithm (x86_64/AVX).
1222107778b5SJohannes Goetzfried
1223107778b5SJohannes Goetzfried	  Twofish was submitted as an AES (Advanced Encryption Standard)
1224107778b5SJohannes Goetzfried	  candidate cipher by researchers at CounterPane Systems.  It is a
1225107778b5SJohannes Goetzfried	  16 round block cipher supporting key sizes of 128, 192, and 256
1226107778b5SJohannes Goetzfried	  bits.
1227107778b5SJohannes Goetzfried
1228107778b5SJohannes Goetzfried	  This module provides the Twofish cipher algorithm that processes
1229107778b5SJohannes Goetzfried	  eight blocks parallel using the AVX Instruction Set.
1230107778b5SJohannes Goetzfried
1231107778b5SJohannes Goetzfried	  See also:
1232107778b5SJohannes Goetzfried	  <http://www.schneier.com/twofish.html>
1233107778b5SJohannes Goetzfried
1234584fffc8SSebastian Siewiorcomment "Compression"
1235584fffc8SSebastian Siewior
12361da177e4SLinus Torvaldsconfig CRYPTO_DEFLATE
12371da177e4SLinus Torvalds	tristate "Deflate compression algorithm"
1238cce9e06dSHerbert Xu	select CRYPTO_ALGAPI
12391da177e4SLinus Torvalds	select ZLIB_INFLATE
12401da177e4SLinus Torvalds	select ZLIB_DEFLATE
12411da177e4SLinus Torvalds	help
12421da177e4SLinus Torvalds	  This is the Deflate algorithm (RFC1951), specified for use in
12431da177e4SLinus Torvalds	  IPSec with the IPCOMP protocol (RFC3173, RFC2394).
12441da177e4SLinus Torvalds
12451da177e4SLinus Torvalds	  You will most probably want this if using IPSec.
12461da177e4SLinus Torvalds
1247bf68e65eSGeert Uytterhoevenconfig CRYPTO_ZLIB
1248bf68e65eSGeert Uytterhoeven	tristate "Zlib compression algorithm"
1249bf68e65eSGeert Uytterhoeven	select CRYPTO_PCOMP
1250bf68e65eSGeert Uytterhoeven	select ZLIB_INFLATE
1251bf68e65eSGeert Uytterhoeven	select ZLIB_DEFLATE
1252bf68e65eSGeert Uytterhoeven	select NLATTR
1253bf68e65eSGeert Uytterhoeven	help
1254bf68e65eSGeert Uytterhoeven	  This is the zlib algorithm.
1255bf68e65eSGeert Uytterhoeven
12560b77abb3SZoltan Sogorconfig CRYPTO_LZO
12570b77abb3SZoltan Sogor	tristate "LZO compression algorithm"
12580b77abb3SZoltan Sogor	select CRYPTO_ALGAPI
12590b77abb3SZoltan Sogor	select LZO_COMPRESS
12600b77abb3SZoltan Sogor	select LZO_DECOMPRESS
12610b77abb3SZoltan Sogor	help
12620b77abb3SZoltan Sogor	  This is the LZO algorithm.
12630b77abb3SZoltan Sogor
126435a1fc18SSeth Jenningsconfig CRYPTO_842
126535a1fc18SSeth Jennings	tristate "842 compression algorithm"
126635a1fc18SSeth Jennings	depends on CRYPTO_DEV_NX_COMPRESS
126735a1fc18SSeth Jennings	# 842 uses lzo if the hardware becomes unavailable
126835a1fc18SSeth Jennings	select LZO_COMPRESS
126935a1fc18SSeth Jennings	select LZO_DECOMPRESS
127035a1fc18SSeth Jennings	help
127135a1fc18SSeth Jennings	  This is the 842 algorithm.
127235a1fc18SSeth Jennings
127317f0f4a4SNeil Hormancomment "Random Number Generation"
127417f0f4a4SNeil Horman
127517f0f4a4SNeil Hormanconfig CRYPTO_ANSI_CPRNG
127617f0f4a4SNeil Horman	tristate "Pseudo Random Number Generation for Cryptographic modules"
12774e4ed83bSNeil Horman	default m
127817f0f4a4SNeil Horman	select CRYPTO_AES
127917f0f4a4SNeil Horman	select CRYPTO_RNG
128017f0f4a4SNeil Horman	help
128117f0f4a4SNeil Horman	  This option enables the generic pseudo random number generator
128217f0f4a4SNeil Horman	  for cryptographic modules.  Uses the Algorithm specified in
12837dd607e8SJiri Kosina	  ANSI X9.31 A.2.4. Note that this option must be enabled if
12847dd607e8SJiri Kosina	  CRYPTO_FIPS is selected
128517f0f4a4SNeil Horman
128603c8efc1SHerbert Xuconfig CRYPTO_USER_API
128703c8efc1SHerbert Xu	tristate
128803c8efc1SHerbert Xu
1289fe869cdbSHerbert Xuconfig CRYPTO_USER_API_HASH
1290fe869cdbSHerbert Xu	tristate "User-space interface for hash algorithms"
12917451708fSHerbert Xu	depends on NET
1292fe869cdbSHerbert Xu	select CRYPTO_HASH
1293fe869cdbSHerbert Xu	select CRYPTO_USER_API
1294fe869cdbSHerbert Xu	help
1295fe869cdbSHerbert Xu	  This option enables the user-spaces interface for hash
1296fe869cdbSHerbert Xu	  algorithms.
1297fe869cdbSHerbert Xu
12988ff59090SHerbert Xuconfig CRYPTO_USER_API_SKCIPHER
12998ff59090SHerbert Xu	tristate "User-space interface for symmetric key cipher algorithms"
13007451708fSHerbert Xu	depends on NET
13018ff59090SHerbert Xu	select CRYPTO_BLKCIPHER
13028ff59090SHerbert Xu	select CRYPTO_USER_API
13038ff59090SHerbert Xu	help
13048ff59090SHerbert Xu	  This option enables the user-spaces interface for symmetric
13058ff59090SHerbert Xu	  key cipher algorithms.
13068ff59090SHerbert Xu
13071da177e4SLinus Torvaldssource "drivers/crypto/Kconfig"
1308964f3b3bSDavid Howellssource crypto/asymmetric_keys/Kconfig
13091da177e4SLinus Torvalds
1310cce9e06dSHerbert Xuendif	# if CRYPTO
1311