blob: 9e524044d3128654d59a05f2ee7101d376f13cfc [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
Herbert Xu5cde0af2006-08-22 00:07:53 +100055config CRYPTO_BLKCIPHER
56 tristate
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110057 select CRYPTO_BLKCIPHER2
Herbert Xu5cde0af2006-08-22 00:07:53 +100058 select CRYPTO_ALGAPI
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110059
60config CRYPTO_BLKCIPHER2
61 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
126 select CRYPTO_BLKCIPHER2
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
172 select CRYPTO_BLKCIPHER2
173 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"
Herbert Xudb131ef2006-09-21 11:44:08 +1000187 select CRYPTO_BLKCIPHER
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
198 select CRYPTO_BLKCIPHER
199 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
Herbert Xu065ce322016-11-22 20:08:29 +0800220 select CRYPTO_BLKCIPHER
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)
312 default y
313
Ondrej Mosnacek1d373d42018-05-11 14:12:51 +0200314config CRYPTO_AEGIS128_AESNI_SSE2
315 tristate "AEGIS-128 AEAD algorithm (x86_64 AESNI+SSE2 implementation)"
316 depends on X86 && 64BIT
317 select CRYPTO_AEAD
Eric Biggersde272ca2019-03-10 12:00:53 -0700318 select CRYPTO_SIMD
Ondrej Mosnacek1d373d42018-05-11 14:12:51 +0200319 help
Ondrej Mosnacek4e5180e2019-03-15 08:47:25 +0100320 AESNI+SSE2 implementation of the AEGIS-128 dedicated AEAD algorithm.
Ondrej Mosnacek1d373d42018-05-11 14:12:51 +0200321
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800322config CRYPTO_SEQIV
323 tristate "Sequence Number IV Generator"
324 select CRYPTO_AEAD
325 select CRYPTO_BLKCIPHER
Herbert Xu856e3f402015-05-21 15:11:13 +0800326 select CRYPTO_NULL
Herbert Xu401e4232015-06-03 14:49:31 +0800327 select CRYPTO_RNG_DEFAULT
Eric Biggersc8a33152019-05-20 09:49:46 -0700328 select CRYPTO_MANAGER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800329 help
330 This IV generator generates an IV based on a sequence number by
331 xoring it with a salt. This algorithm is mainly useful for CTR
332
Herbert Xua10f5542015-05-21 15:11:15 +0800333config CRYPTO_ECHAINIV
334 tristate "Encrypted Chain IV Generator"
335 select CRYPTO_AEAD
336 select CRYPTO_NULL
Herbert Xu401e4232015-06-03 14:49:31 +0800337 select CRYPTO_RNG_DEFAULT
Eric Biggersc8a33152019-05-20 09:49:46 -0700338 select CRYPTO_MANAGER
Herbert Xua10f5542015-05-21 15:11:15 +0800339 help
340 This IV generator generates an IV based on the encryption of
341 a sequence number xored with a salt. This is the default
342 algorithm for CBC.
343
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800344comment "Block modes"
Herbert Xudb131ef2006-09-21 11:44:08 +1000345
346config CRYPTO_CBC
347 tristate "CBC support"
348 select CRYPTO_BLKCIPHER
Herbert Xu43518402006-10-16 21:28:58 +1000349 select CRYPTO_MANAGER
Herbert Xudb131ef2006-09-21 11:44:08 +1000350 help
351 CBC: Cipher Block Chaining mode
352 This block cipher algorithm is required for IPSec.
353
James Bottomleya7d85e02018-03-01 14:36:17 -0800354config CRYPTO_CFB
355 tristate "CFB support"
356 select CRYPTO_BLKCIPHER
357 select CRYPTO_MANAGER
358 help
359 CFB: Cipher FeedBack mode
360 This block cipher algorithm is required for TPM2 Cryptography.
361
Joy Latten23e353c2007-10-23 08:50:32 +0800362config CRYPTO_CTR
363 tristate "CTR support"
364 select CRYPTO_BLKCIPHER
Herbert Xu0a270322007-11-30 21:38:37 +1100365 select CRYPTO_SEQIV
Joy Latten23e353c2007-10-23 08:50:32 +0800366 select CRYPTO_MANAGER
Joy Latten23e353c2007-10-23 08:50:32 +0800367 help
368 CTR: Counter mode
369 This block cipher algorithm is required for IPSec.
370
Kevin Coffman76cb9522008-03-24 21:26:16 +0800371config CRYPTO_CTS
372 tristate "CTS support"
373 select CRYPTO_BLKCIPHER
Eric Biggersc8a33152019-05-20 09:49:46 -0700374 select CRYPTO_MANAGER
Kevin Coffman76cb9522008-03-24 21:26:16 +0800375 help
376 CTS: Cipher Text Stealing
377 This is the Cipher Text Stealing mode as described by
Gilad Ben-Yossefecd6d5c2018-11-05 12:05:01 +0000378 Section 8 of rfc2040 and referenced by rfc3962
379 (rfc3962 includes errata information in its Appendix A) or
380 CBC-CS3 as defined by NIST in Sp800-38A addendum from Oct 2010.
Kevin Coffman76cb9522008-03-24 21:26:16 +0800381 This mode is required for Kerberos gss mechanism support
382 for AES encryption.
383
Gilad Ben-Yossefecd6d5c2018-11-05 12:05:01 +0000384 See: https://csrc.nist.gov/publications/detail/sp/800-38a/addendum/final
385
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800386config CRYPTO_ECB
387 tristate "ECB support"
Herbert Xu653ebd9c2007-11-27 19:48:27 +0800388 select CRYPTO_BLKCIPHER
Herbert Xu124b53d2007-04-16 20:49:20 +1000389 select CRYPTO_MANAGER
390 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800391 ECB: Electronic CodeBook mode
392 This is the simplest block cipher algorithm. It simply encrypts
393 the input block by block.
Herbert Xu124b53d2007-04-16 20:49:20 +1000394
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800395config CRYPTO_LRW
Jussi Kivilinna2470a2b2011-12-13 12:52:51 +0200396 tristate "LRW support"
David Howells90831632006-12-16 12:13:14 +1100397 select CRYPTO_BLKCIPHER
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800398 select CRYPTO_MANAGER
399 select CRYPTO_GF128MUL
David Howells90831632006-12-16 12:13:14 +1100400 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800401 LRW: Liskov Rivest Wagner, a tweakable, non malleable, non movable
402 narrow block cipher mode for dm-crypt. Use it with cipher
403 specification string aes-lrw-benbi, the key must be 256, 320 or 384.
404 The first 128, 192 or 256 bits in the key are used for AES and the
405 rest is used to tie each cipher block to its logical position.
David Howells90831632006-12-16 12:13:14 +1100406
Gilad Ben-Yossefe497c512018-09-20 14:18:39 +0100407config CRYPTO_OFB
408 tristate "OFB support"
409 select CRYPTO_BLKCIPHER
410 select CRYPTO_MANAGER
411 help
412 OFB: the Output Feedback mode makes a block cipher into a synchronous
413 stream cipher. It generates keystream blocks, which are then XORed
414 with the plaintext blocks to get the ciphertext. Flipping a bit in the
415 ciphertext produces a flipped bit in the plaintext at the same
416 location. This property allows many error correcting codes to function
417 normally even when applied before encryption.
418
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800419config CRYPTO_PCBC
420 tristate "PCBC support"
421 select CRYPTO_BLKCIPHER
422 select CRYPTO_MANAGER
423 help
424 PCBC: Propagating Cipher Block Chaining mode
425 This block cipher algorithm is required for RxRPC.
426
427config CRYPTO_XTS
Jussi Kivilinna5bcf8e62011-12-13 12:52:56 +0200428 tristate "XTS support"
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800429 select CRYPTO_BLKCIPHER
430 select CRYPTO_MANAGER
Milan Broz12cb3a12017-02-23 08:38:26 +0100431 select CRYPTO_ECB
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800432 help
433 XTS: IEEE1619/D16 narrow block cipher use with aes-xts-plain,
434 key size 256, 384 or 512 bits. This implementation currently
435 can't handle a sectorsize which is not a multiple of 16 bytes.
436
Stephan Mueller1c49678e2015-09-21 20:58:56 +0200437config CRYPTO_KEYWRAP
438 tristate "Key wrapping support"
439 select CRYPTO_BLKCIPHER
Eric Biggersc8a33152019-05-20 09:49:46 -0700440 select CRYPTO_MANAGER
Stephan Mueller1c49678e2015-09-21 20:58:56 +0200441 help
442 Support for key wrapping (NIST SP800-38F / RFC3394) without
443 padding.
444
Eric Biggers26609a22018-11-16 17:26:29 -0800445config CRYPTO_NHPOLY1305
446 tristate
447 select CRYPTO_HASH
448 select CRYPTO_POLY1305
449
Eric Biggers012c8232018-12-04 22:20:00 -0800450config CRYPTO_NHPOLY1305_SSE2
451 tristate "NHPoly1305 hash function (x86_64 SSE2 implementation)"
452 depends on X86 && 64BIT
453 select CRYPTO_NHPOLY1305
454 help
455 SSE2 optimized implementation of the hash function used by the
456 Adiantum encryption mode.
457
Eric Biggers0f961f92018-12-04 22:20:01 -0800458config CRYPTO_NHPOLY1305_AVX2
459 tristate "NHPoly1305 hash function (x86_64 AVX2 implementation)"
460 depends on X86 && 64BIT
461 select CRYPTO_NHPOLY1305
462 help
463 AVX2 optimized implementation of the hash function used by the
464 Adiantum encryption mode.
465
Eric Biggers059c2a42018-11-16 17:26:31 -0800466config CRYPTO_ADIANTUM
467 tristate "Adiantum support"
468 select CRYPTO_CHACHA20
469 select CRYPTO_POLY1305
470 select CRYPTO_NHPOLY1305
Eric Biggersc8a33152019-05-20 09:49:46 -0700471 select CRYPTO_MANAGER
Eric Biggers059c2a42018-11-16 17:26:31 -0800472 help
473 Adiantum is a tweakable, length-preserving encryption mode
474 designed for fast and secure disk encryption, especially on
475 CPUs without dedicated crypto instructions. It encrypts
476 each sector using the XChaCha12 stream cipher, two passes of
477 an ε-almost-∆-universal hash function, and an invocation of
478 the AES-256 block cipher on a single 16-byte block. On CPUs
479 without AES instructions, Adiantum is much faster than
480 AES-XTS.
481
482 Adiantum's security is provably reducible to that of its
483 underlying stream and block ciphers, subject to a security
484 bound. Unlike XTS, Adiantum is a true wide-block encryption
485 mode, so it actually provides an even stronger notion of
486 security than XTS, subject to the security bound.
487
488 If unsure, say N.
489
Ard Biesheuvelbe1eb7f2019-08-19 17:17:33 +0300490config CRYPTO_ESSIV
491 tristate "ESSIV support for block encryption"
492 select CRYPTO_AUTHENC
493 help
494 Encrypted salt-sector initialization vector (ESSIV) is an IV
495 generation method that is used in some cases by fscrypt and/or
496 dm-crypt. It uses the hash of the block encryption key as the
497 symmetric key for a block encryption pass applied to the input
498 IV, making low entropy IV sources more suitable for block
499 encryption.
500
501 This driver implements a crypto API template that can be
502 instantiated either as a skcipher or as a aead (depending on the
503 type of the first template argument), and which defers encryption
504 and decryption requests to the encapsulated cipher after applying
505 ESSIV to the input IV. Note that in the aead case, it is assumed
506 that the keys are presented in the same format used by the authenc
507 template, and that the IV appears at the end of the authenticated
508 associated data (AAD) region (which is how dm-crypt uses it.)
509
510 Note that the use of ESSIV is not recommended for new deployments,
511 and so this only needs to be enabled when interoperability with
512 existing encrypted volumes of filesystems is required, or when
513 building for a particular system that requires it (e.g., when
514 the SoC in question has accelerated CBC but not XTS, making CBC
515 combined with ESSIV the only feasible mode for h/w accelerated
516 block encryption)
517
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800518comment "Hash modes"
519
Jussi Kivilinna93b5e862013-04-08 10:48:44 +0300520config CRYPTO_CMAC
521 tristate "CMAC support"
522 select CRYPTO_HASH
523 select CRYPTO_MANAGER
524 help
525 Cipher-based Message Authentication Code (CMAC) specified by
526 The National Institute of Standards and Technology (NIST).
527
528 https://tools.ietf.org/html/rfc4493
529 http://csrc.nist.gov/publications/nistpubs/800-38B/SP_800-38B.pdf
530
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800531config CRYPTO_HMAC
532 tristate "HMAC support"
533 select CRYPTO_HASH
534 select CRYPTO_MANAGER
535 help
536 HMAC: Keyed-Hashing for Message Authentication (RFC2104).
537 This is required for IPSec.
538
539config CRYPTO_XCBC
540 tristate "XCBC support"
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800541 select CRYPTO_HASH
542 select CRYPTO_MANAGER
543 help
544 XCBC: Keyed-Hashing with encryption algorithm
545 http://www.ietf.org/rfc/rfc3566.txt
546 http://csrc.nist.gov/encryption/modes/proposedmodes/
547 xcbc-mac/xcbc-mac-spec.pdf
548
Shane Wangf1939f72009-09-02 20:05:22 +1000549config CRYPTO_VMAC
550 tristate "VMAC support"
Shane Wangf1939f72009-09-02 20:05:22 +1000551 select CRYPTO_HASH
552 select CRYPTO_MANAGER
553 help
554 VMAC is a message authentication algorithm designed for
555 very high speed on 64-bit architectures.
556
557 See also:
558 <http://fastcrypto.org/vmac>
559
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800560comment "Digest"
561
562config CRYPTO_CRC32C
563 tristate "CRC32c CRC algorithm"
Herbert Xu5773a3e2008-07-08 20:54:28 +0800564 select CRYPTO_HASH
Darrick J. Wong6a0962b2012-03-23 15:02:25 -0700565 select CRC32
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800566 help
567 Castagnoli, et al Cyclic Redundancy-Check Algorithm. Used
568 by iSCSI for header and data digests and by others.
Herbert Xu69c35ef2008-11-07 15:11:47 +0800569 See Castagnoli93. Module will be crc32c.
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800570
Austin Zhang8cb51ba2008-08-07 09:57:03 +0800571config CRYPTO_CRC32C_INTEL
572 tristate "CRC32c INTEL hardware acceleration"
573 depends on X86
574 select CRYPTO_HASH
575 help
576 In Intel processor with SSE4.2 supported, the processor will
577 support CRC32C implementation using hardware accelerated CRC32
578 instruction. This option will create 'crc32c-intel' module,
579 which will enable any routine to use the CRC32 instruction to
580 gain performance compared with software implementation.
581 Module will be crc32c-intel.
582
Jean Delvare7cf31862016-11-22 10:32:44 +0100583config CRYPTO_CRC32C_VPMSUM
Anton Blanchard6dd7a822016-07-01 08:19:45 +1000584 tristate "CRC32c CRC algorithm (powerpc64)"
Michael Ellermanc12abf32016-08-09 08:46:15 +1000585 depends on PPC64 && ALTIVEC
Anton Blanchard6dd7a822016-07-01 08:19:45 +1000586 select CRYPTO_HASH
587 select CRC32
588 help
589 CRC32c algorithm implemented using vector polynomial multiply-sum
590 (vpmsum) instructions, introduced in POWER8. Enable on POWER8
591 and newer processors for improved performance.
592
593
David S. Miller442a7c42012-08-22 20:47:36 -0700594config CRYPTO_CRC32C_SPARC64
595 tristate "CRC32c CRC algorithm (SPARC64)"
596 depends on SPARC64
597 select CRYPTO_HASH
598 select CRC32
599 help
600 CRC32c CRC algorithm implemented using sparc64 crypto instructions,
601 when available.
602
Alexander Boyko78c37d12013-01-10 18:54:59 +0400603config CRYPTO_CRC32
604 tristate "CRC32 CRC algorithm"
605 select CRYPTO_HASH
606 select CRC32
607 help
608 CRC-32-IEEE 802.3 cyclic redundancy-check algorithm.
609 Shash crypto api wrappers to crc32_le function.
610
611config CRYPTO_CRC32_PCLMUL
612 tristate "CRC32 PCLMULQDQ hardware acceleration"
613 depends on X86
614 select CRYPTO_HASH
615 select CRC32
616 help
617 From Intel Westmere and AMD Bulldozer processor with SSE4.2
618 and PCLMULQDQ supported, the processor will support
619 CRC32 PCLMULQDQ implementation using hardware accelerated PCLMULQDQ
hacoaf8cb012018-12-28 10:09:40 +0000620 instruction. This option will create 'crc32-pclmul' module,
Alexander Boyko78c37d12013-01-10 18:54:59 +0400621 which will enable any routine to use the CRC-32-IEEE 802.3 checksum
622 and gain better performance as compared with the table implementation.
623
Marcin Nowakowski4a5dc512018-02-09 22:11:06 +0000624config CRYPTO_CRC32_MIPS
625 tristate "CRC32c and CRC32 CRC algorithm (MIPS)"
626 depends on MIPS_CRC_SUPPORT
627 select CRYPTO_HASH
628 help
629 CRC32c and CRC32 CRC algorithms implemented using mips crypto
630 instructions, when available.
631
632
Nikolay Borisov67882e72019-05-30 09:52:57 +0300633config CRYPTO_XXHASH
634 tristate "xxHash hash algorithm"
635 select CRYPTO_HASH
636 select XXHASH
637 help
638 xxHash non-cryptographic hash algorithm. Extremely fast, working at
639 speeds close to RAM limits.
640
Herbert Xu684115212013-09-07 12:56:26 +1000641config CRYPTO_CRCT10DIF
642 tristate "CRCT10DIF algorithm"
643 select CRYPTO_HASH
644 help
645 CRC T10 Data Integrity Field computation is being cast as
646 a crypto transform. This allows for faster crc t10 diff
647 transforms to be used if they are available.
648
649config CRYPTO_CRCT10DIF_PCLMUL
650 tristate "CRCT10DIF PCLMULQDQ hardware acceleration"
651 depends on X86 && 64BIT && CRC_T10DIF
652 select CRYPTO_HASH
653 help
654 For x86_64 processors with SSE4.2 and PCLMULQDQ supported,
655 CRC T10 DIF PCLMULQDQ computation can be hardware
656 accelerated PCLMULQDQ instruction. This option will create
hacoaf8cb012018-12-28 10:09:40 +0000657 'crct10dif-pclmul' module, which is faster when computing the
Herbert Xu684115212013-09-07 12:56:26 +1000658 crct10dif checksum as compared with the generic table implementation.
659
Daniel Axtensb01df1c2017-03-15 23:37:36 +1100660config CRYPTO_CRCT10DIF_VPMSUM
661 tristate "CRC32T10DIF powerpc64 hardware acceleration"
662 depends on PPC64 && ALTIVEC && CRC_T10DIF
663 select CRYPTO_HASH
664 help
665 CRC10T10DIF algorithm implemented using vector polynomial
666 multiply-sum (vpmsum) instructions, introduced in POWER8. Enable on
667 POWER8 and newer processors for improved performance.
668
Daniel Axtens146c8682017-03-15 23:37:37 +1100669config CRYPTO_VPMSUM_TESTER
670 tristate "Powerpc64 vpmsum hardware acceleration tester"
671 depends on CRYPTO_CRCT10DIF_VPMSUM && CRYPTO_CRC32C_VPMSUM
672 help
673 Stress test for CRC32c and CRC-T10DIF algorithms implemented with
674 POWER8 vpmsum instructions.
675 Unless you are testing these algorithms, you don't need this.
676
Huang Ying2cdc6892009-08-06 15:32:38 +1000677config CRYPTO_GHASH
Eric Biggers8dfa20f2019-07-19 23:09:18 -0700678 tristate "GHASH hash function"
Huang Ying2cdc6892009-08-06 15:32:38 +1000679 select CRYPTO_GF128MUL
Arnd Bergmann578c60f2016-01-25 17:51:21 +0100680 select CRYPTO_HASH
Huang Ying2cdc6892009-08-06 15:32:38 +1000681 help
Eric Biggers8dfa20f2019-07-19 23:09:18 -0700682 GHASH is the hash function used in GCM (Galois/Counter Mode).
683 It is not a general-purpose cryptographic hash function.
Huang Ying2cdc6892009-08-06 15:32:38 +1000684
Martin Willif979e012015-06-01 13:43:58 +0200685config CRYPTO_POLY1305
686 tristate "Poly1305 authenticator algorithm"
Arnd Bergmann578c60f2016-01-25 17:51:21 +0100687 select CRYPTO_HASH
Martin Willif979e012015-06-01 13:43:58 +0200688 help
689 Poly1305 authenticator algorithm, RFC7539.
690
691 Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein.
692 It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use
693 in IETF protocols. This is the portable C implementation of Poly1305.
694
Martin Willic70f4ab2015-07-16 19:14:06 +0200695config CRYPTO_POLY1305_X86_64
Martin Willib1ccc8f2015-07-16 19:14:08 +0200696 tristate "Poly1305 authenticator algorithm (x86_64/SSE2/AVX2)"
Martin Willic70f4ab2015-07-16 19:14:06 +0200697 depends on X86 && 64BIT
698 select CRYPTO_POLY1305
699 help
700 Poly1305 authenticator algorithm, RFC7539.
701
702 Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein.
703 It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use
704 in IETF protocols. This is the x86_64 assembler implementation using SIMD
705 instructions.
706
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800707config CRYPTO_MD4
708 tristate "MD4 digest algorithm"
Adrian-Ken Rueegsegger808a1762008-12-03 19:55:27 +0800709 select CRYPTO_HASH
Linus Torvalds1da177e2005-04-16 15:20:36 -0700710 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800711 MD4 message digest algorithm (RFC1320).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700712
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800713config CRYPTO_MD5
714 tristate "MD5 digest algorithm"
Adrian-Ken Rueegsegger14b75ba2008-12-03 19:57:12 +0800715 select CRYPTO_HASH
Linus Torvalds1da177e2005-04-16 15:20:36 -0700716 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800717 MD5 message digest algorithm (RFC1321).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700718
Aaro Koskinend69e75d2014-12-21 22:54:02 +0200719config CRYPTO_MD5_OCTEON
720 tristate "MD5 digest algorithm (OCTEON)"
721 depends on CPU_CAVIUM_OCTEON
722 select CRYPTO_MD5
723 select CRYPTO_HASH
724 help
725 MD5 message digest algorithm (RFC1321) implemented
726 using OCTEON crypto instructions, when available.
727
Markus Stockhausene8e59952015-03-01 19:30:46 +0100728config CRYPTO_MD5_PPC
729 tristate "MD5 digest algorithm (PPC)"
730 depends on PPC
731 select CRYPTO_HASH
732 help
733 MD5 message digest algorithm (RFC1321) implemented
734 in PPC assembler.
735
David S. Millerfa4dfed2012-08-19 21:51:26 -0700736config CRYPTO_MD5_SPARC64
737 tristate "MD5 digest algorithm (SPARC64)"
738 depends on SPARC64
739 select CRYPTO_MD5
740 select CRYPTO_HASH
741 help
742 MD5 message digest algorithm (RFC1321) implemented
743 using sparc64 crypto instructions, when available.
744
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800745config CRYPTO_MICHAEL_MIC
746 tristate "Michael MIC keyed digest algorithm"
Adrian-Ken Rueegsegger19e2bf12008-12-07 19:35:38 +0800747 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800748 help
749 Michael MIC is used for message integrity protection in TKIP
750 (IEEE 802.11i). This algorithm is required for TKIP, but it
751 should not be used for other purposes because of the weakness
752 of the algorithm.
753
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800754config CRYPTO_RMD128
Adrian Bunkb6d44342008-07-16 19:28:00 +0800755 tristate "RIPEMD-128 digest algorithm"
Herbert Xu7c4468b2008-11-08 09:10:40 +0800756 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800757 help
758 RIPEMD-128 (ISO/IEC 10118-3:2004).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800759
Adrian Bunkb6d44342008-07-16 19:28:00 +0800760 RIPEMD-128 is a 128-bit cryptographic hash function. It should only
Michael Witten35ed4b32011-07-09 04:02:31 +0000761 be used as a secure replacement for RIPEMD. For other use cases,
Adrian Bunkb6d44342008-07-16 19:28:00 +0800762 RIPEMD-160 should be used.
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800763
Adrian Bunkb6d44342008-07-16 19:28:00 +0800764 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800765 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800766
767config CRYPTO_RMD160
Adrian Bunkb6d44342008-07-16 19:28:00 +0800768 tristate "RIPEMD-160 digest algorithm"
Herbert Xue5835fb2008-11-08 09:18:51 +0800769 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800770 help
771 RIPEMD-160 (ISO/IEC 10118-3:2004).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800772
Adrian Bunkb6d44342008-07-16 19:28:00 +0800773 RIPEMD-160 is a 160-bit cryptographic hash function. It is intended
774 to be used as a secure replacement for the 128-bit hash functions
775 MD4, MD5 and it's predecessor RIPEMD
776 (not to be confused with RIPEMD-128).
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800777
Adrian Bunkb6d44342008-07-16 19:28:00 +0800778 It's speed is comparable to SHA1 and there are no known attacks
779 against RIPEMD-160.
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800780
Adrian Bunkb6d44342008-07-16 19:28:00 +0800781 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800782 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800783
784config CRYPTO_RMD256
Adrian Bunkb6d44342008-07-16 19:28:00 +0800785 tristate "RIPEMD-256 digest algorithm"
Herbert Xud8a5e2e2008-11-08 09:58:10 +0800786 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800787 help
788 RIPEMD-256 is an optional extension of RIPEMD-128 with a
789 256 bit hash. It is intended for applications that require
790 longer hash-results, without needing a larger security level
791 (than RIPEMD-128).
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800792
Adrian Bunkb6d44342008-07-16 19:28:00 +0800793 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800794 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800795
796config CRYPTO_RMD320
Adrian Bunkb6d44342008-07-16 19:28:00 +0800797 tristate "RIPEMD-320 digest algorithm"
Herbert Xu3b8efb42008-11-08 10:11:09 +0800798 select CRYPTO_HASH
Adrian Bunkb6d44342008-07-16 19:28:00 +0800799 help
800 RIPEMD-320 is an optional extension of RIPEMD-160 with a
801 320 bit hash. It is intended for applications that require
802 longer hash-results, without needing a larger security level
803 (than RIPEMD-160).
Adrian-Ken Rueegsegger534fe2c12008-05-09 21:30:27 +0800804
Adrian Bunkb6d44342008-07-16 19:28:00 +0800805 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
Justin P. Mattock6d8de742010-09-12 10:42:47 +0800806 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
Adrian-Ken Rueegsegger82798f92008-05-07 22:17:37 +0800807
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800808config CRYPTO_SHA1
809 tristate "SHA1 digest algorithm"
Adrian-Ken Rueegsegger54ccb362008-12-02 21:08:20 +0800810 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800811 help
812 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
813
Mathias Krause66be8952011-08-04 20:19:25 +0200814config CRYPTO_SHA1_SSSE3
time38b6b7f2015-09-10 15:27:26 -0700815 tristate "SHA1 digest algorithm (SSSE3/AVX/AVX2/SHA-NI)"
Mathias Krause66be8952011-08-04 20:19:25 +0200816 depends on X86 && 64BIT
817 select CRYPTO_SHA1
818 select CRYPTO_HASH
819 help
820 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
821 using Supplemental SSE3 (SSSE3) instructions or Advanced Vector
time38b6b7f2015-09-10 15:27:26 -0700822 Extensions (AVX/AVX2) or SHA-NI(SHA Extensions New Instructions),
823 when available.
Mathias Krause66be8952011-08-04 20:19:25 +0200824
Tim Chen8275d1a2013-03-26 13:59:17 -0700825config CRYPTO_SHA256_SSSE3
time38b6b7f2015-09-10 15:27:26 -0700826 tristate "SHA256 digest algorithm (SSSE3/AVX/AVX2/SHA-NI)"
Tim Chen8275d1a2013-03-26 13:59:17 -0700827 depends on X86 && 64BIT
828 select CRYPTO_SHA256
829 select CRYPTO_HASH
830 help
831 SHA-256 secure hash standard (DFIPS 180-2) implemented
832 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
833 Extensions version 1 (AVX1), or Advanced Vector Extensions
time38b6b7f2015-09-10 15:27:26 -0700834 version 2 (AVX2) instructions, or SHA-NI (SHA Extensions New
835 Instructions) when available.
Tim Chen8275d1a2013-03-26 13:59:17 -0700836
Tim Chen87de4572013-03-26 14:00:02 -0700837config CRYPTO_SHA512_SSSE3
838 tristate "SHA512 digest algorithm (SSSE3/AVX/AVX2)"
839 depends on X86 && 64BIT
840 select CRYPTO_SHA512
841 select CRYPTO_HASH
842 help
843 SHA-512 secure hash standard (DFIPS 180-2) implemented
844 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
845 Extensions version 1 (AVX1), or Advanced Vector Extensions
846 version 2 (AVX2) instructions, when available.
847
Aaro Koskinenefdb6f62015-03-08 22:07:47 +0200848config CRYPTO_SHA1_OCTEON
849 tristate "SHA1 digest algorithm (OCTEON)"
850 depends on CPU_CAVIUM_OCTEON
851 select CRYPTO_SHA1
852 select CRYPTO_HASH
853 help
854 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
855 using OCTEON crypto instructions, when available.
856
David S. Miller4ff28d42012-08-19 15:41:53 -0700857config CRYPTO_SHA1_SPARC64
858 tristate "SHA1 digest algorithm (SPARC64)"
859 depends on SPARC64
860 select CRYPTO_SHA1
861 select CRYPTO_HASH
862 help
863 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
864 using sparc64 crypto instructions, when available.
865
Michael Ellerman323a6bf2012-09-13 23:00:49 +0000866config CRYPTO_SHA1_PPC
867 tristate "SHA1 digest algorithm (powerpc)"
868 depends on PPC
869 help
870 This is the powerpc hardware accelerated implementation of the
871 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
872
Markus Stockhausend9850fc2015-02-24 20:36:50 +0100873config CRYPTO_SHA1_PPC_SPE
874 tristate "SHA1 digest algorithm (PPC SPE)"
875 depends on PPC && SPE
876 help
877 SHA-1 secure hash standard (DFIPS 180-4) implemented
878 using powerpc SPE SIMD instruction set.
879
Hans de Goede01d3aee2019-08-17 16:24:33 +0200880config CRYPTO_LIB_SHA256
881 tristate
882
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800883config CRYPTO_SHA256
884 tristate "SHA224 and SHA256 digest algorithm"
Adrian-Ken Rueegsegger50e109b52008-12-03 19:57:49 +0800885 select CRYPTO_HASH
Hans de Goede08c327f2019-08-17 16:24:35 +0200886 select CRYPTO_LIB_SHA256
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800887 help
888 SHA256 secure hash standard (DFIPS 180-2).
889
890 This version of SHA implements a 256 bit hash with 128 bits of
891 security against collision attacks.
892
Adrian Bunkb6d44342008-07-16 19:28:00 +0800893 This code also includes SHA-224, a 224 bit hash with 112 bits
894 of security against collision attacks.
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800895
Markus Stockhausen2ecc1e92015-01-30 15:39:34 +0100896config CRYPTO_SHA256_PPC_SPE
897 tristate "SHA224 and SHA256 digest algorithm (PPC SPE)"
898 depends on PPC && SPE
899 select CRYPTO_SHA256
900 select CRYPTO_HASH
901 help
902 SHA224 and SHA256 secure hash standard (DFIPS 180-2)
903 implemented using powerpc SPE SIMD instruction set.
904
Aaro Koskinenefdb6f62015-03-08 22:07:47 +0200905config CRYPTO_SHA256_OCTEON
906 tristate "SHA224 and SHA256 digest algorithm (OCTEON)"
907 depends on CPU_CAVIUM_OCTEON
908 select CRYPTO_SHA256
909 select CRYPTO_HASH
910 help
911 SHA-256 secure hash standard (DFIPS 180-2) implemented
912 using OCTEON crypto instructions, when available.
913
David S. Miller86c93b22012-08-19 17:11:37 -0700914config CRYPTO_SHA256_SPARC64
915 tristate "SHA224 and SHA256 digest algorithm (SPARC64)"
916 depends on SPARC64
917 select CRYPTO_SHA256
918 select CRYPTO_HASH
919 help
920 SHA-256 secure hash standard (DFIPS 180-2) implemented
921 using sparc64 crypto instructions, when available.
922
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800923config CRYPTO_SHA512
924 tristate "SHA384 and SHA512 digest algorithms"
Adrian-Ken Rueegseggerbd9d20d2008-12-17 16:49:02 +1100925 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800926 help
927 SHA512 secure hash standard (DFIPS 180-2).
928
929 This version of SHA implements a 512 bit hash with 256 bits of
930 security against collision attacks.
931
932 This code also includes SHA-384, a 384 bit hash with 192 bits
933 of security against collision attacks.
934
Aaro Koskinenefdb6f62015-03-08 22:07:47 +0200935config CRYPTO_SHA512_OCTEON
936 tristate "SHA384 and SHA512 digest algorithms (OCTEON)"
937 depends on CPU_CAVIUM_OCTEON
938 select CRYPTO_SHA512
939 select CRYPTO_HASH
940 help
941 SHA-512 secure hash standard (DFIPS 180-2) implemented
942 using OCTEON crypto instructions, when available.
943
David S. Miller775e0c62012-08-19 17:37:56 -0700944config CRYPTO_SHA512_SPARC64
945 tristate "SHA384 and SHA512 digest algorithm (SPARC64)"
946 depends on SPARC64
947 select CRYPTO_SHA512
948 select CRYPTO_HASH
949 help
950 SHA-512 secure hash standard (DFIPS 180-2) implemented
951 using sparc64 crypto instructions, when available.
952
Jeff Garzik53964b92016-06-17 10:30:35 +0530953config CRYPTO_SHA3
954 tristate "SHA3 digest algorithm"
955 select CRYPTO_HASH
956 help
957 SHA-3 secure hash standard (DFIPS 202). It's based on
958 cryptographic sponge function family called Keccak.
959
960 References:
961 http://keccak.noekeon.org/
962
Gilad Ben-Yossef4f0fc162017-08-21 13:51:28 +0300963config CRYPTO_SM3
964 tristate "SM3 digest algorithm"
965 select CRYPTO_HASH
966 help
967 SM3 secure hash function as defined by OSCCA GM/T 0004-2012 SM3).
968 It is part of the Chinese Commercial Cryptography suite.
969
970 References:
971 http://www.oscca.gov.cn/UpFile/20101222141857786.pdf
972 https://datatracker.ietf.org/doc/html/draft-shen-sm3-hash
973
Vitaly Chikunovfe189572018-11-07 00:00:01 +0300974config CRYPTO_STREEBOG
975 tristate "Streebog Hash Function"
976 select CRYPTO_HASH
977 help
978 Streebog Hash Function (GOST R 34.11-2012, RFC 6986) is one of the Russian
979 cryptographic standard algorithms (called GOST algorithms).
980 This setting enables two hash algorithms with 256 and 512 bits output.
981
982 References:
983 https://tc26.ru/upload/iblock/fed/feddbb4d26b685903faa2ba11aea43f6.pdf
984 https://tools.ietf.org/html/rfc6986
985
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800986config CRYPTO_TGR192
987 tristate "Tiger digest algorithms"
Adrian-Ken Rueegseggerf63fbd32008-12-03 19:58:32 +0800988 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800989 help
990 Tiger hash algorithm 192, 160 and 128-bit hashes
991
992 Tiger is a hash function optimized for 64-bit processors while
993 still having decent performance on 32-bit processors.
994 Tiger was developed by Ross Anderson and Eli Biham.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700995
996 See also:
Sebastian Siewior584fffc2008-04-05 21:04:48 +0800997 <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>.
998
999config CRYPTO_WP512
1000 tristate "Whirlpool digest algorithms"
Adrian-Ken Rueegsegger49465102008-12-07 19:34:37 +08001001 select CRYPTO_HASH
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001002 help
1003 Whirlpool hash algorithm 512, 384 and 256-bit hashes
1004
1005 Whirlpool-512 is part of the NESSIE cryptographic primitives.
1006 Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard
1007
1008 See also:
Justin P. Mattock6d8de742010-09-12 10:42:47 +08001009 <http://www.larc.usp.br/~pbarreto/WhirlpoolPage.html>
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001010
Huang Ying0e1227d2009-10-19 11:53:06 +09001011config CRYPTO_GHASH_CLMUL_NI_INTEL
Eric Biggers8dfa20f2019-07-19 23:09:18 -07001012 tristate "GHASH hash function (CLMUL-NI accelerated)"
Richard Weinberger8af00862011-06-08 20:56:29 +08001013 depends on X86 && 64BIT
Huang Ying0e1227d2009-10-19 11:53:06 +09001014 select CRYPTO_CRYPTD
1015 help
Eric Biggers8dfa20f2019-07-19 23:09:18 -07001016 This is the x86_64 CLMUL-NI accelerated implementation of
1017 GHASH, the hash function used in GCM (Galois/Counter mode).
Huang Ying0e1227d2009-10-19 11:53:06 +09001018
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001019comment "Ciphers"
Linus Torvalds1da177e2005-04-16 15:20:36 -07001020
Ard Biesheuvele59c1c92019-07-02 21:41:22 +02001021config CRYPTO_LIB_AES
1022 tristate
1023
Linus Torvalds1da177e2005-04-16 15:20:36 -07001024config CRYPTO_AES
1025 tristate "AES cipher algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +10001026 select CRYPTO_ALGAPI
Ard Biesheuvel5bb12d72019-07-02 21:41:33 +02001027 select CRYPTO_LIB_AES
Linus Torvalds1da177e2005-04-16 15:20:36 -07001028 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001029 AES cipher algorithms (FIPS-197). AES uses the Rijndael
Linus Torvalds1da177e2005-04-16 15:20:36 -07001030 algorithm.
1031
1032 Rijndael appears to be consistently a very good performer in
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001033 both hardware and software across a wide range of computing
1034 environments regardless of its use in feedback or non-feedback
1035 modes. Its key setup time is excellent, and its key agility is
1036 good. Rijndael's very low memory requirements make it very well
1037 suited for restricted-space environments, in which it also
1038 demonstrates excellent performance. Rijndael's operations are
1039 among the easiest to defend against power and timing attacks.
Linus Torvalds1da177e2005-04-16 15:20:36 -07001040
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001041 The AES specifies three key sizes: 128, 192 and 256 bits
Linus Torvalds1da177e2005-04-16 15:20:36 -07001042
1043 See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information.
1044
Ard Biesheuvelb5e0b032017-02-02 16:37:40 +00001045config CRYPTO_AES_TI
1046 tristate "Fixed time AES cipher"
1047 select CRYPTO_ALGAPI
Ard Biesheuvele59c1c92019-07-02 21:41:22 +02001048 select CRYPTO_LIB_AES
Ard Biesheuvelb5e0b032017-02-02 16:37:40 +00001049 help
1050 This is a generic implementation of AES that attempts to eliminate
1051 data dependent latencies as much as possible without affecting
1052 performance too much. It is intended for use by the generic CCM
1053 and GCM drivers, and other CTR or CMAC/XCBC based modes that rely
1054 solely on encryption (although decryption is supported as well, but
1055 with a more dramatic performance hit)
1056
1057 Instead of using 16 lookup tables of 1 KB each, (8 for encryption and
1058 8 for decryption), this implementation only uses just two S-boxes of
1059 256 bytes each, and attempts to eliminate data dependent latencies by
1060 prefetching the entire table into the cache at the start of each
Eric Biggers0a6a40c2018-10-17 21:37:58 -07001061 block. Interrupts are also disabled to avoid races where cachelines
1062 are evicted when the CPU is interrupted to do something else.
Ard Biesheuvelb5e0b032017-02-02 16:37:40 +00001063
Huang Ying54b6a1b2009-01-18 16:28:34 +11001064config CRYPTO_AES_NI_INTEL
1065 tristate "AES cipher algorithms (AES-NI)"
Richard Weinberger8af00862011-06-08 20:56:29 +08001066 depends on X86
Herbert Xu85671862016-11-22 20:08:33 +08001067 select CRYPTO_AEAD
Ard Biesheuvel2c53fd12019-07-02 21:41:23 +02001068 select CRYPTO_LIB_AES
Huang Ying54b6a1b2009-01-18 16:28:34 +11001069 select CRYPTO_ALGAPI
Herbert Xu85671862016-11-22 20:08:33 +08001070 select CRYPTO_BLKCIPHER
Jussi Kivilinna7643a112013-04-10 18:39:20 +03001071 select CRYPTO_GLUE_HELPER_X86 if 64BIT
Herbert Xu85671862016-11-22 20:08:33 +08001072 select CRYPTO_SIMD
Huang Ying54b6a1b2009-01-18 16:28:34 +11001073 help
1074 Use Intel AES-NI instructions for AES algorithm.
1075
1076 AES cipher algorithms (FIPS-197). AES uses the Rijndael
1077 algorithm.
1078
1079 Rijndael appears to be consistently a very good performer in
1080 both hardware and software across a wide range of computing
1081 environments regardless of its use in feedback or non-feedback
1082 modes. Its key setup time is excellent, and its key agility is
1083 good. Rijndael's very low memory requirements make it very well
1084 suited for restricted-space environments, in which it also
1085 demonstrates excellent performance. Rijndael's operations are
1086 among the easiest to defend against power and timing attacks.
1087
1088 The AES specifies three key sizes: 128, 192 and 256 bits
1089
1090 See <http://csrc.nist.gov/encryption/aes/> for more information.
1091
Mathias Krause0d258ef2010-11-27 16:34:46 +08001092 In addition to AES cipher algorithm support, the acceleration
1093 for some popular block cipher mode is supported too, including
Ard Biesheuvel944585a2018-09-24 14:48:16 +02001094 ECB, CBC, LRW, XTS. The 64 bit version has additional
Mathias Krause0d258ef2010-11-27 16:34:46 +08001095 acceleration for CTR.
Huang Ying2cf4ac82009-03-29 15:41:20 +08001096
David S. Miller9bf48522012-08-21 03:58:13 -07001097config CRYPTO_AES_SPARC64
1098 tristate "AES cipher algorithms (SPARC64)"
1099 depends on SPARC64
1100 select CRYPTO_CRYPTD
1101 select CRYPTO_ALGAPI
1102 help
1103 Use SPARC64 crypto opcodes for AES algorithm.
1104
1105 AES cipher algorithms (FIPS-197). AES uses the Rijndael
1106 algorithm.
1107
1108 Rijndael appears to be consistently a very good performer in
1109 both hardware and software across a wide range of computing
1110 environments regardless of its use in feedback or non-feedback
1111 modes. Its key setup time is excellent, and its key agility is
1112 good. Rijndael's very low memory requirements make it very well
1113 suited for restricted-space environments, in which it also
1114 demonstrates excellent performance. Rijndael's operations are
1115 among the easiest to defend against power and timing attacks.
1116
1117 The AES specifies three key sizes: 128, 192 and 256 bits
1118
1119 See <http://csrc.nist.gov/encryption/aes/> for more information.
1120
1121 In addition to AES cipher algorithm support, the acceleration
1122 for some popular block cipher mode is supported too, including
1123 ECB and CBC.
1124
Markus Stockhausen504c6142015-02-22 10:00:10 +01001125config CRYPTO_AES_PPC_SPE
1126 tristate "AES cipher algorithms (PPC SPE)"
1127 depends on PPC && SPE
1128 help
1129 AES cipher algorithms (FIPS-197). Additionally the acceleration
1130 for popular block cipher modes ECB, CBC, CTR and XTS is supported.
1131 This module should only be used for low power (router) devices
1132 without hardware AES acceleration (e.g. caam crypto). It reduces the
1133 size of the AES tables from 16KB to 8KB + 256 bytes and mitigates
1134 timining attacks. Nevertheless it might be not as secure as other
1135 architecture specific assembler implementations that work on 1KB
1136 tables or 256 bytes S-boxes.
1137
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001138config CRYPTO_ANUBIS
1139 tristate "Anubis cipher algorithm"
1140 select CRYPTO_ALGAPI
1141 help
1142 Anubis cipher algorithm.
1143
1144 Anubis is a variable key length cipher which can use keys from
1145 128 bits to 320 bits in length. It was evaluated as a entrant
1146 in the NESSIE competition.
1147
1148 See also:
Justin P. Mattock6d8de742010-09-12 10:42:47 +08001149 <https://www.cosic.esat.kuleuven.be/nessie/reports/>
1150 <http://www.larc.usp.br/~pbarreto/AnubisPage.html>
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001151
Ard Biesheuveldc51f252019-06-12 18:19:53 +02001152config CRYPTO_LIB_ARC4
1153 tristate
1154
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001155config CRYPTO_ARC4
1156 tristate "ARC4 cipher algorithm"
Sebastian Andrzej Siewiorb9b0f082012-06-26 18:13:46 +02001157 select CRYPTO_BLKCIPHER
Ard Biesheuveldc51f252019-06-12 18:19:53 +02001158 select CRYPTO_LIB_ARC4
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001159 help
1160 ARC4 cipher algorithm.
1161
1162 ARC4 is a stream cipher using keys ranging from 8 bits to 2048
1163 bits in length. This algorithm is required for driver-based
1164 WEP, but it should not be for other purposes because of the
1165 weakness of the algorithm.
1166
1167config CRYPTO_BLOWFISH
1168 tristate "Blowfish cipher algorithm"
1169 select CRYPTO_ALGAPI
Jussi Kivilinna52ba8672011-09-02 01:45:07 +03001170 select CRYPTO_BLOWFISH_COMMON
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001171 help
1172 Blowfish cipher algorithm, by Bruce Schneier.
1173
1174 This is a variable key length cipher which can use keys from 32
1175 bits to 448 bits in length. It's fast, simple and specifically
1176 designed for use on "large microprocessors".
1177
1178 See also:
1179 <http://www.schneier.com/blowfish.html>
1180
Jussi Kivilinna52ba8672011-09-02 01:45:07 +03001181config CRYPTO_BLOWFISH_COMMON
1182 tristate
1183 help
1184 Common parts of the Blowfish cipher algorithm shared by the
1185 generic c and the assembler implementations.
1186
1187 See also:
1188 <http://www.schneier.com/blowfish.html>
1189
Jussi Kivilinna64b94ce2011-09-02 01:45:22 +03001190config CRYPTO_BLOWFISH_X86_64
1191 tristate "Blowfish cipher algorithm (x86_64)"
Al Virof21a7c12012-04-08 20:31:22 -04001192 depends on X86 && 64BIT
Eric Biggersc1679172018-02-19 23:48:16 -08001193 select CRYPTO_BLKCIPHER
Jussi Kivilinna64b94ce2011-09-02 01:45:22 +03001194 select CRYPTO_BLOWFISH_COMMON
1195 help
1196 Blowfish cipher algorithm (x86_64), by Bruce Schneier.
1197
1198 This is a variable key length cipher which can use keys from 32
1199 bits to 448 bits in length. It's fast, simple and specifically
1200 designed for use on "large microprocessors".
1201
1202 See also:
1203 <http://www.schneier.com/blowfish.html>
1204
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001205config CRYPTO_CAMELLIA
1206 tristate "Camellia cipher algorithms"
1207 depends on CRYPTO
1208 select CRYPTO_ALGAPI
1209 help
1210 Camellia cipher algorithms module.
1211
1212 Camellia is a symmetric key block cipher developed jointly
1213 at NTT and Mitsubishi Electric Corporation.
1214
1215 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1216
1217 See also:
1218 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1219
Jussi Kivilinna0b95ec52012-03-05 20:26:47 +02001220config CRYPTO_CAMELLIA_X86_64
1221 tristate "Camellia cipher algorithm (x86_64)"
Al Virof21a7c12012-04-08 20:31:22 -04001222 depends on X86 && 64BIT
Jussi Kivilinna0b95ec52012-03-05 20:26:47 +02001223 depends on CRYPTO
Eric Biggers1af6d032018-02-19 23:48:22 -08001224 select CRYPTO_BLKCIPHER
Jussi Kivilinna964263a2012-06-18 14:07:29 +03001225 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna0b95ec52012-03-05 20:26:47 +02001226 help
1227 Camellia cipher algorithm module (x86_64).
1228
1229 Camellia is a symmetric key block cipher developed jointly
1230 at NTT and Mitsubishi Electric Corporation.
1231
1232 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1233
1234 See also:
1235 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1236
Jussi Kivilinnad9b1d2e2012-10-26 14:49:01 +03001237config CRYPTO_CAMELLIA_AESNI_AVX_X86_64
1238 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX)"
1239 depends on X86 && 64BIT
1240 depends on CRYPTO
Eric Biggers44893bc2018-02-19 23:48:23 -08001241 select CRYPTO_BLKCIPHER
Jussi Kivilinnad9b1d2e2012-10-26 14:49:01 +03001242 select CRYPTO_CAMELLIA_X86_64
Eric Biggers44893bc2018-02-19 23:48:23 -08001243 select CRYPTO_GLUE_HELPER_X86
1244 select CRYPTO_SIMD
Jussi Kivilinnad9b1d2e2012-10-26 14:49:01 +03001245 select CRYPTO_XTS
1246 help
1247 Camellia cipher algorithm module (x86_64/AES-NI/AVX).
1248
1249 Camellia is a symmetric key block cipher developed jointly
1250 at NTT and Mitsubishi Electric Corporation.
1251
1252 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1253
1254 See also:
1255 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1256
Jussi Kivilinnaf3f935a2013-04-13 13:47:00 +03001257config CRYPTO_CAMELLIA_AESNI_AVX2_X86_64
1258 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX2)"
1259 depends on X86 && 64BIT
1260 depends on CRYPTO
Jussi Kivilinnaf3f935a2013-04-13 13:47:00 +03001261 select CRYPTO_CAMELLIA_AESNI_AVX_X86_64
Jussi Kivilinnaf3f935a2013-04-13 13:47:00 +03001262 help
1263 Camellia cipher algorithm module (x86_64/AES-NI/AVX2).
1264
1265 Camellia is a symmetric key block cipher developed jointly
1266 at NTT and Mitsubishi Electric Corporation.
1267
1268 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1269
1270 See also:
1271 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1272
David S. Miller81658ad2012-08-28 12:05:54 -07001273config CRYPTO_CAMELLIA_SPARC64
1274 tristate "Camellia cipher algorithm (SPARC64)"
1275 depends on SPARC64
1276 depends on CRYPTO
1277 select CRYPTO_ALGAPI
1278 help
1279 Camellia cipher algorithm module (SPARC64).
1280
1281 Camellia is a symmetric key block cipher developed jointly
1282 at NTT and Mitsubishi Electric Corporation.
1283
1284 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1285
1286 See also:
1287 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1288
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001289config CRYPTO_CAST_COMMON
1290 tristate
1291 help
1292 Common parts of the CAST cipher algorithms shared by the
1293 generic c and the assembler implementations.
1294
Linus Torvalds1da177e2005-04-16 15:20:36 -07001295config CRYPTO_CAST5
1296 tristate "CAST5 (CAST-128) cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001297 select CRYPTO_ALGAPI
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001298 select CRYPTO_CAST_COMMON
Linus Torvalds1da177e2005-04-16 15:20:36 -07001299 help
1300 The CAST5 encryption algorithm (synonymous with CAST-128) is
1301 described in RFC2144.
1302
Johannes Goetzfried4d6d6a22012-07-11 19:37:37 +02001303config CRYPTO_CAST5_AVX_X86_64
1304 tristate "CAST5 (CAST-128) cipher algorithm (x86_64/AVX)"
1305 depends on X86 && 64BIT
Eric Biggers1e631832018-02-19 23:48:13 -08001306 select CRYPTO_BLKCIPHER
Johannes Goetzfried4d6d6a22012-07-11 19:37:37 +02001307 select CRYPTO_CAST5
Eric Biggers1e631832018-02-19 23:48:13 -08001308 select CRYPTO_CAST_COMMON
1309 select CRYPTO_SIMD
Johannes Goetzfried4d6d6a22012-07-11 19:37:37 +02001310 help
1311 The CAST5 encryption algorithm (synonymous with CAST-128) is
1312 described in RFC2144.
1313
1314 This module provides the Cast5 cipher algorithm that processes
1315 sixteen blocks parallel using the AVX instruction set.
1316
Linus Torvalds1da177e2005-04-16 15:20:36 -07001317config CRYPTO_CAST6
1318 tristate "CAST6 (CAST-256) cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001319 select CRYPTO_ALGAPI
Jussi Kivilinna044ab522012-11-13 11:43:14 +02001320 select CRYPTO_CAST_COMMON
Linus Torvalds1da177e2005-04-16 15:20:36 -07001321 help
1322 The CAST6 encryption algorithm (synonymous with CAST-256) is
1323 described in RFC2612.
1324
Johannes Goetzfried4ea12772012-07-11 19:38:57 +02001325config CRYPTO_CAST6_AVX_X86_64
1326 tristate "CAST6 (CAST-256) cipher algorithm (x86_64/AVX)"
1327 depends on X86 && 64BIT
Eric Biggers4bd96922018-02-19 23:48:15 -08001328 select CRYPTO_BLKCIPHER
Johannes Goetzfried4ea12772012-07-11 19:38:57 +02001329 select CRYPTO_CAST6
Eric Biggers4bd96922018-02-19 23:48:15 -08001330 select CRYPTO_CAST_COMMON
1331 select CRYPTO_GLUE_HELPER_X86
1332 select CRYPTO_SIMD
Johannes Goetzfried4ea12772012-07-11 19:38:57 +02001333 select CRYPTO_XTS
1334 help
1335 The CAST6 encryption algorithm (synonymous with CAST-256) is
1336 described in RFC2612.
1337
1338 This module provides the Cast6 cipher algorithm that processes
1339 eight blocks parallel using the AVX instruction set.
1340
Ard Biesheuvel04007b02019-08-15 12:01:09 +03001341config CRYPTO_LIB_DES
1342 tristate
1343
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001344config CRYPTO_DES
1345 tristate "DES and Triple DES EDE cipher algorithms"
Herbert Xucce9e062006-08-21 21:08:13 +10001346 select CRYPTO_ALGAPI
Ard Biesheuvel04007b02019-08-15 12:01:09 +03001347 select CRYPTO_LIB_DES
Linus Torvalds1da177e2005-04-16 15:20:36 -07001348 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001349 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
Linus Torvalds1da177e2005-04-16 15:20:36 -07001350
David S. Millerc5aac2d2012-08-25 22:37:23 -07001351config CRYPTO_DES_SPARC64
1352 tristate "DES and Triple DES EDE cipher algorithms (SPARC64)"
Dave Jones97da37b2012-10-02 17:13:20 -04001353 depends on SPARC64
David S. Millerc5aac2d2012-08-25 22:37:23 -07001354 select CRYPTO_ALGAPI
Ard Biesheuvel04007b02019-08-15 12:01:09 +03001355 select CRYPTO_LIB_DES
David S. Millerc5aac2d2012-08-25 22:37:23 -07001356 help
1357 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3),
1358 optimized using SPARC64 crypto opcodes.
1359
Jussi Kivilinna6574e6c2014-06-09 20:59:54 +03001360config CRYPTO_DES3_EDE_X86_64
1361 tristate "Triple DES EDE cipher algorithm (x86-64)"
1362 depends on X86 && 64BIT
Eric Biggers09c0f032018-02-19 23:48:17 -08001363 select CRYPTO_BLKCIPHER
Ard Biesheuvel04007b02019-08-15 12:01:09 +03001364 select CRYPTO_LIB_DES
Jussi Kivilinna6574e6c2014-06-09 20:59:54 +03001365 help
1366 Triple DES EDE (FIPS 46-3) algorithm.
1367
1368 This module provides implementation of the Triple DES EDE cipher
1369 algorithm that is optimized for x86-64 processors. Two versions of
1370 algorithm are provided; regular processing one input block and
1371 one that processes three blocks parallel.
1372
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001373config CRYPTO_FCRYPT
1374 tristate "FCrypt cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001375 select CRYPTO_ALGAPI
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001376 select CRYPTO_BLKCIPHER
Linus Torvalds1da177e2005-04-16 15:20:36 -07001377 help
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001378 FCrypt algorithm used by RxRPC.
Linus Torvalds1da177e2005-04-16 15:20:36 -07001379
1380config CRYPTO_KHAZAD
1381 tristate "Khazad cipher algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001382 select CRYPTO_ALGAPI
Linus Torvalds1da177e2005-04-16 15:20:36 -07001383 help
1384 Khazad cipher algorithm.
1385
1386 Khazad was a finalist in the initial NESSIE competition. It is
1387 an algorithm optimized for 64-bit processors with good performance
1388 on 32-bit processors. Khazad uses an 128 bit key size.
1389
1390 See also:
Justin P. Mattock6d8de742010-09-12 10:42:47 +08001391 <http://www.larc.usp.br/~pbarreto/KhazadPage.html>
Linus Torvalds1da177e2005-04-16 15:20:36 -07001392
Tan Swee Heng2407d602007-11-23 19:45:00 +08001393config CRYPTO_SALSA20
Kees Cook3b4afaf2012-10-02 11:16:49 -07001394 tristate "Salsa20 stream cipher algorithm"
Tan Swee Heng2407d602007-11-23 19:45:00 +08001395 select CRYPTO_BLKCIPHER
1396 help
1397 Salsa20 stream cipher algorithm.
1398
1399 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
1400 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
1401
1402 The Salsa20 stream cipher algorithm is designed by Daniel J.
1403 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
Linus Torvalds1da177e2005-04-16 15:20:36 -07001404
Martin Willic08d0e62015-06-01 13:43:56 +02001405config CRYPTO_CHACHA20
Eric Biggersaa762402018-11-16 17:26:22 -08001406 tristate "ChaCha stream cipher algorithms"
Martin Willic08d0e62015-06-01 13:43:56 +02001407 select CRYPTO_BLKCIPHER
1408 help
Eric Biggersaa762402018-11-16 17:26:22 -08001409 The ChaCha20, XChaCha20, and XChaCha12 stream cipher algorithms.
Martin Willic08d0e62015-06-01 13:43:56 +02001410
1411 ChaCha20 is a 256-bit high-speed stream cipher designed by Daniel J.
1412 Bernstein and further specified in RFC7539 for use in IETF protocols.
Eric Biggersde61d7a2018-11-16 17:26:20 -08001413 This is the portable C implementation of ChaCha20. See also:
Martin Willic08d0e62015-06-01 13:43:56 +02001414 <http://cr.yp.to/chacha/chacha-20080128.pdf>
1415
Eric Biggersde61d7a2018-11-16 17:26:20 -08001416 XChaCha20 is the application of the XSalsa20 construction to ChaCha20
1417 rather than to Salsa20. XChaCha20 extends ChaCha20's nonce length
1418 from 64 bits (or 96 bits using the RFC7539 convention) to 192 bits,
1419 while provably retaining ChaCha20's security. See also:
1420 <https://cr.yp.to/snuffle/xsalsa-20081128.pdf>
1421
Eric Biggersaa762402018-11-16 17:26:22 -08001422 XChaCha12 is XChaCha20 reduced to 12 rounds, with correspondingly
1423 reduced security margin but increased performance. It can be needed
1424 in some performance-sensitive scenarios.
1425
Martin Willic9320b62015-07-16 19:14:01 +02001426config CRYPTO_CHACHA20_X86_64
Eric Biggers4af78262018-12-04 22:20:02 -08001427 tristate "ChaCha stream cipher algorithms (x86_64/SSSE3/AVX2/AVX-512VL)"
Martin Willic9320b62015-07-16 19:14:01 +02001428 depends on X86 && 64BIT
1429 select CRYPTO_BLKCIPHER
1430 select CRYPTO_CHACHA20
1431 help
Eric Biggers7a507d62018-12-04 22:20:04 -08001432 SSSE3, AVX2, and AVX-512VL optimized implementations of the ChaCha20,
1433 XChaCha20, and XChaCha12 stream ciphers.
Martin Willic9320b62015-07-16 19:14:01 +02001434
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001435config CRYPTO_SEED
1436 tristate "SEED cipher algorithm"
1437 select CRYPTO_ALGAPI
1438 help
1439 SEED cipher algorithm (RFC4269).
1440
1441 SEED is a 128-bit symmetric key block cipher that has been
1442 developed by KISA (Korea Information Security Agency) as a
1443 national standard encryption algorithm of the Republic of Korea.
1444 It is a 16 round block cipher with the key size of 128 bit.
1445
1446 See also:
1447 <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>
1448
1449config CRYPTO_SERPENT
1450 tristate "Serpent cipher algorithm"
1451 select CRYPTO_ALGAPI
1452 help
1453 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1454
1455 Keys are allowed to be from 0 to 256 bits in length, in steps
1456 of 8 bits. Also includes the 'Tnepres' algorithm, a reversed
1457 variant of Serpent for compatibility with old kerneli.org code.
1458
1459 See also:
1460 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1461
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001462config CRYPTO_SERPENT_SSE2_X86_64
1463 tristate "Serpent cipher algorithm (x86_64/SSE2)"
1464 depends on X86 && 64BIT
Eric Biggerse0f409d2018-02-19 23:48:03 -08001465 select CRYPTO_BLKCIPHER
Jussi Kivilinna596d8752012-06-18 14:07:19 +03001466 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001467 select CRYPTO_SERPENT
Eric Biggerse0f409d2018-02-19 23:48:03 -08001468 select CRYPTO_SIMD
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001469 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.
1474
Masanari Iida1e6232f2015-04-04 00:20:30 +09001475 This module provides Serpent cipher algorithm that processes eight
Jussi Kivilinna937c30d2011-11-09 16:26:25 +02001476 blocks parallel using SSE2 instruction set.
1477
1478 See also:
1479 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1480
Jussi Kivilinna251496d2011-11-09 16:26:31 +02001481config CRYPTO_SERPENT_SSE2_586
1482 tristate "Serpent cipher algorithm (i586/SSE2)"
1483 depends on X86 && !64BIT
Eric Biggerse0f409d2018-02-19 23:48:03 -08001484 select CRYPTO_BLKCIPHER
Jussi Kivilinna596d8752012-06-18 14:07:19 +03001485 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna251496d2011-11-09 16:26:31 +02001486 select CRYPTO_SERPENT
Eric Biggerse0f409d2018-02-19 23:48:03 -08001487 select CRYPTO_SIMD
Jussi Kivilinna251496d2011-11-09 16:26:31 +02001488 help
1489 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1490
1491 Keys are allowed to be from 0 to 256 bits in length, in steps
1492 of 8 bits.
1493
1494 This module provides Serpent cipher algorithm that processes four
1495 blocks parallel using SSE2 instruction set.
1496
1497 See also:
1498 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1499
Johannes Goetzfried7efe4072012-06-12 16:47:43 +08001500config CRYPTO_SERPENT_AVX_X86_64
1501 tristate "Serpent cipher algorithm (x86_64/AVX)"
1502 depends on X86 && 64BIT
Eric Biggerse16bf972018-02-19 23:48:06 -08001503 select CRYPTO_BLKCIPHER
Jussi Kivilinna1d0debb2012-06-18 14:07:24 +03001504 select CRYPTO_GLUE_HELPER_X86
Johannes Goetzfried7efe4072012-06-12 16:47:43 +08001505 select CRYPTO_SERPENT
Eric Biggerse16bf972018-02-19 23:48:06 -08001506 select CRYPTO_SIMD
Johannes Goetzfried7efe4072012-06-12 16:47:43 +08001507 select CRYPTO_XTS
1508 help
1509 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1510
1511 Keys are allowed to be from 0 to 256 bits in length, in steps
1512 of 8 bits.
1513
1514 This module provides the Serpent cipher algorithm that processes
1515 eight blocks parallel using the AVX instruction set.
1516
1517 See also:
1518 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1519
Jussi Kivilinna56d76c92013-04-13 13:46:55 +03001520config CRYPTO_SERPENT_AVX2_X86_64
1521 tristate "Serpent cipher algorithm (x86_64/AVX2)"
1522 depends on X86 && 64BIT
Jussi Kivilinna56d76c92013-04-13 13:46:55 +03001523 select CRYPTO_SERPENT_AVX_X86_64
Jussi Kivilinna56d76c92013-04-13 13:46:55 +03001524 help
1525 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1526
1527 Keys are allowed to be from 0 to 256 bits in length, in steps
1528 of 8 bits.
1529
1530 This module provides Serpent cipher algorithm that processes 16
1531 blocks parallel using AVX2 instruction set.
1532
1533 See also:
1534 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1535
Gilad Ben-Yossef747c8ce2018-03-06 09:44:42 +00001536config CRYPTO_SM4
1537 tristate "SM4 cipher algorithm"
1538 select CRYPTO_ALGAPI
1539 help
1540 SM4 cipher algorithms (OSCCA GB/T 32907-2016).
1541
1542 SM4 (GBT.32907-2016) is a cryptographic standard issued by the
1543 Organization of State Commercial Administration of China (OSCCA)
1544 as an authorized cryptographic algorithms for the use within China.
1545
1546 SMS4 was originally created for use in protecting wireless
1547 networks, and is mandated in the Chinese National Standard for
1548 Wireless LAN WAPI (Wired Authentication and Privacy Infrastructure)
1549 (GB.15629.11-2003).
1550
1551 The latest SM4 standard (GBT.32907-2016) was proposed by OSCCA and
1552 standardized through TC 260 of the Standardization Administration
1553 of the People's Republic of China (SAC).
1554
1555 The input, output, and key of SMS4 are each 128 bits.
1556
1557 See also: <https://eprint.iacr.org/2008/329.pdf>
1558
1559 If unsure, say N.
1560
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001561config CRYPTO_TEA
1562 tristate "TEA, XTEA and XETA cipher algorithms"
1563 select CRYPTO_ALGAPI
1564 help
1565 TEA cipher algorithm.
1566
1567 Tiny Encryption Algorithm is a simple cipher that uses
1568 many rounds for security. It is very fast and uses
1569 little memory.
1570
1571 Xtendend Tiny Encryption Algorithm is a modification to
1572 the TEA algorithm to address a potential key weakness
1573 in the TEA algorithm.
1574
1575 Xtendend Encryption Tiny Algorithm is a mis-implementation
1576 of the XTEA algorithm for compatibility purposes.
1577
1578config CRYPTO_TWOFISH
1579 tristate "Twofish cipher algorithm"
1580 select CRYPTO_ALGAPI
1581 select CRYPTO_TWOFISH_COMMON
1582 help
1583 Twofish cipher algorithm.
1584
1585 Twofish was submitted as an AES (Advanced Encryption Standard)
1586 candidate cipher by researchers at CounterPane Systems. It is a
1587 16 round block cipher supporting key sizes of 128, 192, and 256
1588 bits.
1589
1590 See also:
1591 <http://www.schneier.com/twofish.html>
1592
1593config CRYPTO_TWOFISH_COMMON
1594 tristate
1595 help
1596 Common parts of the Twofish cipher algorithm shared by the
1597 generic c and the assembler implementations.
1598
1599config CRYPTO_TWOFISH_586
1600 tristate "Twofish cipher algorithms (i586)"
1601 depends on (X86 || UML_X86) && !64BIT
1602 select CRYPTO_ALGAPI
1603 select CRYPTO_TWOFISH_COMMON
1604 help
1605 Twofish cipher algorithm.
1606
1607 Twofish was submitted as an AES (Advanced Encryption Standard)
1608 candidate cipher by researchers at CounterPane Systems. It is a
1609 16 round block cipher supporting key sizes of 128, 192, and 256
1610 bits.
1611
1612 See also:
1613 <http://www.schneier.com/twofish.html>
1614
1615config CRYPTO_TWOFISH_X86_64
1616 tristate "Twofish cipher algorithm (x86_64)"
1617 depends on (X86 || UML_X86) && 64BIT
1618 select CRYPTO_ALGAPI
1619 select CRYPTO_TWOFISH_COMMON
1620 help
1621 Twofish cipher algorithm (x86_64).
1622
1623 Twofish was submitted as an AES (Advanced Encryption Standard)
1624 candidate cipher by researchers at CounterPane Systems. It is a
1625 16 round block cipher supporting key sizes of 128, 192, and 256
1626 bits.
1627
1628 See also:
1629 <http://www.schneier.com/twofish.html>
1630
Jussi Kivilinna8280daa2011-09-26 16:47:25 +03001631config CRYPTO_TWOFISH_X86_64_3WAY
1632 tristate "Twofish cipher algorithm (x86_64, 3-way parallel)"
Al Virof21a7c12012-04-08 20:31:22 -04001633 depends on X86 && 64BIT
Eric Biggers37992fa2018-02-19 23:48:09 -08001634 select CRYPTO_BLKCIPHER
Jussi Kivilinna8280daa2011-09-26 16:47:25 +03001635 select CRYPTO_TWOFISH_COMMON
1636 select CRYPTO_TWOFISH_X86_64
Jussi Kivilinna414cb5e2012-06-18 14:07:34 +03001637 select CRYPTO_GLUE_HELPER_X86
Jussi Kivilinna8280daa2011-09-26 16:47:25 +03001638 help
1639 Twofish cipher algorithm (x86_64, 3-way parallel).
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 This module provides Twofish cipher algorithm that processes three
1647 blocks parallel, utilizing resources of out-of-order CPUs better.
1648
1649 See also:
1650 <http://www.schneier.com/twofish.html>
1651
Johannes Goetzfried107778b52012-05-28 15:54:24 +02001652config CRYPTO_TWOFISH_AVX_X86_64
1653 tristate "Twofish cipher algorithm (x86_64/AVX)"
1654 depends on X86 && 64BIT
Eric Biggers0e6ab462018-02-19 23:48:11 -08001655 select CRYPTO_BLKCIPHER
Jussi Kivilinnaa7378d42012-06-18 14:07:39 +03001656 select CRYPTO_GLUE_HELPER_X86
Eric Biggers0e6ab462018-02-19 23:48:11 -08001657 select CRYPTO_SIMD
Johannes Goetzfried107778b52012-05-28 15:54:24 +02001658 select CRYPTO_TWOFISH_COMMON
1659 select CRYPTO_TWOFISH_X86_64
1660 select CRYPTO_TWOFISH_X86_64_3WAY
Johannes Goetzfried107778b52012-05-28 15:54:24 +02001661 help
1662 Twofish cipher algorithm (x86_64/AVX).
1663
1664 Twofish was submitted as an AES (Advanced Encryption Standard)
1665 candidate cipher by researchers at CounterPane Systems. It is a
1666 16 round block cipher supporting key sizes of 128, 192, and 256
1667 bits.
1668
1669 This module provides the Twofish cipher algorithm that processes
1670 eight blocks parallel using the AVX Instruction Set.
1671
1672 See also:
1673 <http://www.schneier.com/twofish.html>
1674
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001675comment "Compression"
1676
Linus Torvalds1da177e2005-04-16 15:20:36 -07001677config CRYPTO_DEFLATE
1678 tristate "Deflate compression algorithm"
Herbert Xucce9e062006-08-21 21:08:13 +10001679 select CRYPTO_ALGAPI
Giovanni Cabidduf6ded092016-10-21 13:19:53 +01001680 select CRYPTO_ACOMP2
Linus Torvalds1da177e2005-04-16 15:20:36 -07001681 select ZLIB_INFLATE
1682 select ZLIB_DEFLATE
1683 help
1684 This is the Deflate algorithm (RFC1951), specified for use in
1685 IPSec with the IPCOMP protocol (RFC3173, RFC2394).
Sebastian Siewior584fffc2008-04-05 21:04:48 +08001686
Linus Torvalds1da177e2005-04-16 15:20:36 -07001687 You will most probably want this if using IPSec.
1688
Zoltan Sogor0b77abb2007-12-07 16:53:23 +08001689config CRYPTO_LZO
1690 tristate "LZO compression algorithm"
1691 select CRYPTO_ALGAPI
Giovanni Cabidduac9d2c42016-10-21 13:19:49 +01001692 select CRYPTO_ACOMP2
Zoltan Sogor0b77abb2007-12-07 16:53:23 +08001693 select LZO_COMPRESS
1694 select LZO_DECOMPRESS
1695 help
1696 This is the LZO algorithm.
1697
Seth Jennings35a1fc12012-07-19 09:42:41 -05001698config CRYPTO_842
1699 tristate "842 compression algorithm"
Dan Streetman2062c5b2015-05-07 13:49:15 -04001700 select CRYPTO_ALGAPI
Giovanni Cabiddu6a8de3a2016-10-21 13:19:52 +01001701 select CRYPTO_ACOMP2
Dan Streetman2062c5b2015-05-07 13:49:15 -04001702 select 842_COMPRESS
1703 select 842_DECOMPRESS
Seth Jennings35a1fc12012-07-19 09:42:41 -05001704 help
1705 This is the 842 algorithm.
1706
Chanho Min0ea85302013-07-08 16:01:51 -07001707config CRYPTO_LZ4
1708 tristate "LZ4 compression algorithm"
1709 select CRYPTO_ALGAPI
Giovanni Cabiddu8cd93302016-10-21 13:19:50 +01001710 select CRYPTO_ACOMP2
Chanho Min0ea85302013-07-08 16:01:51 -07001711 select LZ4_COMPRESS
1712 select LZ4_DECOMPRESS
1713 help
1714 This is the LZ4 algorithm.
1715
1716config CRYPTO_LZ4HC
1717 tristate "LZ4HC compression algorithm"
1718 select CRYPTO_ALGAPI
Giovanni Cabiddu91d53d92016-10-21 13:19:51 +01001719 select CRYPTO_ACOMP2
Chanho Min0ea85302013-07-08 16:01:51 -07001720 select LZ4HC_COMPRESS
1721 select LZ4_DECOMPRESS
1722 help
1723 This is the LZ4 high compression mode algorithm.
1724
Nick Terrelld28fc3d2018-03-30 12:14:53 -07001725config CRYPTO_ZSTD
1726 tristate "Zstd compression algorithm"
1727 select CRYPTO_ALGAPI
1728 select CRYPTO_ACOMP2
1729 select ZSTD_COMPRESS
1730 select ZSTD_DECOMPRESS
1731 help
1732 This is the zstd algorithm.
1733
Neil Horman17f0f4a2008-08-14 22:15:52 +10001734comment "Random Number Generation"
1735
1736config CRYPTO_ANSI_CPRNG
1737 tristate "Pseudo Random Number Generation for Cryptographic modules"
1738 select CRYPTO_AES
1739 select CRYPTO_RNG
Neil Horman17f0f4a2008-08-14 22:15:52 +10001740 help
1741 This option enables the generic pseudo random number generator
1742 for cryptographic modules. Uses the Algorithm specified in
Jiri Kosina7dd607e2010-01-27 01:00:10 +01001743 ANSI X9.31 A.2.4. Note that this option must be enabled if
1744 CRYPTO_FIPS is selected
Neil Horman17f0f4a2008-08-14 22:15:52 +10001745
Herbert Xuf2c89a12014-07-04 22:15:08 +08001746menuconfig CRYPTO_DRBG_MENU
Stephan Mueller419090c2014-05-31 17:22:31 +02001747 tristate "NIST SP800-90A DRBG"
Stephan Mueller419090c2014-05-31 17:22:31 +02001748 help
1749 NIST SP800-90A compliant DRBG. In the following submenu, one or
1750 more of the DRBG types must be selected.
1751
Herbert Xuf2c89a12014-07-04 22:15:08 +08001752if CRYPTO_DRBG_MENU
Stephan Mueller419090c2014-05-31 17:22:31 +02001753
1754config CRYPTO_DRBG_HMAC
Herbert Xu401e4232015-06-03 14:49:31 +08001755 bool
Stephan Mueller419090c2014-05-31 17:22:31 +02001756 default y
Stephan Mueller419090c2014-05-31 17:22:31 +02001757 select CRYPTO_HMAC
Herbert Xu826775b2015-06-11 08:55:10 +08001758 select CRYPTO_SHA256
Stephan Mueller419090c2014-05-31 17:22:31 +02001759
1760config CRYPTO_DRBG_HASH
1761 bool "Enable Hash DRBG"
Herbert Xu826775b2015-06-11 08:55:10 +08001762 select CRYPTO_SHA256
Stephan Mueller419090c2014-05-31 17:22:31 +02001763 help
1764 Enable the Hash DRBG variant as defined in NIST SP800-90A.
1765
1766config CRYPTO_DRBG_CTR
1767 bool "Enable CTR DRBG"
Stephan Mueller419090c2014-05-31 17:22:31 +02001768 select CRYPTO_AES
Stephan Mueller35591282016-06-14 07:34:13 +02001769 depends on CRYPTO_CTR
Stephan Mueller419090c2014-05-31 17:22:31 +02001770 help
1771 Enable the CTR DRBG variant as defined in NIST SP800-90A.
1772
Herbert Xuf2c89a12014-07-04 22:15:08 +08001773config CRYPTO_DRBG
1774 tristate
Herbert Xu401e4232015-06-03 14:49:31 +08001775 default CRYPTO_DRBG_MENU
Herbert Xuf2c89a12014-07-04 22:15:08 +08001776 select CRYPTO_RNG
Stephan Muellerbb5530e2015-05-25 15:10:20 +02001777 select CRYPTO_JITTERENTROPY
Herbert Xuf2c89a12014-07-04 22:15:08 +08001778
1779endif # if CRYPTO_DRBG_MENU
Stephan Mueller419090c2014-05-31 17:22:31 +02001780
Stephan Muellerbb5530e2015-05-25 15:10:20 +02001781config CRYPTO_JITTERENTROPY
1782 tristate "Jitterentropy Non-Deterministic Random Number Generator"
Arnd Bergmann2f313e02016-01-26 14:47:10 +01001783 select CRYPTO_RNG
Stephan Muellerbb5530e2015-05-25 15:10:20 +02001784 help
1785 The Jitterentropy RNG is a noise that is intended
1786 to provide seed to another RNG. The RNG does not
1787 perform any cryptographic whitening of the generated
1788 random numbers. This Jitterentropy RNG registers with
1789 the kernel crypto API and can be used by any caller.
1790
Herbert Xu03c8efc2010-10-19 21:12:39 +08001791config CRYPTO_USER_API
1792 tristate
1793
Herbert Xufe869cd2010-10-19 21:23:00 +08001794config CRYPTO_USER_API_HASH
1795 tristate "User-space interface for hash algorithms"
Herbert Xu74517082010-11-29 22:56:03 +08001796 depends on NET
Herbert Xufe869cd2010-10-19 21:23:00 +08001797 select CRYPTO_HASH
1798 select CRYPTO_USER_API
1799 help
1800 This option enables the user-spaces interface for hash
1801 algorithms.
1802
Herbert Xu8ff59092010-10-19 21:31:55 +08001803config CRYPTO_USER_API_SKCIPHER
1804 tristate "User-space interface for symmetric key cipher algorithms"
Herbert Xu74517082010-11-29 22:56:03 +08001805 depends on NET
Herbert Xu8ff59092010-10-19 21:31:55 +08001806 select CRYPTO_BLKCIPHER
1807 select CRYPTO_USER_API
1808 help
1809 This option enables the user-spaces interface for symmetric
1810 key cipher algorithms.
1811
Stephan Mueller2f3755382014-12-25 23:00:39 +01001812config CRYPTO_USER_API_RNG
1813 tristate "User-space interface for random number generator algorithms"
1814 depends on NET
1815 select CRYPTO_RNG
1816 select CRYPTO_USER_API
1817 help
1818 This option enables the user-spaces interface for random
1819 number generator algorithms.
1820
Herbert Xub64a2d92015-05-28 11:30:35 +08001821config CRYPTO_USER_API_AEAD
1822 tristate "User-space interface for AEAD cipher algorithms"
1823 depends on NET
1824 select CRYPTO_AEAD
Stephan Mueller72548b02017-07-30 14:32:58 +02001825 select CRYPTO_BLKCIPHER
1826 select CRYPTO_NULL
Herbert Xub64a2d92015-05-28 11:30:35 +08001827 select CRYPTO_USER_API
1828 help
1829 This option enables the user-spaces interface for AEAD
1830 cipher algorithms.
1831
Corentin Labbecac58182018-09-19 10:10:54 +00001832config CRYPTO_STATS
1833 bool "Crypto usage statistics for User-space"
Corentin Labbea6a31382018-11-29 14:42:17 +00001834 depends on CRYPTO_USER
Corentin Labbecac58182018-09-19 10:10:54 +00001835 help
1836 This option enables the gathering of crypto stats.
1837 This will collect:
1838 - encrypt/decrypt size and numbers of symmeric operations
1839 - compress/decompress size and numbers of compress operations
1840 - size and numbers of hash operations
1841 - encrypt/decrypt/sign/verify numbers for asymmetric operations
1842 - generate/seed numbers for rng operations
1843
Dmitry Kasatkinee089972013-05-06 15:40:01 +03001844config CRYPTO_HASH_INFO
1845 bool
1846
Linus Torvalds1da177e2005-04-16 15:20:36 -07001847source "drivers/crypto/Kconfig"
Masahiro Yamada8636a1f2018-12-11 20:01:04 +09001848source "crypto/asymmetric_keys/Kconfig"
1849source "certs/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -07001850
Herbert Xucce9e062006-08-21 21:08:13 +10001851endif # if CRYPTO