blob: ae4495ae003f3260294670e57ca4263b15420c4c [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
449 select CRYPTO_POLY1305
450
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
470 select CRYPTO_POLY1305
471 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
Martin Willif979e012015-06-01 13:43:58 +0200706 help
707 Poly1305 authenticator algorithm, RFC7539.
708
709 Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein.
710 It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use
711 in IETF protocols. This is the portable C implementation of Poly1305.
712
Martin Willic70f4ab2015-07-16 19:14:06 +0200713config CRYPTO_POLY1305_X86_64
Martin Willib1ccc8f2015-07-16 19:14:08 +0200714 tristate "Poly1305 authenticator algorithm (x86_64/SSE2/AVX2)"
Martin Willic70f4ab2015-07-16 19:14:06 +0200715 depends on X86 && 64BIT
716 select CRYPTO_POLY1305
717 help
718 Poly1305 authenticator algorithm, RFC7539.
719
720 Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein.
721 It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use
722 in IETF protocols. This is the x86_64 assembler implementation using SIMD
723 instructions.
724
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800725config CRYPTO_MD4
726 tristate "MD4 digest algorithm"
Adrian-Ken Rueegsegger808a1762008-12-03 19:55:27 +0800727 select CRYPTO_HASH
Linus Torvalds1da177e2005-04-16 15:20:36 -0700728 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800729 MD4 message digest algorithm (RFC1320).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700730
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800731config CRYPTO_MD5
732 tristate "MD5 digest algorithm"
Adrian-Ken Rueegsegger14b75ba2008-12-03 19:57:12 +0800733 select CRYPTO_HASH
Linus Torvalds1da177e2005-04-16 15:20:36 -0700734 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800735 MD5 message digest algorithm (RFC1321).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700736
Aaro Koskinend69e75d2014-12-21 22:54:02 +0200737config CRYPTO_MD5_OCTEON
738 tristate "MD5 digest algorithm (OCTEON)"
739 depends on CPU_CAVIUM_OCTEON
740 select CRYPTO_MD5
741 select CRYPTO_HASH
742 help
743 MD5 message digest algorithm (RFC1321) implemented
744 using OCTEON crypto instructions, when available.
745
Markus Stockhausene8e59952015-03-01 19:30:46 +0100746config CRYPTO_MD5_PPC
747 tristate "MD5 digest algorithm (PPC)"
748 depends on PPC
749 select CRYPTO_HASH
750 help
751 MD5 message digest algorithm (RFC1321) implemented
752 in PPC assembler.
753
David S. Millerfa4dfed2012-08-19 21:51:26 -0700754config CRYPTO_MD5_SPARC64
755 tristate "MD5 digest algorithm (SPARC64)"
756 depends on SPARC64
757 select CRYPTO_MD5
758 select CRYPTO_HASH
759 help
760 MD5 message digest algorithm (RFC1321) implemented
761 using sparc64 crypto instructions, when available.
762
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800763config CRYPTO_MICHAEL_MIC
764 tristate "Michael MIC keyed digest algorithm"
Adrian-Ken Rueegsegger19e2bf12008-12-07 19:35:38 +0800765 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800766 help
767 Michael MIC is used for message integrity protection in TKIP
768 (IEEE 802.11i). This algorithm is required for TKIP, but it
769 should not be used for other purposes because of the weakness
770 of the algorithm.
771
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800772config CRYPTO_RMD128
Adrian Bunkb6d44342008-07-16 19:28:00 +0800773 tristate "RIPEMD-128 digest algorithm"
Herbert Xu7c4468b2008-11-08 09:10:40 +0800774 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800775 help
776 RIPEMD-128 (ISO/IEC 10118-3:2004).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800777
Adrian Bunkb6d44342008-07-16 19:28:00 +0800778 RIPEMD-128 is a 128-bit cryptographic hash function. It should only
Michael Witten35ed4b32011-07-09 04:02:31 +0000779 be used as a secure replacement for RIPEMD. For other use cases,
Adrian Bunkb6d44342008-07-16 19:28:00 +0800780 RIPEMD-160 should be used.
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800781
Adrian Bunkb6d44342008-07-16 19:28:00 +0800782 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800783 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800784
785config CRYPTO_RMD160
Adrian Bunkb6d44342008-07-16 19:28:00 +0800786 tristate "RIPEMD-160 digest algorithm"
Herbert Xue5835fb2008-11-08 09:18:51 +0800787 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800788 help
789 RIPEMD-160 (ISO/IEC 10118-3:2004).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800790
Adrian Bunkb6d44342008-07-16 19:28:00 +0800791 RIPEMD-160 is a 160-bit cryptographic hash function. It is intended
792 to be used as a secure replacement for the 128-bit hash functions
793 MD4, MD5 and it's predecessor RIPEMD
794 (not to be confused with RIPEMD-128).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800795
Adrian Bunkb6d44342008-07-16 19:28:00 +0800796 It's speed is comparable to SHA1 and there are no known attacks
797 against RIPEMD-160.
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800798
Adrian Bunkb6d44342008-07-16 19:28:00 +0800799 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800800 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800801
802config CRYPTO_RMD256
Adrian Bunkb6d44342008-07-16 19:28:00 +0800803 tristate "RIPEMD-256 digest algorithm"
Herbert Xud8a5e2e2008-11-08 09:58:10 +0800804 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800805 help
806 RIPEMD-256 is an optional extension of RIPEMD-128 with a
807 256 bit hash. It is intended for applications that require
808 longer hash-results, without needing a larger security level
809 (than RIPEMD-128).
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800810
Adrian Bunkb6d44342008-07-16 19:28:00 +0800811 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800812 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800813
814config CRYPTO_RMD320
Adrian Bunkb6d44342008-07-16 19:28:00 +0800815 tristate "RIPEMD-320 digest algorithm"
Herbert Xu3b8efb42008-11-08 10:11:09 +0800816 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800817 help
818 RIPEMD-320 is an optional extension of RIPEMD-160 with a
819 320 bit hash. It is intended for applications that require
820 longer hash-results, without needing a larger security level
821 (than RIPEMD-160).
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800822
Adrian Bunkb6d44342008-07-16 19:28:00 +0800823 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800824 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800825
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800826config CRYPTO_SHA1
827 tristate "SHA1 digest algorithm"
Adrian-Ken Rueegsegger54ccb362008-12-02 21:08:20 +0800828 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800829 help
830 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
831
Mathias Krause66be8952011-08-04 20:19:25 +0200832config CRYPTO_SHA1_SSSE3
time38b6b7f2015-09-10 15:27:26 -0700833 tristate "SHA1 digest algorithm (SSSE3/AVX/AVX2/SHA-NI)"
Mathias Krause66be8952011-08-04 20:19:25 +0200834 depends on X86 && 64BIT
835 select CRYPTO_SHA1
836 select CRYPTO_HASH
837 help
838 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
839 using Supplemental SSE3 (SSSE3) instructions or Advanced Vector
time38b6b7f2015-09-10 15:27:26 -0700840 Extensions (AVX/AVX2) or SHA-NI(SHA Extensions New Instructions),
841 when available.
Mathias Krause66be8952011-08-04 20:19:25 +0200842
Tim Chen8275d1a2013-03-26 13:59:17 -0700843config CRYPTO_SHA256_SSSE3
time38b6b7f2015-09-10 15:27:26 -0700844 tristate "SHA256 digest algorithm (SSSE3/AVX/AVX2/SHA-NI)"
Tim Chen8275d1a2013-03-26 13:59:17 -0700845 depends on X86 && 64BIT
846 select CRYPTO_SHA256
847 select CRYPTO_HASH
848 help
849 SHA-256 secure hash standard (DFIPS 180-2) implemented
850 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
851 Extensions version 1 (AVX1), or Advanced Vector Extensions
time38b6b7f2015-09-10 15:27:26 -0700852 version 2 (AVX2) instructions, or SHA-NI (SHA Extensions New
853 Instructions) when available.
Tim Chen8275d1a2013-03-26 13:59:17 -0700854
Tim Chen87de4572013-03-26 14:00:02 -0700855config CRYPTO_SHA512_SSSE3
856 tristate "SHA512 digest algorithm (SSSE3/AVX/AVX2)"
857 depends on X86 && 64BIT
858 select CRYPTO_SHA512
859 select CRYPTO_HASH
860 help
861 SHA-512 secure hash standard (DFIPS 180-2) implemented
862 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
863 Extensions version 1 (AVX1), or Advanced Vector Extensions
864 version 2 (AVX2) instructions, when available.
865
Aaro Koskinenefdb6f62015-03-08 22:07:47 +0200866config CRYPTO_SHA1_OCTEON
867 tristate "SHA1 digest algorithm (OCTEON)"
868 depends on CPU_CAVIUM_OCTEON
869 select CRYPTO_SHA1
870 select CRYPTO_HASH
871 help
872 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
873 using OCTEON crypto instructions, when available.
874
David S. Miller4ff28d42012-08-19 15:41:53 -0700875config CRYPTO_SHA1_SPARC64
876 tristate "SHA1 digest algorithm (SPARC64)"
877 depends on SPARC64
878 select CRYPTO_SHA1
879 select CRYPTO_HASH
880 help
881 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
882 using sparc64 crypto instructions, when available.
883
Michael Ellerman323a6bf2012-09-13 23:00:49 +0000884config CRYPTO_SHA1_PPC
885 tristate "SHA1 digest algorithm (powerpc)"
886 depends on PPC
887 help
888 This is the powerpc hardware accelerated implementation of the
889 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
890
Markus Stockhausend9850fc2015-02-24 20:36:50 +0100891config CRYPTO_SHA1_PPC_SPE
892 tristate "SHA1 digest algorithm (PPC SPE)"
893 depends on PPC && SPE
894 help
895 SHA-1 secure hash standard (DFIPS 180-4) implemented
896 using powerpc SPE SIMD instruction set.
897
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800898config CRYPTO_SHA256
899 tristate "SHA224 and SHA256 digest algorithm"
Adrian-Ken Rueegsegger50e109b52008-12-03 19:57:49 +0800900 select CRYPTO_HASH
Hans de Goede08c327f2019-08-17 16:24:35 +0200901 select CRYPTO_LIB_SHA256
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800902 help
903 SHA256 secure hash standard (DFIPS 180-2).
904
905 This version of SHA implements a 256 bit hash with 128 bits of
906 security against collision attacks.
907
Adrian Bunkb6d44342008-07-16 19:28:00 +0800908 This code also includes SHA-224, a 224 bit hash with 112 bits
909 of security against collision attacks.
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800910
Markus Stockhausen2ecc1e92015-01-30 15:39:34 +0100911config CRYPTO_SHA256_PPC_SPE
912 tristate "SHA224 and SHA256 digest algorithm (PPC SPE)"
913 depends on PPC && SPE
914 select CRYPTO_SHA256
915 select CRYPTO_HASH
916 help
917 SHA224 and SHA256 secure hash standard (DFIPS 180-2)
918 implemented using powerpc SPE SIMD instruction set.
919
Aaro Koskinenefdb6f62015-03-08 22:07:47 +0200920config CRYPTO_SHA256_OCTEON
921 tristate "SHA224 and SHA256 digest algorithm (OCTEON)"
922 depends on CPU_CAVIUM_OCTEON
923 select CRYPTO_SHA256
924 select CRYPTO_HASH
925 help
926 SHA-256 secure hash standard (DFIPS 180-2) implemented
927 using OCTEON crypto instructions, when available.
928
David S. Miller86c93b22012-08-19 17:11:37 -0700929config CRYPTO_SHA256_SPARC64
930 tristate "SHA224 and SHA256 digest algorithm (SPARC64)"
931 depends on SPARC64
932 select CRYPTO_SHA256
933 select CRYPTO_HASH
934 help
935 SHA-256 secure hash standard (DFIPS 180-2) implemented
936 using sparc64 crypto instructions, when available.
937
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800938config CRYPTO_SHA512
939 tristate "SHA384 and SHA512 digest algorithms"
Adrian-Ken Rueegseggerbd9d20d2008-12-17 16:49:02 +1100940 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800941 help
942 SHA512 secure hash standard (DFIPS 180-2).
943
944 This version of SHA implements a 512 bit hash with 256 bits of
945 security against collision attacks.
946
947 This code also includes SHA-384, a 384 bit hash with 192 bits
948 of security against collision attacks.
949
Aaro Koskinenefdb6f62015-03-08 22:07:47 +0200950config CRYPTO_SHA512_OCTEON
951 tristate "SHA384 and SHA512 digest algorithms (OCTEON)"
952 depends on CPU_CAVIUM_OCTEON
953 select CRYPTO_SHA512
954 select CRYPTO_HASH
955 help
956 SHA-512 secure hash standard (DFIPS 180-2) implemented
957 using OCTEON crypto instructions, when available.
958
David S. Miller775e0c62012-08-19 17:37:56 -0700959config CRYPTO_SHA512_SPARC64
960 tristate "SHA384 and SHA512 digest algorithm (SPARC64)"
961 depends on SPARC64
962 select CRYPTO_SHA512
963 select CRYPTO_HASH
964 help
965 SHA-512 secure hash standard (DFIPS 180-2) implemented
966 using sparc64 crypto instructions, when available.
967
Jeff Garzik53964b92016-06-17 10:30:35 +0530968config CRYPTO_SHA3
969 tristate "SHA3 digest algorithm"
970 select CRYPTO_HASH
971 help
972 SHA-3 secure hash standard (DFIPS 202). It's based on
973 cryptographic sponge function family called Keccak.
974
975 References:
976 http://keccak.noekeon.org/
977
Gilad Ben-Yossef4f0fc162017-08-21 13:51:28 +0300978config CRYPTO_SM3
979 tristate "SM3 digest algorithm"
980 select CRYPTO_HASH
981 help
982 SM3 secure hash function as defined by OSCCA GM/T 0004-2012 SM3).
983 It is part of the Chinese Commercial Cryptography suite.
984
985 References:
986 http://www.oscca.gov.cn/UpFile/20101222141857786.pdf
987 https://datatracker.ietf.org/doc/html/draft-shen-sm3-hash
988
Vitaly Chikunovfe189572018-11-07 00:00:01 +0300989config CRYPTO_STREEBOG
990 tristate "Streebog Hash Function"
991 select CRYPTO_HASH
992 help
993 Streebog Hash Function (GOST R 34.11-2012, RFC 6986) is one of the Russian
994 cryptographic standard algorithms (called GOST algorithms).
995 This setting enables two hash algorithms with 256 and 512 bits output.
996
997 References:
998 https://tc26.ru/upload/iblock/fed/feddbb4d26b685903faa2ba11aea43f6.pdf
999 https://tools.ietf.org/html/rfc6986
1000
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001001config CRYPTO_TGR192
1002 tristate "Tiger digest algorithms"
Adrian-Ken Rueegseggerf63fbd32008-12-03 19:58:32 +08001003 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001004 help
1005 Tiger hash algorithm 192, 160 and 128-bit hashes
1006
1007 Tiger is a hash function optimized for 64-bit processors while
1008 still having decent performance on 32-bit processors.
1009 Tiger was developed by Ross Anderson and Eli Biham.
Linus Torvalds1da177e2005-04-16 15:20:36 -07001010
1011 See also:
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001012 <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>.
1013
1014config CRYPTO_WP512
1015 tristate "Whirlpool digest algorithms"
Adrian-Ken Rueegsegger49465102008-12-07 19:34:37 +08001016 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001017 help
1018 Whirlpool hash algorithm 512, 384 and 256-bit hashes
1019
1020 Whirlpool-512 is part of the NESSIE cryptographic primitives.
1021 Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard
1022
1023 See also:
Justin P. Mattock6d8de742010-09-12 10:42:47 +08001024 <http://www.larc.usp.br/~pbarreto/WhirlpoolPage.html>
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001025
Huang Ying0e1227d2009-10-19 11:53:06 +09001026config CRYPTO_GHASH_CLMUL_NI_INTEL
Eric Biggers8dfa20f2019-07-19 23:09:18 -07001027 tristate "GHASH hash function (CLMUL-NI accelerated)"
Richard Weinberger8af00862011-06-08 20:56:29 +08001028 depends on X86 && 64BIT
Huang Ying0e1227d2009-10-19 11:53:06 +09001029 select CRYPTO_CRYPTD
1030 help
Eric Biggers8dfa20f2019-07-19 23:09:18 -07001031 This is the x86_64 CLMUL-NI accelerated implementation of
1032 GHASH, the hash function used in GCM (Galois/Counter mode).
Huang Ying0e1227d2009-10-19 11:53:06 +09001033
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001034comment "Ciphers"
Linus Torvalds1da177e2005-04-16 15:20:36 -07001035
1036config CRYPTO_AES
1037 tristate "AES cipher algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +10001038 select CRYPTO_ALGAPI
Ard Biesheuvel5bb12d72019-07-02 21:41:33 +02001039 select CRYPTO_LIB_AES
Linus Torvalds1da177e2005-04-16 15:20:36 -07001040 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001041 AES cipher algorithms (FIPS-197). AES uses the Rijndael
Linus Torvalds1da177e2005-04-16 15:20:36 -07001042 algorithm.
1043
1044 Rijndael appears to be consistently a very good performer in
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001045 both hardware and software across a wide range of computing
1046 environments regardless of its use in feedback or non-feedback
1047 modes. Its key setup time is excellent, and its key agility is
1048 good. Rijndael's very low memory requirements make it very well
1049 suited for restricted-space environments, in which it also
1050 demonstrates excellent performance. Rijndael's operations are
1051 among the easiest to defend against power and timing attacks.
Linus Torvalds1da177e2005-04-16 15:20:36 -07001052
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001053 The AES specifies three key sizes: 128, 192 and 256 bits
Linus Torvalds1da177e2005-04-16 15:20:36 -07001054
1055 See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information.
1056
Ard Biesheuvelb5e0b032017-02-02 16:37:40 +00001057config CRYPTO_AES_TI
1058 tristate "Fixed time AES cipher"
1059 select CRYPTO_ALGAPI
Ard Biesheuvele59c1c92019-07-02 21:41:22 +02001060 select CRYPTO_LIB_AES
Ard Biesheuvelb5e0b032017-02-02 16:37:40 +00001061 help
1062 This is a generic implementation of AES that attempts to eliminate
1063 data dependent latencies as much as possible without affecting
1064 performance too much. It is intended for use by the generic CCM
1065 and GCM drivers, and other CTR or CMAC/XCBC based modes that rely
1066 solely on encryption (although decryption is supported as well, but
1067 with a more dramatic performance hit)
1068
1069 Instead of using 16 lookup tables of 1 KB each, (8 for encryption and
1070 8 for decryption), this implementation only uses just two S-boxes of
1071 256 bytes each, and attempts to eliminate data dependent latencies by
1072 prefetching the entire table into the cache at the start of each
Eric Biggers0a6a40c2018-10-17 21:37:58 -07001073 block. Interrupts are also disabled to avoid races where cachelines
1074 are evicted when the CPU is interrupted to do something else.
Ard Biesheuvelb5e0b032017-02-02 16:37:40 +00001075
Huang Ying54b6a1b2009-01-18 16:28:34 +11001076config CRYPTO_AES_NI_INTEL
1077 tristate "AES cipher algorithms (AES-NI)"
Richard Weinberger8af00862011-06-08 20:56:29 +08001078 depends on X86
Herbert Xu85671862016-11-22 20:08:33 +08001079 select CRYPTO_AEAD
Ard Biesheuvel2c53fd12019-07-02 21:41:23 +02001080 select CRYPTO_LIB_AES
Huang Ying54b6a1b2009-01-18 16:28:34 +11001081 select CRYPTO_ALGAPI
Eric Biggersb95bba52019-10-25 12:41:13 -07001082 select CRYPTO_SKCIPHER
Jussi Kivilinna7643a112013-04-10 18:39:20 +03001083 select CRYPTO_GLUE_HELPER_X86 if 64BIT
Herbert Xu85671862016-11-22 20:08:33 +08001084 select CRYPTO_SIMD
Huang Ying54b6a1b2009-01-18 16:28:34 +11001085 help
1086 Use Intel AES-NI instructions for AES algorithm.
1087
1088 AES cipher algorithms (FIPS-197). AES uses the Rijndael
1089 algorithm.
1090
1091 Rijndael appears to be consistently a very good performer in
1092 both hardware and software across a wide range of computing
1093 environments regardless of its use in feedback or non-feedback
1094 modes. Its key setup time is excellent, and its key agility is
1095 good. Rijndael's very low memory requirements make it very well
1096 suited for restricted-space environments, in which it also
1097 demonstrates excellent performance. Rijndael's operations are
1098 among the easiest to defend against power and timing attacks.
1099
1100 The AES specifies three key sizes: 128, 192 and 256 bits
1101
1102 See <http://csrc.nist.gov/encryption/aes/> for more information.
1103
Mathias Krause0d258ef2010-11-27 16:34:46 +08001104 In addition to AES cipher algorithm support, the acceleration
1105 for some popular block cipher mode is supported too, including
Ard Biesheuvel944585a2018-09-24 14:48:16 +02001106 ECB, CBC, LRW, XTS. The 64 bit version has additional
Mathias Krause0d258ef2010-11-27 16:34:46 +08001107 acceleration for CTR.
Huang Ying2cf4ac82009-03-29 15:41:20 +08001108
David S. Miller9bf48522012-08-21 03:58:13 -07001109config CRYPTO_AES_SPARC64
1110 tristate "AES cipher algorithms (SPARC64)"
1111 depends on SPARC64
Eric Biggersb95bba52019-10-25 12:41:13 -07001112 select CRYPTO_SKCIPHER
David S. Miller9bf48522012-08-21 03:58:13 -07001113 help
1114 Use SPARC64 crypto opcodes for AES algorithm.
1115
1116 AES cipher algorithms (FIPS-197). AES uses the Rijndael
1117 algorithm.
1118
1119 Rijndael appears to be consistently a very good performer in
1120 both hardware and software across a wide range of computing
1121 environments regardless of its use in feedback or non-feedback
1122 modes. Its key setup time is excellent, and its key agility is
1123 good. Rijndael's very low memory requirements make it very well
1124 suited for restricted-space environments, in which it also
1125 demonstrates excellent performance. Rijndael's operations are
1126 among the easiest to defend against power and timing attacks.
1127
1128 The AES specifies three key sizes: 128, 192 and 256 bits
1129
1130 See <http://csrc.nist.gov/encryption/aes/> for more information.
1131
1132 In addition to AES cipher algorithm support, the acceleration
1133 for some popular block cipher mode is supported too, including
1134 ECB and CBC.
1135
Markus Stockhausen504c6142015-02-22 10:00:10 +01001136config CRYPTO_AES_PPC_SPE
1137 tristate "AES cipher algorithms (PPC SPE)"
1138 depends on PPC && SPE
Eric Biggersb95bba52019-10-25 12:41:13 -07001139 select CRYPTO_SKCIPHER
Markus Stockhausen504c6142015-02-22 10:00:10 +01001140 help
1141 AES cipher algorithms (FIPS-197). Additionally the acceleration
1142 for popular block cipher modes ECB, CBC, CTR and XTS is supported.
1143 This module should only be used for low power (router) devices
1144 without hardware AES acceleration (e.g. caam crypto). It reduces the
1145 size of the AES tables from 16KB to 8KB + 256 bytes and mitigates
1146 timining attacks. Nevertheless it might be not as secure as other
1147 architecture specific assembler implementations that work on 1KB
1148 tables or 256 bytes S-boxes.
1149
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001150config CRYPTO_ANUBIS
1151 tristate "Anubis cipher algorithm"
1152 select CRYPTO_ALGAPI
1153 help
1154 Anubis cipher algorithm.
1155
1156 Anubis is a variable key length cipher which can use keys from
1157 128 bits to 320 bits in length. It was evaluated as a entrant
1158 in the NESSIE competition.
1159
1160 See also:
Justin P. Mattock6d8de742010-09-12 10:42:47 +08001161 <https://www.cosic.esat.kuleuven.be/nessie/reports/>
1162 <http://www.larc.usp.br/~pbarreto/AnubisPage.html>
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001163
1164config CRYPTO_ARC4
1165 tristate "ARC4 cipher algorithm"
Eric Biggersb95bba52019-10-25 12:41:13 -07001166 select CRYPTO_SKCIPHER
Ard Biesheuveldc51f252019-06-12 18:19:53 +02001167 select CRYPTO_LIB_ARC4
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001168 help
1169 ARC4 cipher algorithm.
1170
1171 ARC4 is a stream cipher using keys ranging from 8 bits to 2048
1172 bits in length. This algorithm is required for driver-based
1173 WEP, but it should not be for other purposes because of the
1174 weakness of the algorithm.
1175
1176config CRYPTO_BLOWFISH
1177 tristate "Blowfish cipher algorithm"
1178 select CRYPTO_ALGAPI
Jussi Kivilinna52ba8672011-09-02 01:45:07 +03001179 select CRYPTO_BLOWFISH_COMMON
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001180 help
1181 Blowfish cipher algorithm, by Bruce Schneier.
1182
1183 This is a variable key length cipher which can use keys from 32
1184 bits to 448 bits in length. It's fast, simple and specifically
1185 designed for use on "large microprocessors".
1186
1187 See also:
1188 <http://www.schneier.com/blowfish.html>
1189
Jussi Kivilinna52ba8672011-09-02 01:45:07 +03001190config CRYPTO_BLOWFISH_COMMON
1191 tristate
1192 help
1193 Common parts of the Blowfish cipher algorithm shared by the
1194 generic c and the assembler implementations.
1195
1196 See also:
1197 <http://www.schneier.com/blowfish.html>
1198
Jussi Kivilinna64b94ce2011-09-02 01:45:22 +03001199config CRYPTO_BLOWFISH_X86_64
1200 tristate "Blowfish cipher algorithm (x86_64)"
Al Virof21a7c12012-04-08 20:31:22 -04001201 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001202 select CRYPTO_SKCIPHER
Jussi Kivilinna64b94ce2011-09-02 01:45:22 +03001203 select CRYPTO_BLOWFISH_COMMON
1204 help
1205 Blowfish cipher algorithm (x86_64), by Bruce Schneier.
1206
1207 This is a variable key length cipher which can use keys from 32
1208 bits to 448 bits in length. It's fast, simple and specifically
1209 designed for use on "large microprocessors".
1210
1211 See also:
1212 <http://www.schneier.com/blowfish.html>
1213
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001214config CRYPTO_CAMELLIA
1215 tristate "Camellia cipher algorithms"
1216 depends on CRYPTO
1217 select CRYPTO_ALGAPI
1218 help
1219 Camellia cipher algorithms module.
1220
1221 Camellia is a symmetric key block cipher developed jointly
1222 at NTT and Mitsubishi Electric Corporation.
1223
1224 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1225
1226 See also:
1227 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1228
Jussi Kivilinna0b95ec52012-03-05 20:26:47 +02001229config CRYPTO_CAMELLIA_X86_64
1230 tristate "Camellia cipher algorithm (x86_64)"
Al Virof21a7c12012-04-08 20:31:22 -04001231 depends on X86 && 64BIT
Jussi Kivilinna0b95ec52012-03-05 20:26:47 +02001232 depends on CRYPTO
Eric Biggersb95bba52019-10-25 12:41:13 -07001233 select CRYPTO_SKCIPHER
Jussi Kivilinna964263a2012-06-18 14:07:29 +03001234 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna0b95ec52012-03-05 20:26:47 +02001235 help
1236 Camellia cipher algorithm module (x86_64).
1237
1238 Camellia is a symmetric key block cipher developed jointly
1239 at NTT and Mitsubishi Electric Corporation.
1240
1241 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1242
1243 See also:
1244 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1245
Jussi Kivilinnad9b1d2e2012-10-26 14:49:01 +03001246config CRYPTO_CAMELLIA_AESNI_AVX_X86_64
1247 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX)"
1248 depends on X86 && 64BIT
1249 depends on CRYPTO
Eric Biggersb95bba52019-10-25 12:41:13 -07001250 select CRYPTO_SKCIPHER
Jussi Kivilinnad9b1d2e2012-10-26 14:49:01 +03001251 select CRYPTO_CAMELLIA_X86_64
Eric Biggers44893bc2018-02-19 23:48:23 -08001252 select CRYPTO_GLUE_HELPER_X86
1253 select CRYPTO_SIMD
Jussi Kivilinnad9b1d2e2012-10-26 14:49:01 +03001254 select CRYPTO_XTS
1255 help
1256 Camellia cipher algorithm module (x86_64/AES-NI/AVX).
1257
1258 Camellia is a symmetric key block cipher developed jointly
1259 at NTT and Mitsubishi Electric Corporation.
1260
1261 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1262
1263 See also:
1264 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1265
Jussi Kivilinnaf3f935a2013-04-13 13:47:00 +03001266config CRYPTO_CAMELLIA_AESNI_AVX2_X86_64
1267 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX2)"
1268 depends on X86 && 64BIT
1269 depends on CRYPTO
Jussi Kivilinnaf3f935a2013-04-13 13:47:00 +03001270 select CRYPTO_CAMELLIA_AESNI_AVX_X86_64
Jussi Kivilinnaf3f935a2013-04-13 13:47:00 +03001271 help
1272 Camellia cipher algorithm module (x86_64/AES-NI/AVX2).
1273
1274 Camellia is a symmetric key block cipher developed jointly
1275 at NTT and Mitsubishi Electric Corporation.
1276
1277 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1278
1279 See also:
1280 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1281
David S. Miller81658ad2012-08-28 12:05:54 -07001282config CRYPTO_CAMELLIA_SPARC64
1283 tristate "Camellia cipher algorithm (SPARC64)"
1284 depends on SPARC64
1285 depends on CRYPTO
1286 select CRYPTO_ALGAPI
Eric Biggersb95bba52019-10-25 12:41:13 -07001287 select CRYPTO_SKCIPHER
David S. Miller81658ad2012-08-28 12:05:54 -07001288 help
1289 Camellia cipher algorithm module (SPARC64).
1290
1291 Camellia is a symmetric key block cipher developed jointly
1292 at NTT and Mitsubishi Electric Corporation.
1293
1294 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1295
1296 See also:
1297 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1298
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001299config CRYPTO_CAST_COMMON
1300 tristate
1301 help
1302 Common parts of the CAST cipher algorithms shared by the
1303 generic c and the assembler implementations.
1304
Linus Torvalds1da177e2005-04-16 15:20:36 -07001305config CRYPTO_CAST5
1306 tristate "CAST5 (CAST-128) cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001307 select CRYPTO_ALGAPI
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001308 select CRYPTO_CAST_COMMON
Linus Torvalds1da177e2005-04-16 15:20:36 -07001309 help
1310 The CAST5 encryption algorithm (synonymous with CAST-128) is
1311 described in RFC2144.
1312
Johannes Goetzfried4d6d6a22012-07-11 19:37:37 +02001313config CRYPTO_CAST5_AVX_X86_64
1314 tristate "CAST5 (CAST-128) cipher algorithm (x86_64/AVX)"
1315 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001316 select CRYPTO_SKCIPHER
Johannes Goetzfried4d6d6a22012-07-11 19:37:37 +02001317 select CRYPTO_CAST5
Eric Biggers1e631832018-02-19 23:48:13 -08001318 select CRYPTO_CAST_COMMON
1319 select CRYPTO_SIMD
Johannes Goetzfried4d6d6a22012-07-11 19:37:37 +02001320 help
1321 The CAST5 encryption algorithm (synonymous with CAST-128) is
1322 described in RFC2144.
1323
1324 This module provides the Cast5 cipher algorithm that processes
1325 sixteen blocks parallel using the AVX instruction set.
1326
Linus Torvalds1da177e2005-04-16 15:20:36 -07001327config CRYPTO_CAST6
1328 tristate "CAST6 (CAST-256) cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001329 select CRYPTO_ALGAPI
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001330 select CRYPTO_CAST_COMMON
Linus Torvalds1da177e2005-04-16 15:20:36 -07001331 help
1332 The CAST6 encryption algorithm (synonymous with CAST-256) is
1333 described in RFC2612.
1334
Johannes Goetzfried4ea12772012-07-11 19:38:57 +02001335config CRYPTO_CAST6_AVX_X86_64
1336 tristate "CAST6 (CAST-256) cipher algorithm (x86_64/AVX)"
1337 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001338 select CRYPTO_SKCIPHER
Johannes Goetzfried4ea12772012-07-11 19:38:57 +02001339 select CRYPTO_CAST6
Eric Biggers4bd96922018-02-19 23:48:15 -08001340 select CRYPTO_CAST_COMMON
1341 select CRYPTO_GLUE_HELPER_X86
1342 select CRYPTO_SIMD
Johannes Goetzfried4ea12772012-07-11 19:38:57 +02001343 select CRYPTO_XTS
1344 help
1345 The CAST6 encryption algorithm (synonymous with CAST-256) is
1346 described in RFC2612.
1347
1348 This module provides the Cast6 cipher algorithm that processes
1349 eight blocks parallel using the AVX instruction set.
1350
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001351config CRYPTO_DES
1352 tristate "DES and Triple DES EDE cipher algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +10001353 select CRYPTO_ALGAPI
Ard Biesheuvel04007b02019-08-15 12:01:09 +03001354 select CRYPTO_LIB_DES
Linus Torvalds1da177e2005-04-16 15:20:36 -07001355 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001356 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
Linus Torvalds1da177e2005-04-16 15:20:36 -07001357
David S. Millerc5aac2d2012-08-25 22:37:23 -07001358config CRYPTO_DES_SPARC64
1359 tristate "DES and Triple DES EDE cipher algorithms (SPARC64)"
Dave Jones97da37b2012-10-02 17:13:20 -04001360 depends on SPARC64
David S. Millerc5aac2d2012-08-25 22:37:23 -07001361 select CRYPTO_ALGAPI
Ard Biesheuvel04007b02019-08-15 12:01:09 +03001362 select CRYPTO_LIB_DES
Eric Biggersb95bba52019-10-25 12:41:13 -07001363 select CRYPTO_SKCIPHER
David S. Millerc5aac2d2012-08-25 22:37:23 -07001364 help
1365 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3),
1366 optimized using SPARC64 crypto opcodes.
1367
Jussi Kivilinna6574e6c2014-06-09 20:59:54 +03001368config CRYPTO_DES3_EDE_X86_64
1369 tristate "Triple DES EDE cipher algorithm (x86-64)"
1370 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001371 select CRYPTO_SKCIPHER
Ard Biesheuvel04007b02019-08-15 12:01:09 +03001372 select CRYPTO_LIB_DES
Jussi Kivilinna6574e6c2014-06-09 20:59:54 +03001373 help
1374 Triple DES EDE (FIPS 46-3) algorithm.
1375
1376 This module provides implementation of the Triple DES EDE cipher
1377 algorithm that is optimized for x86-64 processors. Two versions of
1378 algorithm are provided; regular processing one input block and
1379 one that processes three blocks parallel.
1380
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001381config CRYPTO_FCRYPT
1382 tristate "FCrypt cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001383 select CRYPTO_ALGAPI
Eric Biggersb95bba52019-10-25 12:41:13 -07001384 select CRYPTO_SKCIPHER
Linus Torvalds1da177e2005-04-16 15:20:36 -07001385 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001386 FCrypt algorithm used by RxRPC.
Linus Torvalds1da177e2005-04-16 15:20:36 -07001387
1388config CRYPTO_KHAZAD
1389 tristate "Khazad cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001390 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -07001391 help
1392 Khazad cipher algorithm.
1393
1394 Khazad was a finalist in the initial NESSIE competition. It is
1395 an algorithm optimized for 64-bit processors with good performance
1396 on 32-bit processors. Khazad uses an 128 bit key size.
1397
1398 See also:
Justin P. Mattock6d8de742010-09-12 10:42:47 +08001399 <http://www.larc.usp.br/~pbarreto/KhazadPage.html>
Linus Torvalds1da177e2005-04-16 15:20:36 -07001400
Tan Swee Heng2407d602007-11-23 19:45:00 +08001401config CRYPTO_SALSA20
Kees Cook3b4afaf2012-10-02 11:16:49 -07001402 tristate "Salsa20 stream cipher algorithm"
Eric Biggersb95bba52019-10-25 12:41:13 -07001403 select CRYPTO_SKCIPHER
Tan Swee Heng2407d602007-11-23 19:45:00 +08001404 help
1405 Salsa20 stream cipher algorithm.
1406
1407 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
1408 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
1409
1410 The Salsa20 stream cipher algorithm is designed by Daniel J.
1411 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
Linus Torvalds1da177e2005-04-16 15:20:36 -07001412
Martin Willic08d0e62015-06-01 13:43:56 +02001413config CRYPTO_CHACHA20
Eric Biggersaa762402018-11-16 17:26:22 -08001414 tristate "ChaCha stream cipher algorithms"
Ard Biesheuvel5fb8ef22019-11-08 13:22:08 +01001415 select CRYPTO_LIB_CHACHA_GENERIC
Eric Biggersb95bba52019-10-25 12:41:13 -07001416 select CRYPTO_SKCIPHER
Martin Willic08d0e62015-06-01 13:43:56 +02001417 help
Eric Biggersaa762402018-11-16 17:26:22 -08001418 The ChaCha20, XChaCha20, and XChaCha12 stream cipher algorithms.
Martin Willic08d0e62015-06-01 13:43:56 +02001419
1420 ChaCha20 is a 256-bit high-speed stream cipher designed by Daniel J.
1421 Bernstein and further specified in RFC7539 for use in IETF protocols.
Eric Biggersde61d7a2018-11-16 17:26:20 -08001422 This is the portable C implementation of ChaCha20. See also:
Martin Willic08d0e62015-06-01 13:43:56 +02001423 <http://cr.yp.to/chacha/chacha-20080128.pdf>
1424
Eric Biggersde61d7a2018-11-16 17:26:20 -08001425 XChaCha20 is the application of the XSalsa20 construction to ChaCha20
1426 rather than to Salsa20. XChaCha20 extends ChaCha20's nonce length
1427 from 64 bits (or 96 bits using the RFC7539 convention) to 192 bits,
1428 while provably retaining ChaCha20's security. See also:
1429 <https://cr.yp.to/snuffle/xsalsa-20081128.pdf>
1430
Eric Biggersaa762402018-11-16 17:26:22 -08001431 XChaCha12 is XChaCha20 reduced to 12 rounds, with correspondingly
1432 reduced security margin but increased performance. It can be needed
1433 in some performance-sensitive scenarios.
1434
Martin Willic9320b62015-07-16 19:14:01 +02001435config CRYPTO_CHACHA20_X86_64
Eric Biggers4af78262018-12-04 22:20:02 -08001436 tristate "ChaCha stream cipher algorithms (x86_64/SSSE3/AVX2/AVX-512VL)"
Martin Willic9320b62015-07-16 19:14:01 +02001437 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001438 select CRYPTO_SKCIPHER
Martin Willic9320b62015-07-16 19:14:01 +02001439 select CRYPTO_CHACHA20
1440 help
Eric Biggers7a507d62018-12-04 22:20:04 -08001441 SSSE3, AVX2, and AVX-512VL optimized implementations of the ChaCha20,
1442 XChaCha20, and XChaCha12 stream ciphers.
Martin Willic9320b62015-07-16 19:14:01 +02001443
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001444config CRYPTO_SEED
1445 tristate "SEED cipher algorithm"
1446 select CRYPTO_ALGAPI
1447 help
1448 SEED cipher algorithm (RFC4269).
1449
1450 SEED is a 128-bit symmetric key block cipher that has been
1451 developed by KISA (Korea Information Security Agency) as a
1452 national standard encryption algorithm of the Republic of Korea.
1453 It is a 16 round block cipher with the key size of 128 bit.
1454
1455 See also:
1456 <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>
1457
1458config CRYPTO_SERPENT
1459 tristate "Serpent cipher algorithm"
1460 select CRYPTO_ALGAPI
1461 help
1462 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1463
1464 Keys are allowed to be from 0 to 256 bits in length, in steps
1465 of 8 bits. Also includes the 'Tnepres' algorithm, a reversed
1466 variant of Serpent for compatibility with old kerneli.org code.
1467
1468 See also:
1469 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1470
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001471config CRYPTO_SERPENT_SSE2_X86_64
1472 tristate "Serpent cipher algorithm (x86_64/SSE2)"
1473 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001474 select CRYPTO_SKCIPHER
Jussi Kivilinna596d8752012-06-18 14:07:19 +03001475 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001476 select CRYPTO_SERPENT
Eric Biggerse0f409d2018-02-19 23:48:03 -08001477 select CRYPTO_SIMD
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001478 help
1479 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1480
1481 Keys are allowed to be from 0 to 256 bits in length, in steps
1482 of 8 bits.
1483
Masanari Iida1e6232f2015-04-04 00:20:30 +09001484 This module provides Serpent cipher algorithm that processes eight
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001485 blocks parallel using SSE2 instruction set.
1486
1487 See also:
1488 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1489
Jussi Kivilinna251496d2011-11-09 16:26:31 +02001490config CRYPTO_SERPENT_SSE2_586
1491 tristate "Serpent cipher algorithm (i586/SSE2)"
1492 depends on X86 && !64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001493 select CRYPTO_SKCIPHER
Jussi Kivilinna596d8752012-06-18 14:07:19 +03001494 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna251496d2011-11-09 16:26:31 +02001495 select CRYPTO_SERPENT
Eric Biggerse0f409d2018-02-19 23:48:03 -08001496 select CRYPTO_SIMD
Jussi Kivilinna251496d2011-11-09 16:26:31 +02001497 help
1498 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1499
1500 Keys are allowed to be from 0 to 256 bits in length, in steps
1501 of 8 bits.
1502
1503 This module provides Serpent cipher algorithm that processes four
1504 blocks parallel using SSE2 instruction set.
1505
1506 See also:
1507 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1508
Johannes Goetzfried7efe4072012-06-12 16:47:43 +08001509config CRYPTO_SERPENT_AVX_X86_64
1510 tristate "Serpent cipher algorithm (x86_64/AVX)"
1511 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001512 select CRYPTO_SKCIPHER
Jussi Kivilinna1d0debb2012-06-18 14:07:24 +03001513 select CRYPTO_GLUE_HELPER_X86
Johannes Goetzfried7efe4072012-06-12 16:47:43 +08001514 select CRYPTO_SERPENT
Eric Biggerse16bf972018-02-19 23:48:06 -08001515 select CRYPTO_SIMD
Johannes Goetzfried7efe4072012-06-12 16:47:43 +08001516 select CRYPTO_XTS
1517 help
1518 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1519
1520 Keys are allowed to be from 0 to 256 bits in length, in steps
1521 of 8 bits.
1522
1523 This module provides the Serpent cipher algorithm that processes
1524 eight blocks parallel using the AVX instruction set.
1525
1526 See also:
1527 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1528
Jussi Kivilinna56d76c92013-04-13 13:46:55 +03001529config CRYPTO_SERPENT_AVX2_X86_64
1530 tristate "Serpent cipher algorithm (x86_64/AVX2)"
1531 depends on X86 && 64BIT
Jussi Kivilinna56d76c92013-04-13 13:46:55 +03001532 select CRYPTO_SERPENT_AVX_X86_64
Jussi Kivilinna56d76c92013-04-13 13:46:55 +03001533 help
1534 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1535
1536 Keys are allowed to be from 0 to 256 bits in length, in steps
1537 of 8 bits.
1538
1539 This module provides Serpent cipher algorithm that processes 16
1540 blocks parallel using AVX2 instruction set.
1541
1542 See also:
1543 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1544
Gilad Ben-Yossef747c8ce2018-03-06 09:44:42 +00001545config CRYPTO_SM4
1546 tristate "SM4 cipher algorithm"
1547 select CRYPTO_ALGAPI
1548 help
1549 SM4 cipher algorithms (OSCCA GB/T 32907-2016).
1550
1551 SM4 (GBT.32907-2016) is a cryptographic standard issued by the
1552 Organization of State Commercial Administration of China (OSCCA)
1553 as an authorized cryptographic algorithms for the use within China.
1554
1555 SMS4 was originally created for use in protecting wireless
1556 networks, and is mandated in the Chinese National Standard for
1557 Wireless LAN WAPI (Wired Authentication and Privacy Infrastructure)
1558 (GB.15629.11-2003).
1559
1560 The latest SM4 standard (GBT.32907-2016) was proposed by OSCCA and
1561 standardized through TC 260 of the Standardization Administration
1562 of the People's Republic of China (SAC).
1563
1564 The input, output, and key of SMS4 are each 128 bits.
1565
1566 See also: <https://eprint.iacr.org/2008/329.pdf>
1567
1568 If unsure, say N.
1569
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001570config CRYPTO_TEA
1571 tristate "TEA, XTEA and XETA cipher algorithms"
1572 select CRYPTO_ALGAPI
1573 help
1574 TEA cipher algorithm.
1575
1576 Tiny Encryption Algorithm is a simple cipher that uses
1577 many rounds for security. It is very fast and uses
1578 little memory.
1579
1580 Xtendend Tiny Encryption Algorithm is a modification to
1581 the TEA algorithm to address a potential key weakness
1582 in the TEA algorithm.
1583
1584 Xtendend Encryption Tiny Algorithm is a mis-implementation
1585 of the XTEA algorithm for compatibility purposes.
1586
1587config CRYPTO_TWOFISH
1588 tristate "Twofish cipher algorithm"
1589 select CRYPTO_ALGAPI
1590 select CRYPTO_TWOFISH_COMMON
1591 help
1592 Twofish cipher algorithm.
1593
1594 Twofish was submitted as an AES (Advanced Encryption Standard)
1595 candidate cipher by researchers at CounterPane Systems. It is a
1596 16 round block cipher supporting key sizes of 128, 192, and 256
1597 bits.
1598
1599 See also:
1600 <http://www.schneier.com/twofish.html>
1601
1602config CRYPTO_TWOFISH_COMMON
1603 tristate
1604 help
1605 Common parts of the Twofish cipher algorithm shared by the
1606 generic c and the assembler implementations.
1607
1608config CRYPTO_TWOFISH_586
1609 tristate "Twofish cipher algorithms (i586)"
1610 depends on (X86 || UML_X86) && !64BIT
1611 select CRYPTO_ALGAPI
1612 select CRYPTO_TWOFISH_COMMON
1613 help
1614 Twofish cipher algorithm.
1615
1616 Twofish was submitted as an AES (Advanced Encryption Standard)
1617 candidate cipher by researchers at CounterPane Systems. It is a
1618 16 round block cipher supporting key sizes of 128, 192, and 256
1619 bits.
1620
1621 See also:
1622 <http://www.schneier.com/twofish.html>
1623
1624config CRYPTO_TWOFISH_X86_64
1625 tristate "Twofish cipher algorithm (x86_64)"
1626 depends on (X86 || UML_X86) && 64BIT
1627 select CRYPTO_ALGAPI
1628 select CRYPTO_TWOFISH_COMMON
1629 help
1630 Twofish cipher algorithm (x86_64).
1631
1632 Twofish was submitted as an AES (Advanced Encryption Standard)
1633 candidate cipher by researchers at CounterPane Systems. It is a
1634 16 round block cipher supporting key sizes of 128, 192, and 256
1635 bits.
1636
1637 See also:
1638 <http://www.schneier.com/twofish.html>
1639
Jussi Kivilinna8280daa2011-09-26 16:47:25 +03001640config CRYPTO_TWOFISH_X86_64_3WAY
1641 tristate "Twofish cipher algorithm (x86_64, 3-way parallel)"
Al Virof21a7c12012-04-08 20:31:22 -04001642 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001643 select CRYPTO_SKCIPHER
Jussi Kivilinna8280daa2011-09-26 16:47:25 +03001644 select CRYPTO_TWOFISH_COMMON
1645 select CRYPTO_TWOFISH_X86_64
Jussi Kivilinna414cb5e2012-06-18 14:07:34 +03001646 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna8280daa2011-09-26 16:47:25 +03001647 help
1648 Twofish cipher algorithm (x86_64, 3-way parallel).
1649
1650 Twofish was submitted as an AES (Advanced Encryption Standard)
1651 candidate cipher by researchers at CounterPane Systems. It is a
1652 16 round block cipher supporting key sizes of 128, 192, and 256
1653 bits.
1654
1655 This module provides Twofish cipher algorithm that processes three
1656 blocks parallel, utilizing resources of out-of-order CPUs better.
1657
1658 See also:
1659 <http://www.schneier.com/twofish.html>
1660
Johannes Goetzfried107778b52012-05-28 15:54:24 +02001661config CRYPTO_TWOFISH_AVX_X86_64
1662 tristate "Twofish cipher algorithm (x86_64/AVX)"
1663 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001664 select CRYPTO_SKCIPHER
Jussi Kivilinnaa7378d42012-06-18 14:07:39 +03001665 select CRYPTO_GLUE_HELPER_X86
Eric Biggers0e6ab462018-02-19 23:48:11 -08001666 select CRYPTO_SIMD
Johannes Goetzfried107778b52012-05-28 15:54:24 +02001667 select CRYPTO_TWOFISH_COMMON
1668 select CRYPTO_TWOFISH_X86_64
1669 select CRYPTO_TWOFISH_X86_64_3WAY
Johannes Goetzfried107778b52012-05-28 15:54:24 +02001670 help
1671 Twofish cipher algorithm (x86_64/AVX).
1672
1673 Twofish was submitted as an AES (Advanced Encryption Standard)
1674 candidate cipher by researchers at CounterPane Systems. It is a
1675 16 round block cipher supporting key sizes of 128, 192, and 256
1676 bits.
1677
1678 This module provides the Twofish cipher algorithm that processes
1679 eight blocks parallel using the AVX Instruction Set.
1680
1681 See also:
1682 <http://www.schneier.com/twofish.html>
1683
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001684comment "Compression"
1685
Linus Torvalds1da177e2005-04-16 15:20:36 -07001686config CRYPTO_DEFLATE
1687 tristate "Deflate compression algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001688 select CRYPTO_ALGAPI
Giovanni Cabidduf6ded092016-10-21 13:19:53 +01001689 select CRYPTO_ACOMP2
Linus Torvalds1da177e2005-04-16 15:20:36 -07001690 select ZLIB_INFLATE
1691 select ZLIB_DEFLATE
1692 help
1693 This is the Deflate algorithm (RFC1951), specified for use in
1694 IPSec with the IPCOMP protocol (RFC3173, RFC2394).
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001695
Linus Torvalds1da177e2005-04-16 15:20:36 -07001696 You will most probably want this if using IPSec.
1697
Zoltan Sogor0b77abb2007-12-07 16:53:23 +08001698config CRYPTO_LZO
1699 tristate "LZO compression algorithm"
1700 select CRYPTO_ALGAPI
Giovanni Cabidduac9d2c42016-10-21 13:19:49 +01001701 select CRYPTO_ACOMP2
Zoltan Sogor0b77abb2007-12-07 16:53:23 +08001702 select LZO_COMPRESS
1703 select LZO_DECOMPRESS
1704 help
1705 This is the LZO algorithm.
1706
Seth Jennings35a1fc12012-07-19 09:42:41 -05001707config CRYPTO_842
1708 tristate "842 compression algorithm"
Dan Streetman2062c5b2015-05-07 13:49:15 -04001709 select CRYPTO_ALGAPI
Giovanni Cabiddu6a8de3a2016-10-21 13:19:52 +01001710 select CRYPTO_ACOMP2
Dan Streetman2062c5b2015-05-07 13:49:15 -04001711 select 842_COMPRESS
1712 select 842_DECOMPRESS
Seth Jennings35a1fc12012-07-19 09:42:41 -05001713 help
1714 This is the 842 algorithm.
1715
Chanho Min0ea85302013-07-08 16:01:51 -07001716config CRYPTO_LZ4
1717 tristate "LZ4 compression algorithm"
1718 select CRYPTO_ALGAPI
Giovanni Cabiddu8cd93302016-10-21 13:19:50 +01001719 select CRYPTO_ACOMP2
Chanho Min0ea85302013-07-08 16:01:51 -07001720 select LZ4_COMPRESS
1721 select LZ4_DECOMPRESS
1722 help
1723 This is the LZ4 algorithm.
1724
1725config CRYPTO_LZ4HC
1726 tristate "LZ4HC compression algorithm"
1727 select CRYPTO_ALGAPI
Giovanni Cabiddu91d53d92016-10-21 13:19:51 +01001728 select CRYPTO_ACOMP2
Chanho Min0ea85302013-07-08 16:01:51 -07001729 select LZ4HC_COMPRESS
1730 select LZ4_DECOMPRESS
1731 help
1732 This is the LZ4 high compression mode algorithm.
1733
Nick Terrelld28fc3d2018-03-30 12:14:53 -07001734config CRYPTO_ZSTD
1735 tristate "Zstd compression algorithm"
1736 select CRYPTO_ALGAPI
1737 select CRYPTO_ACOMP2
1738 select ZSTD_COMPRESS
1739 select ZSTD_DECOMPRESS
1740 help
1741 This is the zstd algorithm.
1742
Neil Horman17f0f4a2008-08-14 22:15:52 +10001743comment "Random Number Generation"
1744
1745config CRYPTO_ANSI_CPRNG
1746 tristate "Pseudo Random Number Generation for Cryptographic modules"
1747 select CRYPTO_AES
1748 select CRYPTO_RNG
Neil Horman17f0f4a2008-08-14 22:15:52 +10001749 help
1750 This option enables the generic pseudo random number generator
1751 for cryptographic modules. Uses the Algorithm specified in
Jiri Kosina7dd607e2010-01-27 01:00:10 +01001752 ANSI X9.31 A.2.4. Note that this option must be enabled if
1753 CRYPTO_FIPS is selected
Neil Horman17f0f4a2008-08-14 22:15:52 +10001754
Herbert Xuf2c89a12014-07-04 22:15:08 +08001755menuconfig CRYPTO_DRBG_MENU
Stephan Mueller419090c2014-05-31 17:22:31 +02001756 tristate "NIST SP800-90A DRBG"
Stephan Mueller419090c2014-05-31 17:22:31 +02001757 help
1758 NIST SP800-90A compliant DRBG. In the following submenu, one or
1759 more of the DRBG types must be selected.
1760
Herbert Xuf2c89a12014-07-04 22:15:08 +08001761if CRYPTO_DRBG_MENU
Stephan Mueller419090c2014-05-31 17:22:31 +02001762
1763config CRYPTO_DRBG_HMAC
Herbert Xu401e4232015-06-03 14:49:31 +08001764 bool
Stephan Mueller419090c2014-05-31 17:22:31 +02001765 default y
Stephan Mueller419090c2014-05-31 17:22:31 +02001766 select CRYPTO_HMAC
Herbert Xu826775b2015-06-11 08:55:10 +08001767 select CRYPTO_SHA256
Stephan Mueller419090c2014-05-31 17:22:31 +02001768
1769config CRYPTO_DRBG_HASH
1770 bool "Enable Hash DRBG"
Herbert Xu826775b2015-06-11 08:55:10 +08001771 select CRYPTO_SHA256
Stephan Mueller419090c2014-05-31 17:22:31 +02001772 help
1773 Enable the Hash DRBG variant as defined in NIST SP800-90A.
1774
1775config CRYPTO_DRBG_CTR
1776 bool "Enable CTR DRBG"
Stephan Mueller419090c2014-05-31 17:22:31 +02001777 select CRYPTO_AES
Stephan Mueller35591282016-06-14 07:34:13 +02001778 depends on CRYPTO_CTR
Stephan Mueller419090c2014-05-31 17:22:31 +02001779 help
1780 Enable the CTR DRBG variant as defined in NIST SP800-90A.
1781
Herbert Xuf2c89a12014-07-04 22:15:08 +08001782config CRYPTO_DRBG
1783 tristate
Herbert Xu401e4232015-06-03 14:49:31 +08001784 default CRYPTO_DRBG_MENU
Herbert Xuf2c89a12014-07-04 22:15:08 +08001785 select CRYPTO_RNG
Stephan Muellerbb5530e2015-05-25 15:10:20 +02001786 select CRYPTO_JITTERENTROPY
Herbert Xuf2c89a12014-07-04 22:15:08 +08001787
1788endif # if CRYPTO_DRBG_MENU
Stephan Mueller419090c2014-05-31 17:22:31 +02001789
Stephan Muellerbb5530e2015-05-25 15:10:20 +02001790config CRYPTO_JITTERENTROPY
1791 tristate "Jitterentropy Non-Deterministic Random Number Generator"
Arnd Bergmann2f313e02016-01-26 14:47:10 +01001792 select CRYPTO_RNG
Stephan Muellerbb5530e2015-05-25 15:10:20 +02001793 help
1794 The Jitterentropy RNG is a noise that is intended
1795 to provide seed to another RNG. The RNG does not
1796 perform any cryptographic whitening of the generated
1797 random numbers. This Jitterentropy RNG registers with
1798 the kernel crypto API and can be used by any caller.
1799
Herbert Xu03c8efc2010-10-19 21:12:39 +08001800config CRYPTO_USER_API
1801 tristate
1802
Herbert Xufe869cd2010-10-19 21:23:00 +08001803config CRYPTO_USER_API_HASH
1804 tristate "User-space interface for hash algorithms"
Herbert Xu74517082010-11-29 22:56:03 +08001805 depends on NET
Herbert Xufe869cd2010-10-19 21:23:00 +08001806 select CRYPTO_HASH
1807 select CRYPTO_USER_API
1808 help
1809 This option enables the user-spaces interface for hash
1810 algorithms.
1811
Herbert Xu8ff59092010-10-19 21:31:55 +08001812config CRYPTO_USER_API_SKCIPHER
1813 tristate "User-space interface for symmetric key cipher algorithms"
Herbert Xu74517082010-11-29 22:56:03 +08001814 depends on NET
Eric Biggersb95bba52019-10-25 12:41:13 -07001815 select CRYPTO_SKCIPHER
Herbert Xu8ff59092010-10-19 21:31:55 +08001816 select CRYPTO_USER_API
1817 help
1818 This option enables the user-spaces interface for symmetric
1819 key cipher algorithms.
1820
Stephan Mueller2f3755382014-12-25 23:00:39 +01001821config CRYPTO_USER_API_RNG
1822 tristate "User-space interface for random number generator algorithms"
1823 depends on NET
1824 select CRYPTO_RNG
1825 select CRYPTO_USER_API
1826 help
1827 This option enables the user-spaces interface for random
1828 number generator algorithms.
1829
Herbert Xub64a2d92015-05-28 11:30:35 +08001830config CRYPTO_USER_API_AEAD
1831 tristate "User-space interface for AEAD cipher algorithms"
1832 depends on NET
1833 select CRYPTO_AEAD
Eric Biggersb95bba52019-10-25 12:41:13 -07001834 select CRYPTO_SKCIPHER
Stephan Mueller72548b02017-07-30 14:32:58 +02001835 select CRYPTO_NULL
Herbert Xub64a2d92015-05-28 11:30:35 +08001836 select CRYPTO_USER_API
1837 help
1838 This option enables the user-spaces interface for AEAD
1839 cipher algorithms.
1840
Corentin Labbecac58182018-09-19 10:10:54 +00001841config CRYPTO_STATS
1842 bool "Crypto usage statistics for User-space"
Corentin Labbea6a31382018-11-29 14:42:17 +00001843 depends on CRYPTO_USER
Corentin Labbecac58182018-09-19 10:10:54 +00001844 help
1845 This option enables the gathering of crypto stats.
1846 This will collect:
1847 - encrypt/decrypt size and numbers of symmeric operations
1848 - compress/decompress size and numbers of compress operations
1849 - size and numbers of hash operations
1850 - encrypt/decrypt/sign/verify numbers for asymmetric operations
1851 - generate/seed numbers for rng operations
1852
Dmitry Kasatkinee089972013-05-06 15:40:01 +03001853config CRYPTO_HASH_INFO
1854 bool
1855
Ard Biesheuvel746b2e02019-11-08 13:22:07 +01001856source "lib/crypto/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -07001857source "drivers/crypto/Kconfig"
Masahiro Yamada8636a1f2018-12-11 20:01:04 +09001858source "crypto/asymmetric_keys/Kconfig"
1859source "certs/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -07001860
Herbert Xucce9e062006-08-21 21:08:13 +10001861endif # if CRYPTO