blob: 7aa4310713cfe6eb66a347582ec9cce795162a94 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Linus Torvalds1da177e2005-04-16 15:20:36 -07002#
Dan Williams685784a2007-07-09 11:56:42 -07003# Generic algorithms support
4#
5config XOR_BLOCKS
6 tristate
7
8#
Dan Williams9bc89cd2007-01-02 11:10:44 -07009# async_tx api: hardware offloaded memory transfer/transform support
10#
11source "crypto/async_tx/Kconfig"
12
13#
Linus Torvalds1da177e2005-04-16 15:20:36 -070014# Cryptographic API Configuration
15#
Jan Engelhardt2e290f42007-05-18 15:11:01 +100016menuconfig CRYPTO
Sebastian Siewiorc3715cb92008-03-30 16:36:09 +080017 tristate "Cryptographic API"
Linus Torvalds1da177e2005-04-16 15:20:36 -070018 help
19 This option provides the core Cryptographic API.
20
Herbert Xucce9e062006-08-21 21:08:13 +100021if CRYPTO
22
Sebastian Siewior584fffc2008-04-05 21:04:48 +080023comment "Crypto core or helper"
24
Neil Hormanccb778e2008-08-05 14:13:08 +080025config CRYPTO_FIPS
26 bool "FIPS 200 compliance"
Herbert Xuf2c89a12014-07-04 22:15:08 +080027 depends on (CRYPTO_ANSI_CPRNG || CRYPTO_DRBG) && !CRYPTO_MANAGER_DISABLE_TESTS
Alec Ari1f696092016-10-04 19:34:30 -030028 depends on (MODULE_SIG || !MODULES)
Neil Hormanccb778e2008-08-05 14:13:08 +080029 help
Geert Uytterhoevend99324c2019-03-20 11:41:03 +010030 This option enables the fips boot option which is
31 required if you want the system to operate in a FIPS 200
Neil Hormanccb778e2008-08-05 14:13:08 +080032 certification. You should say no unless you know what
Chuck Ebberte84c5482010-09-03 19:17:49 +080033 this is.
Neil Hormanccb778e2008-08-05 14:13:08 +080034
Herbert Xucce9e062006-08-21 21:08:13 +100035config CRYPTO_ALGAPI
36 tristate
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110037 select CRYPTO_ALGAPI2
Herbert Xucce9e062006-08-21 21:08:13 +100038 help
39 This option provides the API for cryptographic algorithms.
40
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110041config CRYPTO_ALGAPI2
42 tristate
43
Herbert Xu1ae97822007-08-30 15:36:14 +080044config CRYPTO_AEAD
45 tristate
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110046 select CRYPTO_AEAD2
Herbert Xu1ae97822007-08-30 15:36:14 +080047 select CRYPTO_ALGAPI
48
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110049config CRYPTO_AEAD2
50 tristate
51 select CRYPTO_ALGAPI2
Herbert Xu149a3972015-08-13 17:28:58 +080052 select CRYPTO_NULL2
53 select CRYPTO_RNG2
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110054
Eric Biggersb95bba52019-10-25 12:41:13 -070055config CRYPTO_SKCIPHER
Herbert Xu5cde0af2006-08-22 00:07:53 +100056 tristate
Eric Biggersb95bba52019-10-25 12:41:13 -070057 select CRYPTO_SKCIPHER2
Herbert Xu5cde0af2006-08-22 00:07:53 +100058 select CRYPTO_ALGAPI
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110059
Eric Biggersb95bba52019-10-25 12:41:13 -070060config CRYPTO_SKCIPHER2
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110061 tristate
62 select CRYPTO_ALGAPI2
63 select CRYPTO_RNG2
Herbert Xu5cde0af2006-08-22 00:07:53 +100064
Herbert Xu055bcee2006-08-19 22:24:23 +100065config CRYPTO_HASH
66 tristate
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110067 select CRYPTO_HASH2
Herbert Xu055bcee2006-08-19 22:24:23 +100068 select CRYPTO_ALGAPI
69
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110070config CRYPTO_HASH2
71 tristate
72 select CRYPTO_ALGAPI2
73
Neil Horman17f0f4a2008-08-14 22:15:52 +100074config CRYPTO_RNG
75 tristate
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110076 select CRYPTO_RNG2
Neil Horman17f0f4a2008-08-14 22:15:52 +100077 select CRYPTO_ALGAPI
78
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110079config CRYPTO_RNG2
80 tristate
81 select CRYPTO_ALGAPI2
82
Herbert Xu401e4232015-06-03 14:49:31 +080083config CRYPTO_RNG_DEFAULT
84 tristate
85 select CRYPTO_DRBG_MENU
86
Tadeusz Struk3c339ab2015-06-16 10:30:55 -070087config CRYPTO_AKCIPHER2
88 tristate
89 select CRYPTO_ALGAPI2
90
91config CRYPTO_AKCIPHER
92 tristate
93 select CRYPTO_AKCIPHER2
94 select CRYPTO_ALGAPI
95
Salvatore Benedetto4e5f2c42016-06-22 17:49:13 +010096config CRYPTO_KPP2
97 tristate
98 select CRYPTO_ALGAPI2
99
100config CRYPTO_KPP
101 tristate
102 select CRYPTO_ALGAPI
103 select CRYPTO_KPP2
104
Giovanni Cabiddu2ebda742016-10-21 13:19:47 +0100105config CRYPTO_ACOMP2
106 tristate
107 select CRYPTO_ALGAPI2
Bart Van Assche8cd579d2018-01-05 08:26:47 -0800108 select SGL_ALLOC
Giovanni Cabiddu2ebda742016-10-21 13:19:47 +0100109
110config CRYPTO_ACOMP
111 tristate
112 select CRYPTO_ALGAPI
113 select CRYPTO_ACOMP2
114
Herbert Xu2b8c19d2006-09-21 11:31:44 +1000115config CRYPTO_MANAGER
116 tristate "Cryptographic algorithm manager"
Herbert Xu6a0fcbb2008-12-10 23:29:44 +1100117 select CRYPTO_MANAGER2
Herbert Xu2b8c19d2006-09-21 11:31:44 +1000118 help
119 Create default cryptographic template instantiations such as
120 cbc(aes).
121
Herbert Xu6a0fcbb2008-12-10 23:29:44 +1100122config CRYPTO_MANAGER2
123 def_tristate CRYPTO_MANAGER || (CRYPTO_MANAGER!=n && CRYPTO_ALGAPI=y)
124 select CRYPTO_AEAD2
125 select CRYPTO_HASH2
Eric Biggersb95bba52019-10-25 12:41:13 -0700126 select CRYPTO_SKCIPHER2
Tadeusz Struk946cc462015-06-16 10:31:06 -0700127 select CRYPTO_AKCIPHER2
Salvatore Benedetto4e5f2c42016-06-22 17:49:13 +0100128 select CRYPTO_KPP2
Giovanni Cabiddu2ebda742016-10-21 13:19:47 +0100129 select CRYPTO_ACOMP2
Herbert Xu6a0fcbb2008-12-10 23:29:44 +1100130
Steffen Klasserta38f7902011-09-27 07:23:50 +0200131config CRYPTO_USER
132 tristate "Userspace cryptographic algorithm configuration"
Herbert Xu5db017a2011-11-01 12:12:43 +1100133 depends on NET
Steffen Klasserta38f7902011-09-27 07:23:50 +0200134 select CRYPTO_MANAGER
135 help
Valdis.Kletnieks@vt.edud19978f2011-11-09 01:29:20 -0500136 Userspace configuration for cryptographic instantiations such as
Steffen Klasserta38f7902011-09-27 07:23:50 +0200137 cbc(aes).
138
Eric Biggers929d34c2019-05-20 09:48:29 -0700139if CRYPTO_MANAGER2
140
Herbert Xu326a6342010-08-06 09:40:28 +0800141config CRYPTO_MANAGER_DISABLE_TESTS
142 bool "Disable run-time self tests"
Herbert Xu00ca28a2010-08-06 10:34:00 +0800143 default y
Alexander Shishkin0b767f92010-06-03 20:53:43 +1000144 help
Herbert Xu326a6342010-08-06 09:40:28 +0800145 Disable run-time self tests that normally take place at
146 algorithm registration.
Alexander Shishkin0b767f92010-06-03 20:53:43 +1000147
Eric Biggers5b2706a2019-01-31 23:51:44 -0800148config CRYPTO_MANAGER_EXTRA_TESTS
149 bool "Enable extra run-time crypto self tests"
150 depends on DEBUG_KERNEL && !CRYPTO_MANAGER_DISABLE_TESTS
151 help
152 Enable extra run-time self tests of registered crypto algorithms,
153 including randomized fuzz tests.
154
155 This is intended for developer use only, as these tests take much
156 longer to run than the normal self tests.
157
Eric Biggers929d34c2019-05-20 09:48:29 -0700158endif # if CRYPTO_MANAGER2
159
Rik Snelc494e072006-11-29 18:59:44 +1100160config CRYPTO_GF128MUL
Eric Biggerse590e132019-05-20 09:53:43 -0700161 tristate
Rik Snelc494e072006-11-29 18:59:44 +1100162
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800163config CRYPTO_NULL
164 tristate "Null algorithms"
Herbert Xu149a3972015-08-13 17:28:58 +0800165 select CRYPTO_NULL2
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800166 help
167 These are 'Null' algorithms, used by IPsec, which do nothing.
168
Herbert Xu149a3972015-08-13 17:28:58 +0800169config CRYPTO_NULL2
Herbert Xudd43c4e2015-08-17 20:39:40 +0800170 tristate
Herbert Xu149a3972015-08-13 17:28:58 +0800171 select CRYPTO_ALGAPI2
Eric Biggersb95bba52019-10-25 12:41:13 -0700172 select CRYPTO_SKCIPHER2
Herbert Xu149a3972015-08-13 17:28:58 +0800173 select CRYPTO_HASH2
174
Steffen Klassert5068c7a2010-01-07 15:57:19 +1100175config CRYPTO_PCRYPT
Kees Cook3b4afaf2012-10-02 11:16:49 -0700176 tristate "Parallel crypto engine"
177 depends on SMP
Steffen Klassert5068c7a2010-01-07 15:57:19 +1100178 select PADATA
179 select CRYPTO_MANAGER
180 select CRYPTO_AEAD
181 help
182 This converts an arbitrary crypto algorithm into a parallel
183 algorithm that executes in kernel threads.
184
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800185config CRYPTO_CRYPTD
186 tristate "Software async crypto daemon"
Eric Biggersb95bba52019-10-25 12:41:13 -0700187 select CRYPTO_SKCIPHER
Loc Hob8a28252008-05-14 21:23:00 +0800188 select CRYPTO_HASH
Herbert Xu43518402006-10-16 21:28:58 +1000189 select CRYPTO_MANAGER
Herbert Xudb131ef2006-09-21 11:44:08 +1000190 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800191 This is a generic software asynchronous crypto daemon that
192 converts an arbitrary synchronous software crypto algorithm
193 into an asynchronous algorithm that executes in a kernel thread.
194
195config CRYPTO_AUTHENC
196 tristate "Authenc support"
197 select CRYPTO_AEAD
Eric Biggersb95bba52019-10-25 12:41:13 -0700198 select CRYPTO_SKCIPHER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800199 select CRYPTO_MANAGER
200 select CRYPTO_HASH
Herbert Xue94c6a72015-08-04 21:23:14 +0800201 select CRYPTO_NULL
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800202 help
203 Authenc: Combined mode wrapper for IPsec.
204 This is required for IPSec.
205
206config CRYPTO_TEST
207 tristate "Testing module"
208 depends on m
Herbert Xuda7f0332008-07-31 17:08:25 +0800209 select CRYPTO_MANAGER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800210 help
211 Quick & dirty crypto test module.
212
Herbert Xu266d0512016-11-22 20:08:25 +0800213config CRYPTO_SIMD
214 tristate
215 select CRYPTO_CRYPTD
216
Jussi Kivilinna596d8752012-06-18 14:07:19 +0300217config CRYPTO_GLUE_HELPER_X86
218 tristate
219 depends on X86
Eric Biggersb95bba52019-10-25 12:41:13 -0700220 select CRYPTO_SKCIPHER
Jussi Kivilinna596d8752012-06-18 14:07:19 +0300221
Baolin Wang735d37b2016-01-26 20:25:39 +0800222config CRYPTO_ENGINE
223 tristate
224
Vitaly Chikunov3d6228a2019-04-11 18:51:18 +0300225comment "Public-key cryptography"
226
227config CRYPTO_RSA
228 tristate "RSA algorithm"
229 select CRYPTO_AKCIPHER
230 select CRYPTO_MANAGER
231 select MPILIB
232 select ASN1
233 help
234 Generic implementation of the RSA public key algorithm.
235
236config CRYPTO_DH
237 tristate "Diffie-Hellman algorithm"
238 select CRYPTO_KPP
239 select MPILIB
240 help
241 Generic implementation of the Diffie-Hellman algorithm.
242
Vitaly Chikunov4a2289d2019-04-11 18:51:19 +0300243config CRYPTO_ECC
244 tristate
245
Vitaly Chikunov3d6228a2019-04-11 18:51:18 +0300246config CRYPTO_ECDH
247 tristate "ECDH algorithm"
Vitaly Chikunov4a2289d2019-04-11 18:51:19 +0300248 select CRYPTO_ECC
Vitaly Chikunov3d6228a2019-04-11 18:51:18 +0300249 select CRYPTO_KPP
250 select CRYPTO_RNG_DEFAULT
251 help
252 Generic implementation of the ECDH algorithm
253
Vitaly Chikunov0d7a7862019-04-11 18:51:20 +0300254config CRYPTO_ECRDSA
255 tristate "EC-RDSA (GOST 34.10) algorithm"
256 select CRYPTO_ECC
257 select CRYPTO_AKCIPHER
258 select CRYPTO_STREEBOG
Vitaly Chikunov10366332019-04-24 04:32:40 +0300259 select OID_REGISTRY
260 select ASN1
Vitaly Chikunov0d7a7862019-04-11 18:51:20 +0300261 help
262 Elliptic Curve Russian Digital Signature Algorithm (GOST R 34.10-2012,
263 RFC 7091, ISO/IEC 14888-3:2018) is one of the Russian cryptographic
264 standard algorithms (called GOST algorithms). Only signature verification
265 is implemented.
266
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800267comment "Authenticated Encryption with Associated Data"
268
269config CRYPTO_CCM
270 tristate "CCM support"
271 select CRYPTO_CTR
Ard Biesheuvelf15f05b2017-02-03 14:49:36 +0000272 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800273 select CRYPTO_AEAD
Eric Biggersc8a33152019-05-20 09:49:46 -0700274 select CRYPTO_MANAGER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800275 help
276 Support for Counter with CBC MAC. Required for IPsec.
277
278config CRYPTO_GCM
279 tristate "GCM/GMAC support"
280 select CRYPTO_CTR
281 select CRYPTO_AEAD
Huang Ying9382d972009-08-06 15:34:26 +1000282 select CRYPTO_GHASH
Jussi Kivilinna9489667d2013-04-07 16:43:41 +0300283 select CRYPTO_NULL
Eric Biggersc8a33152019-05-20 09:49:46 -0700284 select CRYPTO_MANAGER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800285 help
286 Support for Galois/Counter Mode (GCM) and Galois Message
287 Authentication Code (GMAC). Required for IPSec.
288
Martin Willi71ebc4d2015-06-01 13:44:00 +0200289config CRYPTO_CHACHA20POLY1305
290 tristate "ChaCha20-Poly1305 AEAD support"
291 select CRYPTO_CHACHA20
292 select CRYPTO_POLY1305
293 select CRYPTO_AEAD
Eric Biggersc8a33152019-05-20 09:49:46 -0700294 select CRYPTO_MANAGER
Martin Willi71ebc4d2015-06-01 13:44:00 +0200295 help
296 ChaCha20-Poly1305 AEAD support, RFC7539.
297
298 Support for the AEAD wrapper using the ChaCha20 stream cipher combined
299 with the Poly1305 authenticator. It is defined in RFC7539 for use in
300 IETF protocols.
301
Ondrej Mosnacekf606a882018-05-11 14:12:49 +0200302config CRYPTO_AEGIS128
303 tristate "AEGIS-128 AEAD algorithm"
304 select CRYPTO_AEAD
305 select CRYPTO_AES # for AES S-box tables
306 help
307 Support for the AEGIS-128 dedicated AEAD algorithm.
308
Ard Biesheuvela4397632019-08-12 01:59:11 +0300309config CRYPTO_AEGIS128_SIMD
310 bool "Support SIMD acceleration for AEGIS-128"
311 depends on CRYPTO_AEGIS128 && ((ARM || ARM64) && KERNEL_MODE_NEON)
Ard Biesheuvel83053672019-10-02 09:54:48 +0200312 depends on !ARM || CC_IS_CLANG || GCC_VERSION >= 40800
Ard Biesheuvela4397632019-08-12 01:59:11 +0300313 default y
314
Ondrej Mosnacek1d373d42018-05-11 14:12:51 +0200315config CRYPTO_AEGIS128_AESNI_SSE2
316 tristate "AEGIS-128 AEAD algorithm (x86_64 AESNI+SSE2 implementation)"
317 depends on X86 && 64BIT
318 select CRYPTO_AEAD
Eric Biggersde272ca2019-03-10 12:00:53 -0700319 select CRYPTO_SIMD
Ondrej Mosnacek1d373d42018-05-11 14:12:51 +0200320 help
Ondrej Mosnacek4e5180e2019-03-15 08:47:25 +0100321 AESNI+SSE2 implementation of the AEGIS-128 dedicated AEAD algorithm.
Ondrej Mosnacek1d373d42018-05-11 14:12:51 +0200322
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800323config CRYPTO_SEQIV
324 tristate "Sequence Number IV Generator"
325 select CRYPTO_AEAD
Eric Biggersb95bba52019-10-25 12:41:13 -0700326 select CRYPTO_SKCIPHER
Herbert Xu856e3f402015-05-21 15:11:13 +0800327 select CRYPTO_NULL
Herbert Xu401e4232015-06-03 14:49:31 +0800328 select CRYPTO_RNG_DEFAULT
Eric Biggersc8a33152019-05-20 09:49:46 -0700329 select CRYPTO_MANAGER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800330 help
331 This IV generator generates an IV based on a sequence number by
332 xoring it with a salt. This algorithm is mainly useful for CTR
333
Herbert Xua10f5542015-05-21 15:11:15 +0800334config CRYPTO_ECHAINIV
335 tristate "Encrypted Chain IV Generator"
336 select CRYPTO_AEAD
337 select CRYPTO_NULL
Herbert Xu401e4232015-06-03 14:49:31 +0800338 select CRYPTO_RNG_DEFAULT
Eric Biggersc8a33152019-05-20 09:49:46 -0700339 select CRYPTO_MANAGER
Herbert Xua10f5542015-05-21 15:11:15 +0800340 help
341 This IV generator generates an IV based on the encryption of
342 a sequence number xored with a salt. This is the default
343 algorithm for CBC.
344
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800345comment "Block modes"
Herbert Xudb131ef2006-09-21 11:44:08 +1000346
347config CRYPTO_CBC
348 tristate "CBC support"
Eric Biggersb95bba52019-10-25 12:41:13 -0700349 select CRYPTO_SKCIPHER
Herbert Xu43518402006-10-16 21:28:58 +1000350 select CRYPTO_MANAGER
Herbert Xudb131ef2006-09-21 11:44:08 +1000351 help
352 CBC: Cipher Block Chaining mode
353 This block cipher algorithm is required for IPSec.
354
James Bottomleya7d85e02018-03-01 14:36:17 -0800355config CRYPTO_CFB
356 tristate "CFB support"
Eric Biggersb95bba52019-10-25 12:41:13 -0700357 select CRYPTO_SKCIPHER
James Bottomleya7d85e02018-03-01 14:36:17 -0800358 select CRYPTO_MANAGER
359 help
360 CFB: Cipher FeedBack mode
361 This block cipher algorithm is required for TPM2 Cryptography.
362
Joy Latten23e353c2007-10-23 08:50:32 +0800363config CRYPTO_CTR
364 tristate "CTR support"
Eric Biggersb95bba52019-10-25 12:41:13 -0700365 select CRYPTO_SKCIPHER
Herbert Xu0a270322007-11-30 21:38:37 +1100366 select CRYPTO_SEQIV
Joy Latten23e353c2007-10-23 08:50:32 +0800367 select CRYPTO_MANAGER
Joy Latten23e353c2007-10-23 08:50:32 +0800368 help
369 CTR: Counter mode
370 This block cipher algorithm is required for IPSec.
371
Kevin Coffman76cb9522008-03-24 21:26:16 +0800372config CRYPTO_CTS
373 tristate "CTS support"
Eric Biggersb95bba52019-10-25 12:41:13 -0700374 select CRYPTO_SKCIPHER
Eric Biggersc8a33152019-05-20 09:49:46 -0700375 select CRYPTO_MANAGER
Kevin Coffman76cb9522008-03-24 21:26:16 +0800376 help
377 CTS: Cipher Text Stealing
378 This is the Cipher Text Stealing mode as described by
Gilad Ben-Yossefecd6d5c2018-11-05 12:05:01 +0000379 Section 8 of rfc2040 and referenced by rfc3962
380 (rfc3962 includes errata information in its Appendix A) or
381 CBC-CS3 as defined by NIST in Sp800-38A addendum from Oct 2010.
Kevin Coffman76cb9522008-03-24 21:26:16 +0800382 This mode is required for Kerberos gss mechanism support
383 for AES encryption.
384
Gilad Ben-Yossefecd6d5c2018-11-05 12:05:01 +0000385 See: https://csrc.nist.gov/publications/detail/sp/800-38a/addendum/final
386
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800387config CRYPTO_ECB
388 tristate "ECB support"
Eric Biggersb95bba52019-10-25 12:41:13 -0700389 select CRYPTO_SKCIPHER
Herbert Xu124b53d2007-04-16 20:49:20 +1000390 select CRYPTO_MANAGER
391 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800392 ECB: Electronic CodeBook mode
393 This is the simplest block cipher algorithm. It simply encrypts
394 the input block by block.
Herbert Xu124b53d2007-04-16 20:49:20 +1000395
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800396config CRYPTO_LRW
Jussi Kivilinna2470a2b2011-12-13 12:52:51 +0200397 tristate "LRW support"
Eric Biggersb95bba52019-10-25 12:41:13 -0700398 select CRYPTO_SKCIPHER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800399 select CRYPTO_MANAGER
400 select CRYPTO_GF128MUL
David Howells90831632006-12-16 12:13:14 +1100401 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800402 LRW: Liskov Rivest Wagner, a tweakable, non malleable, non movable
403 narrow block cipher mode for dm-crypt. Use it with cipher
404 specification string aes-lrw-benbi, the key must be 256, 320 or 384.
405 The first 128, 192 or 256 bits in the key are used for AES and the
406 rest is used to tie each cipher block to its logical position.
David Howells90831632006-12-16 12:13:14 +1100407
Gilad Ben-Yossefe497c512018-09-20 14:18:39 +0100408config CRYPTO_OFB
409 tristate "OFB support"
Eric Biggersb95bba52019-10-25 12:41:13 -0700410 select CRYPTO_SKCIPHER
Gilad Ben-Yossefe497c512018-09-20 14:18:39 +0100411 select CRYPTO_MANAGER
412 help
413 OFB: the Output Feedback mode makes a block cipher into a synchronous
414 stream cipher. It generates keystream blocks, which are then XORed
415 with the plaintext blocks to get the ciphertext. Flipping a bit in the
416 ciphertext produces a flipped bit in the plaintext at the same
417 location. This property allows many error correcting codes to function
418 normally even when applied before encryption.
419
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800420config CRYPTO_PCBC
421 tristate "PCBC support"
Eric Biggersb95bba52019-10-25 12:41:13 -0700422 select CRYPTO_SKCIPHER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800423 select CRYPTO_MANAGER
424 help
425 PCBC: Propagating Cipher Block Chaining mode
426 This block cipher algorithm is required for RxRPC.
427
428config CRYPTO_XTS
Jussi Kivilinna5bcf8e62011-12-13 12:52:56 +0200429 tristate "XTS support"
Eric Biggersb95bba52019-10-25 12:41:13 -0700430 select CRYPTO_SKCIPHER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800431 select CRYPTO_MANAGER
Milan Broz12cb3a12017-02-23 08:38:26 +0100432 select CRYPTO_ECB
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800433 help
434 XTS: IEEE1619/D16 narrow block cipher use with aes-xts-plain,
435 key size 256, 384 or 512 bits. This implementation currently
436 can't handle a sectorsize which is not a multiple of 16 bytes.
437
Stephan Mueller1c49678e2015-09-21 20:58:56 +0200438config CRYPTO_KEYWRAP
439 tristate "Key wrapping support"
Eric Biggersb95bba52019-10-25 12:41:13 -0700440 select CRYPTO_SKCIPHER
Eric Biggersc8a33152019-05-20 09:49:46 -0700441 select CRYPTO_MANAGER
Stephan Mueller1c49678e2015-09-21 20:58:56 +0200442 help
443 Support for key wrapping (NIST SP800-38F / RFC3394) without
444 padding.
445
Eric Biggers26609a22018-11-16 17:26:29 -0800446config CRYPTO_NHPOLY1305
447 tristate
448 select CRYPTO_HASH
Ard Biesheuvel48ea8c62019-11-08 13:22:19 +0100449 select CRYPTO_LIB_POLY1305_GENERIC
Eric Biggers26609a22018-11-16 17:26:29 -0800450
Eric Biggers012c8232018-12-04 22:20:00 -0800451config CRYPTO_NHPOLY1305_SSE2
452 tristate "NHPoly1305 hash function (x86_64 SSE2 implementation)"
453 depends on X86 && 64BIT
454 select CRYPTO_NHPOLY1305
455 help
456 SSE2 optimized implementation of the hash function used by the
457 Adiantum encryption mode.
458
Eric Biggers0f961f92018-12-04 22:20:01 -0800459config CRYPTO_NHPOLY1305_AVX2
460 tristate "NHPoly1305 hash function (x86_64 AVX2 implementation)"
461 depends on X86 && 64BIT
462 select CRYPTO_NHPOLY1305
463 help
464 AVX2 optimized implementation of the hash function used by the
465 Adiantum encryption mode.
466
Eric Biggers059c2a42018-11-16 17:26:31 -0800467config CRYPTO_ADIANTUM
468 tristate "Adiantum support"
469 select CRYPTO_CHACHA20
Ard Biesheuvel48ea8c62019-11-08 13:22:19 +0100470 select CRYPTO_LIB_POLY1305_GENERIC
Eric Biggers059c2a42018-11-16 17:26:31 -0800471 select CRYPTO_NHPOLY1305
Eric Biggersc8a33152019-05-20 09:49:46 -0700472 select CRYPTO_MANAGER
Eric Biggers059c2a42018-11-16 17:26:31 -0800473 help
474 Adiantum is a tweakable, length-preserving encryption mode
475 designed for fast and secure disk encryption, especially on
476 CPUs without dedicated crypto instructions. It encrypts
477 each sector using the XChaCha12 stream cipher, two passes of
478 an ε-almost-∆-universal hash function, and an invocation of
479 the AES-256 block cipher on a single 16-byte block. On CPUs
480 without AES instructions, Adiantum is much faster than
481 AES-XTS.
482
483 Adiantum's security is provably reducible to that of its
484 underlying stream and block ciphers, subject to a security
485 bound. Unlike XTS, Adiantum is a true wide-block encryption
486 mode, so it actually provides an even stronger notion of
487 security than XTS, subject to the security bound.
488
489 If unsure, say N.
490
Ard Biesheuvelbe1eb7f2019-08-19 17:17:33 +0300491config CRYPTO_ESSIV
492 tristate "ESSIV support for block encryption"
493 select CRYPTO_AUTHENC
494 help
495 Encrypted salt-sector initialization vector (ESSIV) is an IV
496 generation method that is used in some cases by fscrypt and/or
497 dm-crypt. It uses the hash of the block encryption key as the
498 symmetric key for a block encryption pass applied to the input
499 IV, making low entropy IV sources more suitable for block
500 encryption.
501
502 This driver implements a crypto API template that can be
503 instantiated either as a skcipher or as a aead (depending on the
504 type of the first template argument), and which defers encryption
505 and decryption requests to the encapsulated cipher after applying
506 ESSIV to the input IV. Note that in the aead case, it is assumed
507 that the keys are presented in the same format used by the authenc
508 template, and that the IV appears at the end of the authenticated
509 associated data (AAD) region (which is how dm-crypt uses it.)
510
511 Note that the use of ESSIV is not recommended for new deployments,
512 and so this only needs to be enabled when interoperability with
513 existing encrypted volumes of filesystems is required, or when
514 building for a particular system that requires it (e.g., when
515 the SoC in question has accelerated CBC but not XTS, making CBC
516 combined with ESSIV the only feasible mode for h/w accelerated
517 block encryption)
518
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800519comment "Hash modes"
520
Jussi Kivilinna93b5e862013-04-08 10:48:44 +0300521config CRYPTO_CMAC
522 tristate "CMAC support"
523 select CRYPTO_HASH
524 select CRYPTO_MANAGER
525 help
526 Cipher-based Message Authentication Code (CMAC) specified by
527 The National Institute of Standards and Technology (NIST).
528
529 https://tools.ietf.org/html/rfc4493
530 http://csrc.nist.gov/publications/nistpubs/800-38B/SP_800-38B.pdf
531
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800532config CRYPTO_HMAC
533 tristate "HMAC support"
534 select CRYPTO_HASH
535 select CRYPTO_MANAGER
536 help
537 HMAC: Keyed-Hashing for Message Authentication (RFC2104).
538 This is required for IPSec.
539
540config CRYPTO_XCBC
541 tristate "XCBC support"
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800542 select CRYPTO_HASH
543 select CRYPTO_MANAGER
544 help
545 XCBC: Keyed-Hashing with encryption algorithm
546 http://www.ietf.org/rfc/rfc3566.txt
547 http://csrc.nist.gov/encryption/modes/proposedmodes/
548 xcbc-mac/xcbc-mac-spec.pdf
549
Shane Wangf1939f72009-09-02 20:05:22 +1000550config CRYPTO_VMAC
551 tristate "VMAC support"
Shane Wangf1939f72009-09-02 20:05:22 +1000552 select CRYPTO_HASH
553 select CRYPTO_MANAGER
554 help
555 VMAC is a message authentication algorithm designed for
556 very high speed on 64-bit architectures.
557
558 See also:
559 <http://fastcrypto.org/vmac>
560
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800561comment "Digest"
562
563config CRYPTO_CRC32C
564 tristate "CRC32c CRC algorithm"
Herbert Xu5773a3e2008-07-08 20:54:28 +0800565 select CRYPTO_HASH
Darrick J. Wong6a0962b2012-03-23 15:02:25 -0700566 select CRC32
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800567 help
568 Castagnoli, et al Cyclic Redundancy-Check Algorithm. Used
569 by iSCSI for header and data digests and by others.
Herbert Xu69c35ef2008-11-07 15:11:47 +0800570 See Castagnoli93. Module will be crc32c.
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800571
Austin Zhang8cb51ba2008-08-07 09:57:03 +0800572config CRYPTO_CRC32C_INTEL
573 tristate "CRC32c INTEL hardware acceleration"
574 depends on X86
575 select CRYPTO_HASH
576 help
577 In Intel processor with SSE4.2 supported, the processor will
578 support CRC32C implementation using hardware accelerated CRC32
579 instruction. This option will create 'crc32c-intel' module,
580 which will enable any routine to use the CRC32 instruction to
581 gain performance compared with software implementation.
582 Module will be crc32c-intel.
583
Jean Delvare7cf31862016-11-22 10:32:44 +0100584config CRYPTO_CRC32C_VPMSUM
Anton Blanchard6dd7a822016-07-01 08:19:45 +1000585 tristate "CRC32c CRC algorithm (powerpc64)"
Michael Ellermanc12abf32016-08-09 08:46:15 +1000586 depends on PPC64 && ALTIVEC
Anton Blanchard6dd7a822016-07-01 08:19:45 +1000587 select CRYPTO_HASH
588 select CRC32
589 help
590 CRC32c algorithm implemented using vector polynomial multiply-sum
591 (vpmsum) instructions, introduced in POWER8. Enable on POWER8
592 and newer processors for improved performance.
593
594
David S. Miller442a7c42012-08-22 20:47:36 -0700595config CRYPTO_CRC32C_SPARC64
596 tristate "CRC32c CRC algorithm (SPARC64)"
597 depends on SPARC64
598 select CRYPTO_HASH
599 select CRC32
600 help
601 CRC32c CRC algorithm implemented using sparc64 crypto instructions,
602 when available.
603
Alexander Boyko78c37d12013-01-10 18:54:59 +0400604config CRYPTO_CRC32
605 tristate "CRC32 CRC algorithm"
606 select CRYPTO_HASH
607 select CRC32
608 help
609 CRC-32-IEEE 802.3 cyclic redundancy-check algorithm.
610 Shash crypto api wrappers to crc32_le function.
611
612config CRYPTO_CRC32_PCLMUL
613 tristate "CRC32 PCLMULQDQ hardware acceleration"
614 depends on X86
615 select CRYPTO_HASH
616 select CRC32
617 help
618 From Intel Westmere and AMD Bulldozer processor with SSE4.2
619 and PCLMULQDQ supported, the processor will support
620 CRC32 PCLMULQDQ implementation using hardware accelerated PCLMULQDQ
hacoaf8cb012018-12-28 10:09:40 +0000621 instruction. This option will create 'crc32-pclmul' module,
Alexander Boyko78c37d12013-01-10 18:54:59 +0400622 which will enable any routine to use the CRC-32-IEEE 802.3 checksum
623 and gain better performance as compared with the table implementation.
624
Marcin Nowakowski4a5dc512018-02-09 22:11:06 +0000625config CRYPTO_CRC32_MIPS
626 tristate "CRC32c and CRC32 CRC algorithm (MIPS)"
627 depends on MIPS_CRC_SUPPORT
628 select CRYPTO_HASH
629 help
630 CRC32c and CRC32 CRC algorithms implemented using mips crypto
631 instructions, when available.
632
633
Nikolay Borisov67882e72019-05-30 09:52:57 +0300634config CRYPTO_XXHASH
635 tristate "xxHash hash algorithm"
636 select CRYPTO_HASH
637 select XXHASH
638 help
639 xxHash non-cryptographic hash algorithm. Extremely fast, working at
640 speeds close to RAM limits.
641
David Sterba91d68932019-10-24 18:28:31 +0200642config CRYPTO_BLAKE2B
643 tristate "BLAKE2b digest algorithm"
644 select CRYPTO_HASH
645 help
646 Implementation of cryptographic hash function BLAKE2b (or just BLAKE2),
647 optimized for 64bit platforms and can produce digests of any size
648 between 1 to 64. The keyed hash is also implemented.
649
650 This module provides the following algorithms:
651
652 - blake2b-160
653 - blake2b-256
654 - blake2b-384
655 - blake2b-512
656
657 See https://blake2.net for further information.
658
Herbert Xu684115212013-09-07 12:56:26 +1000659config CRYPTO_CRCT10DIF
660 tristate "CRCT10DIF algorithm"
661 select CRYPTO_HASH
662 help
663 CRC T10 Data Integrity Field computation is being cast as
664 a crypto transform. This allows for faster crc t10 diff
665 transforms to be used if they are available.
666
667config CRYPTO_CRCT10DIF_PCLMUL
668 tristate "CRCT10DIF PCLMULQDQ hardware acceleration"
669 depends on X86 && 64BIT && CRC_T10DIF
670 select CRYPTO_HASH
671 help
672 For x86_64 processors with SSE4.2 and PCLMULQDQ supported,
673 CRC T10 DIF PCLMULQDQ computation can be hardware
674 accelerated PCLMULQDQ instruction. This option will create
hacoaf8cb012018-12-28 10:09:40 +0000675 'crct10dif-pclmul' module, which is faster when computing the
Herbert Xu684115212013-09-07 12:56:26 +1000676 crct10dif checksum as compared with the generic table implementation.
677
Daniel Axtensb01df1c2017-03-15 23:37:36 +1100678config CRYPTO_CRCT10DIF_VPMSUM
679 tristate "CRC32T10DIF powerpc64 hardware acceleration"
680 depends on PPC64 && ALTIVEC && CRC_T10DIF
681 select CRYPTO_HASH
682 help
683 CRC10T10DIF algorithm implemented using vector polynomial
684 multiply-sum (vpmsum) instructions, introduced in POWER8. Enable on
685 POWER8 and newer processors for improved performance.
686
Daniel Axtens146c8682017-03-15 23:37:37 +1100687config CRYPTO_VPMSUM_TESTER
688 tristate "Powerpc64 vpmsum hardware acceleration tester"
689 depends on CRYPTO_CRCT10DIF_VPMSUM && CRYPTO_CRC32C_VPMSUM
690 help
691 Stress test for CRC32c and CRC-T10DIF algorithms implemented with
692 POWER8 vpmsum instructions.
693 Unless you are testing these algorithms, you don't need this.
694
Huang Ying2cdc6892009-08-06 15:32:38 +1000695config CRYPTO_GHASH
Eric Biggers8dfa20f2019-07-19 23:09:18 -0700696 tristate "GHASH hash function"
Huang Ying2cdc6892009-08-06 15:32:38 +1000697 select CRYPTO_GF128MUL
Arnd Bergmann578c60f2016-01-25 17:51:21 +0100698 select CRYPTO_HASH
Huang Ying2cdc6892009-08-06 15:32:38 +1000699 help
Eric Biggers8dfa20f2019-07-19 23:09:18 -0700700 GHASH is the hash function used in GCM (Galois/Counter Mode).
701 It is not a general-purpose cryptographic hash function.
Huang Ying2cdc6892009-08-06 15:32:38 +1000702
Martin Willif979e012015-06-01 13:43:58 +0200703config CRYPTO_POLY1305
704 tristate "Poly1305 authenticator algorithm"
Arnd Bergmann578c60f2016-01-25 17:51:21 +0100705 select CRYPTO_HASH
Ard Biesheuvel48ea8c62019-11-08 13:22:19 +0100706 select CRYPTO_LIB_POLY1305_GENERIC
Martin Willif979e012015-06-01 13:43:58 +0200707 help
708 Poly1305 authenticator algorithm, RFC7539.
709
710 Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein.
711 It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use
712 in IETF protocols. This is the portable C implementation of Poly1305.
713
Martin Willic70f4ab2015-07-16 19:14:06 +0200714config CRYPTO_POLY1305_X86_64
Martin Willib1ccc8f2015-07-16 19:14:08 +0200715 tristate "Poly1305 authenticator algorithm (x86_64/SSE2/AVX2)"
Martin Willic70f4ab2015-07-16 19:14:06 +0200716 depends on X86 && 64BIT
Ard Biesheuvel1b2c6a52019-11-08 13:22:22 +0100717 select CRYPTO_LIB_POLY1305_GENERIC
Ard Biesheuvelf0e89bc2019-11-08 13:22:23 +0100718 select CRYPTO_ARCH_HAVE_LIB_POLY1305
Martin Willic70f4ab2015-07-16 19:14:06 +0200719 help
720 Poly1305 authenticator algorithm, RFC7539.
721
722 Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein.
723 It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use
724 in IETF protocols. This is the x86_64 assembler implementation using SIMD
725 instructions.
726
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800727config CRYPTO_MD4
728 tristate "MD4 digest algorithm"
Adrian-Ken Rueegsegger808a1762008-12-03 19:55:27 +0800729 select CRYPTO_HASH
Linus Torvalds1da177e2005-04-16 15:20:36 -0700730 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800731 MD4 message digest algorithm (RFC1320).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700732
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800733config CRYPTO_MD5
734 tristate "MD5 digest algorithm"
Adrian-Ken Rueegsegger14b75ba2008-12-03 19:57:12 +0800735 select CRYPTO_HASH
Linus Torvalds1da177e2005-04-16 15:20:36 -0700736 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800737 MD5 message digest algorithm (RFC1321).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700738
Aaro Koskinend69e75d2014-12-21 22:54:02 +0200739config CRYPTO_MD5_OCTEON
740 tristate "MD5 digest algorithm (OCTEON)"
741 depends on CPU_CAVIUM_OCTEON
742 select CRYPTO_MD5
743 select CRYPTO_HASH
744 help
745 MD5 message digest algorithm (RFC1321) implemented
746 using OCTEON crypto instructions, when available.
747
Markus Stockhausene8e59952015-03-01 19:30:46 +0100748config CRYPTO_MD5_PPC
749 tristate "MD5 digest algorithm (PPC)"
750 depends on PPC
751 select CRYPTO_HASH
752 help
753 MD5 message digest algorithm (RFC1321) implemented
754 in PPC assembler.
755
David S. Millerfa4dfed2012-08-19 21:51:26 -0700756config CRYPTO_MD5_SPARC64
757 tristate "MD5 digest algorithm (SPARC64)"
758 depends on SPARC64
759 select CRYPTO_MD5
760 select CRYPTO_HASH
761 help
762 MD5 message digest algorithm (RFC1321) implemented
763 using sparc64 crypto instructions, when available.
764
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800765config CRYPTO_MICHAEL_MIC
766 tristate "Michael MIC keyed digest algorithm"
Adrian-Ken Rueegsegger19e2bf12008-12-07 19:35:38 +0800767 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800768 help
769 Michael MIC is used for message integrity protection in TKIP
770 (IEEE 802.11i). This algorithm is required for TKIP, but it
771 should not be used for other purposes because of the weakness
772 of the algorithm.
773
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800774config CRYPTO_RMD128
Adrian Bunkb6d44342008-07-16 19:28:00 +0800775 tristate "RIPEMD-128 digest algorithm"
Herbert Xu7c4468b2008-11-08 09:10:40 +0800776 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800777 help
778 RIPEMD-128 (ISO/IEC 10118-3:2004).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800779
Adrian Bunkb6d44342008-07-16 19:28:00 +0800780 RIPEMD-128 is a 128-bit cryptographic hash function. It should only
Michael Witten35ed4b32011-07-09 04:02:31 +0000781 be used as a secure replacement for RIPEMD. For other use cases,
Adrian Bunkb6d44342008-07-16 19:28:00 +0800782 RIPEMD-160 should be used.
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800783
Adrian Bunkb6d44342008-07-16 19:28:00 +0800784 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800785 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800786
787config CRYPTO_RMD160
Adrian Bunkb6d44342008-07-16 19:28:00 +0800788 tristate "RIPEMD-160 digest algorithm"
Herbert Xue5835fb2008-11-08 09:18:51 +0800789 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800790 help
791 RIPEMD-160 (ISO/IEC 10118-3:2004).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800792
Adrian Bunkb6d44342008-07-16 19:28:00 +0800793 RIPEMD-160 is a 160-bit cryptographic hash function. It is intended
794 to be used as a secure replacement for the 128-bit hash functions
795 MD4, MD5 and it's predecessor RIPEMD
796 (not to be confused with RIPEMD-128).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800797
Adrian Bunkb6d44342008-07-16 19:28:00 +0800798 It's speed is comparable to SHA1 and there are no known attacks
799 against RIPEMD-160.
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800800
Adrian Bunkb6d44342008-07-16 19:28:00 +0800801 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800802 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800803
804config CRYPTO_RMD256
Adrian Bunkb6d44342008-07-16 19:28:00 +0800805 tristate "RIPEMD-256 digest algorithm"
Herbert Xud8a5e2e2008-11-08 09:58:10 +0800806 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800807 help
808 RIPEMD-256 is an optional extension of RIPEMD-128 with a
809 256 bit hash. It is intended for applications that require
810 longer hash-results, without needing a larger security level
811 (than RIPEMD-128).
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800812
Adrian Bunkb6d44342008-07-16 19:28:00 +0800813 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800814 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800815
816config CRYPTO_RMD320
Adrian Bunkb6d44342008-07-16 19:28:00 +0800817 tristate "RIPEMD-320 digest algorithm"
Herbert Xu3b8efb42008-11-08 10:11:09 +0800818 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800819 help
820 RIPEMD-320 is an optional extension of RIPEMD-160 with a
821 320 bit hash. It is intended for applications that require
822 longer hash-results, without needing a larger security level
823 (than RIPEMD-160).
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800824
Adrian Bunkb6d44342008-07-16 19:28:00 +0800825 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800826 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800827
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800828config CRYPTO_SHA1
829 tristate "SHA1 digest algorithm"
Adrian-Ken Rueegsegger54ccb362008-12-02 21:08:20 +0800830 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800831 help
832 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
833
Mathias Krause66be8952011-08-04 20:19:25 +0200834config CRYPTO_SHA1_SSSE3
time38b6b7f2015-09-10 15:27:26 -0700835 tristate "SHA1 digest algorithm (SSSE3/AVX/AVX2/SHA-NI)"
Mathias Krause66be8952011-08-04 20:19:25 +0200836 depends on X86 && 64BIT
837 select CRYPTO_SHA1
838 select CRYPTO_HASH
839 help
840 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
841 using Supplemental SSE3 (SSSE3) instructions or Advanced Vector
time38b6b7f2015-09-10 15:27:26 -0700842 Extensions (AVX/AVX2) or SHA-NI(SHA Extensions New Instructions),
843 when available.
Mathias Krause66be8952011-08-04 20:19:25 +0200844
Tim Chen8275d1a2013-03-26 13:59:17 -0700845config CRYPTO_SHA256_SSSE3
time38b6b7f2015-09-10 15:27:26 -0700846 tristate "SHA256 digest algorithm (SSSE3/AVX/AVX2/SHA-NI)"
Tim Chen8275d1a2013-03-26 13:59:17 -0700847 depends on X86 && 64BIT
848 select CRYPTO_SHA256
849 select CRYPTO_HASH
850 help
851 SHA-256 secure hash standard (DFIPS 180-2) implemented
852 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
853 Extensions version 1 (AVX1), or Advanced Vector Extensions
time38b6b7f2015-09-10 15:27:26 -0700854 version 2 (AVX2) instructions, or SHA-NI (SHA Extensions New
855 Instructions) when available.
Tim Chen8275d1a2013-03-26 13:59:17 -0700856
Tim Chen87de4572013-03-26 14:00:02 -0700857config CRYPTO_SHA512_SSSE3
858 tristate "SHA512 digest algorithm (SSSE3/AVX/AVX2)"
859 depends on X86 && 64BIT
860 select CRYPTO_SHA512
861 select CRYPTO_HASH
862 help
863 SHA-512 secure hash standard (DFIPS 180-2) implemented
864 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
865 Extensions version 1 (AVX1), or Advanced Vector Extensions
866 version 2 (AVX2) instructions, when available.
867
Aaro Koskinenefdb6f62015-03-08 22:07:47 +0200868config CRYPTO_SHA1_OCTEON
869 tristate "SHA1 digest algorithm (OCTEON)"
870 depends on CPU_CAVIUM_OCTEON
871 select CRYPTO_SHA1
872 select CRYPTO_HASH
873 help
874 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
875 using OCTEON crypto instructions, when available.
876
David S. Miller4ff28d42012-08-19 15:41:53 -0700877config CRYPTO_SHA1_SPARC64
878 tristate "SHA1 digest algorithm (SPARC64)"
879 depends on SPARC64
880 select CRYPTO_SHA1
881 select CRYPTO_HASH
882 help
883 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
884 using sparc64 crypto instructions, when available.
885
Michael Ellerman323a6bf2012-09-13 23:00:49 +0000886config CRYPTO_SHA1_PPC
887 tristate "SHA1 digest algorithm (powerpc)"
888 depends on PPC
889 help
890 This is the powerpc hardware accelerated implementation of the
891 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
892
Markus Stockhausend9850fc2015-02-24 20:36:50 +0100893config CRYPTO_SHA1_PPC_SPE
894 tristate "SHA1 digest algorithm (PPC SPE)"
895 depends on PPC && SPE
896 help
897 SHA-1 secure hash standard (DFIPS 180-4) implemented
898 using powerpc SPE SIMD instruction set.
899
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800900config CRYPTO_SHA256
901 tristate "SHA224 and SHA256 digest algorithm"
Adrian-Ken Rueegsegger50e109b52008-12-03 19:57:49 +0800902 select CRYPTO_HASH
Hans de Goede08c327f2019-08-17 16:24:35 +0200903 select CRYPTO_LIB_SHA256
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800904 help
905 SHA256 secure hash standard (DFIPS 180-2).
906
907 This version of SHA implements a 256 bit hash with 128 bits of
908 security against collision attacks.
909
Adrian Bunkb6d44342008-07-16 19:28:00 +0800910 This code also includes SHA-224, a 224 bit hash with 112 bits
911 of security against collision attacks.
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800912
Markus Stockhausen2ecc1e92015-01-30 15:39:34 +0100913config CRYPTO_SHA256_PPC_SPE
914 tristate "SHA224 and SHA256 digest algorithm (PPC SPE)"
915 depends on PPC && SPE
916 select CRYPTO_SHA256
917 select CRYPTO_HASH
918 help
919 SHA224 and SHA256 secure hash standard (DFIPS 180-2)
920 implemented using powerpc SPE SIMD instruction set.
921
Aaro Koskinenefdb6f62015-03-08 22:07:47 +0200922config CRYPTO_SHA256_OCTEON
923 tristate "SHA224 and SHA256 digest algorithm (OCTEON)"
924 depends on CPU_CAVIUM_OCTEON
925 select CRYPTO_SHA256
926 select CRYPTO_HASH
927 help
928 SHA-256 secure hash standard (DFIPS 180-2) implemented
929 using OCTEON crypto instructions, when available.
930
David S. Miller86c93b22012-08-19 17:11:37 -0700931config CRYPTO_SHA256_SPARC64
932 tristate "SHA224 and SHA256 digest algorithm (SPARC64)"
933 depends on SPARC64
934 select CRYPTO_SHA256
935 select CRYPTO_HASH
936 help
937 SHA-256 secure hash standard (DFIPS 180-2) implemented
938 using sparc64 crypto instructions, when available.
939
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800940config CRYPTO_SHA512
941 tristate "SHA384 and SHA512 digest algorithms"
Adrian-Ken Rueegseggerbd9d20d2008-12-17 16:49:02 +1100942 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800943 help
944 SHA512 secure hash standard (DFIPS 180-2).
945
946 This version of SHA implements a 512 bit hash with 256 bits of
947 security against collision attacks.
948
949 This code also includes SHA-384, a 384 bit hash with 192 bits
950 of security against collision attacks.
951
Aaro Koskinenefdb6f62015-03-08 22:07:47 +0200952config CRYPTO_SHA512_OCTEON
953 tristate "SHA384 and SHA512 digest algorithms (OCTEON)"
954 depends on CPU_CAVIUM_OCTEON
955 select CRYPTO_SHA512
956 select CRYPTO_HASH
957 help
958 SHA-512 secure hash standard (DFIPS 180-2) implemented
959 using OCTEON crypto instructions, when available.
960
David S. Miller775e0c62012-08-19 17:37:56 -0700961config CRYPTO_SHA512_SPARC64
962 tristate "SHA384 and SHA512 digest algorithm (SPARC64)"
963 depends on SPARC64
964 select CRYPTO_SHA512
965 select CRYPTO_HASH
966 help
967 SHA-512 secure hash standard (DFIPS 180-2) implemented
968 using sparc64 crypto instructions, when available.
969
Jeff Garzik53964b92016-06-17 10:30:35 +0530970config CRYPTO_SHA3
971 tristate "SHA3 digest algorithm"
972 select CRYPTO_HASH
973 help
974 SHA-3 secure hash standard (DFIPS 202). It's based on
975 cryptographic sponge function family called Keccak.
976
977 References:
978 http://keccak.noekeon.org/
979
Gilad Ben-Yossef4f0fc162017-08-21 13:51:28 +0300980config CRYPTO_SM3
981 tristate "SM3 digest algorithm"
982 select CRYPTO_HASH
983 help
984 SM3 secure hash function as defined by OSCCA GM/T 0004-2012 SM3).
985 It is part of the Chinese Commercial Cryptography suite.
986
987 References:
988 http://www.oscca.gov.cn/UpFile/20101222141857786.pdf
989 https://datatracker.ietf.org/doc/html/draft-shen-sm3-hash
990
Vitaly Chikunovfe189572018-11-07 00:00:01 +0300991config CRYPTO_STREEBOG
992 tristate "Streebog Hash Function"
993 select CRYPTO_HASH
994 help
995 Streebog Hash Function (GOST R 34.11-2012, RFC 6986) is one of the Russian
996 cryptographic standard algorithms (called GOST algorithms).
997 This setting enables two hash algorithms with 256 and 512 bits output.
998
999 References:
1000 https://tc26.ru/upload/iblock/fed/feddbb4d26b685903faa2ba11aea43f6.pdf
1001 https://tools.ietf.org/html/rfc6986
1002
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001003config CRYPTO_TGR192
1004 tristate "Tiger digest algorithms"
Adrian-Ken Rueegseggerf63fbd32008-12-03 19:58:32 +08001005 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001006 help
1007 Tiger hash algorithm 192, 160 and 128-bit hashes
1008
1009 Tiger is a hash function optimized for 64-bit processors while
1010 still having decent performance on 32-bit processors.
1011 Tiger was developed by Ross Anderson and Eli Biham.
Linus Torvalds1da177e2005-04-16 15:20:36 -07001012
1013 See also:
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001014 <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>.
1015
1016config CRYPTO_WP512
1017 tristate "Whirlpool digest algorithms"
Adrian-Ken Rueegsegger49465102008-12-07 19:34:37 +08001018 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001019 help
1020 Whirlpool hash algorithm 512, 384 and 256-bit hashes
1021
1022 Whirlpool-512 is part of the NESSIE cryptographic primitives.
1023 Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard
1024
1025 See also:
Justin P. Mattock6d8de742010-09-12 10:42:47 +08001026 <http://www.larc.usp.br/~pbarreto/WhirlpoolPage.html>
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001027
Huang Ying0e1227d2009-10-19 11:53:06 +09001028config CRYPTO_GHASH_CLMUL_NI_INTEL
Eric Biggers8dfa20f2019-07-19 23:09:18 -07001029 tristate "GHASH hash function (CLMUL-NI accelerated)"
Richard Weinberger8af00862011-06-08 20:56:29 +08001030 depends on X86 && 64BIT
Huang Ying0e1227d2009-10-19 11:53:06 +09001031 select CRYPTO_CRYPTD
1032 help
Eric Biggers8dfa20f2019-07-19 23:09:18 -07001033 This is the x86_64 CLMUL-NI accelerated implementation of
1034 GHASH, the hash function used in GCM (Galois/Counter mode).
Huang Ying0e1227d2009-10-19 11:53:06 +09001035
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001036comment "Ciphers"
Linus Torvalds1da177e2005-04-16 15:20:36 -07001037
1038config CRYPTO_AES
1039 tristate "AES cipher algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +10001040 select CRYPTO_ALGAPI
Ard Biesheuvel5bb12d72019-07-02 21:41:33 +02001041 select CRYPTO_LIB_AES
Linus Torvalds1da177e2005-04-16 15:20:36 -07001042 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001043 AES cipher algorithms (FIPS-197). AES uses the Rijndael
Linus Torvalds1da177e2005-04-16 15:20:36 -07001044 algorithm.
1045
1046 Rijndael appears to be consistently a very good performer in
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001047 both hardware and software across a wide range of computing
1048 environments regardless of its use in feedback or non-feedback
1049 modes. Its key setup time is excellent, and its key agility is
1050 good. Rijndael's very low memory requirements make it very well
1051 suited for restricted-space environments, in which it also
1052 demonstrates excellent performance. Rijndael's operations are
1053 among the easiest to defend against power and timing attacks.
Linus Torvalds1da177e2005-04-16 15:20:36 -07001054
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001055 The AES specifies three key sizes: 128, 192 and 256 bits
Linus Torvalds1da177e2005-04-16 15:20:36 -07001056
1057 See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information.
1058
Ard Biesheuvelb5e0b032017-02-02 16:37:40 +00001059config CRYPTO_AES_TI
1060 tristate "Fixed time AES cipher"
1061 select CRYPTO_ALGAPI
Ard Biesheuvele59c1c92019-07-02 21:41:22 +02001062 select CRYPTO_LIB_AES
Ard Biesheuvelb5e0b032017-02-02 16:37:40 +00001063 help
1064 This is a generic implementation of AES that attempts to eliminate
1065 data dependent latencies as much as possible without affecting
1066 performance too much. It is intended for use by the generic CCM
1067 and GCM drivers, and other CTR or CMAC/XCBC based modes that rely
1068 solely on encryption (although decryption is supported as well, but
1069 with a more dramatic performance hit)
1070
1071 Instead of using 16 lookup tables of 1 KB each, (8 for encryption and
1072 8 for decryption), this implementation only uses just two S-boxes of
1073 256 bytes each, and attempts to eliminate data dependent latencies by
1074 prefetching the entire table into the cache at the start of each
Eric Biggers0a6a40c2018-10-17 21:37:58 -07001075 block. Interrupts are also disabled to avoid races where cachelines
1076 are evicted when the CPU is interrupted to do something else.
Ard Biesheuvelb5e0b032017-02-02 16:37:40 +00001077
Huang Ying54b6a1b2009-01-18 16:28:34 +11001078config CRYPTO_AES_NI_INTEL
1079 tristate "AES cipher algorithms (AES-NI)"
Richard Weinberger8af00862011-06-08 20:56:29 +08001080 depends on X86
Herbert Xu85671862016-11-22 20:08:33 +08001081 select CRYPTO_AEAD
Ard Biesheuvel2c53fd12019-07-02 21:41:23 +02001082 select CRYPTO_LIB_AES
Huang Ying54b6a1b2009-01-18 16:28:34 +11001083 select CRYPTO_ALGAPI
Eric Biggersb95bba52019-10-25 12:41:13 -07001084 select CRYPTO_SKCIPHER
Jussi Kivilinna7643a112013-04-10 18:39:20 +03001085 select CRYPTO_GLUE_HELPER_X86 if 64BIT
Herbert Xu85671862016-11-22 20:08:33 +08001086 select CRYPTO_SIMD
Huang Ying54b6a1b2009-01-18 16:28:34 +11001087 help
1088 Use Intel AES-NI instructions for AES algorithm.
1089
1090 AES cipher algorithms (FIPS-197). AES uses the Rijndael
1091 algorithm.
1092
1093 Rijndael appears to be consistently a very good performer in
1094 both hardware and software across a wide range of computing
1095 environments regardless of its use in feedback or non-feedback
1096 modes. Its key setup time is excellent, and its key agility is
1097 good. Rijndael's very low memory requirements make it very well
1098 suited for restricted-space environments, in which it also
1099 demonstrates excellent performance. Rijndael's operations are
1100 among the easiest to defend against power and timing attacks.
1101
1102 The AES specifies three key sizes: 128, 192 and 256 bits
1103
1104 See <http://csrc.nist.gov/encryption/aes/> for more information.
1105
Mathias Krause0d258ef2010-11-27 16:34:46 +08001106 In addition to AES cipher algorithm support, the acceleration
1107 for some popular block cipher mode is supported too, including
Ard Biesheuvel944585a2018-09-24 14:48:16 +02001108 ECB, CBC, LRW, XTS. The 64 bit version has additional
Mathias Krause0d258ef2010-11-27 16:34:46 +08001109 acceleration for CTR.
Huang Ying2cf4ac82009-03-29 15:41:20 +08001110
David S. Miller9bf48522012-08-21 03:58:13 -07001111config CRYPTO_AES_SPARC64
1112 tristate "AES cipher algorithms (SPARC64)"
1113 depends on SPARC64
Eric Biggersb95bba52019-10-25 12:41:13 -07001114 select CRYPTO_SKCIPHER
David S. Miller9bf48522012-08-21 03:58:13 -07001115 help
1116 Use SPARC64 crypto opcodes for AES algorithm.
1117
1118 AES cipher algorithms (FIPS-197). AES uses the Rijndael
1119 algorithm.
1120
1121 Rijndael appears to be consistently a very good performer in
1122 both hardware and software across a wide range of computing
1123 environments regardless of its use in feedback or non-feedback
1124 modes. Its key setup time is excellent, and its key agility is
1125 good. Rijndael's very low memory requirements make it very well
1126 suited for restricted-space environments, in which it also
1127 demonstrates excellent performance. Rijndael's operations are
1128 among the easiest to defend against power and timing attacks.
1129
1130 The AES specifies three key sizes: 128, 192 and 256 bits
1131
1132 See <http://csrc.nist.gov/encryption/aes/> for more information.
1133
1134 In addition to AES cipher algorithm support, the acceleration
1135 for some popular block cipher mode is supported too, including
1136 ECB and CBC.
1137
Markus Stockhausen504c6142015-02-22 10:00:10 +01001138config CRYPTO_AES_PPC_SPE
1139 tristate "AES cipher algorithms (PPC SPE)"
1140 depends on PPC && SPE
Eric Biggersb95bba52019-10-25 12:41:13 -07001141 select CRYPTO_SKCIPHER
Markus Stockhausen504c6142015-02-22 10:00:10 +01001142 help
1143 AES cipher algorithms (FIPS-197). Additionally the acceleration
1144 for popular block cipher modes ECB, CBC, CTR and XTS is supported.
1145 This module should only be used for low power (router) devices
1146 without hardware AES acceleration (e.g. caam crypto). It reduces the
1147 size of the AES tables from 16KB to 8KB + 256 bytes and mitigates
1148 timining attacks. Nevertheless it might be not as secure as other
1149 architecture specific assembler implementations that work on 1KB
1150 tables or 256 bytes S-boxes.
1151
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001152config CRYPTO_ANUBIS
1153 tristate "Anubis cipher algorithm"
1154 select CRYPTO_ALGAPI
1155 help
1156 Anubis cipher algorithm.
1157
1158 Anubis is a variable key length cipher which can use keys from
1159 128 bits to 320 bits in length. It was evaluated as a entrant
1160 in the NESSIE competition.
1161
1162 See also:
Justin P. Mattock6d8de742010-09-12 10:42:47 +08001163 <https://www.cosic.esat.kuleuven.be/nessie/reports/>
1164 <http://www.larc.usp.br/~pbarreto/AnubisPage.html>
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001165
1166config CRYPTO_ARC4
1167 tristate "ARC4 cipher algorithm"
Eric Biggersb95bba52019-10-25 12:41:13 -07001168 select CRYPTO_SKCIPHER
Ard Biesheuveldc51f252019-06-12 18:19:53 +02001169 select CRYPTO_LIB_ARC4
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001170 help
1171 ARC4 cipher algorithm.
1172
1173 ARC4 is a stream cipher using keys ranging from 8 bits to 2048
1174 bits in length. This algorithm is required for driver-based
1175 WEP, but it should not be for other purposes because of the
1176 weakness of the algorithm.
1177
1178config CRYPTO_BLOWFISH
1179 tristate "Blowfish cipher algorithm"
1180 select CRYPTO_ALGAPI
Jussi Kivilinna52ba8672011-09-02 01:45:07 +03001181 select CRYPTO_BLOWFISH_COMMON
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001182 help
1183 Blowfish cipher algorithm, by Bruce Schneier.
1184
1185 This is a variable key length cipher which can use keys from 32
1186 bits to 448 bits in length. It's fast, simple and specifically
1187 designed for use on "large microprocessors".
1188
1189 See also:
1190 <http://www.schneier.com/blowfish.html>
1191
Jussi Kivilinna52ba8672011-09-02 01:45:07 +03001192config CRYPTO_BLOWFISH_COMMON
1193 tristate
1194 help
1195 Common parts of the Blowfish cipher algorithm shared by the
1196 generic c and the assembler implementations.
1197
1198 See also:
1199 <http://www.schneier.com/blowfish.html>
1200
Jussi Kivilinna64b94ce2011-09-02 01:45:22 +03001201config CRYPTO_BLOWFISH_X86_64
1202 tristate "Blowfish cipher algorithm (x86_64)"
Al Virof21a7c12012-04-08 20:31:22 -04001203 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001204 select CRYPTO_SKCIPHER
Jussi Kivilinna64b94ce2011-09-02 01:45:22 +03001205 select CRYPTO_BLOWFISH_COMMON
1206 help
1207 Blowfish cipher algorithm (x86_64), by Bruce Schneier.
1208
1209 This is a variable key length cipher which can use keys from 32
1210 bits to 448 bits in length. It's fast, simple and specifically
1211 designed for use on "large microprocessors".
1212
1213 See also:
1214 <http://www.schneier.com/blowfish.html>
1215
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001216config CRYPTO_CAMELLIA
1217 tristate "Camellia cipher algorithms"
1218 depends on CRYPTO
1219 select CRYPTO_ALGAPI
1220 help
1221 Camellia cipher algorithms module.
1222
1223 Camellia is a symmetric key block cipher developed jointly
1224 at NTT and Mitsubishi Electric Corporation.
1225
1226 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1227
1228 See also:
1229 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1230
Jussi Kivilinna0b95ec52012-03-05 20:26:47 +02001231config CRYPTO_CAMELLIA_X86_64
1232 tristate "Camellia cipher algorithm (x86_64)"
Al Virof21a7c12012-04-08 20:31:22 -04001233 depends on X86 && 64BIT
Jussi Kivilinna0b95ec52012-03-05 20:26:47 +02001234 depends on CRYPTO
Eric Biggersb95bba52019-10-25 12:41:13 -07001235 select CRYPTO_SKCIPHER
Jussi Kivilinna964263a2012-06-18 14:07:29 +03001236 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna0b95ec52012-03-05 20:26:47 +02001237 help
1238 Camellia cipher algorithm module (x86_64).
1239
1240 Camellia is a symmetric key block cipher developed jointly
1241 at NTT and Mitsubishi Electric Corporation.
1242
1243 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1244
1245 See also:
1246 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1247
Jussi Kivilinnad9b1d2e2012-10-26 14:49:01 +03001248config CRYPTO_CAMELLIA_AESNI_AVX_X86_64
1249 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX)"
1250 depends on X86 && 64BIT
1251 depends on CRYPTO
Eric Biggersb95bba52019-10-25 12:41:13 -07001252 select CRYPTO_SKCIPHER
Jussi Kivilinnad9b1d2e2012-10-26 14:49:01 +03001253 select CRYPTO_CAMELLIA_X86_64
Eric Biggers44893bc2018-02-19 23:48:23 -08001254 select CRYPTO_GLUE_HELPER_X86
1255 select CRYPTO_SIMD
Jussi Kivilinnad9b1d2e2012-10-26 14:49:01 +03001256 select CRYPTO_XTS
1257 help
1258 Camellia cipher algorithm module (x86_64/AES-NI/AVX).
1259
1260 Camellia is a symmetric key block cipher developed jointly
1261 at NTT and Mitsubishi Electric Corporation.
1262
1263 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1264
1265 See also:
1266 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1267
Jussi Kivilinnaf3f935a2013-04-13 13:47:00 +03001268config CRYPTO_CAMELLIA_AESNI_AVX2_X86_64
1269 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX2)"
1270 depends on X86 && 64BIT
1271 depends on CRYPTO
Jussi Kivilinnaf3f935a2013-04-13 13:47:00 +03001272 select CRYPTO_CAMELLIA_AESNI_AVX_X86_64
Jussi Kivilinnaf3f935a2013-04-13 13:47:00 +03001273 help
1274 Camellia cipher algorithm module (x86_64/AES-NI/AVX2).
1275
1276 Camellia is a symmetric key block cipher developed jointly
1277 at NTT and Mitsubishi Electric Corporation.
1278
1279 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1280
1281 See also:
1282 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1283
David S. Miller81658ad2012-08-28 12:05:54 -07001284config CRYPTO_CAMELLIA_SPARC64
1285 tristate "Camellia cipher algorithm (SPARC64)"
1286 depends on SPARC64
1287 depends on CRYPTO
1288 select CRYPTO_ALGAPI
Eric Biggersb95bba52019-10-25 12:41:13 -07001289 select CRYPTO_SKCIPHER
David S. Miller81658ad2012-08-28 12:05:54 -07001290 help
1291 Camellia cipher algorithm module (SPARC64).
1292
1293 Camellia is a symmetric key block cipher developed jointly
1294 at NTT and Mitsubishi Electric Corporation.
1295
1296 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1297
1298 See also:
1299 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1300
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001301config CRYPTO_CAST_COMMON
1302 tristate
1303 help
1304 Common parts of the CAST cipher algorithms shared by the
1305 generic c and the assembler implementations.
1306
Linus Torvalds1da177e2005-04-16 15:20:36 -07001307config CRYPTO_CAST5
1308 tristate "CAST5 (CAST-128) cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001309 select CRYPTO_ALGAPI
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001310 select CRYPTO_CAST_COMMON
Linus Torvalds1da177e2005-04-16 15:20:36 -07001311 help
1312 The CAST5 encryption algorithm (synonymous with CAST-128) is
1313 described in RFC2144.
1314
Johannes Goetzfried4d6d6a22012-07-11 19:37:37 +02001315config CRYPTO_CAST5_AVX_X86_64
1316 tristate "CAST5 (CAST-128) cipher algorithm (x86_64/AVX)"
1317 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001318 select CRYPTO_SKCIPHER
Johannes Goetzfried4d6d6a22012-07-11 19:37:37 +02001319 select CRYPTO_CAST5
Eric Biggers1e631832018-02-19 23:48:13 -08001320 select CRYPTO_CAST_COMMON
1321 select CRYPTO_SIMD
Johannes Goetzfried4d6d6a22012-07-11 19:37:37 +02001322 help
1323 The CAST5 encryption algorithm (synonymous with CAST-128) is
1324 described in RFC2144.
1325
1326 This module provides the Cast5 cipher algorithm that processes
1327 sixteen blocks parallel using the AVX instruction set.
1328
Linus Torvalds1da177e2005-04-16 15:20:36 -07001329config CRYPTO_CAST6
1330 tristate "CAST6 (CAST-256) cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001331 select CRYPTO_ALGAPI
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001332 select CRYPTO_CAST_COMMON
Linus Torvalds1da177e2005-04-16 15:20:36 -07001333 help
1334 The CAST6 encryption algorithm (synonymous with CAST-256) is
1335 described in RFC2612.
1336
Johannes Goetzfried4ea12772012-07-11 19:38:57 +02001337config CRYPTO_CAST6_AVX_X86_64
1338 tristate "CAST6 (CAST-256) cipher algorithm (x86_64/AVX)"
1339 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001340 select CRYPTO_SKCIPHER
Johannes Goetzfried4ea12772012-07-11 19:38:57 +02001341 select CRYPTO_CAST6
Eric Biggers4bd96922018-02-19 23:48:15 -08001342 select CRYPTO_CAST_COMMON
1343 select CRYPTO_GLUE_HELPER_X86
1344 select CRYPTO_SIMD
Johannes Goetzfried4ea12772012-07-11 19:38:57 +02001345 select CRYPTO_XTS
1346 help
1347 The CAST6 encryption algorithm (synonymous with CAST-256) is
1348 described in RFC2612.
1349
1350 This module provides the Cast6 cipher algorithm that processes
1351 eight blocks parallel using the AVX instruction set.
1352
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001353config CRYPTO_DES
1354 tristate "DES and Triple DES EDE cipher algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +10001355 select CRYPTO_ALGAPI
Ard Biesheuvel04007b02019-08-15 12:01:09 +03001356 select CRYPTO_LIB_DES
Linus Torvalds1da177e2005-04-16 15:20:36 -07001357 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001358 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
Linus Torvalds1da177e2005-04-16 15:20:36 -07001359
David S. Millerc5aac2d2012-08-25 22:37:23 -07001360config CRYPTO_DES_SPARC64
1361 tristate "DES and Triple DES EDE cipher algorithms (SPARC64)"
Dave Jones97da37b2012-10-02 17:13:20 -04001362 depends on SPARC64
David S. Millerc5aac2d2012-08-25 22:37:23 -07001363 select CRYPTO_ALGAPI
Ard Biesheuvel04007b02019-08-15 12:01:09 +03001364 select CRYPTO_LIB_DES
Eric Biggersb95bba52019-10-25 12:41:13 -07001365 select CRYPTO_SKCIPHER
David S. Millerc5aac2d2012-08-25 22:37:23 -07001366 help
1367 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3),
1368 optimized using SPARC64 crypto opcodes.
1369
Jussi Kivilinna6574e6c2014-06-09 20:59:54 +03001370config CRYPTO_DES3_EDE_X86_64
1371 tristate "Triple DES EDE cipher algorithm (x86-64)"
1372 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001373 select CRYPTO_SKCIPHER
Ard Biesheuvel04007b02019-08-15 12:01:09 +03001374 select CRYPTO_LIB_DES
Jussi Kivilinna6574e6c2014-06-09 20:59:54 +03001375 help
1376 Triple DES EDE (FIPS 46-3) algorithm.
1377
1378 This module provides implementation of the Triple DES EDE cipher
1379 algorithm that is optimized for x86-64 processors. Two versions of
1380 algorithm are provided; regular processing one input block and
1381 one that processes three blocks parallel.
1382
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001383config CRYPTO_FCRYPT
1384 tristate "FCrypt cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001385 select CRYPTO_ALGAPI
Eric Biggersb95bba52019-10-25 12:41:13 -07001386 select CRYPTO_SKCIPHER
Linus Torvalds1da177e2005-04-16 15:20:36 -07001387 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001388 FCrypt algorithm used by RxRPC.
Linus Torvalds1da177e2005-04-16 15:20:36 -07001389
1390config CRYPTO_KHAZAD
1391 tristate "Khazad cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001392 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -07001393 help
1394 Khazad cipher algorithm.
1395
1396 Khazad was a finalist in the initial NESSIE competition. It is
1397 an algorithm optimized for 64-bit processors with good performance
1398 on 32-bit processors. Khazad uses an 128 bit key size.
1399
1400 See also:
Justin P. Mattock6d8de742010-09-12 10:42:47 +08001401 <http://www.larc.usp.br/~pbarreto/KhazadPage.html>
Linus Torvalds1da177e2005-04-16 15:20:36 -07001402
Tan Swee Heng2407d602007-11-23 19:45:00 +08001403config CRYPTO_SALSA20
Kees Cook3b4afaf2012-10-02 11:16:49 -07001404 tristate "Salsa20 stream cipher algorithm"
Eric Biggersb95bba52019-10-25 12:41:13 -07001405 select CRYPTO_SKCIPHER
Tan Swee Heng2407d602007-11-23 19:45:00 +08001406 help
1407 Salsa20 stream cipher algorithm.
1408
1409 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
1410 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
1411
1412 The Salsa20 stream cipher algorithm is designed by Daniel J.
1413 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
Linus Torvalds1da177e2005-04-16 15:20:36 -07001414
Martin Willic08d0e62015-06-01 13:43:56 +02001415config CRYPTO_CHACHA20
Eric Biggersaa762402018-11-16 17:26:22 -08001416 tristate "ChaCha stream cipher algorithms"
Ard Biesheuvel5fb8ef22019-11-08 13:22:08 +01001417 select CRYPTO_LIB_CHACHA_GENERIC
Eric Biggersb95bba52019-10-25 12:41:13 -07001418 select CRYPTO_SKCIPHER
Martin Willic08d0e62015-06-01 13:43:56 +02001419 help
Eric Biggersaa762402018-11-16 17:26:22 -08001420 The ChaCha20, XChaCha20, and XChaCha12 stream cipher algorithms.
Martin Willic08d0e62015-06-01 13:43:56 +02001421
1422 ChaCha20 is a 256-bit high-speed stream cipher designed by Daniel J.
1423 Bernstein and further specified in RFC7539 for use in IETF protocols.
Eric Biggersde61d7a2018-11-16 17:26:20 -08001424 This is the portable C implementation of ChaCha20. See also:
Martin Willic08d0e62015-06-01 13:43:56 +02001425 <http://cr.yp.to/chacha/chacha-20080128.pdf>
1426
Eric Biggersde61d7a2018-11-16 17:26:20 -08001427 XChaCha20 is the application of the XSalsa20 construction to ChaCha20
1428 rather than to Salsa20. XChaCha20 extends ChaCha20's nonce length
1429 from 64 bits (or 96 bits using the RFC7539 convention) to 192 bits,
1430 while provably retaining ChaCha20's security. See also:
1431 <https://cr.yp.to/snuffle/xsalsa-20081128.pdf>
1432
Eric Biggersaa762402018-11-16 17:26:22 -08001433 XChaCha12 is XChaCha20 reduced to 12 rounds, with correspondingly
1434 reduced security margin but increased performance. It can be needed
1435 in some performance-sensitive scenarios.
1436
Martin Willic9320b62015-07-16 19:14:01 +02001437config CRYPTO_CHACHA20_X86_64
Eric Biggers4af78262018-12-04 22:20:02 -08001438 tristate "ChaCha stream cipher algorithms (x86_64/SSSE3/AVX2/AVX-512VL)"
Martin Willic9320b62015-07-16 19:14:01 +02001439 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001440 select CRYPTO_SKCIPHER
Ard Biesheuvel28e8d892019-11-08 13:22:09 +01001441 select CRYPTO_LIB_CHACHA_GENERIC
Ard Biesheuvel84e03fa2019-11-08 13:22:10 +01001442 select CRYPTO_ARCH_HAVE_LIB_CHACHA
Martin Willic9320b62015-07-16 19:14:01 +02001443 help
Eric Biggers7a507d62018-12-04 22:20:04 -08001444 SSSE3, AVX2, and AVX-512VL optimized implementations of the ChaCha20,
1445 XChaCha20, and XChaCha12 stream ciphers.
Martin Willic9320b62015-07-16 19:14:01 +02001446
Ard Biesheuvel3a2f58f2019-11-08 13:22:17 +01001447config CRYPTO_CHACHA_MIPS
1448 tristate "ChaCha stream cipher algorithms (MIPS 32r2 optimized)"
1449 depends on CPU_MIPS32_R2
1450 select CRYPTO_BLKCIPHER
1451 select CRYPTO_ARCH_HAVE_LIB_CHACHA
1452
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001453config CRYPTO_SEED
1454 tristate "SEED cipher algorithm"
1455 select CRYPTO_ALGAPI
1456 help
1457 SEED cipher algorithm (RFC4269).
1458
1459 SEED is a 128-bit symmetric key block cipher that has been
1460 developed by KISA (Korea Information Security Agency) as a
1461 national standard encryption algorithm of the Republic of Korea.
1462 It is a 16 round block cipher with the key size of 128 bit.
1463
1464 See also:
1465 <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>
1466
1467config CRYPTO_SERPENT
1468 tristate "Serpent cipher algorithm"
1469 select CRYPTO_ALGAPI
1470 help
1471 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1472
1473 Keys are allowed to be from 0 to 256 bits in length, in steps
1474 of 8 bits. Also includes the 'Tnepres' algorithm, a reversed
1475 variant of Serpent for compatibility with old kerneli.org code.
1476
1477 See also:
1478 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1479
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001480config CRYPTO_SERPENT_SSE2_X86_64
1481 tristate "Serpent cipher algorithm (x86_64/SSE2)"
1482 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001483 select CRYPTO_SKCIPHER
Jussi Kivilinna596d8752012-06-18 14:07:19 +03001484 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001485 select CRYPTO_SERPENT
Eric Biggerse0f409d2018-02-19 23:48:03 -08001486 select CRYPTO_SIMD
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001487 help
1488 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1489
1490 Keys are allowed to be from 0 to 256 bits in length, in steps
1491 of 8 bits.
1492
Masanari Iida1e6232f2015-04-04 00:20:30 +09001493 This module provides Serpent cipher algorithm that processes eight
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001494 blocks parallel using SSE2 instruction set.
1495
1496 See also:
1497 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1498
Jussi Kivilinna251496d2011-11-09 16:26:31 +02001499config CRYPTO_SERPENT_SSE2_586
1500 tristate "Serpent cipher algorithm (i586/SSE2)"
1501 depends on X86 && !64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001502 select CRYPTO_SKCIPHER
Jussi Kivilinna596d8752012-06-18 14:07:19 +03001503 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna251496d2011-11-09 16:26:31 +02001504 select CRYPTO_SERPENT
Eric Biggerse0f409d2018-02-19 23:48:03 -08001505 select CRYPTO_SIMD
Jussi Kivilinna251496d2011-11-09 16:26:31 +02001506 help
1507 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1508
1509 Keys are allowed to be from 0 to 256 bits in length, in steps
1510 of 8 bits.
1511
1512 This module provides Serpent cipher algorithm that processes four
1513 blocks parallel using SSE2 instruction set.
1514
1515 See also:
1516 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1517
Johannes Goetzfried7efe4072012-06-12 16:47:43 +08001518config CRYPTO_SERPENT_AVX_X86_64
1519 tristate "Serpent cipher algorithm (x86_64/AVX)"
1520 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001521 select CRYPTO_SKCIPHER
Jussi Kivilinna1d0debb2012-06-18 14:07:24 +03001522 select CRYPTO_GLUE_HELPER_X86
Johannes Goetzfried7efe4072012-06-12 16:47:43 +08001523 select CRYPTO_SERPENT
Eric Biggerse16bf972018-02-19 23:48:06 -08001524 select CRYPTO_SIMD
Johannes Goetzfried7efe4072012-06-12 16:47:43 +08001525 select CRYPTO_XTS
1526 help
1527 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1528
1529 Keys are allowed to be from 0 to 256 bits in length, in steps
1530 of 8 bits.
1531
1532 This module provides the Serpent cipher algorithm that processes
1533 eight blocks parallel using the AVX instruction set.
1534
1535 See also:
1536 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1537
Jussi Kivilinna56d76c92013-04-13 13:46:55 +03001538config CRYPTO_SERPENT_AVX2_X86_64
1539 tristate "Serpent cipher algorithm (x86_64/AVX2)"
1540 depends on X86 && 64BIT
Jussi Kivilinna56d76c92013-04-13 13:46:55 +03001541 select CRYPTO_SERPENT_AVX_X86_64
Jussi Kivilinna56d76c92013-04-13 13:46:55 +03001542 help
1543 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1544
1545 Keys are allowed to be from 0 to 256 bits in length, in steps
1546 of 8 bits.
1547
1548 This module provides Serpent cipher algorithm that processes 16
1549 blocks parallel using AVX2 instruction set.
1550
1551 See also:
1552 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1553
Gilad Ben-Yossef747c8ce2018-03-06 09:44:42 +00001554config CRYPTO_SM4
1555 tristate "SM4 cipher algorithm"
1556 select CRYPTO_ALGAPI
1557 help
1558 SM4 cipher algorithms (OSCCA GB/T 32907-2016).
1559
1560 SM4 (GBT.32907-2016) is a cryptographic standard issued by the
1561 Organization of State Commercial Administration of China (OSCCA)
1562 as an authorized cryptographic algorithms for the use within China.
1563
1564 SMS4 was originally created for use in protecting wireless
1565 networks, and is mandated in the Chinese National Standard for
1566 Wireless LAN WAPI (Wired Authentication and Privacy Infrastructure)
1567 (GB.15629.11-2003).
1568
1569 The latest SM4 standard (GBT.32907-2016) was proposed by OSCCA and
1570 standardized through TC 260 of the Standardization Administration
1571 of the People's Republic of China (SAC).
1572
1573 The input, output, and key of SMS4 are each 128 bits.
1574
1575 See also: <https://eprint.iacr.org/2008/329.pdf>
1576
1577 If unsure, say N.
1578
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001579config CRYPTO_TEA
1580 tristate "TEA, XTEA and XETA cipher algorithms"
1581 select CRYPTO_ALGAPI
1582 help
1583 TEA cipher algorithm.
1584
1585 Tiny Encryption Algorithm is a simple cipher that uses
1586 many rounds for security. It is very fast and uses
1587 little memory.
1588
1589 Xtendend Tiny Encryption Algorithm is a modification to
1590 the TEA algorithm to address a potential key weakness
1591 in the TEA algorithm.
1592
1593 Xtendend Encryption Tiny Algorithm is a mis-implementation
1594 of the XTEA algorithm for compatibility purposes.
1595
1596config CRYPTO_TWOFISH
1597 tristate "Twofish cipher algorithm"
1598 select CRYPTO_ALGAPI
1599 select CRYPTO_TWOFISH_COMMON
1600 help
1601 Twofish cipher algorithm.
1602
1603 Twofish was submitted as an AES (Advanced Encryption Standard)
1604 candidate cipher by researchers at CounterPane Systems. It is a
1605 16 round block cipher supporting key sizes of 128, 192, and 256
1606 bits.
1607
1608 See also:
1609 <http://www.schneier.com/twofish.html>
1610
1611config CRYPTO_TWOFISH_COMMON
1612 tristate
1613 help
1614 Common parts of the Twofish cipher algorithm shared by the
1615 generic c and the assembler implementations.
1616
1617config CRYPTO_TWOFISH_586
1618 tristate "Twofish cipher algorithms (i586)"
1619 depends on (X86 || UML_X86) && !64BIT
1620 select CRYPTO_ALGAPI
1621 select CRYPTO_TWOFISH_COMMON
1622 help
1623 Twofish cipher algorithm.
1624
1625 Twofish was submitted as an AES (Advanced Encryption Standard)
1626 candidate cipher by researchers at CounterPane Systems. It is a
1627 16 round block cipher supporting key sizes of 128, 192, and 256
1628 bits.
1629
1630 See also:
1631 <http://www.schneier.com/twofish.html>
1632
1633config CRYPTO_TWOFISH_X86_64
1634 tristate "Twofish cipher algorithm (x86_64)"
1635 depends on (X86 || UML_X86) && 64BIT
1636 select CRYPTO_ALGAPI
1637 select CRYPTO_TWOFISH_COMMON
1638 help
1639 Twofish cipher algorithm (x86_64).
1640
1641 Twofish was submitted as an AES (Advanced Encryption Standard)
1642 candidate cipher by researchers at CounterPane Systems. It is a
1643 16 round block cipher supporting key sizes of 128, 192, and 256
1644 bits.
1645
1646 See also:
1647 <http://www.schneier.com/twofish.html>
1648
Jussi Kivilinna8280daa2011-09-26 16:47:25 +03001649config CRYPTO_TWOFISH_X86_64_3WAY
1650 tristate "Twofish cipher algorithm (x86_64, 3-way parallel)"
Al Virof21a7c12012-04-08 20:31:22 -04001651 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001652 select CRYPTO_SKCIPHER
Jussi Kivilinna8280daa2011-09-26 16:47:25 +03001653 select CRYPTO_TWOFISH_COMMON
1654 select CRYPTO_TWOFISH_X86_64
Jussi Kivilinna414cb5e2012-06-18 14:07:34 +03001655 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna8280daa2011-09-26 16:47:25 +03001656 help
1657 Twofish cipher algorithm (x86_64, 3-way parallel).
1658
1659 Twofish was submitted as an AES (Advanced Encryption Standard)
1660 candidate cipher by researchers at CounterPane Systems. It is a
1661 16 round block cipher supporting key sizes of 128, 192, and 256
1662 bits.
1663
1664 This module provides Twofish cipher algorithm that processes three
1665 blocks parallel, utilizing resources of out-of-order CPUs better.
1666
1667 See also:
1668 <http://www.schneier.com/twofish.html>
1669
Johannes Goetzfried107778b52012-05-28 15:54:24 +02001670config CRYPTO_TWOFISH_AVX_X86_64
1671 tristate "Twofish cipher algorithm (x86_64/AVX)"
1672 depends on X86 && 64BIT
Eric Biggersb95bba52019-10-25 12:41:13 -07001673 select CRYPTO_SKCIPHER
Jussi Kivilinnaa7378d42012-06-18 14:07:39 +03001674 select CRYPTO_GLUE_HELPER_X86
Eric Biggers0e6ab462018-02-19 23:48:11 -08001675 select CRYPTO_SIMD
Johannes Goetzfried107778b52012-05-28 15:54:24 +02001676 select CRYPTO_TWOFISH_COMMON
1677 select CRYPTO_TWOFISH_X86_64
1678 select CRYPTO_TWOFISH_X86_64_3WAY
Johannes Goetzfried107778b52012-05-28 15:54:24 +02001679 help
1680 Twofish cipher algorithm (x86_64/AVX).
1681
1682 Twofish was submitted as an AES (Advanced Encryption Standard)
1683 candidate cipher by researchers at CounterPane Systems. It is a
1684 16 round block cipher supporting key sizes of 128, 192, and 256
1685 bits.
1686
1687 This module provides the Twofish cipher algorithm that processes
1688 eight blocks parallel using the AVX Instruction Set.
1689
1690 See also:
1691 <http://www.schneier.com/twofish.html>
1692
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001693comment "Compression"
1694
Linus Torvalds1da177e2005-04-16 15:20:36 -07001695config CRYPTO_DEFLATE
1696 tristate "Deflate compression algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001697 select CRYPTO_ALGAPI
Giovanni Cabidduf6ded092016-10-21 13:19:53 +01001698 select CRYPTO_ACOMP2
Linus Torvalds1da177e2005-04-16 15:20:36 -07001699 select ZLIB_INFLATE
1700 select ZLIB_DEFLATE
1701 help
1702 This is the Deflate algorithm (RFC1951), specified for use in
1703 IPSec with the IPCOMP protocol (RFC3173, RFC2394).
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001704
Linus Torvalds1da177e2005-04-16 15:20:36 -07001705 You will most probably want this if using IPSec.
1706
Zoltan Sogor0b77abb2007-12-07 16:53:23 +08001707config CRYPTO_LZO
1708 tristate "LZO compression algorithm"
1709 select CRYPTO_ALGAPI
Giovanni Cabidduac9d2c42016-10-21 13:19:49 +01001710 select CRYPTO_ACOMP2
Zoltan Sogor0b77abb2007-12-07 16:53:23 +08001711 select LZO_COMPRESS
1712 select LZO_DECOMPRESS
1713 help
1714 This is the LZO algorithm.
1715
Seth Jennings35a1fc12012-07-19 09:42:41 -05001716config CRYPTO_842
1717 tristate "842 compression algorithm"
Dan Streetman2062c5b2015-05-07 13:49:15 -04001718 select CRYPTO_ALGAPI
Giovanni Cabiddu6a8de3a2016-10-21 13:19:52 +01001719 select CRYPTO_ACOMP2
Dan Streetman2062c5b2015-05-07 13:49:15 -04001720 select 842_COMPRESS
1721 select 842_DECOMPRESS
Seth Jennings35a1fc12012-07-19 09:42:41 -05001722 help
1723 This is the 842 algorithm.
1724
Chanho Min0ea85302013-07-08 16:01:51 -07001725config CRYPTO_LZ4
1726 tristate "LZ4 compression algorithm"
1727 select CRYPTO_ALGAPI
Giovanni Cabiddu8cd93302016-10-21 13:19:50 +01001728 select CRYPTO_ACOMP2
Chanho Min0ea85302013-07-08 16:01:51 -07001729 select LZ4_COMPRESS
1730 select LZ4_DECOMPRESS
1731 help
1732 This is the LZ4 algorithm.
1733
1734config CRYPTO_LZ4HC
1735 tristate "LZ4HC compression algorithm"
1736 select CRYPTO_ALGAPI
Giovanni Cabiddu91d53d92016-10-21 13:19:51 +01001737 select CRYPTO_ACOMP2
Chanho Min0ea85302013-07-08 16:01:51 -07001738 select LZ4HC_COMPRESS
1739 select LZ4_DECOMPRESS
1740 help
1741 This is the LZ4 high compression mode algorithm.
1742
Nick Terrelld28fc3d2018-03-30 12:14:53 -07001743config CRYPTO_ZSTD
1744 tristate "Zstd compression algorithm"
1745 select CRYPTO_ALGAPI
1746 select CRYPTO_ACOMP2
1747 select ZSTD_COMPRESS
1748 select ZSTD_DECOMPRESS
1749 help
1750 This is the zstd algorithm.
1751
Neil Horman17f0f4a2008-08-14 22:15:52 +10001752comment "Random Number Generation"
1753
1754config CRYPTO_ANSI_CPRNG
1755 tristate "Pseudo Random Number Generation for Cryptographic modules"
1756 select CRYPTO_AES
1757 select CRYPTO_RNG
Neil Horman17f0f4a2008-08-14 22:15:52 +10001758 help
1759 This option enables the generic pseudo random number generator
1760 for cryptographic modules. Uses the Algorithm specified in
Jiri Kosina7dd607e2010-01-27 01:00:10 +01001761 ANSI X9.31 A.2.4. Note that this option must be enabled if
1762 CRYPTO_FIPS is selected
Neil Horman17f0f4a2008-08-14 22:15:52 +10001763
Herbert Xuf2c89a12014-07-04 22:15:08 +08001764menuconfig CRYPTO_DRBG_MENU
Stephan Mueller419090c2014-05-31 17:22:31 +02001765 tristate "NIST SP800-90A DRBG"
Stephan Mueller419090c2014-05-31 17:22:31 +02001766 help
1767 NIST SP800-90A compliant DRBG. In the following submenu, one or
1768 more of the DRBG types must be selected.
1769
Herbert Xuf2c89a12014-07-04 22:15:08 +08001770if CRYPTO_DRBG_MENU
Stephan Mueller419090c2014-05-31 17:22:31 +02001771
1772config CRYPTO_DRBG_HMAC
Herbert Xu401e4232015-06-03 14:49:31 +08001773 bool
Stephan Mueller419090c2014-05-31 17:22:31 +02001774 default y
Stephan Mueller419090c2014-05-31 17:22:31 +02001775 select CRYPTO_HMAC
Herbert Xu826775b2015-06-11 08:55:10 +08001776 select CRYPTO_SHA256
Stephan Mueller419090c2014-05-31 17:22:31 +02001777
1778config CRYPTO_DRBG_HASH
1779 bool "Enable Hash DRBG"
Herbert Xu826775b2015-06-11 08:55:10 +08001780 select CRYPTO_SHA256
Stephan Mueller419090c2014-05-31 17:22:31 +02001781 help
1782 Enable the Hash DRBG variant as defined in NIST SP800-90A.
1783
1784config CRYPTO_DRBG_CTR
1785 bool "Enable CTR DRBG"
Stephan Mueller419090c2014-05-31 17:22:31 +02001786 select CRYPTO_AES
Stephan Mueller35591282016-06-14 07:34:13 +02001787 depends on CRYPTO_CTR
Stephan Mueller419090c2014-05-31 17:22:31 +02001788 help
1789 Enable the CTR DRBG variant as defined in NIST SP800-90A.
1790
Herbert Xuf2c89a12014-07-04 22:15:08 +08001791config CRYPTO_DRBG
1792 tristate
Herbert Xu401e4232015-06-03 14:49:31 +08001793 default CRYPTO_DRBG_MENU
Herbert Xuf2c89a12014-07-04 22:15:08 +08001794 select CRYPTO_RNG
Stephan Muellerbb5530e2015-05-25 15:10:20 +02001795 select CRYPTO_JITTERENTROPY
Herbert Xuf2c89a12014-07-04 22:15:08 +08001796
1797endif # if CRYPTO_DRBG_MENU
Stephan Mueller419090c2014-05-31 17:22:31 +02001798
Stephan Muellerbb5530e2015-05-25 15:10:20 +02001799config CRYPTO_JITTERENTROPY
1800 tristate "Jitterentropy Non-Deterministic Random Number Generator"
Arnd Bergmann2f313e02016-01-26 14:47:10 +01001801 select CRYPTO_RNG
Stephan Muellerbb5530e2015-05-25 15:10:20 +02001802 help
1803 The Jitterentropy RNG is a noise that is intended
1804 to provide seed to another RNG. The RNG does not
1805 perform any cryptographic whitening of the generated
1806 random numbers. This Jitterentropy RNG registers with
1807 the kernel crypto API and can be used by any caller.
1808
Herbert Xu03c8efc2010-10-19 21:12:39 +08001809config CRYPTO_USER_API
1810 tristate
1811
Herbert Xufe869cd2010-10-19 21:23:00 +08001812config CRYPTO_USER_API_HASH
1813 tristate "User-space interface for hash algorithms"
Herbert Xu74517082010-11-29 22:56:03 +08001814 depends on NET
Herbert Xufe869cd2010-10-19 21:23:00 +08001815 select CRYPTO_HASH
1816 select CRYPTO_USER_API
1817 help
1818 This option enables the user-spaces interface for hash
1819 algorithms.
1820
Herbert Xu8ff59092010-10-19 21:31:55 +08001821config CRYPTO_USER_API_SKCIPHER
1822 tristate "User-space interface for symmetric key cipher algorithms"
Herbert Xu74517082010-11-29 22:56:03 +08001823 depends on NET
Eric Biggersb95bba52019-10-25 12:41:13 -07001824 select CRYPTO_SKCIPHER
Herbert Xu8ff59092010-10-19 21:31:55 +08001825 select CRYPTO_USER_API
1826 help
1827 This option enables the user-spaces interface for symmetric
1828 key cipher algorithms.
1829
Stephan Mueller2f3755382014-12-25 23:00:39 +01001830config CRYPTO_USER_API_RNG
1831 tristate "User-space interface for random number generator algorithms"
1832 depends on NET
1833 select CRYPTO_RNG
1834 select CRYPTO_USER_API
1835 help
1836 This option enables the user-spaces interface for random
1837 number generator algorithms.
1838
Herbert Xub64a2d92015-05-28 11:30:35 +08001839config CRYPTO_USER_API_AEAD
1840 tristate "User-space interface for AEAD cipher algorithms"
1841 depends on NET
1842 select CRYPTO_AEAD
Eric Biggersb95bba52019-10-25 12:41:13 -07001843 select CRYPTO_SKCIPHER
Stephan Mueller72548b02017-07-30 14:32:58 +02001844 select CRYPTO_NULL
Herbert Xub64a2d92015-05-28 11:30:35 +08001845 select CRYPTO_USER_API
1846 help
1847 This option enables the user-spaces interface for AEAD
1848 cipher algorithms.
1849
Corentin Labbecac58182018-09-19 10:10:54 +00001850config CRYPTO_STATS
1851 bool "Crypto usage statistics for User-space"
Corentin Labbea6a31382018-11-29 14:42:17 +00001852 depends on CRYPTO_USER
Corentin Labbecac58182018-09-19 10:10:54 +00001853 help
1854 This option enables the gathering of crypto stats.
1855 This will collect:
1856 - encrypt/decrypt size and numbers of symmeric operations
1857 - compress/decompress size and numbers of compress operations
1858 - size and numbers of hash operations
1859 - encrypt/decrypt/sign/verify numbers for asymmetric operations
1860 - generate/seed numbers for rng operations
1861
Dmitry Kasatkinee089972013-05-06 15:40:01 +03001862config CRYPTO_HASH_INFO
1863 bool
1864
Ard Biesheuvel746b2e02019-11-08 13:22:07 +01001865source "lib/crypto/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -07001866source "drivers/crypto/Kconfig"
Masahiro Yamada8636a1f2018-12-11 20:01:04 +09001867source "crypto/asymmetric_keys/Kconfig"
1868source "certs/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -07001869
Herbert Xucce9e062006-08-21 21:08:13 +10001870endif # if CRYPTO