blob: 2c7327a5b28ecd22f4e619327527537544f3aa69 [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
Martin Willic70f4ab2015-07-16 19:14:06 +0200718 help
719 Poly1305 authenticator algorithm, RFC7539.
720
721 Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein.
722 It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use
723 in IETF protocols. This is the x86_64 assembler implementation using SIMD
724 instructions.
725
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800726config CRYPTO_MD4
727 tristate "MD4 digest algorithm"
Adrian-Ken Rueegsegger808a1762008-12-03 19:55:27 +0800728 select CRYPTO_HASH
Linus Torvalds1da177e2005-04-16 15:20:36 -0700729 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800730 MD4 message digest algorithm (RFC1320).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700731
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800732config CRYPTO_MD5
733 tristate "MD5 digest algorithm"
Adrian-Ken Rueegsegger14b75ba2008-12-03 19:57:12 +0800734 select CRYPTO_HASH
Linus Torvalds1da177e2005-04-16 15:20:36 -0700735 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800736 MD5 message digest algorithm (RFC1321).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700737
Aaro Koskinend69e75d2014-12-21 22:54:02 +0200738config CRYPTO_MD5_OCTEON
739 tristate "MD5 digest algorithm (OCTEON)"
740 depends on CPU_CAVIUM_OCTEON
741 select CRYPTO_MD5
742 select CRYPTO_HASH
743 help
744 MD5 message digest algorithm (RFC1321) implemented
745 using OCTEON crypto instructions, when available.
746
Markus Stockhausene8e59952015-03-01 19:30:46 +0100747config CRYPTO_MD5_PPC
748 tristate "MD5 digest algorithm (PPC)"
749 depends on PPC
750 select CRYPTO_HASH
751 help
752 MD5 message digest algorithm (RFC1321) implemented
753 in PPC assembler.
754
David S. Millerfa4dfed2012-08-19 21:51:26 -0700755config CRYPTO_MD5_SPARC64
756 tristate "MD5 digest algorithm (SPARC64)"
757 depends on SPARC64
758 select CRYPTO_MD5
759 select CRYPTO_HASH
760 help
761 MD5 message digest algorithm (RFC1321) implemented
762 using sparc64 crypto instructions, when available.
763
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800764config CRYPTO_MICHAEL_MIC
765 tristate "Michael MIC keyed digest algorithm"
Adrian-Ken Rueegsegger19e2bf12008-12-07 19:35:38 +0800766 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800767 help
768 Michael MIC is used for message integrity protection in TKIP
769 (IEEE 802.11i). This algorithm is required for TKIP, but it
770 should not be used for other purposes because of the weakness
771 of the algorithm.
772
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800773config CRYPTO_RMD128
Adrian Bunkb6d44342008-07-16 19:28:00 +0800774 tristate "RIPEMD-128 digest algorithm"
Herbert Xu7c4468b2008-11-08 09:10:40 +0800775 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800776 help
777 RIPEMD-128 (ISO/IEC 10118-3:2004).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800778
Adrian Bunkb6d44342008-07-16 19:28:00 +0800779 RIPEMD-128 is a 128-bit cryptographic hash function. It should only
Michael Witten35ed4b32011-07-09 04:02:31 +0000780 be used as a secure replacement for RIPEMD. For other use cases,
Adrian Bunkb6d44342008-07-16 19:28:00 +0800781 RIPEMD-160 should be used.
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800782
Adrian Bunkb6d44342008-07-16 19:28:00 +0800783 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800784 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800785
786config CRYPTO_RMD160
Adrian Bunkb6d44342008-07-16 19:28:00 +0800787 tristate "RIPEMD-160 digest algorithm"
Herbert Xue5835fb2008-11-08 09:18:51 +0800788 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800789 help
790 RIPEMD-160 (ISO/IEC 10118-3:2004).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800791
Adrian Bunkb6d44342008-07-16 19:28:00 +0800792 RIPEMD-160 is a 160-bit cryptographic hash function. It is intended
793 to be used as a secure replacement for the 128-bit hash functions
794 MD4, MD5 and it's predecessor RIPEMD
795 (not to be confused with RIPEMD-128).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800796
Adrian Bunkb6d44342008-07-16 19:28:00 +0800797 It's speed is comparable to SHA1 and there are no known attacks
798 against RIPEMD-160.
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800799
Adrian Bunkb6d44342008-07-16 19:28:00 +0800800 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800801 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800802
803config CRYPTO_RMD256
Adrian Bunkb6d44342008-07-16 19:28:00 +0800804 tristate "RIPEMD-256 digest algorithm"
Herbert Xud8a5e2e2008-11-08 09:58:10 +0800805 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800806 help
807 RIPEMD-256 is an optional extension of RIPEMD-128 with a
808 256 bit hash. It is intended for applications that require
809 longer hash-results, without needing a larger security level
810 (than RIPEMD-128).
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800811
Adrian Bunkb6d44342008-07-16 19:28:00 +0800812 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800813 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800814
815config CRYPTO_RMD320
Adrian Bunkb6d44342008-07-16 19:28:00 +0800816 tristate "RIPEMD-320 digest algorithm"
Herbert Xu3b8efb42008-11-08 10:11:09 +0800817 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800818 help
819 RIPEMD-320 is an optional extension of RIPEMD-160 with a
820 320 bit hash. It is intended for applications that require
821 longer hash-results, without needing a larger security level
822 (than RIPEMD-160).
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800823
Adrian Bunkb6d44342008-07-16 19:28:00 +0800824 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800825 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800826
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800827config CRYPTO_SHA1
828 tristate "SHA1 digest algorithm"
Adrian-Ken Rueegsegger54ccb362008-12-02 21:08:20 +0800829 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800830 help
831 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
832
Mathias Krause66be8952011-08-04 20:19:25 +0200833config CRYPTO_SHA1_SSSE3
time38b6b7f2015-09-10 15:27:26 -0700834 tristate "SHA1 digest algorithm (SSSE3/AVX/AVX2/SHA-NI)"
Mathias Krause66be8952011-08-04 20:19:25 +0200835 depends on X86 && 64BIT
836 select CRYPTO_SHA1
837 select CRYPTO_HASH
838 help
839 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
840 using Supplemental SSE3 (SSSE3) instructions or Advanced Vector
time38b6b7f2015-09-10 15:27:26 -0700841 Extensions (AVX/AVX2) or SHA-NI(SHA Extensions New Instructions),
842 when available.
Mathias Krause66be8952011-08-04 20:19:25 +0200843
Tim Chen8275d1a2013-03-26 13:59:17 -0700844config CRYPTO_SHA256_SSSE3
time38b6b7f2015-09-10 15:27:26 -0700845 tristate "SHA256 digest algorithm (SSSE3/AVX/AVX2/SHA-NI)"
Tim Chen8275d1a2013-03-26 13:59:17 -0700846 depends on X86 && 64BIT
847 select CRYPTO_SHA256
848 select CRYPTO_HASH
849 help
850 SHA-256 secure hash standard (DFIPS 180-2) implemented
851 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
852 Extensions version 1 (AVX1), or Advanced Vector Extensions
time38b6b7f2015-09-10 15:27:26 -0700853 version 2 (AVX2) instructions, or SHA-NI (SHA Extensions New
854 Instructions) when available.
Tim Chen8275d1a2013-03-26 13:59:17 -0700855
Tim Chen87de4572013-03-26 14:00:02 -0700856config CRYPTO_SHA512_SSSE3
857 tristate "SHA512 digest algorithm (SSSE3/AVX/AVX2)"
858 depends on X86 && 64BIT
859 select CRYPTO_SHA512
860 select CRYPTO_HASH
861 help
862 SHA-512 secure hash standard (DFIPS 180-2) implemented
863 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
864 Extensions version 1 (AVX1), or Advanced Vector Extensions
865 version 2 (AVX2) instructions, when available.
866
Aaro Koskinenefdb6f62015-03-08 22:07:47 +0200867config CRYPTO_SHA1_OCTEON
868 tristate "SHA1 digest algorithm (OCTEON)"
869 depends on CPU_CAVIUM_OCTEON
870 select CRYPTO_SHA1
871 select CRYPTO_HASH
872 help
873 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
874 using OCTEON crypto instructions, when available.
875
David S. Miller4ff28d42012-08-19 15:41:53 -0700876config CRYPTO_SHA1_SPARC64
877 tristate "SHA1 digest algorithm (SPARC64)"
878 depends on SPARC64
879 select CRYPTO_SHA1
880 select CRYPTO_HASH
881 help
882 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
883 using sparc64 crypto instructions, when available.
884
Michael Ellerman323a6bf2012-09-13 23:00:49 +0000885config CRYPTO_SHA1_PPC
886 tristate "SHA1 digest algorithm (powerpc)"
887 depends on PPC
888 help
889 This is the powerpc hardware accelerated implementation of the
890 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
891
Markus Stockhausend9850fc2015-02-24 20:36:50 +0100892config CRYPTO_SHA1_PPC_SPE
893 tristate "SHA1 digest algorithm (PPC SPE)"
894 depends on PPC && SPE
895 help
896 SHA-1 secure hash standard (DFIPS 180-4) implemented
897 using powerpc SPE SIMD instruction set.
898
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800899config CRYPTO_SHA256
900 tristate "SHA224 and SHA256 digest algorithm"
Adrian-Ken Rueegsegger50e109b52008-12-03 19:57:49 +0800901 select CRYPTO_HASH
Hans de Goede08c327f2019-08-17 16:24:35 +0200902 select CRYPTO_LIB_SHA256
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800903 help
904 SHA256 secure hash standard (DFIPS 180-2).
905
906 This version of SHA implements a 256 bit hash with 128 bits of
907 security against collision attacks.
908
Adrian Bunkb6d44342008-07-16 19:28:00 +0800909 This code also includes SHA-224, a 224 bit hash with 112 bits
910 of security against collision attacks.
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800911
Markus Stockhausen2ecc1e92015-01-30 15:39:34 +0100912config CRYPTO_SHA256_PPC_SPE
913 tristate "SHA224 and SHA256 digest algorithm (PPC SPE)"
914 depends on PPC && SPE
915 select CRYPTO_SHA256
916 select CRYPTO_HASH
917 help
918 SHA224 and SHA256 secure hash standard (DFIPS 180-2)
919 implemented using powerpc SPE SIMD instruction set.
920
Aaro Koskinenefdb6f62015-03-08 22:07:47 +0200921config CRYPTO_SHA256_OCTEON
922 tristate "SHA224 and SHA256 digest algorithm (OCTEON)"
923 depends on CPU_CAVIUM_OCTEON
924 select CRYPTO_SHA256
925 select CRYPTO_HASH
926 help
927 SHA-256 secure hash standard (DFIPS 180-2) implemented
928 using OCTEON crypto instructions, when available.
929
David S. Miller86c93b22012-08-19 17:11:37 -0700930config CRYPTO_SHA256_SPARC64
931 tristate "SHA224 and SHA256 digest algorithm (SPARC64)"
932 depends on SPARC64
933 select CRYPTO_SHA256
934 select CRYPTO_HASH
935 help
936 SHA-256 secure hash standard (DFIPS 180-2) implemented
937 using sparc64 crypto instructions, when available.
938
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800939config CRYPTO_SHA512
940 tristate "SHA384 and SHA512 digest algorithms"
Adrian-Ken Rueegseggerbd9d20d2008-12-17 16:49:02 +1100941 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800942 help
943 SHA512 secure hash standard (DFIPS 180-2).
944
945 This version of SHA implements a 512 bit hash with 256 bits of
946 security against collision attacks.
947
948 This code also includes SHA-384, a 384 bit hash with 192 bits
949 of security against collision attacks.
950
Aaro Koskinenefdb6f62015-03-08 22:07:47 +0200951config CRYPTO_SHA512_OCTEON
952 tristate "SHA384 and SHA512 digest algorithms (OCTEON)"
953 depends on CPU_CAVIUM_OCTEON
954 select CRYPTO_SHA512
955 select CRYPTO_HASH
956 help
957 SHA-512 secure hash standard (DFIPS 180-2) implemented
958 using OCTEON crypto instructions, when available.
959
David S. Miller775e0c62012-08-19 17:37:56 -0700960config CRYPTO_SHA512_SPARC64
961 tristate "SHA384 and SHA512 digest algorithm (SPARC64)"
962 depends on SPARC64
963 select CRYPTO_SHA512
964 select CRYPTO_HASH
965 help
966 SHA-512 secure hash standard (DFIPS 180-2) implemented
967 using sparc64 crypto instructions, when available.
968
Jeff Garzik53964b92016-06-17 10:30:35 +0530969config CRYPTO_SHA3
970 tristate "SHA3 digest algorithm"
971 select CRYPTO_HASH
972 help
973 SHA-3 secure hash standard (DFIPS 202). It's based on
974 cryptographic sponge function family called Keccak.
975
976 References:
977 http://keccak.noekeon.org/
978
Gilad Ben-Yossef4f0fc162017-08-21 13:51:28 +0300979config CRYPTO_SM3
980 tristate "SM3 digest algorithm"
981 select CRYPTO_HASH
982 help
983 SM3 secure hash function as defined by OSCCA GM/T 0004-2012 SM3).
984 It is part of the Chinese Commercial Cryptography suite.
985
986 References:
987 http://www.oscca.gov.cn/UpFile/20101222141857786.pdf
988 https://datatracker.ietf.org/doc/html/draft-shen-sm3-hash
989
Vitaly Chikunovfe189572018-11-07 00:00:01 +0300990config CRYPTO_STREEBOG
991 tristate "Streebog Hash Function"
992 select CRYPTO_HASH
993 help
994 Streebog Hash Function (GOST R 34.11-2012, RFC 6986) is one of the Russian
995 cryptographic standard algorithms (called GOST algorithms).
996 This setting enables two hash algorithms with 256 and 512 bits output.
997
998 References:
999 https://tc26.ru/upload/iblock/fed/feddbb4d26b685903faa2ba11aea43f6.pdf
1000 https://tools.ietf.org/html/rfc6986
1001
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001002config CRYPTO_TGR192
1003 tristate "Tiger digest algorithms"
Adrian-Ken Rueegseggerf63fbd32008-12-03 19:58:32 +08001004 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001005 help
1006 Tiger hash algorithm 192, 160 and 128-bit hashes
1007
1008 Tiger is a hash function optimized for 64-bit processors while
1009 still having decent performance on 32-bit processors.
1010 Tiger was developed by Ross Anderson and Eli Biham.
Linus Torvalds1da177e2005-04-16 15:20:36 -07001011
1012 See also:
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001013 <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>.
1014
1015config CRYPTO_WP512
1016 tristate "Whirlpool digest algorithms"
Adrian-Ken Rueegsegger49465102008-12-07 19:34:37 +08001017 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001018 help
1019 Whirlpool hash algorithm 512, 384 and 256-bit hashes
1020
1021 Whirlpool-512 is part of the NESSIE cryptographic primitives.
1022 Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard
1023
1024 See also:
Justin P. Mattock6d8de742010-09-12 10:42:47 +08001025 <http://www.larc.usp.br/~pbarreto/WhirlpoolPage.html>
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001026
Huang Ying0e1227d2009-10-19 11:53:06 +09001027config CRYPTO_GHASH_CLMUL_NI_INTEL
Eric Biggers8dfa20f2019-07-19 23:09:18 -07001028 tristate "GHASH hash function (CLMUL-NI accelerated)"
Richard Weinberger8af00862011-06-08 20:56:29 +08001029 depends on X86 && 64BIT
Huang Ying0e1227d2009-10-19 11:53:06 +09001030 select CRYPTO_CRYPTD
1031 help
Eric Biggers8dfa20f2019-07-19 23:09:18 -07001032 This is the x86_64 CLMUL-NI accelerated implementation of
1033 GHASH, the hash function used in GCM (Galois/Counter mode).
Huang Ying0e1227d2009-10-19 11:53:06 +09001034
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001035comment "Ciphers"
Linus Torvalds1da177e2005-04-16 15:20:36 -07001036
1037config CRYPTO_AES
1038 tristate "AES cipher algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +10001039 select CRYPTO_ALGAPI
Ard Biesheuvel5bb12d72019-07-02 21:41:33 +02001040 select CRYPTO_LIB_AES
Linus Torvalds1da177e2005-04-16 15:20:36 -07001041 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001042 AES cipher algorithms (FIPS-197). AES uses the Rijndael
Linus Torvalds1da177e2005-04-16 15:20:36 -07001043 algorithm.
1044
1045 Rijndael appears to be consistently a very good performer in
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001046 both hardware and software across a wide range of computing
1047 environments regardless of its use in feedback or non-feedback
1048 modes. Its key setup time is excellent, and its key agility is
1049 good. Rijndael's very low memory requirements make it very well
1050 suited for restricted-space environments, in which it also
1051 demonstrates excellent performance. Rijndael's operations are
1052 among the easiest to defend against power and timing attacks.
Linus Torvalds1da177e2005-04-16 15:20:36 -07001053
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001054 The AES specifies three key sizes: 128, 192 and 256 bits
Linus Torvalds1da177e2005-04-16 15:20:36 -07001055
1056 See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information.
1057
Ard Biesheuvelb5e0b032017-02-02 16:37:40 +00001058config CRYPTO_AES_TI
1059 tristate "Fixed time AES cipher"
1060 select CRYPTO_ALGAPI
Ard Biesheuvele59c1c92019-07-02 21:41:22 +02001061 select CRYPTO_LIB_AES
Ard Biesheuvelb5e0b032017-02-02 16:37:40 +00001062 help
1063 This is a generic implementation of AES that attempts to eliminate
1064 data dependent latencies as much as possible without affecting
1065 performance too much. It is intended for use by the generic CCM
1066 and GCM drivers, and other CTR or CMAC/XCBC based modes that rely
1067 solely on encryption (although decryption is supported as well, but
1068 with a more dramatic performance hit)
1069
1070 Instead of using 16 lookup tables of 1 KB each, (8 for encryption and
1071 8 for decryption), this implementation only uses just two S-boxes of
1072 256 bytes each, and attempts to eliminate data dependent latencies by
1073 prefetching the entire table into the cache at the start of each
Eric Biggers0a6a40c2018-10-17 21:37:58 -07001074 block. Interrupts are also disabled to avoid races where cachelines
1075 are evicted when the CPU is interrupted to do something else.
Ard Biesheuvelb5e0b032017-02-02 16:37:40 +00001076
Huang Ying54b6a1b2009-01-18 16:28:34 +11001077config CRYPTO_AES_NI_INTEL
1078 tristate "AES cipher algorithms (AES-NI)"
Richard Weinberger8af00862011-06-08 20:56:29 +08001079 depends on X86
Herbert Xu85671862016-11-22 20:08:33 +08001080 select CRYPTO_AEAD
Ard Biesheuvel2c53fd12019-07-02 21:41:23 +02001081 select CRYPTO_LIB_AES
Huang Ying54b6a1b2009-01-18 16:28:34 +11001082 select CRYPTO_ALGAPI
Eric Biggersb95bba52019-10-25 12:41:13 -07001083 select CRYPTO_SKCIPHER
Jussi Kivilinna7643a112013-04-10 18:39:20 +03001084 select CRYPTO_GLUE_HELPER_X86 if 64BIT
Herbert Xu85671862016-11-22 20:08:33 +08001085 select CRYPTO_SIMD
Huang Ying54b6a1b2009-01-18 16:28:34 +11001086 help
1087 Use Intel AES-NI instructions for AES algorithm.
1088
1089 AES cipher algorithms (FIPS-197). AES uses the Rijndael
1090 algorithm.
1091
1092 Rijndael appears to be consistently a very good performer in
1093 both hardware and software across a wide range of computing
1094 environments regardless of its use in feedback or non-feedback
1095 modes. Its key setup time is excellent, and its key agility is
1096 good. Rijndael's very low memory requirements make it very well
1097 suited for restricted-space environments, in which it also
1098 demonstrates excellent performance. Rijndael's operations are
1099 among the easiest to defend against power and timing attacks.
1100
1101 The AES specifies three key sizes: 128, 192 and 256 bits
1102
1103 See <http://csrc.nist.gov/encryption/aes/> for more information.
1104
Mathias Krause0d258ef2010-11-27 16:34:46 +08001105 In addition to AES cipher algorithm support, the acceleration
1106 for some popular block cipher mode is supported too, including
Ard Biesheuvel944585a2018-09-24 14:48:16 +02001107 ECB, CBC, LRW, XTS. The 64 bit version has additional
Mathias Krause0d258ef2010-11-27 16:34:46 +08001108 acceleration for CTR.
Huang Ying2cf4ac82009-03-29 15:41:20 +08001109
David S. Miller9bf48522012-08-21 03:58:13 -07001110config CRYPTO_AES_SPARC64
1111 tristate "AES cipher algorithms (SPARC64)"
1112 depends on SPARC64
Eric Biggersb95bba52019-10-25 12:41:13 -07001113 select CRYPTO_SKCIPHER
David S. Miller9bf48522012-08-21 03:58:13 -07001114 help
1115 Use SPARC64 crypto opcodes for AES algorithm.
1116
1117 AES cipher algorithms (FIPS-197). AES uses the Rijndael
1118 algorithm.
1119
1120 Rijndael appears to be consistently a very good performer in
1121 both hardware and software across a wide range of computing
1122 environments regardless of its use in feedback or non-feedback
1123 modes. Its key setup time is excellent, and its key agility is
1124 good. Rijndael's very low memory requirements make it very well
1125 suited for restricted-space environments, in which it also
1126 demonstrates excellent performance. Rijndael's operations are
1127 among the easiest to defend against power and timing attacks.
1128
1129 The AES specifies three key sizes: 128, 192 and 256 bits
1130
1131 See <http://csrc.nist.gov/encryption/aes/> for more information.
1132
1133 In addition to AES cipher algorithm support, the acceleration
1134 for some popular block cipher mode is supported too, including
1135 ECB and CBC.
1136
Markus Stockhausen504c6142015-02-22 10:00:10 +01001137config CRYPTO_AES_PPC_SPE
1138 tristate "AES cipher algorithms (PPC SPE)"
1139 depends on PPC && SPE
Eric Biggersb95bba52019-10-25 12:41:13 -07001140 select CRYPTO_SKCIPHER
Markus Stockhausen504c6142015-02-22 10:00:10 +01001141 help
1142 AES cipher algorithms (FIPS-197). Additionally the acceleration
1143 for popular block cipher modes ECB, CBC, CTR and XTS is supported.
1144 This module should only be used for low power (router) devices
1145 without hardware AES acceleration (e.g. caam crypto). It reduces the
1146 size of the AES tables from 16KB to 8KB + 256 bytes and mitigates
1147 timining attacks. Nevertheless it might be not as secure as other
1148 architecture specific assembler implementations that work on 1KB
1149 tables or 256 bytes S-boxes.
1150
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001151config CRYPTO_ANUBIS
1152 tristate "Anubis cipher algorithm"
1153 select CRYPTO_ALGAPI
1154 help
1155 Anubis cipher algorithm.
1156
1157 Anubis is a variable key length cipher which can use keys from
1158 128 bits to 320 bits in length. It was evaluated as a entrant
1159 in the NESSIE competition.
1160
1161 See also:
Justin P. Mattock6d8de742010-09-12 10:42:47 +08001162 <https://www.cosic.esat.kuleuven.be/nessie/reports/>
1163 <http://www.larc.usp.br/~pbarreto/AnubisPage.html>
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001164
1165config CRYPTO_ARC4
1166 tristate "ARC4 cipher algorithm"
Eric Biggersb95bba52019-10-25 12:41:13 -07001167 select CRYPTO_SKCIPHER
Ard Biesheuveldc51f252019-06-12 18:19:53 +02001168 select CRYPTO_LIB_ARC4
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001169 help
1170 ARC4 cipher algorithm.
1171
1172 ARC4 is a stream cipher using keys ranging from 8 bits to 2048
1173 bits in length. This algorithm is required for driver-based
1174 WEP, but it should not be for other purposes because of the
1175 weakness of the algorithm.
1176
1177config CRYPTO_BLOWFISH
1178 tristate "Blowfish cipher algorithm"
1179 select CRYPTO_ALGAPI
Jussi Kivilinna52ba8672011-09-02 01:45:07 +03001180 select CRYPTO_BLOWFISH_COMMON
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001181 help
1182 Blowfish cipher algorithm, by Bruce Schneier.
1183
1184 This is a variable key length cipher which can use keys from 32
1185 bits to 448 bits in length. It's fast, simple and specifically
1186 designed for use on "large microprocessors".
1187
1188 See also:
1189 <http://www.schneier.com/blowfish.html>
1190
Jussi Kivilinna52ba8672011-09-02 01:45:07 +03001191config CRYPTO_BLOWFISH_COMMON
1192 tristate
1193 help
1194 Common parts of the Blowfish cipher algorithm shared by the
1195 generic c and the assembler implementations.
1196
1197 See also:
1198 <http://www.schneier.com/blowfish.html>
1199
Jussi Kivilinna64b94ce2011-09-02 01:45:22 +03001200config CRYPTO_BLOWFISH_X86_64
1201 tristate "Blowfish cipher algorithm (x86_64)"
Al Virof21a7c12012-04-08 20:31:22 -04001202 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001203 select CRYPTO_SKCIPHER
Jussi Kivilinna64b94ce2011-09-02 01:45:22 +03001204 select CRYPTO_BLOWFISH_COMMON
1205 help
1206 Blowfish cipher algorithm (x86_64), by Bruce Schneier.
1207
1208 This is a variable key length cipher which can use keys from 32
1209 bits to 448 bits in length. It's fast, simple and specifically
1210 designed for use on "large microprocessors".
1211
1212 See also:
1213 <http://www.schneier.com/blowfish.html>
1214
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001215config CRYPTO_CAMELLIA
1216 tristate "Camellia cipher algorithms"
1217 depends on CRYPTO
1218 select CRYPTO_ALGAPI
1219 help
1220 Camellia cipher algorithms module.
1221
1222 Camellia is a symmetric key block cipher developed jointly
1223 at NTT and Mitsubishi Electric Corporation.
1224
1225 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1226
1227 See also:
1228 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1229
Jussi Kivilinna0b95ec52012-03-05 20:26:47 +02001230config CRYPTO_CAMELLIA_X86_64
1231 tristate "Camellia cipher algorithm (x86_64)"
Al Virof21a7c12012-04-08 20:31:22 -04001232 depends on X86 && 64BIT
Jussi Kivilinna0b95ec52012-03-05 20:26:47 +02001233 depends on CRYPTO
Eric Biggersb95bba52019-10-25 12:41:13 -07001234 select CRYPTO_SKCIPHER
Jussi Kivilinna964263a2012-06-18 14:07:29 +03001235 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna0b95ec52012-03-05 20:26:47 +02001236 help
1237 Camellia cipher algorithm module (x86_64).
1238
1239 Camellia is a symmetric key block cipher developed jointly
1240 at NTT and Mitsubishi Electric Corporation.
1241
1242 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1243
1244 See also:
1245 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1246
Jussi Kivilinnad9b1d2e2012-10-26 14:49:01 +03001247config CRYPTO_CAMELLIA_AESNI_AVX_X86_64
1248 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX)"
1249 depends on X86 && 64BIT
1250 depends on CRYPTO
Eric Biggersb95bba52019-10-25 12:41:13 -07001251 select CRYPTO_SKCIPHER
Jussi Kivilinnad9b1d2e2012-10-26 14:49:01 +03001252 select CRYPTO_CAMELLIA_X86_64
Eric Biggers44893bc2018-02-19 23:48:23 -08001253 select CRYPTO_GLUE_HELPER_X86
1254 select CRYPTO_SIMD
Jussi Kivilinnad9b1d2e2012-10-26 14:49:01 +03001255 select CRYPTO_XTS
1256 help
1257 Camellia cipher algorithm module (x86_64/AES-NI/AVX).
1258
1259 Camellia is a symmetric key block cipher developed jointly
1260 at NTT and Mitsubishi Electric Corporation.
1261
1262 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1263
1264 See also:
1265 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1266
Jussi Kivilinnaf3f935a2013-04-13 13:47:00 +03001267config CRYPTO_CAMELLIA_AESNI_AVX2_X86_64
1268 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX2)"
1269 depends on X86 && 64BIT
1270 depends on CRYPTO
Jussi Kivilinnaf3f935a2013-04-13 13:47:00 +03001271 select CRYPTO_CAMELLIA_AESNI_AVX_X86_64
Jussi Kivilinnaf3f935a2013-04-13 13:47:00 +03001272 help
1273 Camellia cipher algorithm module (x86_64/AES-NI/AVX2).
1274
1275 Camellia is a symmetric key block cipher developed jointly
1276 at NTT and Mitsubishi Electric Corporation.
1277
1278 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1279
1280 See also:
1281 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1282
David S. Miller81658ad2012-08-28 12:05:54 -07001283config CRYPTO_CAMELLIA_SPARC64
1284 tristate "Camellia cipher algorithm (SPARC64)"
1285 depends on SPARC64
1286 depends on CRYPTO
1287 select CRYPTO_ALGAPI
Eric Biggersb95bba52019-10-25 12:41:13 -07001288 select CRYPTO_SKCIPHER
David S. Miller81658ad2012-08-28 12:05:54 -07001289 help
1290 Camellia cipher algorithm module (SPARC64).
1291
1292 Camellia is a symmetric key block cipher developed jointly
1293 at NTT and Mitsubishi Electric Corporation.
1294
1295 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1296
1297 See also:
1298 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1299
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001300config CRYPTO_CAST_COMMON
1301 tristate
1302 help
1303 Common parts of the CAST cipher algorithms shared by the
1304 generic c and the assembler implementations.
1305
Linus Torvalds1da177e2005-04-16 15:20:36 -07001306config CRYPTO_CAST5
1307 tristate "CAST5 (CAST-128) cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001308 select CRYPTO_ALGAPI
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001309 select CRYPTO_CAST_COMMON
Linus Torvalds1da177e2005-04-16 15:20:36 -07001310 help
1311 The CAST5 encryption algorithm (synonymous with CAST-128) is
1312 described in RFC2144.
1313
Johannes Goetzfried4d6d6a22012-07-11 19:37:37 +02001314config CRYPTO_CAST5_AVX_X86_64
1315 tristate "CAST5 (CAST-128) cipher algorithm (x86_64/AVX)"
1316 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001317 select CRYPTO_SKCIPHER
Johannes Goetzfried4d6d6a22012-07-11 19:37:37 +02001318 select CRYPTO_CAST5
Eric Biggers1e631832018-02-19 23:48:13 -08001319 select CRYPTO_CAST_COMMON
1320 select CRYPTO_SIMD
Johannes Goetzfried4d6d6a22012-07-11 19:37:37 +02001321 help
1322 The CAST5 encryption algorithm (synonymous with CAST-128) is
1323 described in RFC2144.
1324
1325 This module provides the Cast5 cipher algorithm that processes
1326 sixteen blocks parallel using the AVX instruction set.
1327
Linus Torvalds1da177e2005-04-16 15:20:36 -07001328config CRYPTO_CAST6
1329 tristate "CAST6 (CAST-256) cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001330 select CRYPTO_ALGAPI
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001331 select CRYPTO_CAST_COMMON
Linus Torvalds1da177e2005-04-16 15:20:36 -07001332 help
1333 The CAST6 encryption algorithm (synonymous with CAST-256) is
1334 described in RFC2612.
1335
Johannes Goetzfried4ea12772012-07-11 19:38:57 +02001336config CRYPTO_CAST6_AVX_X86_64
1337 tristate "CAST6 (CAST-256) cipher algorithm (x86_64/AVX)"
1338 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001339 select CRYPTO_SKCIPHER
Johannes Goetzfried4ea12772012-07-11 19:38:57 +02001340 select CRYPTO_CAST6
Eric Biggers4bd96922018-02-19 23:48:15 -08001341 select CRYPTO_CAST_COMMON
1342 select CRYPTO_GLUE_HELPER_X86
1343 select CRYPTO_SIMD
Johannes Goetzfried4ea12772012-07-11 19:38:57 +02001344 select CRYPTO_XTS
1345 help
1346 The CAST6 encryption algorithm (synonymous with CAST-256) is
1347 described in RFC2612.
1348
1349 This module provides the Cast6 cipher algorithm that processes
1350 eight blocks parallel using the AVX instruction set.
1351
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001352config CRYPTO_DES
1353 tristate "DES and Triple DES EDE cipher algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +10001354 select CRYPTO_ALGAPI
Ard Biesheuvel04007b02019-08-15 12:01:09 +03001355 select CRYPTO_LIB_DES
Linus Torvalds1da177e2005-04-16 15:20:36 -07001356 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001357 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
Linus Torvalds1da177e2005-04-16 15:20:36 -07001358
David S. Millerc5aac2d2012-08-25 22:37:23 -07001359config CRYPTO_DES_SPARC64
1360 tristate "DES and Triple DES EDE cipher algorithms (SPARC64)"
Dave Jones97da37b2012-10-02 17:13:20 -04001361 depends on SPARC64
David S. Millerc5aac2d2012-08-25 22:37:23 -07001362 select CRYPTO_ALGAPI
Ard Biesheuvel04007b02019-08-15 12:01:09 +03001363 select CRYPTO_LIB_DES
Eric Biggersb95bba52019-10-25 12:41:13 -07001364 select CRYPTO_SKCIPHER
David S. Millerc5aac2d2012-08-25 22:37:23 -07001365 help
1366 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3),
1367 optimized using SPARC64 crypto opcodes.
1368
Jussi Kivilinna6574e6c2014-06-09 20:59:54 +03001369config CRYPTO_DES3_EDE_X86_64
1370 tristate "Triple DES EDE cipher algorithm (x86-64)"
1371 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001372 select CRYPTO_SKCIPHER
Ard Biesheuvel04007b02019-08-15 12:01:09 +03001373 select CRYPTO_LIB_DES
Jussi Kivilinna6574e6c2014-06-09 20:59:54 +03001374 help
1375 Triple DES EDE (FIPS 46-3) algorithm.
1376
1377 This module provides implementation of the Triple DES EDE cipher
1378 algorithm that is optimized for x86-64 processors. Two versions of
1379 algorithm are provided; regular processing one input block and
1380 one that processes three blocks parallel.
1381
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001382config CRYPTO_FCRYPT
1383 tristate "FCrypt cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001384 select CRYPTO_ALGAPI
Eric Biggersb95bba52019-10-25 12:41:13 -07001385 select CRYPTO_SKCIPHER
Linus Torvalds1da177e2005-04-16 15:20:36 -07001386 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001387 FCrypt algorithm used by RxRPC.
Linus Torvalds1da177e2005-04-16 15:20:36 -07001388
1389config CRYPTO_KHAZAD
1390 tristate "Khazad cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001391 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -07001392 help
1393 Khazad cipher algorithm.
1394
1395 Khazad was a finalist in the initial NESSIE competition. It is
1396 an algorithm optimized for 64-bit processors with good performance
1397 on 32-bit processors. Khazad uses an 128 bit key size.
1398
1399 See also:
Justin P. Mattock6d8de742010-09-12 10:42:47 +08001400 <http://www.larc.usp.br/~pbarreto/KhazadPage.html>
Linus Torvalds1da177e2005-04-16 15:20:36 -07001401
Tan Swee Heng2407d602007-11-23 19:45:00 +08001402config CRYPTO_SALSA20
Kees Cook3b4afaf2012-10-02 11:16:49 -07001403 tristate "Salsa20 stream cipher algorithm"
Eric Biggersb95bba52019-10-25 12:41:13 -07001404 select CRYPTO_SKCIPHER
Tan Swee Heng2407d602007-11-23 19:45:00 +08001405 help
1406 Salsa20 stream cipher algorithm.
1407
1408 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
1409 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
1410
1411 The Salsa20 stream cipher algorithm is designed by Daniel J.
1412 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
Linus Torvalds1da177e2005-04-16 15:20:36 -07001413
Martin Willic08d0e62015-06-01 13:43:56 +02001414config CRYPTO_CHACHA20
Eric Biggersaa762402018-11-16 17:26:22 -08001415 tristate "ChaCha stream cipher algorithms"
Ard Biesheuvel5fb8ef22019-11-08 13:22:08 +01001416 select CRYPTO_LIB_CHACHA_GENERIC
Eric Biggersb95bba52019-10-25 12:41:13 -07001417 select CRYPTO_SKCIPHER
Martin Willic08d0e62015-06-01 13:43:56 +02001418 help
Eric Biggersaa762402018-11-16 17:26:22 -08001419 The ChaCha20, XChaCha20, and XChaCha12 stream cipher algorithms.
Martin Willic08d0e62015-06-01 13:43:56 +02001420
1421 ChaCha20 is a 256-bit high-speed stream cipher designed by Daniel J.
1422 Bernstein and further specified in RFC7539 for use in IETF protocols.
Eric Biggersde61d7a2018-11-16 17:26:20 -08001423 This is the portable C implementation of ChaCha20. See also:
Martin Willic08d0e62015-06-01 13:43:56 +02001424 <http://cr.yp.to/chacha/chacha-20080128.pdf>
1425
Eric Biggersde61d7a2018-11-16 17:26:20 -08001426 XChaCha20 is the application of the XSalsa20 construction to ChaCha20
1427 rather than to Salsa20. XChaCha20 extends ChaCha20's nonce length
1428 from 64 bits (or 96 bits using the RFC7539 convention) to 192 bits,
1429 while provably retaining ChaCha20's security. See also:
1430 <https://cr.yp.to/snuffle/xsalsa-20081128.pdf>
1431
Eric Biggersaa762402018-11-16 17:26:22 -08001432 XChaCha12 is XChaCha20 reduced to 12 rounds, with correspondingly
1433 reduced security margin but increased performance. It can be needed
1434 in some performance-sensitive scenarios.
1435
Martin Willic9320b62015-07-16 19:14:01 +02001436config CRYPTO_CHACHA20_X86_64
Eric Biggers4af78262018-12-04 22:20:02 -08001437 tristate "ChaCha stream cipher algorithms (x86_64/SSSE3/AVX2/AVX-512VL)"
Martin Willic9320b62015-07-16 19:14:01 +02001438 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001439 select CRYPTO_SKCIPHER
Ard Biesheuvel28e8d892019-11-08 13:22:09 +01001440 select CRYPTO_LIB_CHACHA_GENERIC
Ard Biesheuvel84e03fa2019-11-08 13:22:10 +01001441 select CRYPTO_ARCH_HAVE_LIB_CHACHA
Martin Willic9320b62015-07-16 19:14:01 +02001442 help
Eric Biggers7a507d62018-12-04 22:20:04 -08001443 SSSE3, AVX2, and AVX-512VL optimized implementations of the ChaCha20,
1444 XChaCha20, and XChaCha12 stream ciphers.
Martin Willic9320b62015-07-16 19:14:01 +02001445
Ard Biesheuvel3a2f58f2019-11-08 13:22:17 +01001446config CRYPTO_CHACHA_MIPS
1447 tristate "ChaCha stream cipher algorithms (MIPS 32r2 optimized)"
1448 depends on CPU_MIPS32_R2
1449 select CRYPTO_BLKCIPHER
1450 select CRYPTO_ARCH_HAVE_LIB_CHACHA
1451
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001452config CRYPTO_SEED
1453 tristate "SEED cipher algorithm"
1454 select CRYPTO_ALGAPI
1455 help
1456 SEED cipher algorithm (RFC4269).
1457
1458 SEED is a 128-bit symmetric key block cipher that has been
1459 developed by KISA (Korea Information Security Agency) as a
1460 national standard encryption algorithm of the Republic of Korea.
1461 It is a 16 round block cipher with the key size of 128 bit.
1462
1463 See also:
1464 <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>
1465
1466config CRYPTO_SERPENT
1467 tristate "Serpent cipher algorithm"
1468 select CRYPTO_ALGAPI
1469 help
1470 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1471
1472 Keys are allowed to be from 0 to 256 bits in length, in steps
1473 of 8 bits. Also includes the 'Tnepres' algorithm, a reversed
1474 variant of Serpent for compatibility with old kerneli.org code.
1475
1476 See also:
1477 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1478
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001479config CRYPTO_SERPENT_SSE2_X86_64
1480 tristate "Serpent cipher algorithm (x86_64/SSE2)"
1481 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001482 select CRYPTO_SKCIPHER
Jussi Kivilinna596d8752012-06-18 14:07:19 +03001483 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001484 select CRYPTO_SERPENT
Eric Biggerse0f409d2018-02-19 23:48:03 -08001485 select CRYPTO_SIMD
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001486 help
1487 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1488
1489 Keys are allowed to be from 0 to 256 bits in length, in steps
1490 of 8 bits.
1491
Masanari Iida1e6232f2015-04-04 00:20:30 +09001492 This module provides Serpent cipher algorithm that processes eight
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001493 blocks parallel using SSE2 instruction set.
1494
1495 See also:
1496 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1497
Jussi Kivilinna251496d2011-11-09 16:26:31 +02001498config CRYPTO_SERPENT_SSE2_586
1499 tristate "Serpent cipher algorithm (i586/SSE2)"
1500 depends on X86 && !64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001501 select CRYPTO_SKCIPHER
Jussi Kivilinna596d8752012-06-18 14:07:19 +03001502 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna251496d2011-11-09 16:26:31 +02001503 select CRYPTO_SERPENT
Eric Biggerse0f409d2018-02-19 23:48:03 -08001504 select CRYPTO_SIMD
Jussi Kivilinna251496d2011-11-09 16:26:31 +02001505 help
1506 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1507
1508 Keys are allowed to be from 0 to 256 bits in length, in steps
1509 of 8 bits.
1510
1511 This module provides Serpent cipher algorithm that processes four
1512 blocks parallel using SSE2 instruction set.
1513
1514 See also:
1515 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1516
Johannes Goetzfried7efe4072012-06-12 16:47:43 +08001517config CRYPTO_SERPENT_AVX_X86_64
1518 tristate "Serpent cipher algorithm (x86_64/AVX)"
1519 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001520 select CRYPTO_SKCIPHER
Jussi Kivilinna1d0debb2012-06-18 14:07:24 +03001521 select CRYPTO_GLUE_HELPER_X86
Johannes Goetzfried7efe4072012-06-12 16:47:43 +08001522 select CRYPTO_SERPENT
Eric Biggerse16bf972018-02-19 23:48:06 -08001523 select CRYPTO_SIMD
Johannes Goetzfried7efe4072012-06-12 16:47:43 +08001524 select CRYPTO_XTS
1525 help
1526 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1527
1528 Keys are allowed to be from 0 to 256 bits in length, in steps
1529 of 8 bits.
1530
1531 This module provides the Serpent cipher algorithm that processes
1532 eight blocks parallel using the AVX instruction set.
1533
1534 See also:
1535 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1536
Jussi Kivilinna56d76c92013-04-13 13:46:55 +03001537config CRYPTO_SERPENT_AVX2_X86_64
1538 tristate "Serpent cipher algorithm (x86_64/AVX2)"
1539 depends on X86 && 64BIT
Jussi Kivilinna56d76c92013-04-13 13:46:55 +03001540 select CRYPTO_SERPENT_AVX_X86_64
Jussi Kivilinna56d76c92013-04-13 13:46:55 +03001541 help
1542 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1543
1544 Keys are allowed to be from 0 to 256 bits in length, in steps
1545 of 8 bits.
1546
1547 This module provides Serpent cipher algorithm that processes 16
1548 blocks parallel using AVX2 instruction set.
1549
1550 See also:
1551 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1552
Gilad Ben-Yossef747c8ce2018-03-06 09:44:42 +00001553config CRYPTO_SM4
1554 tristate "SM4 cipher algorithm"
1555 select CRYPTO_ALGAPI
1556 help
1557 SM4 cipher algorithms (OSCCA GB/T 32907-2016).
1558
1559 SM4 (GBT.32907-2016) is a cryptographic standard issued by the
1560 Organization of State Commercial Administration of China (OSCCA)
1561 as an authorized cryptographic algorithms for the use within China.
1562
1563 SMS4 was originally created for use in protecting wireless
1564 networks, and is mandated in the Chinese National Standard for
1565 Wireless LAN WAPI (Wired Authentication and Privacy Infrastructure)
1566 (GB.15629.11-2003).
1567
1568 The latest SM4 standard (GBT.32907-2016) was proposed by OSCCA and
1569 standardized through TC 260 of the Standardization Administration
1570 of the People's Republic of China (SAC).
1571
1572 The input, output, and key of SMS4 are each 128 bits.
1573
1574 See also: <https://eprint.iacr.org/2008/329.pdf>
1575
1576 If unsure, say N.
1577
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001578config CRYPTO_TEA
1579 tristate "TEA, XTEA and XETA cipher algorithms"
1580 select CRYPTO_ALGAPI
1581 help
1582 TEA cipher algorithm.
1583
1584 Tiny Encryption Algorithm is a simple cipher that uses
1585 many rounds for security. It is very fast and uses
1586 little memory.
1587
1588 Xtendend Tiny Encryption Algorithm is a modification to
1589 the TEA algorithm to address a potential key weakness
1590 in the TEA algorithm.
1591
1592 Xtendend Encryption Tiny Algorithm is a mis-implementation
1593 of the XTEA algorithm for compatibility purposes.
1594
1595config CRYPTO_TWOFISH
1596 tristate "Twofish cipher algorithm"
1597 select CRYPTO_ALGAPI
1598 select CRYPTO_TWOFISH_COMMON
1599 help
1600 Twofish cipher algorithm.
1601
1602 Twofish was submitted as an AES (Advanced Encryption Standard)
1603 candidate cipher by researchers at CounterPane Systems. It is a
1604 16 round block cipher supporting key sizes of 128, 192, and 256
1605 bits.
1606
1607 See also:
1608 <http://www.schneier.com/twofish.html>
1609
1610config CRYPTO_TWOFISH_COMMON
1611 tristate
1612 help
1613 Common parts of the Twofish cipher algorithm shared by the
1614 generic c and the assembler implementations.
1615
1616config CRYPTO_TWOFISH_586
1617 tristate "Twofish cipher algorithms (i586)"
1618 depends on (X86 || UML_X86) && !64BIT
1619 select CRYPTO_ALGAPI
1620 select CRYPTO_TWOFISH_COMMON
1621 help
1622 Twofish cipher algorithm.
1623
1624 Twofish was submitted as an AES (Advanced Encryption Standard)
1625 candidate cipher by researchers at CounterPane Systems. It is a
1626 16 round block cipher supporting key sizes of 128, 192, and 256
1627 bits.
1628
1629 See also:
1630 <http://www.schneier.com/twofish.html>
1631
1632config CRYPTO_TWOFISH_X86_64
1633 tristate "Twofish cipher algorithm (x86_64)"
1634 depends on (X86 || UML_X86) && 64BIT
1635 select CRYPTO_ALGAPI
1636 select CRYPTO_TWOFISH_COMMON
1637 help
1638 Twofish cipher algorithm (x86_64).
1639
1640 Twofish was submitted as an AES (Advanced Encryption Standard)
1641 candidate cipher by researchers at CounterPane Systems. It is a
1642 16 round block cipher supporting key sizes of 128, 192, and 256
1643 bits.
1644
1645 See also:
1646 <http://www.schneier.com/twofish.html>
1647
Jussi Kivilinna8280daa2011-09-26 16:47:25 +03001648config CRYPTO_TWOFISH_X86_64_3WAY
1649 tristate "Twofish cipher algorithm (x86_64, 3-way parallel)"
Al Virof21a7c12012-04-08 20:31:22 -04001650 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001651 select CRYPTO_SKCIPHER
Jussi Kivilinna8280daa2011-09-26 16:47:25 +03001652 select CRYPTO_TWOFISH_COMMON
1653 select CRYPTO_TWOFISH_X86_64
Jussi Kivilinna414cb5e2012-06-18 14:07:34 +03001654 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna8280daa2011-09-26 16:47:25 +03001655 help
1656 Twofish cipher algorithm (x86_64, 3-way parallel).
1657
1658 Twofish was submitted as an AES (Advanced Encryption Standard)
1659 candidate cipher by researchers at CounterPane Systems. It is a
1660 16 round block cipher supporting key sizes of 128, 192, and 256
1661 bits.
1662
1663 This module provides Twofish cipher algorithm that processes three
1664 blocks parallel, utilizing resources of out-of-order CPUs better.
1665
1666 See also:
1667 <http://www.schneier.com/twofish.html>
1668
Johannes Goetzfried107778b52012-05-28 15:54:24 +02001669config CRYPTO_TWOFISH_AVX_X86_64
1670 tristate "Twofish cipher algorithm (x86_64/AVX)"
1671 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001672 select CRYPTO_SKCIPHER
Jussi Kivilinnaa7378d42012-06-18 14:07:39 +03001673 select CRYPTO_GLUE_HELPER_X86
Eric Biggers0e6ab462018-02-19 23:48:11 -08001674 select CRYPTO_SIMD
Johannes Goetzfried107778b52012-05-28 15:54:24 +02001675 select CRYPTO_TWOFISH_COMMON
1676 select CRYPTO_TWOFISH_X86_64
1677 select CRYPTO_TWOFISH_X86_64_3WAY
Johannes Goetzfried107778b52012-05-28 15:54:24 +02001678 help
1679 Twofish cipher algorithm (x86_64/AVX).
1680
1681 Twofish was submitted as an AES (Advanced Encryption Standard)
1682 candidate cipher by researchers at CounterPane Systems. It is a
1683 16 round block cipher supporting key sizes of 128, 192, and 256
1684 bits.
1685
1686 This module provides the Twofish cipher algorithm that processes
1687 eight blocks parallel using the AVX Instruction Set.
1688
1689 See also:
1690 <http://www.schneier.com/twofish.html>
1691
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001692comment "Compression"
1693
Linus Torvalds1da177e2005-04-16 15:20:36 -07001694config CRYPTO_DEFLATE
1695 tristate "Deflate compression algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001696 select CRYPTO_ALGAPI
Giovanni Cabidduf6ded092016-10-21 13:19:53 +01001697 select CRYPTO_ACOMP2
Linus Torvalds1da177e2005-04-16 15:20:36 -07001698 select ZLIB_INFLATE
1699 select ZLIB_DEFLATE
1700 help
1701 This is the Deflate algorithm (RFC1951), specified for use in
1702 IPSec with the IPCOMP protocol (RFC3173, RFC2394).
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001703
Linus Torvalds1da177e2005-04-16 15:20:36 -07001704 You will most probably want this if using IPSec.
1705
Zoltan Sogor0b77abb2007-12-07 16:53:23 +08001706config CRYPTO_LZO
1707 tristate "LZO compression algorithm"
1708 select CRYPTO_ALGAPI
Giovanni Cabidduac9d2c42016-10-21 13:19:49 +01001709 select CRYPTO_ACOMP2
Zoltan Sogor0b77abb2007-12-07 16:53:23 +08001710 select LZO_COMPRESS
1711 select LZO_DECOMPRESS
1712 help
1713 This is the LZO algorithm.
1714
Seth Jennings35a1fc12012-07-19 09:42:41 -05001715config CRYPTO_842
1716 tristate "842 compression algorithm"
Dan Streetman2062c5b2015-05-07 13:49:15 -04001717 select CRYPTO_ALGAPI
Giovanni Cabiddu6a8de3a2016-10-21 13:19:52 +01001718 select CRYPTO_ACOMP2
Dan Streetman2062c5b2015-05-07 13:49:15 -04001719 select 842_COMPRESS
1720 select 842_DECOMPRESS
Seth Jennings35a1fc12012-07-19 09:42:41 -05001721 help
1722 This is the 842 algorithm.
1723
Chanho Min0ea85302013-07-08 16:01:51 -07001724config CRYPTO_LZ4
1725 tristate "LZ4 compression algorithm"
1726 select CRYPTO_ALGAPI
Giovanni Cabiddu8cd93302016-10-21 13:19:50 +01001727 select CRYPTO_ACOMP2
Chanho Min0ea85302013-07-08 16:01:51 -07001728 select LZ4_COMPRESS
1729 select LZ4_DECOMPRESS
1730 help
1731 This is the LZ4 algorithm.
1732
1733config CRYPTO_LZ4HC
1734 tristate "LZ4HC compression algorithm"
1735 select CRYPTO_ALGAPI
Giovanni Cabiddu91d53d92016-10-21 13:19:51 +01001736 select CRYPTO_ACOMP2
Chanho Min0ea85302013-07-08 16:01:51 -07001737 select LZ4HC_COMPRESS
1738 select LZ4_DECOMPRESS
1739 help
1740 This is the LZ4 high compression mode algorithm.
1741
Nick Terrelld28fc3d2018-03-30 12:14:53 -07001742config CRYPTO_ZSTD
1743 tristate "Zstd compression algorithm"
1744 select CRYPTO_ALGAPI
1745 select CRYPTO_ACOMP2
1746 select ZSTD_COMPRESS
1747 select ZSTD_DECOMPRESS
1748 help
1749 This is the zstd algorithm.
1750
Neil Horman17f0f4a2008-08-14 22:15:52 +10001751comment "Random Number Generation"
1752
1753config CRYPTO_ANSI_CPRNG
1754 tristate "Pseudo Random Number Generation for Cryptographic modules"
1755 select CRYPTO_AES
1756 select CRYPTO_RNG
Neil Horman17f0f4a2008-08-14 22:15:52 +10001757 help
1758 This option enables the generic pseudo random number generator
1759 for cryptographic modules. Uses the Algorithm specified in
Jiri Kosina7dd607e2010-01-27 01:00:10 +01001760 ANSI X9.31 A.2.4. Note that this option must be enabled if
1761 CRYPTO_FIPS is selected
Neil Horman17f0f4a2008-08-14 22:15:52 +10001762
Herbert Xuf2c89a12014-07-04 22:15:08 +08001763menuconfig CRYPTO_DRBG_MENU
Stephan Mueller419090c2014-05-31 17:22:31 +02001764 tristate "NIST SP800-90A DRBG"
Stephan Mueller419090c2014-05-31 17:22:31 +02001765 help
1766 NIST SP800-90A compliant DRBG. In the following submenu, one or
1767 more of the DRBG types must be selected.
1768
Herbert Xuf2c89a12014-07-04 22:15:08 +08001769if CRYPTO_DRBG_MENU
Stephan Mueller419090c2014-05-31 17:22:31 +02001770
1771config CRYPTO_DRBG_HMAC
Herbert Xu401e4232015-06-03 14:49:31 +08001772 bool
Stephan Mueller419090c2014-05-31 17:22:31 +02001773 default y
Stephan Mueller419090c2014-05-31 17:22:31 +02001774 select CRYPTO_HMAC
Herbert Xu826775b2015-06-11 08:55:10 +08001775 select CRYPTO_SHA256
Stephan Mueller419090c2014-05-31 17:22:31 +02001776
1777config CRYPTO_DRBG_HASH
1778 bool "Enable Hash DRBG"
Herbert Xu826775b2015-06-11 08:55:10 +08001779 select CRYPTO_SHA256
Stephan Mueller419090c2014-05-31 17:22:31 +02001780 help
1781 Enable the Hash DRBG variant as defined in NIST SP800-90A.
1782
1783config CRYPTO_DRBG_CTR
1784 bool "Enable CTR DRBG"
Stephan Mueller419090c2014-05-31 17:22:31 +02001785 select CRYPTO_AES
Stephan Mueller35591282016-06-14 07:34:13 +02001786 depends on CRYPTO_CTR
Stephan Mueller419090c2014-05-31 17:22:31 +02001787 help
1788 Enable the CTR DRBG variant as defined in NIST SP800-90A.
1789
Herbert Xuf2c89a12014-07-04 22:15:08 +08001790config CRYPTO_DRBG
1791 tristate
Herbert Xu401e4232015-06-03 14:49:31 +08001792 default CRYPTO_DRBG_MENU
Herbert Xuf2c89a12014-07-04 22:15:08 +08001793 select CRYPTO_RNG
Stephan Muellerbb5530e2015-05-25 15:10:20 +02001794 select CRYPTO_JITTERENTROPY
Herbert Xuf2c89a12014-07-04 22:15:08 +08001795
1796endif # if CRYPTO_DRBG_MENU
Stephan Mueller419090c2014-05-31 17:22:31 +02001797
Stephan Muellerbb5530e2015-05-25 15:10:20 +02001798config CRYPTO_JITTERENTROPY
1799 tristate "Jitterentropy Non-Deterministic Random Number Generator"
Arnd Bergmann2f313e02016-01-26 14:47:10 +01001800 select CRYPTO_RNG
Stephan Muellerbb5530e2015-05-25 15:10:20 +02001801 help
1802 The Jitterentropy RNG is a noise that is intended
1803 to provide seed to another RNG. The RNG does not
1804 perform any cryptographic whitening of the generated
1805 random numbers. This Jitterentropy RNG registers with
1806 the kernel crypto API and can be used by any caller.
1807
Herbert Xu03c8efc2010-10-19 21:12:39 +08001808config CRYPTO_USER_API
1809 tristate
1810
Herbert Xufe869cd2010-10-19 21:23:00 +08001811config CRYPTO_USER_API_HASH
1812 tristate "User-space interface for hash algorithms"
Herbert Xu74517082010-11-29 22:56:03 +08001813 depends on NET
Herbert Xufe869cd2010-10-19 21:23:00 +08001814 select CRYPTO_HASH
1815 select CRYPTO_USER_API
1816 help
1817 This option enables the user-spaces interface for hash
1818 algorithms.
1819
Herbert Xu8ff59092010-10-19 21:31:55 +08001820config CRYPTO_USER_API_SKCIPHER
1821 tristate "User-space interface for symmetric key cipher algorithms"
Herbert Xu74517082010-11-29 22:56:03 +08001822 depends on NET
Eric Biggersb95bba52019-10-25 12:41:13 -07001823 select CRYPTO_SKCIPHER
Herbert Xu8ff59092010-10-19 21:31:55 +08001824 select CRYPTO_USER_API
1825 help
1826 This option enables the user-spaces interface for symmetric
1827 key cipher algorithms.
1828
Stephan Mueller2f3755382014-12-25 23:00:39 +01001829config CRYPTO_USER_API_RNG
1830 tristate "User-space interface for random number generator algorithms"
1831 depends on NET
1832 select CRYPTO_RNG
1833 select CRYPTO_USER_API
1834 help
1835 This option enables the user-spaces interface for random
1836 number generator algorithms.
1837
Herbert Xub64a2d92015-05-28 11:30:35 +08001838config CRYPTO_USER_API_AEAD
1839 tristate "User-space interface for AEAD cipher algorithms"
1840 depends on NET
1841 select CRYPTO_AEAD
Eric Biggersb95bba52019-10-25 12:41:13 -07001842 select CRYPTO_SKCIPHER
Stephan Mueller72548b02017-07-30 14:32:58 +02001843 select CRYPTO_NULL
Herbert Xub64a2d92015-05-28 11:30:35 +08001844 select CRYPTO_USER_API
1845 help
1846 This option enables the user-spaces interface for AEAD
1847 cipher algorithms.
1848
Corentin Labbecac58182018-09-19 10:10:54 +00001849config CRYPTO_STATS
1850 bool "Crypto usage statistics for User-space"
Corentin Labbea6a31382018-11-29 14:42:17 +00001851 depends on CRYPTO_USER
Corentin Labbecac58182018-09-19 10:10:54 +00001852 help
1853 This option enables the gathering of crypto stats.
1854 This will collect:
1855 - encrypt/decrypt size and numbers of symmeric operations
1856 - compress/decompress size and numbers of compress operations
1857 - size and numbers of hash operations
1858 - encrypt/decrypt/sign/verify numbers for asymmetric operations
1859 - generate/seed numbers for rng operations
1860
Dmitry Kasatkinee089972013-05-06 15:40:01 +03001861config CRYPTO_HASH_INFO
1862 bool
1863
Ard Biesheuvel746b2e02019-11-08 13:22:07 +01001864source "lib/crypto/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -07001865source "drivers/crypto/Kconfig"
Masahiro Yamada8636a1f2018-12-11 20:01:04 +09001866source "crypto/asymmetric_keys/Kconfig"
1867source "certs/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -07001868
Herbert Xucce9e062006-08-21 21:08:13 +10001869endif # if CRYPTO