blob: 2668eed03c5fb6287d9baecae466ad8a9867a478 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Linus Torvalds1da177e2005-04-16 15:20:36 -07002#
Dan Williams685784a2007-07-09 11:56:42 -07003# Generic algorithms support
4#
5config XOR_BLOCKS
6 tristate
7
8#
Dan Williams9bc89cd2007-01-02 11:10:44 -07009# async_tx api: hardware offloaded memory transfer/transform support
10#
11source "crypto/async_tx/Kconfig"
12
13#
Linus Torvalds1da177e2005-04-16 15:20:36 -070014# Cryptographic API Configuration
15#
Jan Engelhardt2e290f42007-05-18 15:11:01 +100016menuconfig CRYPTO
Sebastian Siewiorc3715cb92008-03-30 16:36:09 +080017 tristate "Cryptographic API"
Linus Torvalds1da177e2005-04-16 15:20:36 -070018 help
19 This option provides the core Cryptographic API.
20
Herbert Xucce9e062006-08-21 21:08:13 +100021if CRYPTO
22
Sebastian Siewior584fffc2008-04-05 21:04:48 +080023comment "Crypto core or helper"
24
Neil Hormanccb778e2008-08-05 14:13:08 +080025config CRYPTO_FIPS
26 bool "FIPS 200 compliance"
Herbert Xuf2c89a12014-07-04 22:15:08 +080027 depends on (CRYPTO_ANSI_CPRNG || CRYPTO_DRBG) && !CRYPTO_MANAGER_DISABLE_TESTS
Alec Ari1f696092016-10-04 19:34:30 -030028 depends on (MODULE_SIG || !MODULES)
Neil Hormanccb778e2008-08-05 14:13:08 +080029 help
Geert Uytterhoevend99324c2019-03-20 11:41:03 +010030 This option enables the fips boot option which is
31 required if you want the system to operate in a FIPS 200
Neil Hormanccb778e2008-08-05 14:13:08 +080032 certification. You should say no unless you know what
Chuck Ebberte84c5482010-09-03 19:17:49 +080033 this is.
Neil Hormanccb778e2008-08-05 14:13:08 +080034
Herbert Xucce9e062006-08-21 21:08:13 +100035config CRYPTO_ALGAPI
36 tristate
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110037 select CRYPTO_ALGAPI2
Herbert Xucce9e062006-08-21 21:08:13 +100038 help
39 This option provides the API for cryptographic algorithms.
40
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110041config CRYPTO_ALGAPI2
42 tristate
43
Herbert Xu1ae97822007-08-30 15:36:14 +080044config CRYPTO_AEAD
45 tristate
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110046 select CRYPTO_AEAD2
Herbert Xu1ae97822007-08-30 15:36:14 +080047 select CRYPTO_ALGAPI
48
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110049config CRYPTO_AEAD2
50 tristate
51 select CRYPTO_ALGAPI2
Herbert Xu149a3972015-08-13 17:28:58 +080052 select CRYPTO_NULL2
53 select CRYPTO_RNG2
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110054
Eric Biggersb95bba52019-10-25 12:41:13 -070055config CRYPTO_SKCIPHER
Herbert Xu5cde0af2006-08-22 00:07:53 +100056 tristate
Eric Biggersb95bba52019-10-25 12:41:13 -070057 select CRYPTO_SKCIPHER2
Herbert Xu5cde0af2006-08-22 00:07:53 +100058 select CRYPTO_ALGAPI
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110059
Eric Biggersb95bba52019-10-25 12:41:13 -070060config CRYPTO_SKCIPHER2
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110061 tristate
62 select CRYPTO_ALGAPI2
63 select CRYPTO_RNG2
Herbert Xu5cde0af2006-08-22 00:07:53 +100064
Herbert Xu055bcee2006-08-19 22:24:23 +100065config CRYPTO_HASH
66 tristate
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110067 select CRYPTO_HASH2
Herbert Xu055bcee2006-08-19 22:24:23 +100068 select CRYPTO_ALGAPI
69
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110070config CRYPTO_HASH2
71 tristate
72 select CRYPTO_ALGAPI2
73
Neil Horman17f0f4a2008-08-14 22:15:52 +100074config CRYPTO_RNG
75 tristate
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110076 select CRYPTO_RNG2
Neil Horman17f0f4a2008-08-14 22:15:52 +100077 select CRYPTO_ALGAPI
78
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110079config CRYPTO_RNG2
80 tristate
81 select CRYPTO_ALGAPI2
82
Herbert Xu401e4232015-06-03 14:49:31 +080083config CRYPTO_RNG_DEFAULT
84 tristate
85 select CRYPTO_DRBG_MENU
86
Tadeusz Struk3c339ab2015-06-16 10:30:55 -070087config CRYPTO_AKCIPHER2
88 tristate
89 select CRYPTO_ALGAPI2
90
91config CRYPTO_AKCIPHER
92 tristate
93 select CRYPTO_AKCIPHER2
94 select CRYPTO_ALGAPI
95
Salvatore Benedetto4e5f2c42016-06-22 17:49:13 +010096config CRYPTO_KPP2
97 tristate
98 select CRYPTO_ALGAPI2
99
100config CRYPTO_KPP
101 tristate
102 select CRYPTO_ALGAPI
103 select CRYPTO_KPP2
104
Giovanni Cabiddu2ebda742016-10-21 13:19:47 +0100105config CRYPTO_ACOMP2
106 tristate
107 select CRYPTO_ALGAPI2
Bart Van Assche8cd579d2018-01-05 08:26:47 -0800108 select SGL_ALLOC
Giovanni Cabiddu2ebda742016-10-21 13:19:47 +0100109
110config CRYPTO_ACOMP
111 tristate
112 select CRYPTO_ALGAPI
113 select CRYPTO_ACOMP2
114
Herbert Xu2b8c19d2006-09-21 11:31:44 +1000115config CRYPTO_MANAGER
116 tristate "Cryptographic algorithm manager"
Herbert Xu6a0fcbb2008-12-10 23:29:44 +1100117 select CRYPTO_MANAGER2
Herbert Xu2b8c19d2006-09-21 11:31:44 +1000118 help
119 Create default cryptographic template instantiations such as
120 cbc(aes).
121
Herbert Xu6a0fcbb2008-12-10 23:29:44 +1100122config CRYPTO_MANAGER2
123 def_tristate CRYPTO_MANAGER || (CRYPTO_MANAGER!=n && CRYPTO_ALGAPI=y)
124 select CRYPTO_AEAD2
125 select CRYPTO_HASH2
Eric Biggersb95bba52019-10-25 12:41:13 -0700126 select CRYPTO_SKCIPHER2
Tadeusz Struk946cc462015-06-16 10:31:06 -0700127 select CRYPTO_AKCIPHER2
Salvatore Benedetto4e5f2c42016-06-22 17:49:13 +0100128 select CRYPTO_KPP2
Giovanni Cabiddu2ebda742016-10-21 13:19:47 +0100129 select CRYPTO_ACOMP2
Herbert Xu6a0fcbb2008-12-10 23:29:44 +1100130
Steffen Klasserta38f7902011-09-27 07:23:50 +0200131config CRYPTO_USER
132 tristate "Userspace cryptographic algorithm configuration"
Herbert Xu5db017a2011-11-01 12:12:43 +1100133 depends on NET
Steffen Klasserta38f7902011-09-27 07:23:50 +0200134 select CRYPTO_MANAGER
135 help
Valdis.Kletnieks@vt.edud19978f2011-11-09 01:29:20 -0500136 Userspace configuration for cryptographic instantiations such as
Steffen Klasserta38f7902011-09-27 07:23:50 +0200137 cbc(aes).
138
Eric Biggers929d34c2019-05-20 09:48:29 -0700139if CRYPTO_MANAGER2
140
Herbert Xu326a6342010-08-06 09:40:28 +0800141config CRYPTO_MANAGER_DISABLE_TESTS
142 bool "Disable run-time self tests"
Herbert Xu00ca28a2010-08-06 10:34:00 +0800143 default y
Alexander Shishkin0b767f92010-06-03 20:53:43 +1000144 help
Herbert Xu326a6342010-08-06 09:40:28 +0800145 Disable run-time self tests that normally take place at
146 algorithm registration.
Alexander Shishkin0b767f92010-06-03 20:53:43 +1000147
Eric Biggers5b2706a2019-01-31 23:51:44 -0800148config CRYPTO_MANAGER_EXTRA_TESTS
149 bool "Enable extra run-time crypto self tests"
150 depends on DEBUG_KERNEL && !CRYPTO_MANAGER_DISABLE_TESTS
151 help
152 Enable extra run-time self tests of registered crypto algorithms,
153 including randomized fuzz tests.
154
155 This is intended for developer use only, as these tests take much
156 longer to run than the normal self tests.
157
Eric Biggers929d34c2019-05-20 09:48:29 -0700158endif # if CRYPTO_MANAGER2
159
Rik Snelc494e072006-11-29 18:59:44 +1100160config CRYPTO_GF128MUL
Eric Biggerse590e132019-05-20 09:53:43 -0700161 tristate
Rik Snelc494e072006-11-29 18:59:44 +1100162
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800163config CRYPTO_NULL
164 tristate "Null algorithms"
Herbert Xu149a3972015-08-13 17:28:58 +0800165 select CRYPTO_NULL2
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800166 help
167 These are 'Null' algorithms, used by IPsec, which do nothing.
168
Herbert Xu149a3972015-08-13 17:28:58 +0800169config CRYPTO_NULL2
Herbert Xudd43c4e2015-08-17 20:39:40 +0800170 tristate
Herbert Xu149a3972015-08-13 17:28:58 +0800171 select CRYPTO_ALGAPI2
Eric Biggersb95bba52019-10-25 12:41:13 -0700172 select CRYPTO_SKCIPHER2
Herbert Xu149a3972015-08-13 17:28:58 +0800173 select CRYPTO_HASH2
174
Steffen Klassert5068c7a2010-01-07 15:57:19 +1100175config CRYPTO_PCRYPT
Kees Cook3b4afaf2012-10-02 11:16:49 -0700176 tristate "Parallel crypto engine"
177 depends on SMP
Steffen Klassert5068c7a2010-01-07 15:57:19 +1100178 select PADATA
179 select CRYPTO_MANAGER
180 select CRYPTO_AEAD
181 help
182 This converts an arbitrary crypto algorithm into a parallel
183 algorithm that executes in kernel threads.
184
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800185config CRYPTO_CRYPTD
186 tristate "Software async crypto daemon"
Eric Biggersb95bba52019-10-25 12:41:13 -0700187 select CRYPTO_SKCIPHER
Loc Hob8a28252008-05-14 21:23:00 +0800188 select CRYPTO_HASH
Herbert Xu43518402006-10-16 21:28:58 +1000189 select CRYPTO_MANAGER
Herbert Xudb131ef2006-09-21 11:44:08 +1000190 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800191 This is a generic software asynchronous crypto daemon that
192 converts an arbitrary synchronous software crypto algorithm
193 into an asynchronous algorithm that executes in a kernel thread.
194
195config CRYPTO_AUTHENC
196 tristate "Authenc support"
197 select CRYPTO_AEAD
Eric Biggersb95bba52019-10-25 12:41:13 -0700198 select CRYPTO_SKCIPHER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800199 select CRYPTO_MANAGER
200 select CRYPTO_HASH
Herbert Xue94c6a72015-08-04 21:23:14 +0800201 select CRYPTO_NULL
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800202 help
203 Authenc: Combined mode wrapper for IPsec.
204 This is required for IPSec.
205
206config CRYPTO_TEST
207 tristate "Testing module"
208 depends on m
Herbert Xuda7f0332008-07-31 17:08:25 +0800209 select CRYPTO_MANAGER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800210 help
211 Quick & dirty crypto test module.
212
Herbert Xu266d0512016-11-22 20:08:25 +0800213config CRYPTO_SIMD
214 tristate
215 select CRYPTO_CRYPTD
216
Jussi Kivilinna596d8752012-06-18 14:07:19 +0300217config CRYPTO_GLUE_HELPER_X86
218 tristate
219 depends on X86
Eric Biggersb95bba52019-10-25 12:41:13 -0700220 select CRYPTO_SKCIPHER
Jussi Kivilinna596d8752012-06-18 14:07:19 +0300221
Baolin Wang735d37b2016-01-26 20:25:39 +0800222config CRYPTO_ENGINE
223 tristate
224
Vitaly Chikunov3d6228a2019-04-11 18:51:18 +0300225comment "Public-key cryptography"
226
227config CRYPTO_RSA
228 tristate "RSA algorithm"
229 select CRYPTO_AKCIPHER
230 select CRYPTO_MANAGER
231 select MPILIB
232 select ASN1
233 help
234 Generic implementation of the RSA public key algorithm.
235
236config CRYPTO_DH
237 tristate "Diffie-Hellman algorithm"
238 select CRYPTO_KPP
239 select MPILIB
240 help
241 Generic implementation of the Diffie-Hellman algorithm.
242
Vitaly Chikunov4a2289d2019-04-11 18:51:19 +0300243config CRYPTO_ECC
244 tristate
245
Vitaly Chikunov3d6228a2019-04-11 18:51:18 +0300246config CRYPTO_ECDH
247 tristate "ECDH algorithm"
Vitaly Chikunov4a2289d2019-04-11 18:51:19 +0300248 select CRYPTO_ECC
Vitaly Chikunov3d6228a2019-04-11 18:51:18 +0300249 select CRYPTO_KPP
250 select CRYPTO_RNG_DEFAULT
251 help
252 Generic implementation of the ECDH algorithm
253
Vitaly Chikunov0d7a7862019-04-11 18:51:20 +0300254config CRYPTO_ECRDSA
255 tristate "EC-RDSA (GOST 34.10) algorithm"
256 select CRYPTO_ECC
257 select CRYPTO_AKCIPHER
258 select CRYPTO_STREEBOG
Vitaly Chikunov10366332019-04-24 04:32:40 +0300259 select OID_REGISTRY
260 select ASN1
Vitaly Chikunov0d7a7862019-04-11 18:51:20 +0300261 help
262 Elliptic Curve Russian Digital Signature Algorithm (GOST R 34.10-2012,
263 RFC 7091, ISO/IEC 14888-3:2018) is one of the Russian cryptographic
264 standard algorithms (called GOST algorithms). Only signature verification
265 is implemented.
266
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800267comment "Authenticated Encryption with Associated Data"
268
269config CRYPTO_CCM
270 tristate "CCM support"
271 select CRYPTO_CTR
Ard Biesheuvelf15f05b2017-02-03 14:49:36 +0000272 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800273 select CRYPTO_AEAD
Eric Biggersc8a33152019-05-20 09:49:46 -0700274 select CRYPTO_MANAGER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800275 help
276 Support for Counter with CBC MAC. Required for IPsec.
277
278config CRYPTO_GCM
279 tristate "GCM/GMAC support"
280 select CRYPTO_CTR
281 select CRYPTO_AEAD
Huang Ying9382d972009-08-06 15:34:26 +1000282 select CRYPTO_GHASH
Jussi Kivilinna9489667d2013-04-07 16:43:41 +0300283 select CRYPTO_NULL
Eric Biggersc8a33152019-05-20 09:49:46 -0700284 select CRYPTO_MANAGER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800285 help
286 Support for Galois/Counter Mode (GCM) and Galois Message
287 Authentication Code (GMAC). Required for IPSec.
288
Martin Willi71ebc4d2015-06-01 13:44:00 +0200289config CRYPTO_CHACHA20POLY1305
290 tristate "ChaCha20-Poly1305 AEAD support"
291 select CRYPTO_CHACHA20
292 select CRYPTO_POLY1305
293 select CRYPTO_AEAD
Eric Biggersc8a33152019-05-20 09:49:46 -0700294 select CRYPTO_MANAGER
Martin Willi71ebc4d2015-06-01 13:44:00 +0200295 help
296 ChaCha20-Poly1305 AEAD support, RFC7539.
297
298 Support for the AEAD wrapper using the ChaCha20 stream cipher combined
299 with the Poly1305 authenticator. It is defined in RFC7539 for use in
300 IETF protocols.
301
Ondrej Mosnacekf606a882018-05-11 14:12:49 +0200302config CRYPTO_AEGIS128
303 tristate "AEGIS-128 AEAD algorithm"
304 select CRYPTO_AEAD
305 select CRYPTO_AES # for AES S-box tables
306 help
307 Support for the AEGIS-128 dedicated AEAD algorithm.
308
Ard Biesheuvela4397632019-08-12 01:59:11 +0300309config CRYPTO_AEGIS128_SIMD
310 bool "Support SIMD acceleration for AEGIS-128"
311 depends on CRYPTO_AEGIS128 && ((ARM || ARM64) && KERNEL_MODE_NEON)
Ard Biesheuvel83053672019-10-02 09:54:48 +0200312 depends on !ARM || CC_IS_CLANG || GCC_VERSION >= 40800
Ard Biesheuvela4397632019-08-12 01:59:11 +0300313 default y
314
Ondrej Mosnacek1d373d42018-05-11 14:12:51 +0200315config CRYPTO_AEGIS128_AESNI_SSE2
316 tristate "AEGIS-128 AEAD algorithm (x86_64 AESNI+SSE2 implementation)"
317 depends on X86 && 64BIT
318 select CRYPTO_AEAD
Eric Biggersde272ca2019-03-10 12:00:53 -0700319 select CRYPTO_SIMD
Ondrej Mosnacek1d373d42018-05-11 14:12:51 +0200320 help
Ondrej Mosnacek4e5180e2019-03-15 08:47:25 +0100321 AESNI+SSE2 implementation of the AEGIS-128 dedicated AEAD algorithm.
Ondrej Mosnacek1d373d42018-05-11 14:12:51 +0200322
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800323config CRYPTO_SEQIV
324 tristate "Sequence Number IV Generator"
325 select CRYPTO_AEAD
Eric Biggersb95bba52019-10-25 12:41:13 -0700326 select CRYPTO_SKCIPHER
Herbert Xu856e3f402015-05-21 15:11:13 +0800327 select CRYPTO_NULL
Herbert Xu401e4232015-06-03 14:49:31 +0800328 select CRYPTO_RNG_DEFAULT
Eric Biggersc8a33152019-05-20 09:49:46 -0700329 select CRYPTO_MANAGER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800330 help
331 This IV generator generates an IV based on a sequence number by
332 xoring it with a salt. This algorithm is mainly useful for CTR
333
Herbert Xua10f5542015-05-21 15:11:15 +0800334config CRYPTO_ECHAINIV
335 tristate "Encrypted Chain IV Generator"
336 select CRYPTO_AEAD
337 select CRYPTO_NULL
Herbert Xu401e4232015-06-03 14:49:31 +0800338 select CRYPTO_RNG_DEFAULT
Eric Biggersc8a33152019-05-20 09:49:46 -0700339 select CRYPTO_MANAGER
Herbert Xua10f5542015-05-21 15:11:15 +0800340 help
341 This IV generator generates an IV based on the encryption of
342 a sequence number xored with a salt. This is the default
343 algorithm for CBC.
344
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800345comment "Block modes"
Herbert Xudb131ef2006-09-21 11:44:08 +1000346
347config CRYPTO_CBC
348 tristate "CBC support"
Eric Biggersb95bba52019-10-25 12:41:13 -0700349 select CRYPTO_SKCIPHER
Herbert Xu43518402006-10-16 21:28:58 +1000350 select CRYPTO_MANAGER
Herbert Xudb131ef2006-09-21 11:44:08 +1000351 help
352 CBC: Cipher Block Chaining mode
353 This block cipher algorithm is required for IPSec.
354
James Bottomleya7d85e02018-03-01 14:36:17 -0800355config CRYPTO_CFB
356 tristate "CFB support"
Eric Biggersb95bba52019-10-25 12:41:13 -0700357 select CRYPTO_SKCIPHER
James Bottomleya7d85e02018-03-01 14:36:17 -0800358 select CRYPTO_MANAGER
359 help
360 CFB: Cipher FeedBack mode
361 This block cipher algorithm is required for TPM2 Cryptography.
362
Joy Latten23e353c2007-10-23 08:50:32 +0800363config CRYPTO_CTR
364 tristate "CTR support"
Eric Biggersb95bba52019-10-25 12:41:13 -0700365 select CRYPTO_SKCIPHER
Herbert Xu0a270322007-11-30 21:38:37 +1100366 select CRYPTO_SEQIV
Joy Latten23e353c2007-10-23 08:50:32 +0800367 select CRYPTO_MANAGER
Joy Latten23e353c2007-10-23 08:50:32 +0800368 help
369 CTR: Counter mode
370 This block cipher algorithm is required for IPSec.
371
Kevin Coffman76cb9522008-03-24 21:26:16 +0800372config CRYPTO_CTS
373 tristate "CTS support"
Eric Biggersb95bba52019-10-25 12:41:13 -0700374 select CRYPTO_SKCIPHER
Eric Biggersc8a33152019-05-20 09:49:46 -0700375 select CRYPTO_MANAGER
Kevin Coffman76cb9522008-03-24 21:26:16 +0800376 help
377 CTS: Cipher Text Stealing
378 This is the Cipher Text Stealing mode as described by
Gilad Ben-Yossefecd6d5c2018-11-05 12:05:01 +0000379 Section 8 of rfc2040 and referenced by rfc3962
380 (rfc3962 includes errata information in its Appendix A) or
381 CBC-CS3 as defined by NIST in Sp800-38A addendum from Oct 2010.
Kevin Coffman76cb9522008-03-24 21:26:16 +0800382 This mode is required for Kerberos gss mechanism support
383 for AES encryption.
384
Gilad Ben-Yossefecd6d5c2018-11-05 12:05:01 +0000385 See: https://csrc.nist.gov/publications/detail/sp/800-38a/addendum/final
386
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800387config CRYPTO_ECB
388 tristate "ECB support"
Eric Biggersb95bba52019-10-25 12:41:13 -0700389 select CRYPTO_SKCIPHER
Herbert Xu124b53d2007-04-16 20:49:20 +1000390 select CRYPTO_MANAGER
391 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800392 ECB: Electronic CodeBook mode
393 This is the simplest block cipher algorithm. It simply encrypts
394 the input block by block.
Herbert Xu124b53d2007-04-16 20:49:20 +1000395
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800396config CRYPTO_LRW
Jussi Kivilinna2470a2b2011-12-13 12:52:51 +0200397 tristate "LRW support"
Eric Biggersb95bba52019-10-25 12:41:13 -0700398 select CRYPTO_SKCIPHER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800399 select CRYPTO_MANAGER
400 select CRYPTO_GF128MUL
David Howells90831632006-12-16 12:13:14 +1100401 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800402 LRW: Liskov Rivest Wagner, a tweakable, non malleable, non movable
403 narrow block cipher mode for dm-crypt. Use it with cipher
404 specification string aes-lrw-benbi, the key must be 256, 320 or 384.
405 The first 128, 192 or 256 bits in the key are used for AES and the
406 rest is used to tie each cipher block to its logical position.
David Howells90831632006-12-16 12:13:14 +1100407
Gilad Ben-Yossefe497c512018-09-20 14:18:39 +0100408config CRYPTO_OFB
409 tristate "OFB support"
Eric Biggersb95bba52019-10-25 12:41:13 -0700410 select CRYPTO_SKCIPHER
Gilad Ben-Yossefe497c512018-09-20 14:18:39 +0100411 select CRYPTO_MANAGER
412 help
413 OFB: the Output Feedback mode makes a block cipher into a synchronous
414 stream cipher. It generates keystream blocks, which are then XORed
415 with the plaintext blocks to get the ciphertext. Flipping a bit in the
416 ciphertext produces a flipped bit in the plaintext at the same
417 location. This property allows many error correcting codes to function
418 normally even when applied before encryption.
419
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800420config CRYPTO_PCBC
421 tristate "PCBC support"
Eric Biggersb95bba52019-10-25 12:41:13 -0700422 select CRYPTO_SKCIPHER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800423 select CRYPTO_MANAGER
424 help
425 PCBC: Propagating Cipher Block Chaining mode
426 This block cipher algorithm is required for RxRPC.
427
428config CRYPTO_XTS
Jussi Kivilinna5bcf8e62011-12-13 12:52:56 +0200429 tristate "XTS support"
Eric Biggersb95bba52019-10-25 12:41:13 -0700430 select CRYPTO_SKCIPHER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800431 select CRYPTO_MANAGER
Milan Broz12cb3a12017-02-23 08:38:26 +0100432 select CRYPTO_ECB
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800433 help
434 XTS: IEEE1619/D16 narrow block cipher use with aes-xts-plain,
435 key size 256, 384 or 512 bits. This implementation currently
436 can't handle a sectorsize which is not a multiple of 16 bytes.
437
Stephan Mueller1c49678e2015-09-21 20:58:56 +0200438config CRYPTO_KEYWRAP
439 tristate "Key wrapping support"
Eric Biggersb95bba52019-10-25 12:41:13 -0700440 select CRYPTO_SKCIPHER
Eric Biggersc8a33152019-05-20 09:49:46 -0700441 select CRYPTO_MANAGER
Stephan Mueller1c49678e2015-09-21 20:58:56 +0200442 help
443 Support for key wrapping (NIST SP800-38F / RFC3394) without
444 padding.
445
Eric Biggers26609a22018-11-16 17:26:29 -0800446config CRYPTO_NHPOLY1305
447 tristate
448 select CRYPTO_HASH
Ard Biesheuvel48ea8c62019-11-08 13:22:19 +0100449 select CRYPTO_LIB_POLY1305_GENERIC
Eric Biggers26609a22018-11-16 17:26:29 -0800450
Eric Biggers012c8232018-12-04 22:20:00 -0800451config CRYPTO_NHPOLY1305_SSE2
452 tristate "NHPoly1305 hash function (x86_64 SSE2 implementation)"
453 depends on X86 && 64BIT
454 select CRYPTO_NHPOLY1305
455 help
456 SSE2 optimized implementation of the hash function used by the
457 Adiantum encryption mode.
458
Eric Biggers0f961f92018-12-04 22:20:01 -0800459config CRYPTO_NHPOLY1305_AVX2
460 tristate "NHPoly1305 hash function (x86_64 AVX2 implementation)"
461 depends on X86 && 64BIT
462 select CRYPTO_NHPOLY1305
463 help
464 AVX2 optimized implementation of the hash function used by the
465 Adiantum encryption mode.
466
Eric Biggers059c2a42018-11-16 17:26:31 -0800467config CRYPTO_ADIANTUM
468 tristate "Adiantum support"
469 select CRYPTO_CHACHA20
Ard Biesheuvel48ea8c62019-11-08 13:22:19 +0100470 select CRYPTO_LIB_POLY1305_GENERIC
Eric Biggers059c2a42018-11-16 17:26:31 -0800471 select CRYPTO_NHPOLY1305
Eric Biggersc8a33152019-05-20 09:49:46 -0700472 select CRYPTO_MANAGER
Eric Biggers059c2a42018-11-16 17:26:31 -0800473 help
474 Adiantum is a tweakable, length-preserving encryption mode
475 designed for fast and secure disk encryption, especially on
476 CPUs without dedicated crypto instructions. It encrypts
477 each sector using the XChaCha12 stream cipher, two passes of
478 an ε-almost-∆-universal hash function, and an invocation of
479 the AES-256 block cipher on a single 16-byte block. On CPUs
480 without AES instructions, Adiantum is much faster than
481 AES-XTS.
482
483 Adiantum's security is provably reducible to that of its
484 underlying stream and block ciphers, subject to a security
485 bound. Unlike XTS, Adiantum is a true wide-block encryption
486 mode, so it actually provides an even stronger notion of
487 security than XTS, subject to the security bound.
488
489 If unsure, say N.
490
Ard Biesheuvelbe1eb7f2019-08-19 17:17:33 +0300491config CRYPTO_ESSIV
492 tristate "ESSIV support for block encryption"
493 select CRYPTO_AUTHENC
494 help
495 Encrypted salt-sector initialization vector (ESSIV) is an IV
496 generation method that is used in some cases by fscrypt and/or
497 dm-crypt. It uses the hash of the block encryption key as the
498 symmetric key for a block encryption pass applied to the input
499 IV, making low entropy IV sources more suitable for block
500 encryption.
501
502 This driver implements a crypto API template that can be
503 instantiated either as a skcipher or as a aead (depending on the
504 type of the first template argument), and which defers encryption
505 and decryption requests to the encapsulated cipher after applying
506 ESSIV to the input IV. Note that in the aead case, it is assumed
507 that the keys are presented in the same format used by the authenc
508 template, and that the IV appears at the end of the authenticated
509 associated data (AAD) region (which is how dm-crypt uses it.)
510
511 Note that the use of ESSIV is not recommended for new deployments,
512 and so this only needs to be enabled when interoperability with
513 existing encrypted volumes of filesystems is required, or when
514 building for a particular system that requires it (e.g., when
515 the SoC in question has accelerated CBC but not XTS, making CBC
516 combined with ESSIV the only feasible mode for h/w accelerated
517 block encryption)
518
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800519comment "Hash modes"
520
Jussi Kivilinna93b5e862013-04-08 10:48:44 +0300521config CRYPTO_CMAC
522 tristate "CMAC support"
523 select CRYPTO_HASH
524 select CRYPTO_MANAGER
525 help
526 Cipher-based Message Authentication Code (CMAC) specified by
527 The National Institute of Standards and Technology (NIST).
528
529 https://tools.ietf.org/html/rfc4493
530 http://csrc.nist.gov/publications/nistpubs/800-38B/SP_800-38B.pdf
531
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800532config CRYPTO_HMAC
533 tristate "HMAC support"
534 select CRYPTO_HASH
535 select CRYPTO_MANAGER
536 help
537 HMAC: Keyed-Hashing for Message Authentication (RFC2104).
538 This is required for IPSec.
539
540config CRYPTO_XCBC
541 tristate "XCBC support"
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800542 select CRYPTO_HASH
543 select CRYPTO_MANAGER
544 help
545 XCBC: Keyed-Hashing with encryption algorithm
546 http://www.ietf.org/rfc/rfc3566.txt
547 http://csrc.nist.gov/encryption/modes/proposedmodes/
548 xcbc-mac/xcbc-mac-spec.pdf
549
Shane Wangf1939f72009-09-02 20:05:22 +1000550config CRYPTO_VMAC
551 tristate "VMAC support"
Shane Wangf1939f72009-09-02 20:05:22 +1000552 select CRYPTO_HASH
553 select CRYPTO_MANAGER
554 help
555 VMAC is a message authentication algorithm designed for
556 very high speed on 64-bit architectures.
557
558 See also:
559 <http://fastcrypto.org/vmac>
560
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800561comment "Digest"
562
563config CRYPTO_CRC32C
564 tristate "CRC32c CRC algorithm"
Herbert Xu5773a3e2008-07-08 20:54:28 +0800565 select CRYPTO_HASH
Darrick J. Wong6a0962b2012-03-23 15:02:25 -0700566 select CRC32
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800567 help
568 Castagnoli, et al Cyclic Redundancy-Check Algorithm. Used
569 by iSCSI for header and data digests and by others.
Herbert Xu69c35ef2008-11-07 15:11:47 +0800570 See Castagnoli93. Module will be crc32c.
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800571
Austin Zhang8cb51ba2008-08-07 09:57:03 +0800572config CRYPTO_CRC32C_INTEL
573 tristate "CRC32c INTEL hardware acceleration"
574 depends on X86
575 select CRYPTO_HASH
576 help
577 In Intel processor with SSE4.2 supported, the processor will
578 support CRC32C implementation using hardware accelerated CRC32
579 instruction. This option will create 'crc32c-intel' module,
580 which will enable any routine to use the CRC32 instruction to
581 gain performance compared with software implementation.
582 Module will be crc32c-intel.
583
Jean Delvare7cf31862016-11-22 10:32:44 +0100584config CRYPTO_CRC32C_VPMSUM
Anton Blanchard6dd7a822016-07-01 08:19:45 +1000585 tristate "CRC32c CRC algorithm (powerpc64)"
Michael Ellermanc12abf32016-08-09 08:46:15 +1000586 depends on PPC64 && ALTIVEC
Anton Blanchard6dd7a822016-07-01 08:19:45 +1000587 select CRYPTO_HASH
588 select CRC32
589 help
590 CRC32c algorithm implemented using vector polynomial multiply-sum
591 (vpmsum) instructions, introduced in POWER8. Enable on POWER8
592 and newer processors for improved performance.
593
594
David S. Miller442a7c42012-08-22 20:47:36 -0700595config CRYPTO_CRC32C_SPARC64
596 tristate "CRC32c CRC algorithm (SPARC64)"
597 depends on SPARC64
598 select CRYPTO_HASH
599 select CRC32
600 help
601 CRC32c CRC algorithm implemented using sparc64 crypto instructions,
602 when available.
603
Alexander Boyko78c37d12013-01-10 18:54:59 +0400604config CRYPTO_CRC32
605 tristate "CRC32 CRC algorithm"
606 select CRYPTO_HASH
607 select CRC32
608 help
609 CRC-32-IEEE 802.3 cyclic redundancy-check algorithm.
610 Shash crypto api wrappers to crc32_le function.
611
612config CRYPTO_CRC32_PCLMUL
613 tristate "CRC32 PCLMULQDQ hardware acceleration"
614 depends on X86
615 select CRYPTO_HASH
616 select CRC32
617 help
618 From Intel Westmere and AMD Bulldozer processor with SSE4.2
619 and PCLMULQDQ supported, the processor will support
620 CRC32 PCLMULQDQ implementation using hardware accelerated PCLMULQDQ
hacoaf8cb012018-12-28 10:09:40 +0000621 instruction. This option will create 'crc32-pclmul' module,
Alexander Boyko78c37d12013-01-10 18:54:59 +0400622 which will enable any routine to use the CRC-32-IEEE 802.3 checksum
623 and gain better performance as compared with the table implementation.
624
Marcin Nowakowski4a5dc512018-02-09 22:11:06 +0000625config CRYPTO_CRC32_MIPS
626 tristate "CRC32c and CRC32 CRC algorithm (MIPS)"
627 depends on MIPS_CRC_SUPPORT
628 select CRYPTO_HASH
629 help
630 CRC32c and CRC32 CRC algorithms implemented using mips crypto
631 instructions, when available.
632
633
Nikolay Borisov67882e72019-05-30 09:52:57 +0300634config CRYPTO_XXHASH
635 tristate "xxHash hash algorithm"
636 select CRYPTO_HASH
637 select XXHASH
638 help
639 xxHash non-cryptographic hash algorithm. Extremely fast, working at
640 speeds close to RAM limits.
641
David Sterba91d68932019-10-24 18:28:31 +0200642config CRYPTO_BLAKE2B
643 tristate "BLAKE2b digest algorithm"
644 select CRYPTO_HASH
645 help
646 Implementation of cryptographic hash function BLAKE2b (or just BLAKE2),
647 optimized for 64bit platforms and can produce digests of any size
648 between 1 to 64. The keyed hash is also implemented.
649
650 This module provides the following algorithms:
651
652 - blake2b-160
653 - blake2b-256
654 - blake2b-384
655 - blake2b-512
656
657 See https://blake2.net for further information.
658
Herbert Xu684115212013-09-07 12:56:26 +1000659config CRYPTO_CRCT10DIF
660 tristate "CRCT10DIF algorithm"
661 select CRYPTO_HASH
662 help
663 CRC T10 Data Integrity Field computation is being cast as
664 a crypto transform. This allows for faster crc t10 diff
665 transforms to be used if they are available.
666
667config CRYPTO_CRCT10DIF_PCLMUL
668 tristate "CRCT10DIF PCLMULQDQ hardware acceleration"
669 depends on X86 && 64BIT && CRC_T10DIF
670 select CRYPTO_HASH
671 help
672 For x86_64 processors with SSE4.2 and PCLMULQDQ supported,
673 CRC T10 DIF PCLMULQDQ computation can be hardware
674 accelerated PCLMULQDQ instruction. This option will create
hacoaf8cb012018-12-28 10:09:40 +0000675 'crct10dif-pclmul' module, which is faster when computing the
Herbert Xu684115212013-09-07 12:56:26 +1000676 crct10dif checksum as compared with the generic table implementation.
677
Daniel Axtensb01df1c2017-03-15 23:37:36 +1100678config CRYPTO_CRCT10DIF_VPMSUM
679 tristate "CRC32T10DIF powerpc64 hardware acceleration"
680 depends on PPC64 && ALTIVEC && CRC_T10DIF
681 select CRYPTO_HASH
682 help
683 CRC10T10DIF algorithm implemented using vector polynomial
684 multiply-sum (vpmsum) instructions, introduced in POWER8. Enable on
685 POWER8 and newer processors for improved performance.
686
Daniel Axtens146c8682017-03-15 23:37:37 +1100687config CRYPTO_VPMSUM_TESTER
688 tristate "Powerpc64 vpmsum hardware acceleration tester"
689 depends on CRYPTO_CRCT10DIF_VPMSUM && CRYPTO_CRC32C_VPMSUM
690 help
691 Stress test for CRC32c and CRC-T10DIF algorithms implemented with
692 POWER8 vpmsum instructions.
693 Unless you are testing these algorithms, you don't need this.
694
Huang Ying2cdc6892009-08-06 15:32:38 +1000695config CRYPTO_GHASH
Eric Biggers8dfa20f2019-07-19 23:09:18 -0700696 tristate "GHASH hash function"
Huang Ying2cdc6892009-08-06 15:32:38 +1000697 select CRYPTO_GF128MUL
Arnd Bergmann578c60f2016-01-25 17:51:21 +0100698 select CRYPTO_HASH
Huang Ying2cdc6892009-08-06 15:32:38 +1000699 help
Eric Biggers8dfa20f2019-07-19 23:09:18 -0700700 GHASH is the hash function used in GCM (Galois/Counter Mode).
701 It is not a general-purpose cryptographic hash function.
Huang Ying2cdc6892009-08-06 15:32:38 +1000702
Martin Willif979e012015-06-01 13:43:58 +0200703config CRYPTO_POLY1305
704 tristate "Poly1305 authenticator algorithm"
Arnd Bergmann578c60f2016-01-25 17:51:21 +0100705 select CRYPTO_HASH
Ard Biesheuvel48ea8c62019-11-08 13:22:19 +0100706 select CRYPTO_LIB_POLY1305_GENERIC
Martin Willif979e012015-06-01 13:43:58 +0200707 help
708 Poly1305 authenticator algorithm, RFC7539.
709
710 Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein.
711 It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use
712 in IETF protocols. This is the portable C implementation of Poly1305.
713
Martin Willic70f4ab2015-07-16 19:14:06 +0200714config CRYPTO_POLY1305_X86_64
Martin Willib1ccc8f2015-07-16 19:14:08 +0200715 tristate "Poly1305 authenticator algorithm (x86_64/SSE2/AVX2)"
Martin Willic70f4ab2015-07-16 19:14:06 +0200716 depends on X86 && 64BIT
Ard Biesheuvel1b2c6a52019-11-08 13:22:22 +0100717 select CRYPTO_LIB_POLY1305_GENERIC
Ard Biesheuvelf0e89bc2019-11-08 13:22:23 +0100718 select CRYPTO_ARCH_HAVE_LIB_POLY1305
Martin Willic70f4ab2015-07-16 19:14:06 +0200719 help
720 Poly1305 authenticator algorithm, RFC7539.
721
722 Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein.
723 It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use
724 in IETF protocols. This is the x86_64 assembler implementation using SIMD
725 instructions.
726
Ard Biesheuvela11d0552019-11-08 13:22:26 +0100727config CRYPTO_POLY1305_MIPS
728 tristate "Poly1305 authenticator algorithm (MIPS optimized)"
729 depends on CPU_MIPS32 || (CPU_MIPS64 && 64BIT)
730 select CRYPTO_ARCH_HAVE_LIB_POLY1305
731
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800732config CRYPTO_MD4
733 tristate "MD4 digest algorithm"
Adrian-Ken Rueegsegger808a1762008-12-03 19:55:27 +0800734 select CRYPTO_HASH
Linus Torvalds1da177e2005-04-16 15:20:36 -0700735 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800736 MD4 message digest algorithm (RFC1320).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700737
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800738config CRYPTO_MD5
739 tristate "MD5 digest algorithm"
Adrian-Ken Rueegsegger14b75ba2008-12-03 19:57:12 +0800740 select CRYPTO_HASH
Linus Torvalds1da177e2005-04-16 15:20:36 -0700741 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800742 MD5 message digest algorithm (RFC1321).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700743
Aaro Koskinend69e75d2014-12-21 22:54:02 +0200744config CRYPTO_MD5_OCTEON
745 tristate "MD5 digest algorithm (OCTEON)"
746 depends on CPU_CAVIUM_OCTEON
747 select CRYPTO_MD5
748 select CRYPTO_HASH
749 help
750 MD5 message digest algorithm (RFC1321) implemented
751 using OCTEON crypto instructions, when available.
752
Markus Stockhausene8e59952015-03-01 19:30:46 +0100753config CRYPTO_MD5_PPC
754 tristate "MD5 digest algorithm (PPC)"
755 depends on PPC
756 select CRYPTO_HASH
757 help
758 MD5 message digest algorithm (RFC1321) implemented
759 in PPC assembler.
760
David S. Millerfa4dfed2012-08-19 21:51:26 -0700761config CRYPTO_MD5_SPARC64
762 tristate "MD5 digest algorithm (SPARC64)"
763 depends on SPARC64
764 select CRYPTO_MD5
765 select CRYPTO_HASH
766 help
767 MD5 message digest algorithm (RFC1321) implemented
768 using sparc64 crypto instructions, when available.
769
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800770config CRYPTO_MICHAEL_MIC
771 tristate "Michael MIC keyed digest algorithm"
Adrian-Ken Rueegsegger19e2bf12008-12-07 19:35:38 +0800772 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800773 help
774 Michael MIC is used for message integrity protection in TKIP
775 (IEEE 802.11i). This algorithm is required for TKIP, but it
776 should not be used for other purposes because of the weakness
777 of the algorithm.
778
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800779config CRYPTO_RMD128
Adrian Bunkb6d44342008-07-16 19:28:00 +0800780 tristate "RIPEMD-128 digest algorithm"
Herbert Xu7c4468b2008-11-08 09:10:40 +0800781 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800782 help
783 RIPEMD-128 (ISO/IEC 10118-3:2004).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800784
Adrian Bunkb6d44342008-07-16 19:28:00 +0800785 RIPEMD-128 is a 128-bit cryptographic hash function. It should only
Michael Witten35ed4b32011-07-09 04:02:31 +0000786 be used as a secure replacement for RIPEMD. For other use cases,
Adrian Bunkb6d44342008-07-16 19:28:00 +0800787 RIPEMD-160 should be used.
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800788
Adrian Bunkb6d44342008-07-16 19:28:00 +0800789 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800790 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800791
792config CRYPTO_RMD160
Adrian Bunkb6d44342008-07-16 19:28:00 +0800793 tristate "RIPEMD-160 digest algorithm"
Herbert Xue5835fb2008-11-08 09:18:51 +0800794 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800795 help
796 RIPEMD-160 (ISO/IEC 10118-3:2004).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800797
Adrian Bunkb6d44342008-07-16 19:28:00 +0800798 RIPEMD-160 is a 160-bit cryptographic hash function. It is intended
799 to be used as a secure replacement for the 128-bit hash functions
800 MD4, MD5 and it's predecessor RIPEMD
801 (not to be confused with RIPEMD-128).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800802
Adrian Bunkb6d44342008-07-16 19:28:00 +0800803 It's speed is comparable to SHA1 and there are no known attacks
804 against RIPEMD-160.
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800805
Adrian Bunkb6d44342008-07-16 19:28:00 +0800806 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800807 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800808
809config CRYPTO_RMD256
Adrian Bunkb6d44342008-07-16 19:28:00 +0800810 tristate "RIPEMD-256 digest algorithm"
Herbert Xud8a5e2e2008-11-08 09:58:10 +0800811 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800812 help
813 RIPEMD-256 is an optional extension of RIPEMD-128 with a
814 256 bit hash. It is intended for applications that require
815 longer hash-results, without needing a larger security level
816 (than RIPEMD-128).
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800817
Adrian Bunkb6d44342008-07-16 19:28:00 +0800818 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800819 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800820
821config CRYPTO_RMD320
Adrian Bunkb6d44342008-07-16 19:28:00 +0800822 tristate "RIPEMD-320 digest algorithm"
Herbert Xu3b8efb42008-11-08 10:11:09 +0800823 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800824 help
825 RIPEMD-320 is an optional extension of RIPEMD-160 with a
826 320 bit hash. It is intended for applications that require
827 longer hash-results, without needing a larger security level
828 (than RIPEMD-160).
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800829
Adrian Bunkb6d44342008-07-16 19:28:00 +0800830 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800831 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800832
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800833config CRYPTO_SHA1
834 tristate "SHA1 digest algorithm"
Adrian-Ken Rueegsegger54ccb362008-12-02 21:08:20 +0800835 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800836 help
837 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
838
Mathias Krause66be8952011-08-04 20:19:25 +0200839config CRYPTO_SHA1_SSSE3
time38b6b7f2015-09-10 15:27:26 -0700840 tristate "SHA1 digest algorithm (SSSE3/AVX/AVX2/SHA-NI)"
Mathias Krause66be8952011-08-04 20:19:25 +0200841 depends on X86 && 64BIT
842 select CRYPTO_SHA1
843 select CRYPTO_HASH
844 help
845 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
846 using Supplemental SSE3 (SSSE3) instructions or Advanced Vector
time38b6b7f2015-09-10 15:27:26 -0700847 Extensions (AVX/AVX2) or SHA-NI(SHA Extensions New Instructions),
848 when available.
Mathias Krause66be8952011-08-04 20:19:25 +0200849
Tim Chen8275d1a2013-03-26 13:59:17 -0700850config CRYPTO_SHA256_SSSE3
time38b6b7f2015-09-10 15:27:26 -0700851 tristate "SHA256 digest algorithm (SSSE3/AVX/AVX2/SHA-NI)"
Tim Chen8275d1a2013-03-26 13:59:17 -0700852 depends on X86 && 64BIT
853 select CRYPTO_SHA256
854 select CRYPTO_HASH
855 help
856 SHA-256 secure hash standard (DFIPS 180-2) implemented
857 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
858 Extensions version 1 (AVX1), or Advanced Vector Extensions
time38b6b7f2015-09-10 15:27:26 -0700859 version 2 (AVX2) instructions, or SHA-NI (SHA Extensions New
860 Instructions) when available.
Tim Chen8275d1a2013-03-26 13:59:17 -0700861
Tim Chen87de4572013-03-26 14:00:02 -0700862config CRYPTO_SHA512_SSSE3
863 tristate "SHA512 digest algorithm (SSSE3/AVX/AVX2)"
864 depends on X86 && 64BIT
865 select CRYPTO_SHA512
866 select CRYPTO_HASH
867 help
868 SHA-512 secure hash standard (DFIPS 180-2) implemented
869 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
870 Extensions version 1 (AVX1), or Advanced Vector Extensions
871 version 2 (AVX2) instructions, when available.
872
Aaro Koskinenefdb6f62015-03-08 22:07:47 +0200873config CRYPTO_SHA1_OCTEON
874 tristate "SHA1 digest algorithm (OCTEON)"
875 depends on CPU_CAVIUM_OCTEON
876 select CRYPTO_SHA1
877 select CRYPTO_HASH
878 help
879 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
880 using OCTEON crypto instructions, when available.
881
David S. Miller4ff28d42012-08-19 15:41:53 -0700882config CRYPTO_SHA1_SPARC64
883 tristate "SHA1 digest algorithm (SPARC64)"
884 depends on SPARC64
885 select CRYPTO_SHA1
886 select CRYPTO_HASH
887 help
888 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
889 using sparc64 crypto instructions, when available.
890
Michael Ellerman323a6bf2012-09-13 23:00:49 +0000891config CRYPTO_SHA1_PPC
892 tristate "SHA1 digest algorithm (powerpc)"
893 depends on PPC
894 help
895 This is the powerpc hardware accelerated implementation of the
896 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
897
Markus Stockhausend9850fc2015-02-24 20:36:50 +0100898config CRYPTO_SHA1_PPC_SPE
899 tristate "SHA1 digest algorithm (PPC SPE)"
900 depends on PPC && SPE
901 help
902 SHA-1 secure hash standard (DFIPS 180-4) implemented
903 using powerpc SPE SIMD instruction set.
904
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800905config CRYPTO_SHA256
906 tristate "SHA224 and SHA256 digest algorithm"
Adrian-Ken Rueegsegger50e109b52008-12-03 19:57:49 +0800907 select CRYPTO_HASH
Hans de Goede08c327f2019-08-17 16:24:35 +0200908 select CRYPTO_LIB_SHA256
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800909 help
910 SHA256 secure hash standard (DFIPS 180-2).
911
912 This version of SHA implements a 256 bit hash with 128 bits of
913 security against collision attacks.
914
Adrian Bunkb6d44342008-07-16 19:28:00 +0800915 This code also includes SHA-224, a 224 bit hash with 112 bits
916 of security against collision attacks.
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800917
Markus Stockhausen2ecc1e92015-01-30 15:39:34 +0100918config CRYPTO_SHA256_PPC_SPE
919 tristate "SHA224 and SHA256 digest algorithm (PPC SPE)"
920 depends on PPC && SPE
921 select CRYPTO_SHA256
922 select CRYPTO_HASH
923 help
924 SHA224 and SHA256 secure hash standard (DFIPS 180-2)
925 implemented using powerpc SPE SIMD instruction set.
926
Aaro Koskinenefdb6f62015-03-08 22:07:47 +0200927config CRYPTO_SHA256_OCTEON
928 tristate "SHA224 and SHA256 digest algorithm (OCTEON)"
929 depends on CPU_CAVIUM_OCTEON
930 select CRYPTO_SHA256
931 select CRYPTO_HASH
932 help
933 SHA-256 secure hash standard (DFIPS 180-2) implemented
934 using OCTEON crypto instructions, when available.
935
David S. Miller86c93b22012-08-19 17:11:37 -0700936config CRYPTO_SHA256_SPARC64
937 tristate "SHA224 and SHA256 digest algorithm (SPARC64)"
938 depends on SPARC64
939 select CRYPTO_SHA256
940 select CRYPTO_HASH
941 help
942 SHA-256 secure hash standard (DFIPS 180-2) implemented
943 using sparc64 crypto instructions, when available.
944
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800945config CRYPTO_SHA512
946 tristate "SHA384 and SHA512 digest algorithms"
Adrian-Ken Rueegseggerbd9d20d2008-12-17 16:49:02 +1100947 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800948 help
949 SHA512 secure hash standard (DFIPS 180-2).
950
951 This version of SHA implements a 512 bit hash with 256 bits of
952 security against collision attacks.
953
954 This code also includes SHA-384, a 384 bit hash with 192 bits
955 of security against collision attacks.
956
Aaro Koskinenefdb6f62015-03-08 22:07:47 +0200957config CRYPTO_SHA512_OCTEON
958 tristate "SHA384 and SHA512 digest algorithms (OCTEON)"
959 depends on CPU_CAVIUM_OCTEON
960 select CRYPTO_SHA512
961 select CRYPTO_HASH
962 help
963 SHA-512 secure hash standard (DFIPS 180-2) implemented
964 using OCTEON crypto instructions, when available.
965
David S. Miller775e0c62012-08-19 17:37:56 -0700966config CRYPTO_SHA512_SPARC64
967 tristate "SHA384 and SHA512 digest algorithm (SPARC64)"
968 depends on SPARC64
969 select CRYPTO_SHA512
970 select CRYPTO_HASH
971 help
972 SHA-512 secure hash standard (DFIPS 180-2) implemented
973 using sparc64 crypto instructions, when available.
974
Jeff Garzik53964b92016-06-17 10:30:35 +0530975config CRYPTO_SHA3
976 tristate "SHA3 digest algorithm"
977 select CRYPTO_HASH
978 help
979 SHA-3 secure hash standard (DFIPS 202). It's based on
980 cryptographic sponge function family called Keccak.
981
982 References:
983 http://keccak.noekeon.org/
984
Gilad Ben-Yossef4f0fc162017-08-21 13:51:28 +0300985config CRYPTO_SM3
986 tristate "SM3 digest algorithm"
987 select CRYPTO_HASH
988 help
989 SM3 secure hash function as defined by OSCCA GM/T 0004-2012 SM3).
990 It is part of the Chinese Commercial Cryptography suite.
991
992 References:
993 http://www.oscca.gov.cn/UpFile/20101222141857786.pdf
994 https://datatracker.ietf.org/doc/html/draft-shen-sm3-hash
995
Vitaly Chikunovfe189572018-11-07 00:00:01 +0300996config CRYPTO_STREEBOG
997 tristate "Streebog Hash Function"
998 select CRYPTO_HASH
999 help
1000 Streebog Hash Function (GOST R 34.11-2012, RFC 6986) is one of the Russian
1001 cryptographic standard algorithms (called GOST algorithms).
1002 This setting enables two hash algorithms with 256 and 512 bits output.
1003
1004 References:
1005 https://tc26.ru/upload/iblock/fed/feddbb4d26b685903faa2ba11aea43f6.pdf
1006 https://tools.ietf.org/html/rfc6986
1007
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001008config CRYPTO_TGR192
1009 tristate "Tiger digest algorithms"
Adrian-Ken Rueegseggerf63fbd32008-12-03 19:58:32 +08001010 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001011 help
1012 Tiger hash algorithm 192, 160 and 128-bit hashes
1013
1014 Tiger is a hash function optimized for 64-bit processors while
1015 still having decent performance on 32-bit processors.
1016 Tiger was developed by Ross Anderson and Eli Biham.
Linus Torvalds1da177e2005-04-16 15:20:36 -07001017
1018 See also:
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001019 <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>.
1020
1021config CRYPTO_WP512
1022 tristate "Whirlpool digest algorithms"
Adrian-Ken Rueegsegger49465102008-12-07 19:34:37 +08001023 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001024 help
1025 Whirlpool hash algorithm 512, 384 and 256-bit hashes
1026
1027 Whirlpool-512 is part of the NESSIE cryptographic primitives.
1028 Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard
1029
1030 See also:
Justin P. Mattock6d8de742010-09-12 10:42:47 +08001031 <http://www.larc.usp.br/~pbarreto/WhirlpoolPage.html>
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001032
Huang Ying0e1227d2009-10-19 11:53:06 +09001033config CRYPTO_GHASH_CLMUL_NI_INTEL
Eric Biggers8dfa20f2019-07-19 23:09:18 -07001034 tristate "GHASH hash function (CLMUL-NI accelerated)"
Richard Weinberger8af00862011-06-08 20:56:29 +08001035 depends on X86 && 64BIT
Huang Ying0e1227d2009-10-19 11:53:06 +09001036 select CRYPTO_CRYPTD
1037 help
Eric Biggers8dfa20f2019-07-19 23:09:18 -07001038 This is the x86_64 CLMUL-NI accelerated implementation of
1039 GHASH, the hash function used in GCM (Galois/Counter mode).
Huang Ying0e1227d2009-10-19 11:53:06 +09001040
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001041comment "Ciphers"
Linus Torvalds1da177e2005-04-16 15:20:36 -07001042
1043config CRYPTO_AES
1044 tristate "AES cipher algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +10001045 select CRYPTO_ALGAPI
Ard Biesheuvel5bb12d72019-07-02 21:41:33 +02001046 select CRYPTO_LIB_AES
Linus Torvalds1da177e2005-04-16 15:20:36 -07001047 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001048 AES cipher algorithms (FIPS-197). AES uses the Rijndael
Linus Torvalds1da177e2005-04-16 15:20:36 -07001049 algorithm.
1050
1051 Rijndael appears to be consistently a very good performer in
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001052 both hardware and software across a wide range of computing
1053 environments regardless of its use in feedback or non-feedback
1054 modes. Its key setup time is excellent, and its key agility is
1055 good. Rijndael's very low memory requirements make it very well
1056 suited for restricted-space environments, in which it also
1057 demonstrates excellent performance. Rijndael's operations are
1058 among the easiest to defend against power and timing attacks.
Linus Torvalds1da177e2005-04-16 15:20:36 -07001059
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001060 The AES specifies three key sizes: 128, 192 and 256 bits
Linus Torvalds1da177e2005-04-16 15:20:36 -07001061
1062 See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information.
1063
Ard Biesheuvelb5e0b032017-02-02 16:37:40 +00001064config CRYPTO_AES_TI
1065 tristate "Fixed time AES cipher"
1066 select CRYPTO_ALGAPI
Ard Biesheuvele59c1c92019-07-02 21:41:22 +02001067 select CRYPTO_LIB_AES
Ard Biesheuvelb5e0b032017-02-02 16:37:40 +00001068 help
1069 This is a generic implementation of AES that attempts to eliminate
1070 data dependent latencies as much as possible without affecting
1071 performance too much. It is intended for use by the generic CCM
1072 and GCM drivers, and other CTR or CMAC/XCBC based modes that rely
1073 solely on encryption (although decryption is supported as well, but
1074 with a more dramatic performance hit)
1075
1076 Instead of using 16 lookup tables of 1 KB each, (8 for encryption and
1077 8 for decryption), this implementation only uses just two S-boxes of
1078 256 bytes each, and attempts to eliminate data dependent latencies by
1079 prefetching the entire table into the cache at the start of each
Eric Biggers0a6a40c2018-10-17 21:37:58 -07001080 block. Interrupts are also disabled to avoid races where cachelines
1081 are evicted when the CPU is interrupted to do something else.
Ard Biesheuvelb5e0b032017-02-02 16:37:40 +00001082
Huang Ying54b6a1b2009-01-18 16:28:34 +11001083config CRYPTO_AES_NI_INTEL
1084 tristate "AES cipher algorithms (AES-NI)"
Richard Weinberger8af00862011-06-08 20:56:29 +08001085 depends on X86
Herbert Xu85671862016-11-22 20:08:33 +08001086 select CRYPTO_AEAD
Ard Biesheuvel2c53fd12019-07-02 21:41:23 +02001087 select CRYPTO_LIB_AES
Huang Ying54b6a1b2009-01-18 16:28:34 +11001088 select CRYPTO_ALGAPI
Eric Biggersb95bba52019-10-25 12:41:13 -07001089 select CRYPTO_SKCIPHER
Jussi Kivilinna7643a112013-04-10 18:39:20 +03001090 select CRYPTO_GLUE_HELPER_X86 if 64BIT
Herbert Xu85671862016-11-22 20:08:33 +08001091 select CRYPTO_SIMD
Huang Ying54b6a1b2009-01-18 16:28:34 +11001092 help
1093 Use Intel AES-NI instructions for AES algorithm.
1094
1095 AES cipher algorithms (FIPS-197). AES uses the Rijndael
1096 algorithm.
1097
1098 Rijndael appears to be consistently a very good performer in
1099 both hardware and software across a wide range of computing
1100 environments regardless of its use in feedback or non-feedback
1101 modes. Its key setup time is excellent, and its key agility is
1102 good. Rijndael's very low memory requirements make it very well
1103 suited for restricted-space environments, in which it also
1104 demonstrates excellent performance. Rijndael's operations are
1105 among the easiest to defend against power and timing attacks.
1106
1107 The AES specifies three key sizes: 128, 192 and 256 bits
1108
1109 See <http://csrc.nist.gov/encryption/aes/> for more information.
1110
Mathias Krause0d258ef2010-11-27 16:34:46 +08001111 In addition to AES cipher algorithm support, the acceleration
1112 for some popular block cipher mode is supported too, including
Ard Biesheuvel944585a2018-09-24 14:48:16 +02001113 ECB, CBC, LRW, XTS. The 64 bit version has additional
Mathias Krause0d258ef2010-11-27 16:34:46 +08001114 acceleration for CTR.
Huang Ying2cf4ac82009-03-29 15:41:20 +08001115
David S. Miller9bf48522012-08-21 03:58:13 -07001116config CRYPTO_AES_SPARC64
1117 tristate "AES cipher algorithms (SPARC64)"
1118 depends on SPARC64
Eric Biggersb95bba52019-10-25 12:41:13 -07001119 select CRYPTO_SKCIPHER
David S. Miller9bf48522012-08-21 03:58:13 -07001120 help
1121 Use SPARC64 crypto opcodes for AES algorithm.
1122
1123 AES cipher algorithms (FIPS-197). AES uses the Rijndael
1124 algorithm.
1125
1126 Rijndael appears to be consistently a very good performer in
1127 both hardware and software across a wide range of computing
1128 environments regardless of its use in feedback or non-feedback
1129 modes. Its key setup time is excellent, and its key agility is
1130 good. Rijndael's very low memory requirements make it very well
1131 suited for restricted-space environments, in which it also
1132 demonstrates excellent performance. Rijndael's operations are
1133 among the easiest to defend against power and timing attacks.
1134
1135 The AES specifies three key sizes: 128, 192 and 256 bits
1136
1137 See <http://csrc.nist.gov/encryption/aes/> for more information.
1138
1139 In addition to AES cipher algorithm support, the acceleration
1140 for some popular block cipher mode is supported too, including
1141 ECB and CBC.
1142
Markus Stockhausen504c6142015-02-22 10:00:10 +01001143config CRYPTO_AES_PPC_SPE
1144 tristate "AES cipher algorithms (PPC SPE)"
1145 depends on PPC && SPE
Eric Biggersb95bba52019-10-25 12:41:13 -07001146 select CRYPTO_SKCIPHER
Markus Stockhausen504c6142015-02-22 10:00:10 +01001147 help
1148 AES cipher algorithms (FIPS-197). Additionally the acceleration
1149 for popular block cipher modes ECB, CBC, CTR and XTS is supported.
1150 This module should only be used for low power (router) devices
1151 without hardware AES acceleration (e.g. caam crypto). It reduces the
1152 size of the AES tables from 16KB to 8KB + 256 bytes and mitigates
1153 timining attacks. Nevertheless it might be not as secure as other
1154 architecture specific assembler implementations that work on 1KB
1155 tables or 256 bytes S-boxes.
1156
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001157config CRYPTO_ANUBIS
1158 tristate "Anubis cipher algorithm"
1159 select CRYPTO_ALGAPI
1160 help
1161 Anubis cipher algorithm.
1162
1163 Anubis is a variable key length cipher which can use keys from
1164 128 bits to 320 bits in length. It was evaluated as a entrant
1165 in the NESSIE competition.
1166
1167 See also:
Justin P. Mattock6d8de742010-09-12 10:42:47 +08001168 <https://www.cosic.esat.kuleuven.be/nessie/reports/>
1169 <http://www.larc.usp.br/~pbarreto/AnubisPage.html>
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001170
1171config CRYPTO_ARC4
1172 tristate "ARC4 cipher algorithm"
Eric Biggersb95bba52019-10-25 12:41:13 -07001173 select CRYPTO_SKCIPHER
Ard Biesheuveldc51f252019-06-12 18:19:53 +02001174 select CRYPTO_LIB_ARC4
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001175 help
1176 ARC4 cipher algorithm.
1177
1178 ARC4 is a stream cipher using keys ranging from 8 bits to 2048
1179 bits in length. This algorithm is required for driver-based
1180 WEP, but it should not be for other purposes because of the
1181 weakness of the algorithm.
1182
1183config CRYPTO_BLOWFISH
1184 tristate "Blowfish cipher algorithm"
1185 select CRYPTO_ALGAPI
Jussi Kivilinna52ba8672011-09-02 01:45:07 +03001186 select CRYPTO_BLOWFISH_COMMON
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001187 help
1188 Blowfish cipher algorithm, by Bruce Schneier.
1189
1190 This is a variable key length cipher which can use keys from 32
1191 bits to 448 bits in length. It's fast, simple and specifically
1192 designed for use on "large microprocessors".
1193
1194 See also:
1195 <http://www.schneier.com/blowfish.html>
1196
Jussi Kivilinna52ba8672011-09-02 01:45:07 +03001197config CRYPTO_BLOWFISH_COMMON
1198 tristate
1199 help
1200 Common parts of the Blowfish cipher algorithm shared by the
1201 generic c and the assembler implementations.
1202
1203 See also:
1204 <http://www.schneier.com/blowfish.html>
1205
Jussi Kivilinna64b94ce2011-09-02 01:45:22 +03001206config CRYPTO_BLOWFISH_X86_64
1207 tristate "Blowfish cipher algorithm (x86_64)"
Al Virof21a7c12012-04-08 20:31:22 -04001208 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001209 select CRYPTO_SKCIPHER
Jussi Kivilinna64b94ce2011-09-02 01:45:22 +03001210 select CRYPTO_BLOWFISH_COMMON
1211 help
1212 Blowfish cipher algorithm (x86_64), by Bruce Schneier.
1213
1214 This is a variable key length cipher which can use keys from 32
1215 bits to 448 bits in length. It's fast, simple and specifically
1216 designed for use on "large microprocessors".
1217
1218 See also:
1219 <http://www.schneier.com/blowfish.html>
1220
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001221config CRYPTO_CAMELLIA
1222 tristate "Camellia cipher algorithms"
1223 depends on CRYPTO
1224 select CRYPTO_ALGAPI
1225 help
1226 Camellia cipher algorithms module.
1227
1228 Camellia is a symmetric key block cipher developed jointly
1229 at NTT and Mitsubishi Electric Corporation.
1230
1231 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1232
1233 See also:
1234 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1235
Jussi Kivilinna0b95ec52012-03-05 20:26:47 +02001236config CRYPTO_CAMELLIA_X86_64
1237 tristate "Camellia cipher algorithm (x86_64)"
Al Virof21a7c12012-04-08 20:31:22 -04001238 depends on X86 && 64BIT
Jussi Kivilinna0b95ec52012-03-05 20:26:47 +02001239 depends on CRYPTO
Eric Biggersb95bba52019-10-25 12:41:13 -07001240 select CRYPTO_SKCIPHER
Jussi Kivilinna964263a2012-06-18 14:07:29 +03001241 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna0b95ec52012-03-05 20:26:47 +02001242 help
1243 Camellia cipher algorithm module (x86_64).
1244
1245 Camellia is a symmetric key block cipher developed jointly
1246 at NTT and Mitsubishi Electric Corporation.
1247
1248 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1249
1250 See also:
1251 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1252
Jussi Kivilinnad9b1d2e2012-10-26 14:49:01 +03001253config CRYPTO_CAMELLIA_AESNI_AVX_X86_64
1254 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX)"
1255 depends on X86 && 64BIT
1256 depends on CRYPTO
Eric Biggersb95bba52019-10-25 12:41:13 -07001257 select CRYPTO_SKCIPHER
Jussi Kivilinnad9b1d2e2012-10-26 14:49:01 +03001258 select CRYPTO_CAMELLIA_X86_64
Eric Biggers44893bc2018-02-19 23:48:23 -08001259 select CRYPTO_GLUE_HELPER_X86
1260 select CRYPTO_SIMD
Jussi Kivilinnad9b1d2e2012-10-26 14:49:01 +03001261 select CRYPTO_XTS
1262 help
1263 Camellia cipher algorithm module (x86_64/AES-NI/AVX).
1264
1265 Camellia is a symmetric key block cipher developed jointly
1266 at NTT and Mitsubishi Electric Corporation.
1267
1268 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1269
1270 See also:
1271 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1272
Jussi Kivilinnaf3f935a2013-04-13 13:47:00 +03001273config CRYPTO_CAMELLIA_AESNI_AVX2_X86_64
1274 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX2)"
1275 depends on X86 && 64BIT
1276 depends on CRYPTO
Jussi Kivilinnaf3f935a2013-04-13 13:47:00 +03001277 select CRYPTO_CAMELLIA_AESNI_AVX_X86_64
Jussi Kivilinnaf3f935a2013-04-13 13:47:00 +03001278 help
1279 Camellia cipher algorithm module (x86_64/AES-NI/AVX2).
1280
1281 Camellia is a symmetric key block cipher developed jointly
1282 at NTT and Mitsubishi Electric Corporation.
1283
1284 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1285
1286 See also:
1287 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1288
David S. Miller81658ad2012-08-28 12:05:54 -07001289config CRYPTO_CAMELLIA_SPARC64
1290 tristate "Camellia cipher algorithm (SPARC64)"
1291 depends on SPARC64
1292 depends on CRYPTO
1293 select CRYPTO_ALGAPI
Eric Biggersb95bba52019-10-25 12:41:13 -07001294 select CRYPTO_SKCIPHER
David S. Miller81658ad2012-08-28 12:05:54 -07001295 help
1296 Camellia cipher algorithm module (SPARC64).
1297
1298 Camellia is a symmetric key block cipher developed jointly
1299 at NTT and Mitsubishi Electric Corporation.
1300
1301 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1302
1303 See also:
1304 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1305
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001306config CRYPTO_CAST_COMMON
1307 tristate
1308 help
1309 Common parts of the CAST cipher algorithms shared by the
1310 generic c and the assembler implementations.
1311
Linus Torvalds1da177e2005-04-16 15:20:36 -07001312config CRYPTO_CAST5
1313 tristate "CAST5 (CAST-128) cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001314 select CRYPTO_ALGAPI
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001315 select CRYPTO_CAST_COMMON
Linus Torvalds1da177e2005-04-16 15:20:36 -07001316 help
1317 The CAST5 encryption algorithm (synonymous with CAST-128) is
1318 described in RFC2144.
1319
Johannes Goetzfried4d6d6a22012-07-11 19:37:37 +02001320config CRYPTO_CAST5_AVX_X86_64
1321 tristate "CAST5 (CAST-128) cipher algorithm (x86_64/AVX)"
1322 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001323 select CRYPTO_SKCIPHER
Johannes Goetzfried4d6d6a22012-07-11 19:37:37 +02001324 select CRYPTO_CAST5
Eric Biggers1e631832018-02-19 23:48:13 -08001325 select CRYPTO_CAST_COMMON
1326 select CRYPTO_SIMD
Johannes Goetzfried4d6d6a22012-07-11 19:37:37 +02001327 help
1328 The CAST5 encryption algorithm (synonymous with CAST-128) is
1329 described in RFC2144.
1330
1331 This module provides the Cast5 cipher algorithm that processes
1332 sixteen blocks parallel using the AVX instruction set.
1333
Linus Torvalds1da177e2005-04-16 15:20:36 -07001334config CRYPTO_CAST6
1335 tristate "CAST6 (CAST-256) cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001336 select CRYPTO_ALGAPI
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001337 select CRYPTO_CAST_COMMON
Linus Torvalds1da177e2005-04-16 15:20:36 -07001338 help
1339 The CAST6 encryption algorithm (synonymous with CAST-256) is
1340 described in RFC2612.
1341
Johannes Goetzfried4ea12772012-07-11 19:38:57 +02001342config CRYPTO_CAST6_AVX_X86_64
1343 tristate "CAST6 (CAST-256) cipher algorithm (x86_64/AVX)"
1344 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001345 select CRYPTO_SKCIPHER
Johannes Goetzfried4ea12772012-07-11 19:38:57 +02001346 select CRYPTO_CAST6
Eric Biggers4bd96922018-02-19 23:48:15 -08001347 select CRYPTO_CAST_COMMON
1348 select CRYPTO_GLUE_HELPER_X86
1349 select CRYPTO_SIMD
Johannes Goetzfried4ea12772012-07-11 19:38:57 +02001350 select CRYPTO_XTS
1351 help
1352 The CAST6 encryption algorithm (synonymous with CAST-256) is
1353 described in RFC2612.
1354
1355 This module provides the Cast6 cipher algorithm that processes
1356 eight blocks parallel using the AVX instruction set.
1357
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001358config CRYPTO_DES
1359 tristate "DES and Triple DES EDE cipher algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +10001360 select CRYPTO_ALGAPI
Ard Biesheuvel04007b02019-08-15 12:01:09 +03001361 select CRYPTO_LIB_DES
Linus Torvalds1da177e2005-04-16 15:20:36 -07001362 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001363 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
Linus Torvalds1da177e2005-04-16 15:20:36 -07001364
David S. Millerc5aac2d2012-08-25 22:37:23 -07001365config CRYPTO_DES_SPARC64
1366 tristate "DES and Triple DES EDE cipher algorithms (SPARC64)"
Dave Jones97da37b2012-10-02 17:13:20 -04001367 depends on SPARC64
David S. Millerc5aac2d2012-08-25 22:37:23 -07001368 select CRYPTO_ALGAPI
Ard Biesheuvel04007b02019-08-15 12:01:09 +03001369 select CRYPTO_LIB_DES
Eric Biggersb95bba52019-10-25 12:41:13 -07001370 select CRYPTO_SKCIPHER
David S. Millerc5aac2d2012-08-25 22:37:23 -07001371 help
1372 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3),
1373 optimized using SPARC64 crypto opcodes.
1374
Jussi Kivilinna6574e6c2014-06-09 20:59:54 +03001375config CRYPTO_DES3_EDE_X86_64
1376 tristate "Triple DES EDE cipher algorithm (x86-64)"
1377 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001378 select CRYPTO_SKCIPHER
Ard Biesheuvel04007b02019-08-15 12:01:09 +03001379 select CRYPTO_LIB_DES
Jussi Kivilinna6574e6c2014-06-09 20:59:54 +03001380 help
1381 Triple DES EDE (FIPS 46-3) algorithm.
1382
1383 This module provides implementation of the Triple DES EDE cipher
1384 algorithm that is optimized for x86-64 processors. Two versions of
1385 algorithm are provided; regular processing one input block and
1386 one that processes three blocks parallel.
1387
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001388config CRYPTO_FCRYPT
1389 tristate "FCrypt cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001390 select CRYPTO_ALGAPI
Eric Biggersb95bba52019-10-25 12:41:13 -07001391 select CRYPTO_SKCIPHER
Linus Torvalds1da177e2005-04-16 15:20:36 -07001392 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001393 FCrypt algorithm used by RxRPC.
Linus Torvalds1da177e2005-04-16 15:20:36 -07001394
1395config CRYPTO_KHAZAD
1396 tristate "Khazad cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001397 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -07001398 help
1399 Khazad cipher algorithm.
1400
1401 Khazad was a finalist in the initial NESSIE competition. It is
1402 an algorithm optimized for 64-bit processors with good performance
1403 on 32-bit processors. Khazad uses an 128 bit key size.
1404
1405 See also:
Justin P. Mattock6d8de742010-09-12 10:42:47 +08001406 <http://www.larc.usp.br/~pbarreto/KhazadPage.html>
Linus Torvalds1da177e2005-04-16 15:20:36 -07001407
Tan Swee Heng2407d602007-11-23 19:45:00 +08001408config CRYPTO_SALSA20
Kees Cook3b4afaf2012-10-02 11:16:49 -07001409 tristate "Salsa20 stream cipher algorithm"
Eric Biggersb95bba52019-10-25 12:41:13 -07001410 select CRYPTO_SKCIPHER
Tan Swee Heng2407d602007-11-23 19:45:00 +08001411 help
1412 Salsa20 stream cipher algorithm.
1413
1414 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
1415 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
1416
1417 The Salsa20 stream cipher algorithm is designed by Daniel J.
1418 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
Linus Torvalds1da177e2005-04-16 15:20:36 -07001419
Martin Willic08d0e62015-06-01 13:43:56 +02001420config CRYPTO_CHACHA20
Eric Biggersaa762402018-11-16 17:26:22 -08001421 tristate "ChaCha stream cipher algorithms"
Ard Biesheuvel5fb8ef22019-11-08 13:22:08 +01001422 select CRYPTO_LIB_CHACHA_GENERIC
Eric Biggersb95bba52019-10-25 12:41:13 -07001423 select CRYPTO_SKCIPHER
Martin Willic08d0e62015-06-01 13:43:56 +02001424 help
Eric Biggersaa762402018-11-16 17:26:22 -08001425 The ChaCha20, XChaCha20, and XChaCha12 stream cipher algorithms.
Martin Willic08d0e62015-06-01 13:43:56 +02001426
1427 ChaCha20 is a 256-bit high-speed stream cipher designed by Daniel J.
1428 Bernstein and further specified in RFC7539 for use in IETF protocols.
Eric Biggersde61d7a2018-11-16 17:26:20 -08001429 This is the portable C implementation of ChaCha20. See also:
Martin Willic08d0e62015-06-01 13:43:56 +02001430 <http://cr.yp.to/chacha/chacha-20080128.pdf>
1431
Eric Biggersde61d7a2018-11-16 17:26:20 -08001432 XChaCha20 is the application of the XSalsa20 construction to ChaCha20
1433 rather than to Salsa20. XChaCha20 extends ChaCha20's nonce length
1434 from 64 bits (or 96 bits using the RFC7539 convention) to 192 bits,
1435 while provably retaining ChaCha20's security. See also:
1436 <https://cr.yp.to/snuffle/xsalsa-20081128.pdf>
1437
Eric Biggersaa762402018-11-16 17:26:22 -08001438 XChaCha12 is XChaCha20 reduced to 12 rounds, with correspondingly
1439 reduced security margin but increased performance. It can be needed
1440 in some performance-sensitive scenarios.
1441
Martin Willic9320b62015-07-16 19:14:01 +02001442config CRYPTO_CHACHA20_X86_64
Eric Biggers4af78262018-12-04 22:20:02 -08001443 tristate "ChaCha stream cipher algorithms (x86_64/SSSE3/AVX2/AVX-512VL)"
Martin Willic9320b62015-07-16 19:14:01 +02001444 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001445 select CRYPTO_SKCIPHER
Ard Biesheuvel28e8d892019-11-08 13:22:09 +01001446 select CRYPTO_LIB_CHACHA_GENERIC
Ard Biesheuvel84e03fa2019-11-08 13:22:10 +01001447 select CRYPTO_ARCH_HAVE_LIB_CHACHA
Martin Willic9320b62015-07-16 19:14:01 +02001448 help
Eric Biggers7a507d62018-12-04 22:20:04 -08001449 SSSE3, AVX2, and AVX-512VL optimized implementations of the ChaCha20,
1450 XChaCha20, and XChaCha12 stream ciphers.
Martin Willic9320b62015-07-16 19:14:01 +02001451
Ard Biesheuvel3a2f58f2019-11-08 13:22:17 +01001452config CRYPTO_CHACHA_MIPS
1453 tristate "ChaCha stream cipher algorithms (MIPS 32r2 optimized)"
1454 depends on CPU_MIPS32_R2
1455 select CRYPTO_BLKCIPHER
1456 select CRYPTO_ARCH_HAVE_LIB_CHACHA
1457
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001458config CRYPTO_SEED
1459 tristate "SEED cipher algorithm"
1460 select CRYPTO_ALGAPI
1461 help
1462 SEED cipher algorithm (RFC4269).
1463
1464 SEED is a 128-bit symmetric key block cipher that has been
1465 developed by KISA (Korea Information Security Agency) as a
1466 national standard encryption algorithm of the Republic of Korea.
1467 It is a 16 round block cipher with the key size of 128 bit.
1468
1469 See also:
1470 <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>
1471
1472config CRYPTO_SERPENT
1473 tristate "Serpent cipher algorithm"
1474 select CRYPTO_ALGAPI
1475 help
1476 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1477
1478 Keys are allowed to be from 0 to 256 bits in length, in steps
1479 of 8 bits. Also includes the 'Tnepres' algorithm, a reversed
1480 variant of Serpent for compatibility with old kerneli.org code.
1481
1482 See also:
1483 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1484
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001485config CRYPTO_SERPENT_SSE2_X86_64
1486 tristate "Serpent cipher algorithm (x86_64/SSE2)"
1487 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001488 select CRYPTO_SKCIPHER
Jussi Kivilinna596d8752012-06-18 14:07:19 +03001489 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001490 select CRYPTO_SERPENT
Eric Biggerse0f409d2018-02-19 23:48:03 -08001491 select CRYPTO_SIMD
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001492 help
1493 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1494
1495 Keys are allowed to be from 0 to 256 bits in length, in steps
1496 of 8 bits.
1497
Masanari Iida1e6232f2015-04-04 00:20:30 +09001498 This module provides Serpent cipher algorithm that processes eight
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001499 blocks parallel using SSE2 instruction set.
1500
1501 See also:
1502 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1503
Jussi Kivilinna251496d2011-11-09 16:26:31 +02001504config CRYPTO_SERPENT_SSE2_586
1505 tristate "Serpent cipher algorithm (i586/SSE2)"
1506 depends on X86 && !64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001507 select CRYPTO_SKCIPHER
Jussi Kivilinna596d8752012-06-18 14:07:19 +03001508 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna251496d2011-11-09 16:26:31 +02001509 select CRYPTO_SERPENT
Eric Biggerse0f409d2018-02-19 23:48:03 -08001510 select CRYPTO_SIMD
Jussi Kivilinna251496d2011-11-09 16:26:31 +02001511 help
1512 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1513
1514 Keys are allowed to be from 0 to 256 bits in length, in steps
1515 of 8 bits.
1516
1517 This module provides Serpent cipher algorithm that processes four
1518 blocks parallel using SSE2 instruction set.
1519
1520 See also:
1521 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1522
Johannes Goetzfried7efe4072012-06-12 16:47:43 +08001523config CRYPTO_SERPENT_AVX_X86_64
1524 tristate "Serpent cipher algorithm (x86_64/AVX)"
1525 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001526 select CRYPTO_SKCIPHER
Jussi Kivilinna1d0debb2012-06-18 14:07:24 +03001527 select CRYPTO_GLUE_HELPER_X86
Johannes Goetzfried7efe4072012-06-12 16:47:43 +08001528 select CRYPTO_SERPENT
Eric Biggerse16bf972018-02-19 23:48:06 -08001529 select CRYPTO_SIMD
Johannes Goetzfried7efe4072012-06-12 16:47:43 +08001530 select CRYPTO_XTS
1531 help
1532 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1533
1534 Keys are allowed to be from 0 to 256 bits in length, in steps
1535 of 8 bits.
1536
1537 This module provides the Serpent cipher algorithm that processes
1538 eight blocks parallel using the AVX instruction set.
1539
1540 See also:
1541 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1542
Jussi Kivilinna56d76c92013-04-13 13:46:55 +03001543config CRYPTO_SERPENT_AVX2_X86_64
1544 tristate "Serpent cipher algorithm (x86_64/AVX2)"
1545 depends on X86 && 64BIT
Jussi Kivilinna56d76c92013-04-13 13:46:55 +03001546 select CRYPTO_SERPENT_AVX_X86_64
Jussi Kivilinna56d76c92013-04-13 13:46:55 +03001547 help
1548 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1549
1550 Keys are allowed to be from 0 to 256 bits in length, in steps
1551 of 8 bits.
1552
1553 This module provides Serpent cipher algorithm that processes 16
1554 blocks parallel using AVX2 instruction set.
1555
1556 See also:
1557 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1558
Gilad Ben-Yossef747c8ce2018-03-06 09:44:42 +00001559config CRYPTO_SM4
1560 tristate "SM4 cipher algorithm"
1561 select CRYPTO_ALGAPI
1562 help
1563 SM4 cipher algorithms (OSCCA GB/T 32907-2016).
1564
1565 SM4 (GBT.32907-2016) is a cryptographic standard issued by the
1566 Organization of State Commercial Administration of China (OSCCA)
1567 as an authorized cryptographic algorithms for the use within China.
1568
1569 SMS4 was originally created for use in protecting wireless
1570 networks, and is mandated in the Chinese National Standard for
1571 Wireless LAN WAPI (Wired Authentication and Privacy Infrastructure)
1572 (GB.15629.11-2003).
1573
1574 The latest SM4 standard (GBT.32907-2016) was proposed by OSCCA and
1575 standardized through TC 260 of the Standardization Administration
1576 of the People's Republic of China (SAC).
1577
1578 The input, output, and key of SMS4 are each 128 bits.
1579
1580 See also: <https://eprint.iacr.org/2008/329.pdf>
1581
1582 If unsure, say N.
1583
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001584config CRYPTO_TEA
1585 tristate "TEA, XTEA and XETA cipher algorithms"
1586 select CRYPTO_ALGAPI
1587 help
1588 TEA cipher algorithm.
1589
1590 Tiny Encryption Algorithm is a simple cipher that uses
1591 many rounds for security. It is very fast and uses
1592 little memory.
1593
1594 Xtendend Tiny Encryption Algorithm is a modification to
1595 the TEA algorithm to address a potential key weakness
1596 in the TEA algorithm.
1597
1598 Xtendend Encryption Tiny Algorithm is a mis-implementation
1599 of the XTEA algorithm for compatibility purposes.
1600
1601config CRYPTO_TWOFISH
1602 tristate "Twofish cipher algorithm"
1603 select CRYPTO_ALGAPI
1604 select CRYPTO_TWOFISH_COMMON
1605 help
1606 Twofish cipher algorithm.
1607
1608 Twofish was submitted as an AES (Advanced Encryption Standard)
1609 candidate cipher by researchers at CounterPane Systems. It is a
1610 16 round block cipher supporting key sizes of 128, 192, and 256
1611 bits.
1612
1613 See also:
1614 <http://www.schneier.com/twofish.html>
1615
1616config CRYPTO_TWOFISH_COMMON
1617 tristate
1618 help
1619 Common parts of the Twofish cipher algorithm shared by the
1620 generic c and the assembler implementations.
1621
1622config CRYPTO_TWOFISH_586
1623 tristate "Twofish cipher algorithms (i586)"
1624 depends on (X86 || UML_X86) && !64BIT
1625 select CRYPTO_ALGAPI
1626 select CRYPTO_TWOFISH_COMMON
1627 help
1628 Twofish cipher algorithm.
1629
1630 Twofish was submitted as an AES (Advanced Encryption Standard)
1631 candidate cipher by researchers at CounterPane Systems. It is a
1632 16 round block cipher supporting key sizes of 128, 192, and 256
1633 bits.
1634
1635 See also:
1636 <http://www.schneier.com/twofish.html>
1637
1638config CRYPTO_TWOFISH_X86_64
1639 tristate "Twofish cipher algorithm (x86_64)"
1640 depends on (X86 || UML_X86) && 64BIT
1641 select CRYPTO_ALGAPI
1642 select CRYPTO_TWOFISH_COMMON
1643 help
1644 Twofish cipher algorithm (x86_64).
1645
1646 Twofish was submitted as an AES (Advanced Encryption Standard)
1647 candidate cipher by researchers at CounterPane Systems. It is a
1648 16 round block cipher supporting key sizes of 128, 192, and 256
1649 bits.
1650
1651 See also:
1652 <http://www.schneier.com/twofish.html>
1653
Jussi Kivilinna8280daa2011-09-26 16:47:25 +03001654config CRYPTO_TWOFISH_X86_64_3WAY
1655 tristate "Twofish cipher algorithm (x86_64, 3-way parallel)"
Al Virof21a7c12012-04-08 20:31:22 -04001656 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001657 select CRYPTO_SKCIPHER
Jussi Kivilinna8280daa2011-09-26 16:47:25 +03001658 select CRYPTO_TWOFISH_COMMON
1659 select CRYPTO_TWOFISH_X86_64
Jussi Kivilinna414cb5e2012-06-18 14:07:34 +03001660 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna8280daa2011-09-26 16:47:25 +03001661 help
1662 Twofish cipher algorithm (x86_64, 3-way parallel).
1663
1664 Twofish was submitted as an AES (Advanced Encryption Standard)
1665 candidate cipher by researchers at CounterPane Systems. It is a
1666 16 round block cipher supporting key sizes of 128, 192, and 256
1667 bits.
1668
1669 This module provides Twofish cipher algorithm that processes three
1670 blocks parallel, utilizing resources of out-of-order CPUs better.
1671
1672 See also:
1673 <http://www.schneier.com/twofish.html>
1674
Johannes Goetzfried107778b52012-05-28 15:54:24 +02001675config CRYPTO_TWOFISH_AVX_X86_64
1676 tristate "Twofish cipher algorithm (x86_64/AVX)"
1677 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001678 select CRYPTO_SKCIPHER
Jussi Kivilinnaa7378d42012-06-18 14:07:39 +03001679 select CRYPTO_GLUE_HELPER_X86
Eric Biggers0e6ab462018-02-19 23:48:11 -08001680 select CRYPTO_SIMD
Johannes Goetzfried107778b52012-05-28 15:54:24 +02001681 select CRYPTO_TWOFISH_COMMON
1682 select CRYPTO_TWOFISH_X86_64
1683 select CRYPTO_TWOFISH_X86_64_3WAY
Johannes Goetzfried107778b52012-05-28 15:54:24 +02001684 help
1685 Twofish cipher algorithm (x86_64/AVX).
1686
1687 Twofish was submitted as an AES (Advanced Encryption Standard)
1688 candidate cipher by researchers at CounterPane Systems. It is a
1689 16 round block cipher supporting key sizes of 128, 192, and 256
1690 bits.
1691
1692 This module provides the Twofish cipher algorithm that processes
1693 eight blocks parallel using the AVX Instruction Set.
1694
1695 See also:
1696 <http://www.schneier.com/twofish.html>
1697
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001698comment "Compression"
1699
Linus Torvalds1da177e2005-04-16 15:20:36 -07001700config CRYPTO_DEFLATE
1701 tristate "Deflate compression algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001702 select CRYPTO_ALGAPI
Giovanni Cabidduf6ded092016-10-21 13:19:53 +01001703 select CRYPTO_ACOMP2
Linus Torvalds1da177e2005-04-16 15:20:36 -07001704 select ZLIB_INFLATE
1705 select ZLIB_DEFLATE
1706 help
1707 This is the Deflate algorithm (RFC1951), specified for use in
1708 IPSec with the IPCOMP protocol (RFC3173, RFC2394).
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001709
Linus Torvalds1da177e2005-04-16 15:20:36 -07001710 You will most probably want this if using IPSec.
1711
Zoltan Sogor0b77abb2007-12-07 16:53:23 +08001712config CRYPTO_LZO
1713 tristate "LZO compression algorithm"
1714 select CRYPTO_ALGAPI
Giovanni Cabidduac9d2c42016-10-21 13:19:49 +01001715 select CRYPTO_ACOMP2
Zoltan Sogor0b77abb2007-12-07 16:53:23 +08001716 select LZO_COMPRESS
1717 select LZO_DECOMPRESS
1718 help
1719 This is the LZO algorithm.
1720
Seth Jennings35a1fc12012-07-19 09:42:41 -05001721config CRYPTO_842
1722 tristate "842 compression algorithm"
Dan Streetman2062c5b2015-05-07 13:49:15 -04001723 select CRYPTO_ALGAPI
Giovanni Cabiddu6a8de3a2016-10-21 13:19:52 +01001724 select CRYPTO_ACOMP2
Dan Streetman2062c5b2015-05-07 13:49:15 -04001725 select 842_COMPRESS
1726 select 842_DECOMPRESS
Seth Jennings35a1fc12012-07-19 09:42:41 -05001727 help
1728 This is the 842 algorithm.
1729
Chanho Min0ea85302013-07-08 16:01:51 -07001730config CRYPTO_LZ4
1731 tristate "LZ4 compression algorithm"
1732 select CRYPTO_ALGAPI
Giovanni Cabiddu8cd93302016-10-21 13:19:50 +01001733 select CRYPTO_ACOMP2
Chanho Min0ea85302013-07-08 16:01:51 -07001734 select LZ4_COMPRESS
1735 select LZ4_DECOMPRESS
1736 help
1737 This is the LZ4 algorithm.
1738
1739config CRYPTO_LZ4HC
1740 tristate "LZ4HC compression algorithm"
1741 select CRYPTO_ALGAPI
Giovanni Cabiddu91d53d92016-10-21 13:19:51 +01001742 select CRYPTO_ACOMP2
Chanho Min0ea85302013-07-08 16:01:51 -07001743 select LZ4HC_COMPRESS
1744 select LZ4_DECOMPRESS
1745 help
1746 This is the LZ4 high compression mode algorithm.
1747
Nick Terrelld28fc3d2018-03-30 12:14:53 -07001748config CRYPTO_ZSTD
1749 tristate "Zstd compression algorithm"
1750 select CRYPTO_ALGAPI
1751 select CRYPTO_ACOMP2
1752 select ZSTD_COMPRESS
1753 select ZSTD_DECOMPRESS
1754 help
1755 This is the zstd algorithm.
1756
Neil Horman17f0f4a2008-08-14 22:15:52 +10001757comment "Random Number Generation"
1758
1759config CRYPTO_ANSI_CPRNG
1760 tristate "Pseudo Random Number Generation for Cryptographic modules"
1761 select CRYPTO_AES
1762 select CRYPTO_RNG
Neil Horman17f0f4a2008-08-14 22:15:52 +10001763 help
1764 This option enables the generic pseudo random number generator
1765 for cryptographic modules. Uses the Algorithm specified in
Jiri Kosina7dd607e2010-01-27 01:00:10 +01001766 ANSI X9.31 A.2.4. Note that this option must be enabled if
1767 CRYPTO_FIPS is selected
Neil Horman17f0f4a2008-08-14 22:15:52 +10001768
Herbert Xuf2c89a12014-07-04 22:15:08 +08001769menuconfig CRYPTO_DRBG_MENU
Stephan Mueller419090c2014-05-31 17:22:31 +02001770 tristate "NIST SP800-90A DRBG"
Stephan Mueller419090c2014-05-31 17:22:31 +02001771 help
1772 NIST SP800-90A compliant DRBG. In the following submenu, one or
1773 more of the DRBG types must be selected.
1774
Herbert Xuf2c89a12014-07-04 22:15:08 +08001775if CRYPTO_DRBG_MENU
Stephan Mueller419090c2014-05-31 17:22:31 +02001776
1777config CRYPTO_DRBG_HMAC
Herbert Xu401e4232015-06-03 14:49:31 +08001778 bool
Stephan Mueller419090c2014-05-31 17:22:31 +02001779 default y
Stephan Mueller419090c2014-05-31 17:22:31 +02001780 select CRYPTO_HMAC
Herbert Xu826775b2015-06-11 08:55:10 +08001781 select CRYPTO_SHA256
Stephan Mueller419090c2014-05-31 17:22:31 +02001782
1783config CRYPTO_DRBG_HASH
1784 bool "Enable Hash DRBG"
Herbert Xu826775b2015-06-11 08:55:10 +08001785 select CRYPTO_SHA256
Stephan Mueller419090c2014-05-31 17:22:31 +02001786 help
1787 Enable the Hash DRBG variant as defined in NIST SP800-90A.
1788
1789config CRYPTO_DRBG_CTR
1790 bool "Enable CTR DRBG"
Stephan Mueller419090c2014-05-31 17:22:31 +02001791 select CRYPTO_AES
Stephan Mueller35591282016-06-14 07:34:13 +02001792 depends on CRYPTO_CTR
Stephan Mueller419090c2014-05-31 17:22:31 +02001793 help
1794 Enable the CTR DRBG variant as defined in NIST SP800-90A.
1795
Herbert Xuf2c89a12014-07-04 22:15:08 +08001796config CRYPTO_DRBG
1797 tristate
Herbert Xu401e4232015-06-03 14:49:31 +08001798 default CRYPTO_DRBG_MENU
Herbert Xuf2c89a12014-07-04 22:15:08 +08001799 select CRYPTO_RNG
Stephan Muellerbb5530e2015-05-25 15:10:20 +02001800 select CRYPTO_JITTERENTROPY
Herbert Xuf2c89a12014-07-04 22:15:08 +08001801
1802endif # if CRYPTO_DRBG_MENU
Stephan Mueller419090c2014-05-31 17:22:31 +02001803
Stephan Muellerbb5530e2015-05-25 15:10:20 +02001804config CRYPTO_JITTERENTROPY
1805 tristate "Jitterentropy Non-Deterministic Random Number Generator"
Arnd Bergmann2f313e02016-01-26 14:47:10 +01001806 select CRYPTO_RNG
Stephan Muellerbb5530e2015-05-25 15:10:20 +02001807 help
1808 The Jitterentropy RNG is a noise that is intended
1809 to provide seed to another RNG. The RNG does not
1810 perform any cryptographic whitening of the generated
1811 random numbers. This Jitterentropy RNG registers with
1812 the kernel crypto API and can be used by any caller.
1813
Herbert Xu03c8efc2010-10-19 21:12:39 +08001814config CRYPTO_USER_API
1815 tristate
1816
Herbert Xufe869cd2010-10-19 21:23:00 +08001817config CRYPTO_USER_API_HASH
1818 tristate "User-space interface for hash algorithms"
Herbert Xu74517082010-11-29 22:56:03 +08001819 depends on NET
Herbert Xufe869cd2010-10-19 21:23:00 +08001820 select CRYPTO_HASH
1821 select CRYPTO_USER_API
1822 help
1823 This option enables the user-spaces interface for hash
1824 algorithms.
1825
Herbert Xu8ff59092010-10-19 21:31:55 +08001826config CRYPTO_USER_API_SKCIPHER
1827 tristate "User-space interface for symmetric key cipher algorithms"
Herbert Xu74517082010-11-29 22:56:03 +08001828 depends on NET
Eric Biggersb95bba52019-10-25 12:41:13 -07001829 select CRYPTO_SKCIPHER
Herbert Xu8ff59092010-10-19 21:31:55 +08001830 select CRYPTO_USER_API
1831 help
1832 This option enables the user-spaces interface for symmetric
1833 key cipher algorithms.
1834
Stephan Mueller2f3755382014-12-25 23:00:39 +01001835config CRYPTO_USER_API_RNG
1836 tristate "User-space interface for random number generator algorithms"
1837 depends on NET
1838 select CRYPTO_RNG
1839 select CRYPTO_USER_API
1840 help
1841 This option enables the user-spaces interface for random
1842 number generator algorithms.
1843
Herbert Xub64a2d92015-05-28 11:30:35 +08001844config CRYPTO_USER_API_AEAD
1845 tristate "User-space interface for AEAD cipher algorithms"
1846 depends on NET
1847 select CRYPTO_AEAD
Eric Biggersb95bba52019-10-25 12:41:13 -07001848 select CRYPTO_SKCIPHER
Stephan Mueller72548b02017-07-30 14:32:58 +02001849 select CRYPTO_NULL
Herbert Xub64a2d92015-05-28 11:30:35 +08001850 select CRYPTO_USER_API
1851 help
1852 This option enables the user-spaces interface for AEAD
1853 cipher algorithms.
1854
Corentin Labbecac58182018-09-19 10:10:54 +00001855config CRYPTO_STATS
1856 bool "Crypto usage statistics for User-space"
Corentin Labbea6a31382018-11-29 14:42:17 +00001857 depends on CRYPTO_USER
Corentin Labbecac58182018-09-19 10:10:54 +00001858 help
1859 This option enables the gathering of crypto stats.
1860 This will collect:
1861 - encrypt/decrypt size and numbers of symmeric operations
1862 - compress/decompress size and numbers of compress operations
1863 - size and numbers of hash operations
1864 - encrypt/decrypt/sign/verify numbers for asymmetric operations
1865 - generate/seed numbers for rng operations
1866
Dmitry Kasatkinee089972013-05-06 15:40:01 +03001867config CRYPTO_HASH_INFO
1868 bool
1869
Ard Biesheuvel746b2e02019-11-08 13:22:07 +01001870source "lib/crypto/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -07001871source "drivers/crypto/Kconfig"
Masahiro Yamada8636a1f2018-12-11 20:01:04 +09001872source "crypto/asymmetric_keys/Kconfig"
1873source "certs/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -07001874
Herbert Xucce9e062006-08-21 21:08:13 +10001875endif # if CRYPTO