Commit | Line | Data |
---|---|---|
b2441318 | 1 | # SPDX-License-Identifier: GPL-2.0 |
685784aa DW |
2 | # |
3 | # Generic algorithms support | |
4 | # | |
5 | config XOR_BLOCKS | |
6 | tristate | |
7 | ||
1da177e4 | 8 | # |
9bc89cd8 | 9 | # async_tx api: hardware offloaded memory transfer/transform support |
1da177e4 | 10 | # |
9bc89cd8 | 11 | source "crypto/async_tx/Kconfig" |
1da177e4 | 12 | |
9bc89cd8 DW |
13 | # |
14 | # Cryptographic API Configuration | |
15 | # | |
2e290f43 | 16 | menuconfig CRYPTO |
c3715cb9 | 17 | tristate "Cryptographic API" |
1da177e4 LT |
18 | help |
19 | This option provides the core Cryptographic API. | |
20 | ||
cce9e06d HX |
21 | if CRYPTO |
22 | ||
584fffc8 SS |
23 | comment "Crypto core or helper" |
24 | ||
ccb778e1 NH |
25 | config CRYPTO_FIPS |
26 | bool "FIPS 200 compliance" | |
f2c89a10 | 27 | depends on (CRYPTO_ANSI_CPRNG || CRYPTO_DRBG) && !CRYPTO_MANAGER_DISABLE_TESTS |
1f696097 | 28 | depends on (MODULE_SIG || !MODULES) |
ccb778e1 | 29 | help |
d99324c2 GU |
30 | This option enables the fips boot option which is |
31 | required if you want the system to operate in a FIPS 200 | |
ccb778e1 | 32 | certification. You should say no unless you know what |
e84c5480 | 33 | this is. |
ccb778e1 | 34 | |
cce9e06d HX |
35 | config CRYPTO_ALGAPI |
36 | tristate | |
6a0fcbb4 | 37 | select CRYPTO_ALGAPI2 |
cce9e06d HX |
38 | help |
39 | This option provides the API for cryptographic algorithms. | |
40 | ||
6a0fcbb4 HX |
41 | config CRYPTO_ALGAPI2 |
42 | tristate | |
43 | ||
1ae97820 HX |
44 | config CRYPTO_AEAD |
45 | tristate | |
6a0fcbb4 | 46 | select CRYPTO_AEAD2 |
1ae97820 HX |
47 | select CRYPTO_ALGAPI |
48 | ||
6a0fcbb4 HX |
49 | config CRYPTO_AEAD2 |
50 | tristate | |
51 | select CRYPTO_ALGAPI2 | |
149a3971 HX |
52 | select CRYPTO_NULL2 |
53 | select CRYPTO_RNG2 | |
6a0fcbb4 | 54 | |
b95bba5d | 55 | config CRYPTO_SKCIPHER |
5cde0af2 | 56 | tristate |
b95bba5d | 57 | select CRYPTO_SKCIPHER2 |
5cde0af2 | 58 | select CRYPTO_ALGAPI |
6a0fcbb4 | 59 | |
b95bba5d | 60 | config CRYPTO_SKCIPHER2 |
6a0fcbb4 HX |
61 | tristate |
62 | select CRYPTO_ALGAPI2 | |
63 | select CRYPTO_RNG2 | |
5cde0af2 | 64 | |
055bcee3 HX |
65 | config CRYPTO_HASH |
66 | tristate | |
6a0fcbb4 | 67 | select CRYPTO_HASH2 |
055bcee3 HX |
68 | select CRYPTO_ALGAPI |
69 | ||
6a0fcbb4 HX |
70 | config CRYPTO_HASH2 |
71 | tristate | |
72 | select CRYPTO_ALGAPI2 | |
73 | ||
17f0f4a4 NH |
74 | config CRYPTO_RNG |
75 | tristate | |
6a0fcbb4 | 76 | select CRYPTO_RNG2 |
17f0f4a4 NH |
77 | select CRYPTO_ALGAPI |
78 | ||
6a0fcbb4 HX |
79 | config CRYPTO_RNG2 |
80 | tristate | |
81 | select CRYPTO_ALGAPI2 | |
82 | ||
401e4238 HX |
83 | config CRYPTO_RNG_DEFAULT |
84 | tristate | |
85 | select CRYPTO_DRBG_MENU | |
86 | ||
3c339ab8 TS |
87 | config CRYPTO_AKCIPHER2 |
88 | tristate | |
89 | select CRYPTO_ALGAPI2 | |
90 | ||
91 | config CRYPTO_AKCIPHER | |
92 | tristate | |
93 | select CRYPTO_AKCIPHER2 | |
94 | select CRYPTO_ALGAPI | |
95 | ||
4e5f2c40 SB |
96 | config CRYPTO_KPP2 |
97 | tristate | |
98 | select CRYPTO_ALGAPI2 | |
99 | ||
100 | config CRYPTO_KPP | |
101 | tristate | |
102 | select CRYPTO_ALGAPI | |
103 | select CRYPTO_KPP2 | |
104 | ||
2ebda74f GC |
105 | config CRYPTO_ACOMP2 |
106 | tristate | |
107 | select CRYPTO_ALGAPI2 | |
8cd579d2 | 108 | select SGL_ALLOC |
2ebda74f GC |
109 | |
110 | config CRYPTO_ACOMP | |
111 | tristate | |
112 | select CRYPTO_ALGAPI | |
113 | select CRYPTO_ACOMP2 | |
114 | ||
2b8c19db HX |
115 | config CRYPTO_MANAGER |
116 | tristate "Cryptographic algorithm manager" | |
6a0fcbb4 | 117 | select CRYPTO_MANAGER2 |
2b8c19db HX |
118 | help |
119 | Create default cryptographic template instantiations such as | |
120 | cbc(aes). | |
121 | ||
6a0fcbb4 HX |
122 | config CRYPTO_MANAGER2 |
123 | def_tristate CRYPTO_MANAGER || (CRYPTO_MANAGER!=n && CRYPTO_ALGAPI=y) | |
124 | select CRYPTO_AEAD2 | |
125 | select CRYPTO_HASH2 | |
b95bba5d | 126 | select CRYPTO_SKCIPHER2 |
946cc463 | 127 | select CRYPTO_AKCIPHER2 |
4e5f2c40 | 128 | select CRYPTO_KPP2 |
2ebda74f | 129 | select CRYPTO_ACOMP2 |
6a0fcbb4 | 130 | |
a38f7907 SK |
131 | config CRYPTO_USER |
132 | tristate "Userspace cryptographic algorithm configuration" | |
5db017aa | 133 | depends on NET |
a38f7907 SK |
134 | select CRYPTO_MANAGER |
135 | help | |
d19978f5 | 136 | Userspace configuration for cryptographic instantiations such as |
a38f7907 SK |
137 | cbc(aes). |
138 | ||
326a6346 HX |
139 | config CRYPTO_MANAGER_DISABLE_TESTS |
140 | bool "Disable run-time self tests" | |
00ca28a5 | 141 | default y |
0b767f96 | 142 | help |
326a6346 HX |
143 | Disable run-time self tests that normally take place at |
144 | algorithm registration. | |
0b767f96 | 145 | |
5b2706a4 EB |
146 | config CRYPTO_MANAGER_EXTRA_TESTS |
147 | bool "Enable extra run-time crypto self tests" | |
6569e309 | 148 | depends on DEBUG_KERNEL && !CRYPTO_MANAGER_DISABLE_TESTS && CRYPTO_MANAGER |
5b2706a4 EB |
149 | help |
150 | Enable extra run-time self tests of registered crypto algorithms, | |
151 | including randomized fuzz tests. | |
152 | ||
153 | This is intended for developer use only, as these tests take much | |
154 | longer to run than the normal self tests. | |
155 | ||
584fffc8 | 156 | config CRYPTO_GF128MUL |
e590e132 | 157 | tristate |
333b0d7e | 158 | |
1da177e4 LT |
159 | config CRYPTO_NULL |
160 | tristate "Null algorithms" | |
149a3971 | 161 | select CRYPTO_NULL2 |
1da177e4 LT |
162 | help |
163 | These are 'Null' algorithms, used by IPsec, which do nothing. | |
164 | ||
149a3971 | 165 | config CRYPTO_NULL2 |
dd43c4e9 | 166 | tristate |
149a3971 | 167 | select CRYPTO_ALGAPI2 |
b95bba5d | 168 | select CRYPTO_SKCIPHER2 |
149a3971 HX |
169 | select CRYPTO_HASH2 |
170 | ||
5068c7a8 | 171 | config CRYPTO_PCRYPT |
3b4afaf2 KC |
172 | tristate "Parallel crypto engine" |
173 | depends on SMP | |
5068c7a8 SK |
174 | select PADATA |
175 | select CRYPTO_MANAGER | |
176 | select CRYPTO_AEAD | |
177 | help | |
178 | This converts an arbitrary crypto algorithm into a parallel | |
179 | algorithm that executes in kernel threads. | |
180 | ||
584fffc8 SS |
181 | config CRYPTO_CRYPTD |
182 | tristate "Software async crypto daemon" | |
b95bba5d | 183 | select CRYPTO_SKCIPHER |
b8a28251 | 184 | select CRYPTO_HASH |
584fffc8 | 185 | select CRYPTO_MANAGER |
1da177e4 | 186 | help |
584fffc8 SS |
187 | This is a generic software asynchronous crypto daemon that |
188 | converts an arbitrary synchronous software crypto algorithm | |
189 | into an asynchronous algorithm that executes in a kernel thread. | |
1da177e4 | 190 | |
584fffc8 SS |
191 | config CRYPTO_AUTHENC |
192 | tristate "Authenc support" | |
193 | select CRYPTO_AEAD | |
b95bba5d | 194 | select CRYPTO_SKCIPHER |
584fffc8 SS |
195 | select CRYPTO_MANAGER |
196 | select CRYPTO_HASH | |
e94c6a7a | 197 | select CRYPTO_NULL |
1da177e4 | 198 | help |
584fffc8 SS |
199 | Authenc: Combined mode wrapper for IPsec. |
200 | This is required for IPSec. | |
1da177e4 | 201 | |
584fffc8 SS |
202 | config CRYPTO_TEST |
203 | tristate "Testing module" | |
00ea27f1 | 204 | depends on m || EXPERT |
da7f033d | 205 | select CRYPTO_MANAGER |
1da177e4 | 206 | help |
584fffc8 | 207 | Quick & dirty crypto test module. |
1da177e4 | 208 | |
266d0516 HX |
209 | config CRYPTO_SIMD |
210 | tristate | |
ffaf9156 JK |
211 | select CRYPTO_CRYPTD |
212 | ||
735d37b5 BW |
213 | config CRYPTO_ENGINE |
214 | tristate | |
215 | ||
3d6228a5 VC |
216 | comment "Public-key cryptography" |
217 | ||
218 | config CRYPTO_RSA | |
219 | tristate "RSA algorithm" | |
220 | select CRYPTO_AKCIPHER | |
221 | select CRYPTO_MANAGER | |
222 | select MPILIB | |
223 | select ASN1 | |
224 | help | |
225 | Generic implementation of the RSA public key algorithm. | |
226 | ||
227 | config CRYPTO_DH | |
228 | tristate "Diffie-Hellman algorithm" | |
229 | select CRYPTO_KPP | |
230 | select MPILIB | |
231 | help | |
232 | Generic implementation of the Diffie-Hellman algorithm. | |
233 | ||
7dce5981 NS |
234 | config CRYPTO_DH_RFC7919_GROUPS |
235 | bool "Support for RFC 7919 FFDHE group parameters" | |
236 | depends on CRYPTO_DH | |
1e207964 | 237 | select CRYPTO_RNG_DEFAULT |
7dce5981 NS |
238 | help |
239 | Provide support for RFC 7919 FFDHE group parameters. If unsure, say N. | |
240 | ||
4a2289da VC |
241 | config CRYPTO_ECC |
242 | tristate | |
38aa192a | 243 | select CRYPTO_RNG_DEFAULT |
4a2289da | 244 | |
3d6228a5 VC |
245 | config CRYPTO_ECDH |
246 | tristate "ECDH algorithm" | |
4a2289da | 247 | select CRYPTO_ECC |
3d6228a5 | 248 | select CRYPTO_KPP |
3d6228a5 VC |
249 | help |
250 | Generic implementation of the ECDH algorithm | |
251 | ||
4e660291 SB |
252 | config CRYPTO_ECDSA |
253 | tristate "ECDSA (NIST P192, P256 etc.) algorithm" | |
254 | select CRYPTO_ECC | |
255 | select CRYPTO_AKCIPHER | |
256 | select ASN1 | |
257 | help | |
258 | Elliptic Curve Digital Signature Algorithm (NIST P192, P256 etc.) | |
259 | is A NIST cryptographic standard algorithm. Only signature verification | |
260 | is implemented. | |
261 | ||
0d7a7864 VC |
262 | config CRYPTO_ECRDSA |
263 | tristate "EC-RDSA (GOST 34.10) algorithm" | |
264 | select CRYPTO_ECC | |
265 | select CRYPTO_AKCIPHER | |
266 | select CRYPTO_STREEBOG | |
1036633e VC |
267 | select OID_REGISTRY |
268 | select ASN1 | |
0d7a7864 VC |
269 | help |
270 | Elliptic Curve Russian Digital Signature Algorithm (GOST R 34.10-2012, | |
271 | RFC 7091, ISO/IEC 14888-3:2018) is one of the Russian cryptographic | |
272 | standard algorithms (called GOST algorithms). Only signature verification | |
273 | is implemented. | |
274 | ||
ea7ecb66 TZ |
275 | config CRYPTO_SM2 |
276 | tristate "SM2 algorithm" | |
d2825fa9 | 277 | select CRYPTO_SM3 |
ea7ecb66 TZ |
278 | select CRYPTO_AKCIPHER |
279 | select CRYPTO_MANAGER | |
280 | select MPILIB | |
281 | select ASN1 | |
282 | help | |
283 | Generic implementation of the SM2 public key algorithm. It was | |
284 | published by State Encryption Management Bureau, China. | |
285 | as specified by OSCCA GM/T 0003.1-2012 -- 0003.5-2012. | |
286 | ||
287 | References: | |
288 | https://tools.ietf.org/html/draft-shen-sm2-ecdsa-02 | |
289 | http://www.oscca.gov.cn/sca/xxgk/2010-12/17/content_1002386.shtml | |
290 | http://www.gmbz.org.cn/main/bzlb.html | |
291 | ||
ee772cb6 AB |
292 | config CRYPTO_CURVE25519 |
293 | tristate "Curve25519 algorithm" | |
294 | select CRYPTO_KPP | |
295 | select CRYPTO_LIB_CURVE25519_GENERIC | |
296 | ||
bb611bdf JD |
297 | config CRYPTO_CURVE25519_X86 |
298 | tristate "x86_64 accelerated Curve25519 scalar multiplication library" | |
299 | depends on X86 && 64BIT | |
300 | select CRYPTO_LIB_CURVE25519_GENERIC | |
301 | select CRYPTO_ARCH_HAVE_LIB_CURVE25519 | |
302 | ||
584fffc8 | 303 | comment "Authenticated Encryption with Associated Data" |
cd12fb90 | 304 | |
584fffc8 SS |
305 | config CRYPTO_CCM |
306 | tristate "CCM support" | |
307 | select CRYPTO_CTR | |
f15f05b0 | 308 | select CRYPTO_HASH |
584fffc8 | 309 | select CRYPTO_AEAD |
c8a3315a | 310 | select CRYPTO_MANAGER |
1da177e4 | 311 | help |
584fffc8 | 312 | Support for Counter with CBC MAC. Required for IPsec. |
1da177e4 | 313 | |
584fffc8 SS |
314 | config CRYPTO_GCM |
315 | tristate "GCM/GMAC support" | |
316 | select CRYPTO_CTR | |
317 | select CRYPTO_AEAD | |
9382d97a | 318 | select CRYPTO_GHASH |
9489667d | 319 | select CRYPTO_NULL |
c8a3315a | 320 | select CRYPTO_MANAGER |
1da177e4 | 321 | help |
584fffc8 SS |
322 | Support for Galois/Counter Mode (GCM) and Galois Message |
323 | Authentication Code (GMAC). Required for IPSec. | |
1da177e4 | 324 | |
71ebc4d1 MW |
325 | config CRYPTO_CHACHA20POLY1305 |
326 | tristate "ChaCha20-Poly1305 AEAD support" | |
327 | select CRYPTO_CHACHA20 | |
328 | select CRYPTO_POLY1305 | |
329 | select CRYPTO_AEAD | |
c8a3315a | 330 | select CRYPTO_MANAGER |
71ebc4d1 MW |
331 | help |
332 | ChaCha20-Poly1305 AEAD support, RFC7539. | |
333 | ||
334 | Support for the AEAD wrapper using the ChaCha20 stream cipher combined | |
335 | with the Poly1305 authenticator. It is defined in RFC7539 for use in | |
336 | IETF protocols. | |
337 | ||
f606a88e OM |
338 | config CRYPTO_AEGIS128 |
339 | tristate "AEGIS-128 AEAD algorithm" | |
340 | select CRYPTO_AEAD | |
341 | select CRYPTO_AES # for AES S-box tables | |
342 | help | |
343 | Support for the AEGIS-128 dedicated AEAD algorithm. | |
344 | ||
a4397635 AB |
345 | config CRYPTO_AEGIS128_SIMD |
346 | bool "Support SIMD acceleration for AEGIS-128" | |
347 | depends on CRYPTO_AEGIS128 && ((ARM || ARM64) && KERNEL_MODE_NEON) | |
348 | default y | |
349 | ||
1d373d4e OM |
350 | config CRYPTO_AEGIS128_AESNI_SSE2 |
351 | tristate "AEGIS-128 AEAD algorithm (x86_64 AESNI+SSE2 implementation)" | |
352 | depends on X86 && 64BIT | |
353 | select CRYPTO_AEAD | |
de272ca7 | 354 | select CRYPTO_SIMD |
1d373d4e | 355 | help |
4e5180eb | 356 | AESNI+SSE2 implementation of the AEGIS-128 dedicated AEAD algorithm. |
1d373d4e | 357 | |
584fffc8 SS |
358 | config CRYPTO_SEQIV |
359 | tristate "Sequence Number IV Generator" | |
360 | select CRYPTO_AEAD | |
b95bba5d | 361 | select CRYPTO_SKCIPHER |
856e3f40 | 362 | select CRYPTO_NULL |
401e4238 | 363 | select CRYPTO_RNG_DEFAULT |
c8a3315a | 364 | select CRYPTO_MANAGER |
1da177e4 | 365 | help |
584fffc8 SS |
366 | This IV generator generates an IV based on a sequence number by |
367 | xoring it with a salt. This algorithm is mainly useful for CTR | |
1da177e4 | 368 | |
a10f554f HX |
369 | config CRYPTO_ECHAINIV |
370 | tristate "Encrypted Chain IV Generator" | |
371 | select CRYPTO_AEAD | |
372 | select CRYPTO_NULL | |
401e4238 | 373 | select CRYPTO_RNG_DEFAULT |
c8a3315a | 374 | select CRYPTO_MANAGER |
a10f554f HX |
375 | help |
376 | This IV generator generates an IV based on the encryption of | |
377 | a sequence number xored with a salt. This is the default | |
378 | algorithm for CBC. | |
379 | ||
584fffc8 | 380 | comment "Block modes" |
c494e070 | 381 | |
584fffc8 SS |
382 | config CRYPTO_CBC |
383 | tristate "CBC support" | |
b95bba5d | 384 | select CRYPTO_SKCIPHER |
43518407 | 385 | select CRYPTO_MANAGER |
db131ef9 | 386 | help |
584fffc8 SS |
387 | CBC: Cipher Block Chaining mode |
388 | This block cipher algorithm is required for IPSec. | |
db131ef9 | 389 | |
a7d85e06 JB |
390 | config CRYPTO_CFB |
391 | tristate "CFB support" | |
b95bba5d | 392 | select CRYPTO_SKCIPHER |
a7d85e06 JB |
393 | select CRYPTO_MANAGER |
394 | help | |
395 | CFB: Cipher FeedBack mode | |
396 | This block cipher algorithm is required for TPM2 Cryptography. | |
397 | ||
584fffc8 SS |
398 | config CRYPTO_CTR |
399 | tristate "CTR support" | |
b95bba5d | 400 | select CRYPTO_SKCIPHER |
43518407 | 401 | select CRYPTO_MANAGER |
db131ef9 | 402 | help |
584fffc8 | 403 | CTR: Counter mode |
db131ef9 HX |
404 | This block cipher algorithm is required for IPSec. |
405 | ||
584fffc8 SS |
406 | config CRYPTO_CTS |
407 | tristate "CTS support" | |
b95bba5d | 408 | select CRYPTO_SKCIPHER |
c8a3315a | 409 | select CRYPTO_MANAGER |
584fffc8 SS |
410 | help |
411 | CTS: Cipher Text Stealing | |
412 | This is the Cipher Text Stealing mode as described by | |
ecd6d5c9 GBY |
413 | Section 8 of rfc2040 and referenced by rfc3962 |
414 | (rfc3962 includes errata information in its Appendix A) or | |
415 | CBC-CS3 as defined by NIST in Sp800-38A addendum from Oct 2010. | |
584fffc8 SS |
416 | This mode is required for Kerberos gss mechanism support |
417 | for AES encryption. | |
418 | ||
ecd6d5c9 GBY |
419 | See: https://csrc.nist.gov/publications/detail/sp/800-38a/addendum/final |
420 | ||
584fffc8 SS |
421 | config CRYPTO_ECB |
422 | tristate "ECB support" | |
b95bba5d | 423 | select CRYPTO_SKCIPHER |
91652be5 | 424 | select CRYPTO_MANAGER |
91652be5 | 425 | help |
584fffc8 SS |
426 | ECB: Electronic CodeBook mode |
427 | This is the simplest block cipher algorithm. It simply encrypts | |
428 | the input block by block. | |
91652be5 | 429 | |
64470f1b | 430 | config CRYPTO_LRW |
2470a2b2 | 431 | tristate "LRW support" |
b95bba5d | 432 | select CRYPTO_SKCIPHER |
64470f1b RS |
433 | select CRYPTO_MANAGER |
434 | select CRYPTO_GF128MUL | |
f60bbbbe | 435 | select CRYPTO_ECB |
64470f1b RS |
436 | help |
437 | LRW: Liskov Rivest Wagner, a tweakable, non malleable, non movable | |
438 | narrow block cipher mode for dm-crypt. Use it with cipher | |
439 | specification string aes-lrw-benbi, the key must be 256, 320 or 384. | |
440 | The first 128, 192 or 256 bits in the key are used for AES and the | |
441 | rest is used to tie each cipher block to its logical position. | |
442 | ||
e497c518 GBY |
443 | config CRYPTO_OFB |
444 | tristate "OFB support" | |
b95bba5d | 445 | select CRYPTO_SKCIPHER |
e497c518 GBY |
446 | select CRYPTO_MANAGER |
447 | help | |
448 | OFB: the Output Feedback mode makes a block cipher into a synchronous | |
449 | stream cipher. It generates keystream blocks, which are then XORed | |
450 | with the plaintext blocks to get the ciphertext. Flipping a bit in the | |
451 | ciphertext produces a flipped bit in the plaintext at the same | |
452 | location. This property allows many error correcting codes to function | |
453 | normally even when applied before encryption. | |
454 | ||
584fffc8 SS |
455 | config CRYPTO_PCBC |
456 | tristate "PCBC support" | |
b95bba5d | 457 | select CRYPTO_SKCIPHER |
584fffc8 SS |
458 | select CRYPTO_MANAGER |
459 | help | |
460 | PCBC: Propagating Cipher Block Chaining mode | |
461 | This block cipher algorithm is required for RxRPC. | |
462 | ||
f19f5111 | 463 | config CRYPTO_XTS |
5bcf8e6d | 464 | tristate "XTS support" |
b95bba5d | 465 | select CRYPTO_SKCIPHER |
f19f5111 | 466 | select CRYPTO_MANAGER |
12cb3a1c | 467 | select CRYPTO_ECB |
f19f5111 RS |
468 | help |
469 | XTS: IEEE1619/D16 narrow block cipher use with aes-xts-plain, | |
470 | key size 256, 384 or 512 bits. This implementation currently | |
471 | can't handle a sectorsize which is not a multiple of 16 bytes. | |
472 | ||
1c49678e SM |
473 | config CRYPTO_KEYWRAP |
474 | tristate "Key wrapping support" | |
b95bba5d | 475 | select CRYPTO_SKCIPHER |
c8a3315a | 476 | select CRYPTO_MANAGER |
1c49678e SM |
477 | help |
478 | Support for key wrapping (NIST SP800-38F / RFC3394) without | |
479 | padding. | |
480 | ||
26609a21 EB |
481 | config CRYPTO_NHPOLY1305 |
482 | tristate | |
483 | select CRYPTO_HASH | |
48ea8c6e | 484 | select CRYPTO_LIB_POLY1305_GENERIC |
26609a21 | 485 | |
012c8238 EB |
486 | config CRYPTO_NHPOLY1305_SSE2 |
487 | tristate "NHPoly1305 hash function (x86_64 SSE2 implementation)" | |
488 | depends on X86 && 64BIT | |
489 | select CRYPTO_NHPOLY1305 | |
490 | help | |
491 | SSE2 optimized implementation of the hash function used by the | |
492 | Adiantum encryption mode. | |
493 | ||
0f961f9f EB |
494 | config CRYPTO_NHPOLY1305_AVX2 |
495 | tristate "NHPoly1305 hash function (x86_64 AVX2 implementation)" | |
496 | depends on X86 && 64BIT | |
497 | select CRYPTO_NHPOLY1305 | |
498 | help | |
499 | AVX2 optimized implementation of the hash function used by the | |
500 | Adiantum encryption mode. | |
501 | ||
059c2a4d EB |
502 | config CRYPTO_ADIANTUM |
503 | tristate "Adiantum support" | |
504 | select CRYPTO_CHACHA20 | |
48ea8c6e | 505 | select CRYPTO_LIB_POLY1305_GENERIC |
059c2a4d | 506 | select CRYPTO_NHPOLY1305 |
c8a3315a | 507 | select CRYPTO_MANAGER |
059c2a4d EB |
508 | help |
509 | Adiantum is a tweakable, length-preserving encryption mode | |
510 | designed for fast and secure disk encryption, especially on | |
511 | CPUs without dedicated crypto instructions. It encrypts | |
512 | each sector using the XChaCha12 stream cipher, two passes of | |
513 | an ε-almost-∆-universal hash function, and an invocation of | |
514 | the AES-256 block cipher on a single 16-byte block. On CPUs | |
515 | without AES instructions, Adiantum is much faster than | |
516 | AES-XTS. | |
517 | ||
518 | Adiantum's security is provably reducible to that of its | |
519 | underlying stream and block ciphers, subject to a security | |
520 | bound. Unlike XTS, Adiantum is a true wide-block encryption | |
521 | mode, so it actually provides an even stronger notion of | |
522 | security than XTS, subject to the security bound. | |
523 | ||
524 | If unsure, say N. | |
525 | ||
be1eb7f7 AB |
526 | config CRYPTO_ESSIV |
527 | tristate "ESSIV support for block encryption" | |
528 | select CRYPTO_AUTHENC | |
529 | help | |
530 | Encrypted salt-sector initialization vector (ESSIV) is an IV | |
531 | generation method that is used in some cases by fscrypt and/or | |
532 | dm-crypt. It uses the hash of the block encryption key as the | |
533 | symmetric key for a block encryption pass applied to the input | |
534 | IV, making low entropy IV sources more suitable for block | |
535 | encryption. | |
536 | ||
537 | This driver implements a crypto API template that can be | |
ab3d436b | 538 | instantiated either as an skcipher or as an AEAD (depending on the |
be1eb7f7 AB |
539 | type of the first template argument), and which defers encryption |
540 | and decryption requests to the encapsulated cipher after applying | |
ab3d436b | 541 | ESSIV to the input IV. Note that in the AEAD case, it is assumed |
be1eb7f7 AB |
542 | that the keys are presented in the same format used by the authenc |
543 | template, and that the IV appears at the end of the authenticated | |
544 | associated data (AAD) region (which is how dm-crypt uses it.) | |
545 | ||
546 | Note that the use of ESSIV is not recommended for new deployments, | |
547 | and so this only needs to be enabled when interoperability with | |
548 | existing encrypted volumes of filesystems is required, or when | |
549 | building for a particular system that requires it (e.g., when | |
550 | the SoC in question has accelerated CBC but not XTS, making CBC | |
551 | combined with ESSIV the only feasible mode for h/w accelerated | |
552 | block encryption) | |
553 | ||
584fffc8 SS |
554 | comment "Hash modes" |
555 | ||
93b5e86a JK |
556 | config CRYPTO_CMAC |
557 | tristate "CMAC support" | |
558 | select CRYPTO_HASH | |
559 | select CRYPTO_MANAGER | |
560 | help | |
561 | Cipher-based Message Authentication Code (CMAC) specified by | |
562 | The National Institute of Standards and Technology (NIST). | |
563 | ||
564 | https://tools.ietf.org/html/rfc4493 | |
565 | http://csrc.nist.gov/publications/nistpubs/800-38B/SP_800-38B.pdf | |
566 | ||
584fffc8 SS |
567 | config CRYPTO_HMAC |
568 | tristate "HMAC support" | |
569 | select CRYPTO_HASH | |
23e353c8 | 570 | select CRYPTO_MANAGER |
23e353c8 | 571 | help |
584fffc8 SS |
572 | HMAC: Keyed-Hashing for Message Authentication (RFC2104). |
573 | This is required for IPSec. | |
23e353c8 | 574 | |
584fffc8 SS |
575 | config CRYPTO_XCBC |
576 | tristate "XCBC support" | |
584fffc8 SS |
577 | select CRYPTO_HASH |
578 | select CRYPTO_MANAGER | |
76cb9521 | 579 | help |
584fffc8 | 580 | XCBC: Keyed-Hashing with encryption algorithm |
9332a9e7 | 581 | https://www.ietf.org/rfc/rfc3566.txt |
584fffc8 SS |
582 | http://csrc.nist.gov/encryption/modes/proposedmodes/ |
583 | xcbc-mac/xcbc-mac-spec.pdf | |
76cb9521 | 584 | |
f1939f7c SW |
585 | config CRYPTO_VMAC |
586 | tristate "VMAC support" | |
f1939f7c SW |
587 | select CRYPTO_HASH |
588 | select CRYPTO_MANAGER | |
589 | help | |
590 | VMAC is a message authentication algorithm designed for | |
591 | very high speed on 64-bit architectures. | |
592 | ||
593 | See also: | |
9332a9e7 | 594 | <https://fastcrypto.org/vmac> |
f1939f7c | 595 | |
584fffc8 | 596 | comment "Digest" |
28db8e3e | 597 | |
584fffc8 SS |
598 | config CRYPTO_CRC32C |
599 | tristate "CRC32c CRC algorithm" | |
5773a3e6 | 600 | select CRYPTO_HASH |
6a0962b2 | 601 | select CRC32 |
4a49b499 | 602 | help |
584fffc8 SS |
603 | Castagnoli, et al Cyclic Redundancy-Check Algorithm. Used |
604 | by iSCSI for header and data digests and by others. | |
69c35efc | 605 | See Castagnoli93. Module will be crc32c. |
4a49b499 | 606 | |
8cb51ba8 AZ |
607 | config CRYPTO_CRC32C_INTEL |
608 | tristate "CRC32c INTEL hardware acceleration" | |
609 | depends on X86 | |
610 | select CRYPTO_HASH | |
611 | help | |
612 | In Intel processor with SSE4.2 supported, the processor will | |
613 | support CRC32C implementation using hardware accelerated CRC32 | |
614 | instruction. This option will create 'crc32c-intel' module, | |
615 | which will enable any routine to use the CRC32 instruction to | |
616 | gain performance compared with software implementation. | |
617 | Module will be crc32c-intel. | |
618 | ||
7cf31864 | 619 | config CRYPTO_CRC32C_VPMSUM |
6dd7a82c | 620 | tristate "CRC32c CRC algorithm (powerpc64)" |
c12abf34 | 621 | depends on PPC64 && ALTIVEC |
6dd7a82c AB |
622 | select CRYPTO_HASH |
623 | select CRC32 | |
624 | help | |
625 | CRC32c algorithm implemented using vector polynomial multiply-sum | |
626 | (vpmsum) instructions, introduced in POWER8. Enable on POWER8 | |
627 | and newer processors for improved performance. | |
628 | ||
629 | ||
442a7c40 DM |
630 | config CRYPTO_CRC32C_SPARC64 |
631 | tristate "CRC32c CRC algorithm (SPARC64)" | |
632 | depends on SPARC64 | |
633 | select CRYPTO_HASH | |
634 | select CRC32 | |
635 | help | |
636 | CRC32c CRC algorithm implemented using sparc64 crypto instructions, | |
637 | when available. | |
638 | ||
78c37d19 AB |
639 | config CRYPTO_CRC32 |
640 | tristate "CRC32 CRC algorithm" | |
641 | select CRYPTO_HASH | |
642 | select CRC32 | |
643 | help | |
644 | CRC-32-IEEE 802.3 cyclic redundancy-check algorithm. | |
645 | Shash crypto api wrappers to crc32_le function. | |
646 | ||
647 | config CRYPTO_CRC32_PCLMUL | |
648 | tristate "CRC32 PCLMULQDQ hardware acceleration" | |
649 | depends on X86 | |
650 | select CRYPTO_HASH | |
651 | select CRC32 | |
652 | help | |
653 | From Intel Westmere and AMD Bulldozer processor with SSE4.2 | |
654 | and PCLMULQDQ supported, the processor will support | |
655 | CRC32 PCLMULQDQ implementation using hardware accelerated PCLMULQDQ | |
af8cb01f | 656 | instruction. This option will create 'crc32-pclmul' module, |
78c37d19 AB |
657 | which will enable any routine to use the CRC-32-IEEE 802.3 checksum |
658 | and gain better performance as compared with the table implementation. | |
659 | ||
4a5dc51e MN |
660 | config CRYPTO_CRC32_MIPS |
661 | tristate "CRC32c and CRC32 CRC algorithm (MIPS)" | |
662 | depends on MIPS_CRC_SUPPORT | |
663 | select CRYPTO_HASH | |
664 | help | |
665 | CRC32c and CRC32 CRC algorithms implemented using mips crypto | |
666 | instructions, when available. | |
667 | ||
668 | ||
67882e76 NB |
669 | config CRYPTO_XXHASH |
670 | tristate "xxHash hash algorithm" | |
671 | select CRYPTO_HASH | |
672 | select XXHASH | |
673 | help | |
674 | xxHash non-cryptographic hash algorithm. Extremely fast, working at | |
675 | speeds close to RAM limits. | |
676 | ||
91d68933 DS |
677 | config CRYPTO_BLAKE2B |
678 | tristate "BLAKE2b digest algorithm" | |
679 | select CRYPTO_HASH | |
680 | help | |
681 | Implementation of cryptographic hash function BLAKE2b (or just BLAKE2), | |
682 | optimized for 64bit platforms and can produce digests of any size | |
683 | between 1 to 64. The keyed hash is also implemented. | |
684 | ||
685 | This module provides the following algorithms: | |
686 | ||
687 | - blake2b-160 | |
688 | - blake2b-256 | |
689 | - blake2b-384 | |
690 | - blake2b-512 | |
691 | ||
692 | See https://blake2.net for further information. | |
693 | ||
7f9b0880 AB |
694 | config CRYPTO_BLAKE2S |
695 | tristate "BLAKE2s digest algorithm" | |
696 | select CRYPTO_LIB_BLAKE2S_GENERIC | |
697 | select CRYPTO_HASH | |
698 | help | |
699 | Implementation of cryptographic hash function BLAKE2s | |
700 | optimized for 8-32bit platforms and can produce digests of any size | |
701 | between 1 to 32. The keyed hash is also implemented. | |
702 | ||
703 | This module provides the following algorithms: | |
704 | ||
705 | - blake2s-128 | |
706 | - blake2s-160 | |
707 | - blake2s-224 | |
708 | - blake2s-256 | |
709 | ||
710 | See https://blake2.net for further information. | |
711 | ||
ed0356ed JD |
712 | config CRYPTO_BLAKE2S_X86 |
713 | tristate "BLAKE2s digest algorithm (x86 accelerated version)" | |
714 | depends on X86 && 64BIT | |
715 | select CRYPTO_LIB_BLAKE2S_GENERIC | |
716 | select CRYPTO_ARCH_HAVE_LIB_BLAKE2S | |
717 | ||
68411521 HX |
718 | config CRYPTO_CRCT10DIF |
719 | tristate "CRCT10DIF algorithm" | |
720 | select CRYPTO_HASH | |
721 | help | |
722 | CRC T10 Data Integrity Field computation is being cast as | |
723 | a crypto transform. This allows for faster crc t10 diff | |
724 | transforms to be used if they are available. | |
725 | ||
726 | config CRYPTO_CRCT10DIF_PCLMUL | |
727 | tristate "CRCT10DIF PCLMULQDQ hardware acceleration" | |
728 | depends on X86 && 64BIT && CRC_T10DIF | |
729 | select CRYPTO_HASH | |
730 | help | |
731 | For x86_64 processors with SSE4.2 and PCLMULQDQ supported, | |
732 | CRC T10 DIF PCLMULQDQ computation can be hardware | |
733 | accelerated PCLMULQDQ instruction. This option will create | |
af8cb01f | 734 | 'crct10dif-pclmul' module, which is faster when computing the |
68411521 HX |
735 | crct10dif checksum as compared with the generic table implementation. |
736 | ||
b01df1c1 DA |
737 | config CRYPTO_CRCT10DIF_VPMSUM |
738 | tristate "CRC32T10DIF powerpc64 hardware acceleration" | |
739 | depends on PPC64 && ALTIVEC && CRC_T10DIF | |
740 | select CRYPTO_HASH | |
741 | help | |
742 | CRC10T10DIF algorithm implemented using vector polynomial | |
743 | multiply-sum (vpmsum) instructions, introduced in POWER8. Enable on | |
744 | POWER8 and newer processors for improved performance. | |
745 | ||
f3813f4b KB |
746 | config CRYPTO_CRC64_ROCKSOFT |
747 | tristate "Rocksoft Model CRC64 algorithm" | |
748 | depends on CRC64 | |
749 | select CRYPTO_HASH | |
750 | ||
146c8688 DA |
751 | config CRYPTO_VPMSUM_TESTER |
752 | tristate "Powerpc64 vpmsum hardware acceleration tester" | |
753 | depends on CRYPTO_CRCT10DIF_VPMSUM && CRYPTO_CRC32C_VPMSUM | |
754 | help | |
755 | Stress test for CRC32c and CRC-T10DIF algorithms implemented with | |
756 | POWER8 vpmsum instructions. | |
757 | Unless you are testing these algorithms, you don't need this. | |
758 | ||
2cdc6899 | 759 | config CRYPTO_GHASH |
8dfa20fc | 760 | tristate "GHASH hash function" |
2cdc6899 | 761 | select CRYPTO_GF128MUL |
578c60fb | 762 | select CRYPTO_HASH |
2cdc6899 | 763 | help |
8dfa20fc EB |
764 | GHASH is the hash function used in GCM (Galois/Counter Mode). |
765 | It is not a general-purpose cryptographic hash function. | |
2cdc6899 | 766 | |
f979e014 MW |
767 | config CRYPTO_POLY1305 |
768 | tristate "Poly1305 authenticator algorithm" | |
578c60fb | 769 | select CRYPTO_HASH |
48ea8c6e | 770 | select CRYPTO_LIB_POLY1305_GENERIC |
f979e014 MW |
771 | help |
772 | Poly1305 authenticator algorithm, RFC7539. | |
773 | ||
774 | Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein. | |
775 | It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use | |
776 | in IETF protocols. This is the portable C implementation of Poly1305. | |
777 | ||
c70f4abe | 778 | config CRYPTO_POLY1305_X86_64 |
b1ccc8f4 | 779 | tristate "Poly1305 authenticator algorithm (x86_64/SSE2/AVX2)" |
c70f4abe | 780 | depends on X86 && 64BIT |
1b2c6a51 | 781 | select CRYPTO_LIB_POLY1305_GENERIC |
f0e89bcf | 782 | select CRYPTO_ARCH_HAVE_LIB_POLY1305 |
c70f4abe MW |
783 | help |
784 | Poly1305 authenticator algorithm, RFC7539. | |
785 | ||
786 | Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein. | |
787 | It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use | |
788 | in IETF protocols. This is the x86_64 assembler implementation using SIMD | |
789 | instructions. | |
790 | ||
a11d055e AB |
791 | config CRYPTO_POLY1305_MIPS |
792 | tristate "Poly1305 authenticator algorithm (MIPS optimized)" | |
6c810cf2 | 793 | depends on MIPS |
a11d055e AB |
794 | select CRYPTO_ARCH_HAVE_LIB_POLY1305 |
795 | ||
584fffc8 SS |
796 | config CRYPTO_MD4 |
797 | tristate "MD4 digest algorithm" | |
808a1763 | 798 | select CRYPTO_HASH |
124b53d0 | 799 | help |
584fffc8 | 800 | MD4 message digest algorithm (RFC1320). |
124b53d0 | 801 | |
584fffc8 SS |
802 | config CRYPTO_MD5 |
803 | tristate "MD5 digest algorithm" | |
14b75ba7 | 804 | select CRYPTO_HASH |
1da177e4 | 805 | help |
584fffc8 | 806 | MD5 message digest algorithm (RFC1321). |
1da177e4 | 807 | |
d69e75de AK |
808 | config CRYPTO_MD5_OCTEON |
809 | tristate "MD5 digest algorithm (OCTEON)" | |
810 | depends on CPU_CAVIUM_OCTEON | |
811 | select CRYPTO_MD5 | |
812 | select CRYPTO_HASH | |
813 | help | |
814 | MD5 message digest algorithm (RFC1321) implemented | |
815 | using OCTEON crypto instructions, when available. | |
816 | ||
e8e59953 MS |
817 | config CRYPTO_MD5_PPC |
818 | tristate "MD5 digest algorithm (PPC)" | |
819 | depends on PPC | |
820 | select CRYPTO_HASH | |
821 | help | |
822 | MD5 message digest algorithm (RFC1321) implemented | |
823 | in PPC assembler. | |
824 | ||
fa4dfedc DM |
825 | config CRYPTO_MD5_SPARC64 |
826 | tristate "MD5 digest algorithm (SPARC64)" | |
827 | depends on SPARC64 | |
828 | select CRYPTO_MD5 | |
829 | select CRYPTO_HASH | |
830 | help | |
831 | MD5 message digest algorithm (RFC1321) implemented | |
832 | using sparc64 crypto instructions, when available. | |
833 | ||
584fffc8 SS |
834 | config CRYPTO_MICHAEL_MIC |
835 | tristate "Michael MIC keyed digest algorithm" | |
19e2bf14 | 836 | select CRYPTO_HASH |
90831639 | 837 | help |
584fffc8 SS |
838 | Michael MIC is used for message integrity protection in TKIP |
839 | (IEEE 802.11i). This algorithm is required for TKIP, but it | |
840 | should not be used for other purposes because of the weakness | |
841 | of the algorithm. | |
90831639 | 842 | |
82798f90 | 843 | config CRYPTO_RMD160 |
b6d44341 | 844 | tristate "RIPEMD-160 digest algorithm" |
e5835fba | 845 | select CRYPTO_HASH |
b6d44341 AB |
846 | help |
847 | RIPEMD-160 (ISO/IEC 10118-3:2004). | |
82798f90 | 848 | |
b6d44341 AB |
849 | RIPEMD-160 is a 160-bit cryptographic hash function. It is intended |
850 | to be used as a secure replacement for the 128-bit hash functions | |
851 | MD4, MD5 and it's predecessor RIPEMD | |
852 | (not to be confused with RIPEMD-128). | |
82798f90 | 853 | |
b6d44341 AB |
854 | It's speed is comparable to SHA1 and there are no known attacks |
855 | against RIPEMD-160. | |
534fe2c1 | 856 | |
b6d44341 | 857 | Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel. |
9332a9e7 | 858 | See <https://homes.esat.kuleuven.be/~bosselae/ripemd160.html> |
534fe2c1 | 859 | |
584fffc8 SS |
860 | config CRYPTO_SHA1 |
861 | tristate "SHA1 digest algorithm" | |
54ccb367 | 862 | select CRYPTO_HASH |
1da177e4 | 863 | help |
584fffc8 | 864 | SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2). |
1da177e4 | 865 | |
66be8951 | 866 | config CRYPTO_SHA1_SSSE3 |
e38b6b7f | 867 | tristate "SHA1 digest algorithm (SSSE3/AVX/AVX2/SHA-NI)" |
66be8951 MK |
868 | depends on X86 && 64BIT |
869 | select CRYPTO_SHA1 | |
870 | select CRYPTO_HASH | |
871 | help | |
872 | SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented | |
873 | using Supplemental SSE3 (SSSE3) instructions or Advanced Vector | |
e38b6b7f | 874 | Extensions (AVX/AVX2) or SHA-NI(SHA Extensions New Instructions), |
875 | when available. | |
66be8951 | 876 | |
8275d1aa | 877 | config CRYPTO_SHA256_SSSE3 |
e38b6b7f | 878 | tristate "SHA256 digest algorithm (SSSE3/AVX/AVX2/SHA-NI)" |
8275d1aa TC |
879 | depends on X86 && 64BIT |
880 | select CRYPTO_SHA256 | |
881 | select CRYPTO_HASH | |
882 | help | |
883 | SHA-256 secure hash standard (DFIPS 180-2) implemented | |
884 | using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector | |
885 | Extensions version 1 (AVX1), or Advanced Vector Extensions | |
e38b6b7f | 886 | version 2 (AVX2) instructions, or SHA-NI (SHA Extensions New |
887 | Instructions) when available. | |
87de4579 TC |
888 | |
889 | config CRYPTO_SHA512_SSSE3 | |
890 | tristate "SHA512 digest algorithm (SSSE3/AVX/AVX2)" | |
891 | depends on X86 && 64BIT | |
892 | select CRYPTO_SHA512 | |
893 | select CRYPTO_HASH | |
894 | help | |
895 | SHA-512 secure hash standard (DFIPS 180-2) implemented | |
896 | using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector | |
897 | Extensions version 1 (AVX1), or Advanced Vector Extensions | |
8275d1aa TC |
898 | version 2 (AVX2) instructions, when available. |
899 | ||
efdb6f6e AK |
900 | config CRYPTO_SHA1_OCTEON |
901 | tristate "SHA1 digest algorithm (OCTEON)" | |
902 | depends on CPU_CAVIUM_OCTEON | |
903 | select CRYPTO_SHA1 | |
904 | select CRYPTO_HASH | |
905 | help | |
906 | SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented | |
907 | using OCTEON crypto instructions, when available. | |
908 | ||
4ff28d4c DM |
909 | config CRYPTO_SHA1_SPARC64 |
910 | tristate "SHA1 digest algorithm (SPARC64)" | |
911 | depends on SPARC64 | |
912 | select CRYPTO_SHA1 | |
913 | select CRYPTO_HASH | |
914 | help | |
915 | SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented | |
916 | using sparc64 crypto instructions, when available. | |
917 | ||
323a6bf1 ME |
918 | config CRYPTO_SHA1_PPC |
919 | tristate "SHA1 digest algorithm (powerpc)" | |
920 | depends on PPC | |
921 | help | |
922 | This is the powerpc hardware accelerated implementation of the | |
923 | SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2). | |
924 | ||
d9850fc5 MS |
925 | config CRYPTO_SHA1_PPC_SPE |
926 | tristate "SHA1 digest algorithm (PPC SPE)" | |
927 | depends on PPC && SPE | |
928 | help | |
929 | SHA-1 secure hash standard (DFIPS 180-4) implemented | |
930 | using powerpc SPE SIMD instruction set. | |
931 | ||
584fffc8 SS |
932 | config CRYPTO_SHA256 |
933 | tristate "SHA224 and SHA256 digest algorithm" | |
50e109b5 | 934 | select CRYPTO_HASH |
08c327f6 | 935 | select CRYPTO_LIB_SHA256 |
1da177e4 | 936 | help |
584fffc8 | 937 | SHA256 secure hash standard (DFIPS 180-2). |
1da177e4 | 938 | |
584fffc8 SS |
939 | This version of SHA implements a 256 bit hash with 128 bits of |
940 | security against collision attacks. | |
2729bb42 | 941 | |
b6d44341 AB |
942 | This code also includes SHA-224, a 224 bit hash with 112 bits |
943 | of security against collision attacks. | |
584fffc8 | 944 | |
2ecc1e95 MS |
945 | config CRYPTO_SHA256_PPC_SPE |
946 | tristate "SHA224 and SHA256 digest algorithm (PPC SPE)" | |
947 | depends on PPC && SPE | |
948 | select CRYPTO_SHA256 | |
949 | select CRYPTO_HASH | |
950 | help | |
951 | SHA224 and SHA256 secure hash standard (DFIPS 180-2) | |
952 | implemented using powerpc SPE SIMD instruction set. | |
953 | ||
efdb6f6e AK |
954 | config CRYPTO_SHA256_OCTEON |
955 | tristate "SHA224 and SHA256 digest algorithm (OCTEON)" | |
956 | depends on CPU_CAVIUM_OCTEON | |
957 | select CRYPTO_SHA256 | |
958 | select CRYPTO_HASH | |
959 | help | |
960 | SHA-256 secure hash standard (DFIPS 180-2) implemented | |
961 | using OCTEON crypto instructions, when available. | |
962 | ||
86c93b24 DM |
963 | config CRYPTO_SHA256_SPARC64 |
964 | tristate "SHA224 and SHA256 digest algorithm (SPARC64)" | |
965 | depends on SPARC64 | |
966 | select CRYPTO_SHA256 | |
967 | select CRYPTO_HASH | |
968 | help | |
969 | SHA-256 secure hash standard (DFIPS 180-2) implemented | |
970 | using sparc64 crypto instructions, when available. | |
971 | ||
584fffc8 SS |
972 | config CRYPTO_SHA512 |
973 | tristate "SHA384 and SHA512 digest algorithms" | |
bd9d20db | 974 | select CRYPTO_HASH |
b9f535ff | 975 | help |
584fffc8 | 976 | SHA512 secure hash standard (DFIPS 180-2). |
b9f535ff | 977 | |
584fffc8 SS |
978 | This version of SHA implements a 512 bit hash with 256 bits of |
979 | security against collision attacks. | |
b9f535ff | 980 | |
584fffc8 SS |
981 | This code also includes SHA-384, a 384 bit hash with 192 bits |
982 | of security against collision attacks. | |
b9f535ff | 983 | |
efdb6f6e AK |
984 | config CRYPTO_SHA512_OCTEON |
985 | tristate "SHA384 and SHA512 digest algorithms (OCTEON)" | |
986 | depends on CPU_CAVIUM_OCTEON | |
987 | select CRYPTO_SHA512 | |
988 | select CRYPTO_HASH | |
989 | help | |
990 | SHA-512 secure hash standard (DFIPS 180-2) implemented | |
991 | using OCTEON crypto instructions, when available. | |
992 | ||
775e0c69 DM |
993 | config CRYPTO_SHA512_SPARC64 |
994 | tristate "SHA384 and SHA512 digest algorithm (SPARC64)" | |
995 | depends on SPARC64 | |
996 | select CRYPTO_SHA512 | |
997 | select CRYPTO_HASH | |
998 | help | |
999 | SHA-512 secure hash standard (DFIPS 180-2) implemented | |
1000 | using sparc64 crypto instructions, when available. | |
1001 | ||
53964b9e JG |
1002 | config CRYPTO_SHA3 |
1003 | tristate "SHA3 digest algorithm" | |
1004 | select CRYPTO_HASH | |
1005 | help | |
1006 | SHA-3 secure hash standard (DFIPS 202). It's based on | |
1007 | cryptographic sponge function family called Keccak. | |
1008 | ||
1009 | References: | |
1010 | http://keccak.noekeon.org/ | |
1011 | ||
4f0fc160 | 1012 | config CRYPTO_SM3 |
d2825fa9 JD |
1013 | tristate |
1014 | ||
1015 | config CRYPTO_SM3_GENERIC | |
4f0fc160 GBY |
1016 | tristate "SM3 digest algorithm" |
1017 | select CRYPTO_HASH | |
d2825fa9 | 1018 | select CRYPTO_SM3 |
4f0fc160 GBY |
1019 | help |
1020 | SM3 secure hash function as defined by OSCCA GM/T 0004-2012 SM3). | |
1021 | It is part of the Chinese Commercial Cryptography suite. | |
1022 | ||
1023 | References: | |
1024 | http://www.oscca.gov.cn/UpFile/20101222141857786.pdf | |
1025 | https://datatracker.ietf.org/doc/html/draft-shen-sm3-hash | |
1026 | ||
930ab34d TZ |
1027 | config CRYPTO_SM3_AVX_X86_64 |
1028 | tristate "SM3 digest algorithm (x86_64/AVX)" | |
1029 | depends on X86 && 64BIT | |
1030 | select CRYPTO_HASH | |
d2825fa9 | 1031 | select CRYPTO_SM3 |
930ab34d TZ |
1032 | help |
1033 | SM3 secure hash function as defined by OSCCA GM/T 0004-2012 SM3). | |
1034 | It is part of the Chinese Commercial Cryptography suite. This is | |
1035 | SM3 optimized implementation using Advanced Vector Extensions (AVX) | |
1036 | when available. | |
1037 | ||
1038 | If unsure, say N. | |
1039 | ||
fe18957e VC |
1040 | config CRYPTO_STREEBOG |
1041 | tristate "Streebog Hash Function" | |
1042 | select CRYPTO_HASH | |
1043 | help | |
1044 | Streebog Hash Function (GOST R 34.11-2012, RFC 6986) is one of the Russian | |
1045 | cryptographic standard algorithms (called GOST algorithms). | |
1046 | This setting enables two hash algorithms with 256 and 512 bits output. | |
1047 | ||
1048 | References: | |
1049 | https://tc26.ru/upload/iblock/fed/feddbb4d26b685903faa2ba11aea43f6.pdf | |
1050 | https://tools.ietf.org/html/rfc6986 | |
1051 | ||
584fffc8 SS |
1052 | config CRYPTO_WP512 |
1053 | tristate "Whirlpool digest algorithms" | |
4946510b | 1054 | select CRYPTO_HASH |
1da177e4 | 1055 | help |
584fffc8 | 1056 | Whirlpool hash algorithm 512, 384 and 256-bit hashes |
1da177e4 | 1057 | |
584fffc8 SS |
1058 | Whirlpool-512 is part of the NESSIE cryptographic primitives. |
1059 | Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard | |
1da177e4 LT |
1060 | |
1061 | See also: | |
6d8de74c | 1062 | <http://www.larc.usp.br/~pbarreto/WhirlpoolPage.html> |
584fffc8 | 1063 | |
0e1227d3 | 1064 | config CRYPTO_GHASH_CLMUL_NI_INTEL |
8dfa20fc | 1065 | tristate "GHASH hash function (CLMUL-NI accelerated)" |
8af00860 | 1066 | depends on X86 && 64BIT |
0e1227d3 HY |
1067 | select CRYPTO_CRYPTD |
1068 | help | |
8dfa20fc EB |
1069 | This is the x86_64 CLMUL-NI accelerated implementation of |
1070 | GHASH, the hash function used in GCM (Galois/Counter mode). | |
0e1227d3 | 1071 | |
584fffc8 | 1072 | comment "Ciphers" |
1da177e4 LT |
1073 | |
1074 | config CRYPTO_AES | |
1075 | tristate "AES cipher algorithms" | |
cce9e06d | 1076 | select CRYPTO_ALGAPI |
5bb12d78 | 1077 | select CRYPTO_LIB_AES |
1da177e4 | 1078 | help |
584fffc8 | 1079 | AES cipher algorithms (FIPS-197). AES uses the Rijndael |
1da177e4 LT |
1080 | algorithm. |
1081 | ||
1082 | Rijndael appears to be consistently a very good performer in | |
584fffc8 SS |
1083 | both hardware and software across a wide range of computing |
1084 | environments regardless of its use in feedback or non-feedback | |
1085 | modes. Its key setup time is excellent, and its key agility is | |
1086 | good. Rijndael's very low memory requirements make it very well | |
1087 | suited for restricted-space environments, in which it also | |
1088 | demonstrates excellent performance. Rijndael's operations are | |
1089 | among the easiest to defend against power and timing attacks. | |
1da177e4 | 1090 | |
584fffc8 | 1091 | The AES specifies three key sizes: 128, 192 and 256 bits |
1da177e4 LT |
1092 | |
1093 | See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information. | |
1094 | ||
b5e0b032 AB |
1095 | config CRYPTO_AES_TI |
1096 | tristate "Fixed time AES cipher" | |
1097 | select CRYPTO_ALGAPI | |
e59c1c98 | 1098 | select CRYPTO_LIB_AES |
b5e0b032 AB |
1099 | help |
1100 | This is a generic implementation of AES that attempts to eliminate | |
1101 | data dependent latencies as much as possible without affecting | |
1102 | performance too much. It is intended for use by the generic CCM | |
1103 | and GCM drivers, and other CTR or CMAC/XCBC based modes that rely | |
1104 | solely on encryption (although decryption is supported as well, but | |
1105 | with a more dramatic performance hit) | |
1106 | ||
1107 | Instead of using 16 lookup tables of 1 KB each, (8 for encryption and | |
1108 | 8 for decryption), this implementation only uses just two S-boxes of | |
1109 | 256 bytes each, and attempts to eliminate data dependent latencies by | |
1110 | prefetching the entire table into the cache at the start of each | |
0a6a40c2 EB |
1111 | block. Interrupts are also disabled to avoid races where cachelines |
1112 | are evicted when the CPU is interrupted to do something else. | |
b5e0b032 | 1113 | |
54b6a1bd HY |
1114 | config CRYPTO_AES_NI_INTEL |
1115 | tristate "AES cipher algorithms (AES-NI)" | |
8af00860 | 1116 | depends on X86 |
85671860 | 1117 | select CRYPTO_AEAD |
2c53fd11 | 1118 | select CRYPTO_LIB_AES |
54b6a1bd | 1119 | select CRYPTO_ALGAPI |
b95bba5d | 1120 | select CRYPTO_SKCIPHER |
85671860 | 1121 | select CRYPTO_SIMD |
54b6a1bd HY |
1122 | help |
1123 | Use Intel AES-NI instructions for AES algorithm. | |
1124 | ||
1125 | AES cipher algorithms (FIPS-197). AES uses the Rijndael | |
1126 | algorithm. | |
1127 | ||
1128 | Rijndael appears to be consistently a very good performer in | |
1129 | both hardware and software across a wide range of computing | |
1130 | environments regardless of its use in feedback or non-feedback | |
1131 | modes. Its key setup time is excellent, and its key agility is | |
584fffc8 SS |
1132 | good. Rijndael's very low memory requirements make it very well |
1133 | suited for restricted-space environments, in which it also | |
1134 | demonstrates excellent performance. Rijndael's operations are | |
1135 | among the easiest to defend against power and timing attacks. | |
a2a892a2 | 1136 | |
584fffc8 | 1137 | The AES specifies three key sizes: 128, 192 and 256 bits |
1da177e4 LT |
1138 | |
1139 | See <http://csrc.nist.gov/encryption/aes/> for more information. | |
1140 | ||
0d258efb MK |
1141 | In addition to AES cipher algorithm support, the acceleration |
1142 | for some popular block cipher mode is supported too, including | |
944585a6 | 1143 | ECB, CBC, LRW, XTS. The 64 bit version has additional |
0d258efb | 1144 | acceleration for CTR. |
2cf4ac8b | 1145 | |
9bf4852d DM |
1146 | config CRYPTO_AES_SPARC64 |
1147 | tristate "AES cipher algorithms (SPARC64)" | |
1148 | depends on SPARC64 | |
b95bba5d | 1149 | select CRYPTO_SKCIPHER |
9bf4852d DM |
1150 | help |
1151 | Use SPARC64 crypto opcodes for AES algorithm. | |
1152 | ||
1153 | AES cipher algorithms (FIPS-197). AES uses the Rijndael | |
1154 | algorithm. | |
1155 | ||
1156 | Rijndael appears to be consistently a very good performer in | |
1157 | both hardware and software across a wide range of computing | |
1158 | environments regardless of its use in feedback or non-feedback | |
1159 | modes. Its key setup time is excellent, and its key agility is | |
1160 | good. Rijndael's very low memory requirements make it very well | |
1161 | suited for restricted-space environments, in which it also | |
1162 | demonstrates excellent performance. Rijndael's operations are | |
1163 | among the easiest to defend against power and timing attacks. | |
1164 | ||
1165 | The AES specifies three key sizes: 128, 192 and 256 bits | |
1166 | ||
1167 | See <http://csrc.nist.gov/encryption/aes/> for more information. | |
1168 | ||
1169 | In addition to AES cipher algorithm support, the acceleration | |
1170 | for some popular block cipher mode is supported too, including | |
1171 | ECB and CBC. | |
1172 | ||
504c6143 MS |
1173 | config CRYPTO_AES_PPC_SPE |
1174 | tristate "AES cipher algorithms (PPC SPE)" | |
1175 | depends on PPC && SPE | |
b95bba5d | 1176 | select CRYPTO_SKCIPHER |
504c6143 MS |
1177 | help |
1178 | AES cipher algorithms (FIPS-197). Additionally the acceleration | |
1179 | for popular block cipher modes ECB, CBC, CTR and XTS is supported. | |
1180 | This module should only be used for low power (router) devices | |
1181 | without hardware AES acceleration (e.g. caam crypto). It reduces the | |
1182 | size of the AES tables from 16KB to 8KB + 256 bytes and mitigates | |
1183 | timining attacks. Nevertheless it might be not as secure as other | |
1184 | architecture specific assembler implementations that work on 1KB | |
1185 | tables or 256 bytes S-boxes. | |
1186 | ||
584fffc8 SS |
1187 | config CRYPTO_ANUBIS |
1188 | tristate "Anubis cipher algorithm" | |
1674aea5 | 1189 | depends on CRYPTO_USER_API_ENABLE_OBSOLETE |
584fffc8 SS |
1190 | select CRYPTO_ALGAPI |
1191 | help | |
1192 | Anubis cipher algorithm. | |
1193 | ||
1194 | Anubis is a variable key length cipher which can use keys from | |
1195 | 128 bits to 320 bits in length. It was evaluated as a entrant | |
1196 | in the NESSIE competition. | |
1197 | ||
1198 | See also: | |
6d8de74c JM |
1199 | <https://www.cosic.esat.kuleuven.be/nessie/reports/> |
1200 | <http://www.larc.usp.br/~pbarreto/AnubisPage.html> | |
584fffc8 SS |
1201 | |
1202 | config CRYPTO_ARC4 | |
1203 | tristate "ARC4 cipher algorithm" | |
9ace6771 | 1204 | depends on CRYPTO_USER_API_ENABLE_OBSOLETE |
b95bba5d | 1205 | select CRYPTO_SKCIPHER |
dc51f257 | 1206 | select CRYPTO_LIB_ARC4 |
584fffc8 SS |
1207 | help |
1208 | ARC4 cipher algorithm. | |
1209 | ||
1210 | ARC4 is a stream cipher using keys ranging from 8 bits to 2048 | |
1211 | bits in length. This algorithm is required for driver-based | |
1212 | WEP, but it should not be for other purposes because of the | |
1213 | weakness of the algorithm. | |
1214 | ||
1215 | config CRYPTO_BLOWFISH | |
1216 | tristate "Blowfish cipher algorithm" | |
1217 | select CRYPTO_ALGAPI | |
52ba867c | 1218 | select CRYPTO_BLOWFISH_COMMON |
584fffc8 SS |
1219 | help |
1220 | Blowfish cipher algorithm, by Bruce Schneier. | |
1221 | ||
1222 | This is a variable key length cipher which can use keys from 32 | |
1223 | bits to 448 bits in length. It's fast, simple and specifically | |
1224 | designed for use on "large microprocessors". | |
1225 | ||
1226 | See also: | |
9332a9e7 | 1227 | <https://www.schneier.com/blowfish.html> |
584fffc8 | 1228 | |
52ba867c JK |
1229 | config CRYPTO_BLOWFISH_COMMON |
1230 | tristate | |
1231 | help | |
1232 | Common parts of the Blowfish cipher algorithm shared by the | |
1233 | generic c and the assembler implementations. | |
1234 | ||
1235 | See also: | |
9332a9e7 | 1236 | <https://www.schneier.com/blowfish.html> |
52ba867c | 1237 | |
64b94cea JK |
1238 | config CRYPTO_BLOWFISH_X86_64 |
1239 | tristate "Blowfish cipher algorithm (x86_64)" | |
f21a7c19 | 1240 | depends on X86 && 64BIT |
b95bba5d | 1241 | select CRYPTO_SKCIPHER |
64b94cea | 1242 | select CRYPTO_BLOWFISH_COMMON |
c0a64926 | 1243 | imply CRYPTO_CTR |
64b94cea JK |
1244 | help |
1245 | Blowfish cipher algorithm (x86_64), by Bruce Schneier. | |
1246 | ||
1247 | This is a variable key length cipher which can use keys from 32 | |
1248 | bits to 448 bits in length. It's fast, simple and specifically | |
1249 | designed for use on "large microprocessors". | |
1250 | ||
1251 | See also: | |
9332a9e7 | 1252 | <https://www.schneier.com/blowfish.html> |
64b94cea | 1253 | |
584fffc8 SS |
1254 | config CRYPTO_CAMELLIA |
1255 | tristate "Camellia cipher algorithms" | |
584fffc8 SS |
1256 | select CRYPTO_ALGAPI |
1257 | help | |
1258 | Camellia cipher algorithms module. | |
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 | ||
0b95ec56 JK |
1268 | config CRYPTO_CAMELLIA_X86_64 |
1269 | tristate "Camellia cipher algorithm (x86_64)" | |
f21a7c19 | 1270 | depends on X86 && 64BIT |
b95bba5d | 1271 | select CRYPTO_SKCIPHER |
a1f91ecf | 1272 | imply CRYPTO_CTR |
0b95ec56 JK |
1273 | help |
1274 | Camellia cipher algorithm module (x86_64). | |
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: | |
d9b1d2e7 JK |
1282 | <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html> |
1283 | ||
1284 | config CRYPTO_CAMELLIA_AESNI_AVX_X86_64 | |
1285 | tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX)" | |
1286 | depends on X86 && 64BIT | |
b95bba5d | 1287 | select CRYPTO_SKCIPHER |
d9b1d2e7 | 1288 | select CRYPTO_CAMELLIA_X86_64 |
44893bc2 | 1289 | select CRYPTO_SIMD |
55a7e88f | 1290 | imply CRYPTO_XTS |
d9b1d2e7 JK |
1291 | help |
1292 | Camellia cipher algorithm module (x86_64/AES-NI/AVX). | |
1293 | ||
1294 | Camellia is a symmetric key block cipher developed jointly | |
1295 | at NTT and Mitsubishi Electric Corporation. | |
1296 | ||
1297 | The Camellia specifies three key sizes: 128, 192 and 256 bits. | |
1298 | ||
1299 | See also: | |
0b95ec56 JK |
1300 | <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html> |
1301 | ||
f3f935a7 JK |
1302 | config CRYPTO_CAMELLIA_AESNI_AVX2_X86_64 |
1303 | tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX2)" | |
1304 | depends on X86 && 64BIT | |
f3f935a7 | 1305 | select CRYPTO_CAMELLIA_AESNI_AVX_X86_64 |
f3f935a7 JK |
1306 | help |
1307 | Camellia cipher algorithm module (x86_64/AES-NI/AVX2). | |
1308 | ||
1309 | Camellia is a symmetric key block cipher developed jointly | |
1310 | at NTT and Mitsubishi Electric Corporation. | |
1311 | ||
1312 | The Camellia specifies three key sizes: 128, 192 and 256 bits. | |
1313 | ||
1314 | See also: | |
1315 | <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html> | |
1316 | ||
81658ad0 DM |
1317 | config CRYPTO_CAMELLIA_SPARC64 |
1318 | tristate "Camellia cipher algorithm (SPARC64)" | |
1319 | depends on SPARC64 | |
81658ad0 | 1320 | select CRYPTO_ALGAPI |
b95bba5d | 1321 | select CRYPTO_SKCIPHER |
81658ad0 DM |
1322 | help |
1323 | Camellia cipher algorithm module (SPARC64). | |
1324 | ||
1325 | Camellia is a symmetric key block cipher developed jointly | |
1326 | at NTT and Mitsubishi Electric Corporation. | |
1327 | ||
1328 | The Camellia specifies three key sizes: 128, 192 and 256 bits. | |
1329 | ||
1330 | See also: | |
1331 | <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html> | |
1332 | ||
044ab525 JK |
1333 | config CRYPTO_CAST_COMMON |
1334 | tristate | |
1335 | help | |
1336 | Common parts of the CAST cipher algorithms shared by the | |
1337 | generic c and the assembler implementations. | |
1338 | ||
1da177e4 LT |
1339 | config CRYPTO_CAST5 |
1340 | tristate "CAST5 (CAST-128) cipher algorithm" | |
cce9e06d | 1341 | select CRYPTO_ALGAPI |
044ab525 | 1342 | select CRYPTO_CAST_COMMON |
1da177e4 LT |
1343 | help |
1344 | The CAST5 encryption algorithm (synonymous with CAST-128) is | |
1345 | described in RFC2144. | |
1346 | ||
4d6d6a2c JG |
1347 | config CRYPTO_CAST5_AVX_X86_64 |
1348 | tristate "CAST5 (CAST-128) cipher algorithm (x86_64/AVX)" | |
1349 | depends on X86 && 64BIT | |
b95bba5d | 1350 | select CRYPTO_SKCIPHER |
4d6d6a2c | 1351 | select CRYPTO_CAST5 |
1e63183a EB |
1352 | select CRYPTO_CAST_COMMON |
1353 | select CRYPTO_SIMD | |
e2d60e2f | 1354 | imply CRYPTO_CTR |
4d6d6a2c JG |
1355 | help |
1356 | The CAST5 encryption algorithm (synonymous with CAST-128) is | |
1357 | described in RFC2144. | |
1358 | ||
1359 | This module provides the Cast5 cipher algorithm that processes | |
1360 | sixteen blocks parallel using the AVX instruction set. | |
1361 | ||
1da177e4 LT |
1362 | config CRYPTO_CAST6 |
1363 | tristate "CAST6 (CAST-256) cipher algorithm" | |
cce9e06d | 1364 | select CRYPTO_ALGAPI |
044ab525 | 1365 | select CRYPTO_CAST_COMMON |
1da177e4 LT |
1366 | help |
1367 | The CAST6 encryption algorithm (synonymous with CAST-256) is | |
1368 | described in RFC2612. | |
1369 | ||
4ea1277d JG |
1370 | config CRYPTO_CAST6_AVX_X86_64 |
1371 | tristate "CAST6 (CAST-256) cipher algorithm (x86_64/AVX)" | |
1372 | depends on X86 && 64BIT | |
b95bba5d | 1373 | select CRYPTO_SKCIPHER |
4ea1277d | 1374 | select CRYPTO_CAST6 |
4bd96924 | 1375 | select CRYPTO_CAST_COMMON |
4bd96924 | 1376 | select CRYPTO_SIMD |
2cc0fedb | 1377 | imply CRYPTO_XTS |
7a6623cc | 1378 | imply CRYPTO_CTR |
4ea1277d JG |
1379 | help |
1380 | The CAST6 encryption algorithm (synonymous with CAST-256) is | |
1381 | described in RFC2612. | |
1382 | ||
1383 | This module provides the Cast6 cipher algorithm that processes | |
1384 | eight blocks parallel using the AVX instruction set. | |
1385 | ||
584fffc8 SS |
1386 | config CRYPTO_DES |
1387 | tristate "DES and Triple DES EDE cipher algorithms" | |
cce9e06d | 1388 | select CRYPTO_ALGAPI |
04007b0e | 1389 | select CRYPTO_LIB_DES |
1da177e4 | 1390 | help |
584fffc8 | 1391 | DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3). |
fb4f10ed | 1392 | |
c5aac2df DM |
1393 | config CRYPTO_DES_SPARC64 |
1394 | tristate "DES and Triple DES EDE cipher algorithms (SPARC64)" | |
97da37b3 | 1395 | depends on SPARC64 |
c5aac2df | 1396 | select CRYPTO_ALGAPI |
04007b0e | 1397 | select CRYPTO_LIB_DES |
b95bba5d | 1398 | select CRYPTO_SKCIPHER |
c5aac2df DM |
1399 | help |
1400 | DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3), | |
1401 | optimized using SPARC64 crypto opcodes. | |
1402 | ||
6574e6c6 JK |
1403 | config CRYPTO_DES3_EDE_X86_64 |
1404 | tristate "Triple DES EDE cipher algorithm (x86-64)" | |
1405 | depends on X86 && 64BIT | |
b95bba5d | 1406 | select CRYPTO_SKCIPHER |
04007b0e | 1407 | select CRYPTO_LIB_DES |
768db5fe | 1408 | imply CRYPTO_CTR |
6574e6c6 JK |
1409 | help |
1410 | Triple DES EDE (FIPS 46-3) algorithm. | |
1411 | ||
1412 | This module provides implementation of the Triple DES EDE cipher | |
1413 | algorithm that is optimized for x86-64 processors. Two versions of | |
1414 | algorithm are provided; regular processing one input block and | |
1415 | one that processes three blocks parallel. | |
1416 | ||
584fffc8 SS |
1417 | config CRYPTO_FCRYPT |
1418 | tristate "FCrypt cipher algorithm" | |
cce9e06d | 1419 | select CRYPTO_ALGAPI |
b95bba5d | 1420 | select CRYPTO_SKCIPHER |
1da177e4 | 1421 | help |
584fffc8 | 1422 | FCrypt algorithm used by RxRPC. |
1da177e4 LT |
1423 | |
1424 | config CRYPTO_KHAZAD | |
1425 | tristate "Khazad cipher algorithm" | |
1674aea5 | 1426 | depends on CRYPTO_USER_API_ENABLE_OBSOLETE |
cce9e06d | 1427 | select CRYPTO_ALGAPI |
1da177e4 LT |
1428 | help |
1429 | Khazad cipher algorithm. | |
1430 | ||
1431 | Khazad was a finalist in the initial NESSIE competition. It is | |
1432 | an algorithm optimized for 64-bit processors with good performance | |
1433 | on 32-bit processors. Khazad uses an 128 bit key size. | |
1434 | ||
1435 | See also: | |
6d8de74c | 1436 | <http://www.larc.usp.br/~pbarreto/KhazadPage.html> |
1da177e4 | 1437 | |
c08d0e64 | 1438 | config CRYPTO_CHACHA20 |
aa762409 | 1439 | tristate "ChaCha stream cipher algorithms" |
5fb8ef25 | 1440 | select CRYPTO_LIB_CHACHA_GENERIC |
b95bba5d | 1441 | select CRYPTO_SKCIPHER |
c08d0e64 | 1442 | help |
aa762409 | 1443 | The ChaCha20, XChaCha20, and XChaCha12 stream cipher algorithms. |
c08d0e64 MW |
1444 | |
1445 | ChaCha20 is a 256-bit high-speed stream cipher designed by Daniel J. | |
1446 | Bernstein and further specified in RFC7539 for use in IETF protocols. | |
de61d7ae | 1447 | This is the portable C implementation of ChaCha20. See also: |
9332a9e7 | 1448 | <https://cr.yp.to/chacha/chacha-20080128.pdf> |
c08d0e64 | 1449 | |
de61d7ae EB |
1450 | XChaCha20 is the application of the XSalsa20 construction to ChaCha20 |
1451 | rather than to Salsa20. XChaCha20 extends ChaCha20's nonce length | |
1452 | from 64 bits (or 96 bits using the RFC7539 convention) to 192 bits, | |
1453 | while provably retaining ChaCha20's security. See also: | |
1454 | <https://cr.yp.to/snuffle/xsalsa-20081128.pdf> | |
1455 | ||
aa762409 EB |
1456 | XChaCha12 is XChaCha20 reduced to 12 rounds, with correspondingly |
1457 | reduced security margin but increased performance. It can be needed | |
1458 | in some performance-sensitive scenarios. | |
1459 | ||
c9320b6d | 1460 | config CRYPTO_CHACHA20_X86_64 |
4af78261 | 1461 | tristate "ChaCha stream cipher algorithms (x86_64/SSSE3/AVX2/AVX-512VL)" |
c9320b6d | 1462 | depends on X86 && 64BIT |
b95bba5d | 1463 | select CRYPTO_SKCIPHER |
28e8d89b | 1464 | select CRYPTO_LIB_CHACHA_GENERIC |
84e03fa3 | 1465 | select CRYPTO_ARCH_HAVE_LIB_CHACHA |
c9320b6d | 1466 | help |
7a507d62 EB |
1467 | SSSE3, AVX2, and AVX-512VL optimized implementations of the ChaCha20, |
1468 | XChaCha20, and XChaCha12 stream ciphers. | |
c9320b6d | 1469 | |
3a2f58f3 AB |
1470 | config CRYPTO_CHACHA_MIPS |
1471 | tristate "ChaCha stream cipher algorithms (MIPS 32r2 optimized)" | |
1472 | depends on CPU_MIPS32_R2 | |
660eda8d | 1473 | select CRYPTO_SKCIPHER |
3a2f58f3 AB |
1474 | select CRYPTO_ARCH_HAVE_LIB_CHACHA |
1475 | ||
584fffc8 SS |
1476 | config CRYPTO_SEED |
1477 | tristate "SEED cipher algorithm" | |
1674aea5 | 1478 | depends on CRYPTO_USER_API_ENABLE_OBSOLETE |
cce9e06d | 1479 | select CRYPTO_ALGAPI |
1da177e4 | 1480 | help |
584fffc8 | 1481 | SEED cipher algorithm (RFC4269). |
1da177e4 | 1482 | |
584fffc8 SS |
1483 | SEED is a 128-bit symmetric key block cipher that has been |
1484 | developed by KISA (Korea Information Security Agency) as a | |
1485 | national standard encryption algorithm of the Republic of Korea. | |
1486 | It is a 16 round block cipher with the key size of 128 bit. | |
1487 | ||
1488 | See also: | |
1489 | <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp> | |
1490 | ||
1491 | config CRYPTO_SERPENT | |
1492 | tristate "Serpent cipher algorithm" | |
cce9e06d | 1493 | select CRYPTO_ALGAPI |
1da177e4 | 1494 | help |
584fffc8 | 1495 | Serpent cipher algorithm, by Anderson, Biham & Knudsen. |
1da177e4 | 1496 | |
584fffc8 | 1497 | Keys are allowed to be from 0 to 256 bits in length, in steps |
784506a1 | 1498 | of 8 bits. |
584fffc8 SS |
1499 | |
1500 | See also: | |
9332a9e7 | 1501 | <https://www.cl.cam.ac.uk/~rja14/serpent.html> |
584fffc8 | 1502 | |
937c30d7 JK |
1503 | config CRYPTO_SERPENT_SSE2_X86_64 |
1504 | tristate "Serpent cipher algorithm (x86_64/SSE2)" | |
1505 | depends on X86 && 64BIT | |
b95bba5d | 1506 | select CRYPTO_SKCIPHER |
937c30d7 | 1507 | select CRYPTO_SERPENT |
e0f409dc | 1508 | select CRYPTO_SIMD |
2e9440ae | 1509 | imply CRYPTO_CTR |
937c30d7 JK |
1510 | help |
1511 | Serpent cipher algorithm, by Anderson, Biham & Knudsen. | |
1512 | ||
1513 | Keys are allowed to be from 0 to 256 bits in length, in steps | |
1514 | of 8 bits. | |
1515 | ||
1e6232f8 | 1516 | This module provides Serpent cipher algorithm that processes eight |
937c30d7 JK |
1517 | blocks parallel using SSE2 instruction set. |
1518 | ||
1519 | See also: | |
9332a9e7 | 1520 | <https://www.cl.cam.ac.uk/~rja14/serpent.html> |
937c30d7 | 1521 | |
251496db JK |
1522 | config CRYPTO_SERPENT_SSE2_586 |
1523 | tristate "Serpent cipher algorithm (i586/SSE2)" | |
1524 | depends on X86 && !64BIT | |
b95bba5d | 1525 | select CRYPTO_SKCIPHER |
251496db | 1526 | select CRYPTO_SERPENT |
e0f409dc | 1527 | select CRYPTO_SIMD |
2e9440ae | 1528 | imply CRYPTO_CTR |
251496db JK |
1529 | help |
1530 | Serpent cipher algorithm, by Anderson, Biham & Knudsen. | |
1531 | ||
1532 | Keys are allowed to be from 0 to 256 bits in length, in steps | |
1533 | of 8 bits. | |
1534 | ||
1535 | This module provides Serpent cipher algorithm that processes four | |
1536 | blocks parallel using SSE2 instruction set. | |
1537 | ||
1538 | See also: | |
9332a9e7 | 1539 | <https://www.cl.cam.ac.uk/~rja14/serpent.html> |
7efe4076 JG |
1540 | |
1541 | config CRYPTO_SERPENT_AVX_X86_64 | |
1542 | tristate "Serpent cipher algorithm (x86_64/AVX)" | |
1543 | depends on X86 && 64BIT | |
b95bba5d | 1544 | select CRYPTO_SKCIPHER |
7efe4076 | 1545 | select CRYPTO_SERPENT |
e16bf974 | 1546 | select CRYPTO_SIMD |
9ec0af8a | 1547 | imply CRYPTO_XTS |
2e9440ae | 1548 | imply CRYPTO_CTR |
7efe4076 JG |
1549 | help |
1550 | Serpent cipher algorithm, by Anderson, Biham & Knudsen. | |
1551 | ||
1552 | Keys are allowed to be from 0 to 256 bits in length, in steps | |
1553 | of 8 bits. | |
1554 | ||
1555 | This module provides the Serpent cipher algorithm that processes | |
1556 | eight blocks parallel using the AVX instruction set. | |
1557 | ||
1558 | See also: | |
9332a9e7 | 1559 | <https://www.cl.cam.ac.uk/~rja14/serpent.html> |
251496db | 1560 | |
56d76c96 JK |
1561 | config CRYPTO_SERPENT_AVX2_X86_64 |
1562 | tristate "Serpent cipher algorithm (x86_64/AVX2)" | |
1563 | depends on X86 && 64BIT | |
56d76c96 | 1564 | select CRYPTO_SERPENT_AVX_X86_64 |
56d76c96 JK |
1565 | help |
1566 | Serpent cipher algorithm, by Anderson, Biham & Knudsen. | |
1567 | ||
1568 | Keys are allowed to be from 0 to 256 bits in length, in steps | |
1569 | of 8 bits. | |
1570 | ||
1571 | This module provides Serpent cipher algorithm that processes 16 | |
1572 | blocks parallel using AVX2 instruction set. | |
1573 | ||
1574 | See also: | |
9332a9e7 | 1575 | <https://www.cl.cam.ac.uk/~rja14/serpent.html> |
56d76c96 | 1576 | |
747c8ce4 | 1577 | config CRYPTO_SM4 |
d2825fa9 JD |
1578 | tristate |
1579 | ||
1580 | config CRYPTO_SM4_GENERIC | |
747c8ce4 GBY |
1581 | tristate "SM4 cipher algorithm" |
1582 | select CRYPTO_ALGAPI | |
d2825fa9 | 1583 | select CRYPTO_SM4 |
747c8ce4 GBY |
1584 | help |
1585 | SM4 cipher algorithms (OSCCA GB/T 32907-2016). | |
1586 | ||
1587 | SM4 (GBT.32907-2016) is a cryptographic standard issued by the | |
1588 | Organization of State Commercial Administration of China (OSCCA) | |
1589 | as an authorized cryptographic algorithms for the use within China. | |
1590 | ||
1591 | SMS4 was originally created for use in protecting wireless | |
1592 | networks, and is mandated in the Chinese National Standard for | |
1593 | Wireless LAN WAPI (Wired Authentication and Privacy Infrastructure) | |
1594 | (GB.15629.11-2003). | |
1595 | ||
1596 | The latest SM4 standard (GBT.32907-2016) was proposed by OSCCA and | |
1597 | standardized through TC 260 of the Standardization Administration | |
1598 | of the People's Republic of China (SAC). | |
1599 | ||
1600 | The input, output, and key of SMS4 are each 128 bits. | |
1601 | ||
1602 | See also: <https://eprint.iacr.org/2008/329.pdf> | |
1603 | ||
1604 | If unsure, say N. | |
1605 | ||
a7ee22ee TZ |
1606 | config CRYPTO_SM4_AESNI_AVX_X86_64 |
1607 | tristate "SM4 cipher algorithm (x86_64/AES-NI/AVX)" | |
1608 | depends on X86 && 64BIT | |
1609 | select CRYPTO_SKCIPHER | |
1610 | select CRYPTO_SIMD | |
1611 | select CRYPTO_ALGAPI | |
d2825fa9 | 1612 | select CRYPTO_SM4 |
a7ee22ee TZ |
1613 | help |
1614 | SM4 cipher algorithms (OSCCA GB/T 32907-2016) (x86_64/AES-NI/AVX). | |
1615 | ||
1616 | SM4 (GBT.32907-2016) is a cryptographic standard issued by the | |
1617 | Organization of State Commercial Administration of China (OSCCA) | |
1618 | as an authorized cryptographic algorithms for the use within China. | |
1619 | ||
1620 | This is SM4 optimized implementation using AES-NI/AVX/x86_64 | |
1621 | instruction set for block cipher. Through two affine transforms, | |
1622 | we can use the AES S-Box to simulate the SM4 S-Box to achieve the | |
1623 | effect of instruction acceleration. | |
1624 | ||
1625 | If unsure, say N. | |
1626 | ||
5b2efa2b TZ |
1627 | config CRYPTO_SM4_AESNI_AVX2_X86_64 |
1628 | tristate "SM4 cipher algorithm (x86_64/AES-NI/AVX2)" | |
1629 | depends on X86 && 64BIT | |
1630 | select CRYPTO_SKCIPHER | |
1631 | select CRYPTO_SIMD | |
1632 | select CRYPTO_ALGAPI | |
d2825fa9 | 1633 | select CRYPTO_SM4 |
5b2efa2b TZ |
1634 | select CRYPTO_SM4_AESNI_AVX_X86_64 |
1635 | help | |
1636 | SM4 cipher algorithms (OSCCA GB/T 32907-2016) (x86_64/AES-NI/AVX2). | |
1637 | ||
1638 | SM4 (GBT.32907-2016) is a cryptographic standard issued by the | |
1639 | Organization of State Commercial Administration of China (OSCCA) | |
1640 | as an authorized cryptographic algorithms for the use within China. | |
1641 | ||
1642 | This is SM4 optimized implementation using AES-NI/AVX2/x86_64 | |
1643 | instruction set for block cipher. Through two affine transforms, | |
1644 | we can use the AES S-Box to simulate the SM4 S-Box to achieve the | |
1645 | effect of instruction acceleration. | |
1646 | ||
1647 | If unsure, say N. | |
1648 | ||
584fffc8 SS |
1649 | config CRYPTO_TEA |
1650 | tristate "TEA, XTEA and XETA cipher algorithms" | |
1674aea5 | 1651 | depends on CRYPTO_USER_API_ENABLE_OBSOLETE |
cce9e06d | 1652 | select CRYPTO_ALGAPI |
1da177e4 | 1653 | help |
584fffc8 | 1654 | TEA cipher algorithm. |
1da177e4 | 1655 | |
584fffc8 SS |
1656 | Tiny Encryption Algorithm is a simple cipher that uses |
1657 | many rounds for security. It is very fast and uses | |
1658 | little memory. | |
1659 | ||
1660 | Xtendend Tiny Encryption Algorithm is a modification to | |
1661 | the TEA algorithm to address a potential key weakness | |
1662 | in the TEA algorithm. | |
1663 | ||
1664 | Xtendend Encryption Tiny Algorithm is a mis-implementation | |
1665 | of the XTEA algorithm for compatibility purposes. | |
1666 | ||
1667 | config CRYPTO_TWOFISH | |
1668 | tristate "Twofish cipher algorithm" | |
04ac7db3 | 1669 | select CRYPTO_ALGAPI |
584fffc8 | 1670 | select CRYPTO_TWOFISH_COMMON |
04ac7db3 | 1671 | help |
584fffc8 | 1672 | Twofish cipher algorithm. |
04ac7db3 | 1673 | |
584fffc8 SS |
1674 | Twofish was submitted as an AES (Advanced Encryption Standard) |
1675 | candidate cipher by researchers at CounterPane Systems. It is a | |
1676 | 16 round block cipher supporting key sizes of 128, 192, and 256 | |
1677 | bits. | |
04ac7db3 | 1678 | |
584fffc8 | 1679 | See also: |
9332a9e7 | 1680 | <https://www.schneier.com/twofish.html> |
584fffc8 SS |
1681 | |
1682 | config CRYPTO_TWOFISH_COMMON | |
1683 | tristate | |
1684 | help | |
1685 | Common parts of the Twofish cipher algorithm shared by the | |
1686 | generic c and the assembler implementations. | |
1687 | ||
1688 | config CRYPTO_TWOFISH_586 | |
1689 | tristate "Twofish cipher algorithms (i586)" | |
1690 | depends on (X86 || UML_X86) && !64BIT | |
1691 | select CRYPTO_ALGAPI | |
1692 | select CRYPTO_TWOFISH_COMMON | |
f43dcaf2 | 1693 | imply CRYPTO_CTR |
584fffc8 SS |
1694 | help |
1695 | Twofish cipher algorithm. | |
1696 | ||
1697 | Twofish was submitted as an AES (Advanced Encryption Standard) | |
1698 | candidate cipher by researchers at CounterPane Systems. It is a | |
1699 | 16 round block cipher supporting key sizes of 128, 192, and 256 | |
1700 | bits. | |
04ac7db3 NT |
1701 | |
1702 | See also: | |
9332a9e7 | 1703 | <https://www.schneier.com/twofish.html> |
04ac7db3 | 1704 | |
584fffc8 SS |
1705 | config CRYPTO_TWOFISH_X86_64 |
1706 | tristate "Twofish cipher algorithm (x86_64)" | |
1707 | depends on (X86 || UML_X86) && 64BIT | |
cce9e06d | 1708 | select CRYPTO_ALGAPI |
584fffc8 | 1709 | select CRYPTO_TWOFISH_COMMON |
f43dcaf2 | 1710 | imply CRYPTO_CTR |
1da177e4 | 1711 | help |
584fffc8 | 1712 | Twofish cipher algorithm (x86_64). |
1da177e4 | 1713 | |
584fffc8 SS |
1714 | Twofish was submitted as an AES (Advanced Encryption Standard) |
1715 | candidate cipher by researchers at CounterPane Systems. It is a | |
1716 | 16 round block cipher supporting key sizes of 128, 192, and 256 | |
1717 | bits. | |
1718 | ||
1719 | See also: | |
9332a9e7 | 1720 | <https://www.schneier.com/twofish.html> |
584fffc8 | 1721 | |
8280daad JK |
1722 | config CRYPTO_TWOFISH_X86_64_3WAY |
1723 | tristate "Twofish cipher algorithm (x86_64, 3-way parallel)" | |
f21a7c19 | 1724 | depends on X86 && 64BIT |
b95bba5d | 1725 | select CRYPTO_SKCIPHER |
8280daad JK |
1726 | select CRYPTO_TWOFISH_COMMON |
1727 | select CRYPTO_TWOFISH_X86_64 | |
1728 | help | |
1729 | Twofish cipher algorithm (x86_64, 3-way parallel). | |
1730 | ||
1731 | Twofish was submitted as an AES (Advanced Encryption Standard) | |
1732 | candidate cipher by researchers at CounterPane Systems. It is a | |
1733 | 16 round block cipher supporting key sizes of 128, 192, and 256 | |
1734 | bits. | |
1735 | ||
1736 | This module provides Twofish cipher algorithm that processes three | |
1737 | blocks parallel, utilizing resources of out-of-order CPUs better. | |
1738 | ||
1739 | See also: | |
9332a9e7 | 1740 | <https://www.schneier.com/twofish.html> |
8280daad | 1741 | |
107778b5 JG |
1742 | config CRYPTO_TWOFISH_AVX_X86_64 |
1743 | tristate "Twofish cipher algorithm (x86_64/AVX)" | |
1744 | depends on X86 && 64BIT | |
b95bba5d | 1745 | select CRYPTO_SKCIPHER |
0e6ab46d | 1746 | select CRYPTO_SIMD |
107778b5 JG |
1747 | select CRYPTO_TWOFISH_COMMON |
1748 | select CRYPTO_TWOFISH_X86_64 | |
1749 | select CRYPTO_TWOFISH_X86_64_3WAY | |
da4df93a | 1750 | imply CRYPTO_XTS |
107778b5 JG |
1751 | help |
1752 | Twofish cipher algorithm (x86_64/AVX). | |
1753 | ||
1754 | Twofish was submitted as an AES (Advanced Encryption Standard) | |
1755 | candidate cipher by researchers at CounterPane Systems. It is a | |
1756 | 16 round block cipher supporting key sizes of 128, 192, and 256 | |
1757 | bits. | |
1758 | ||
1759 | This module provides the Twofish cipher algorithm that processes | |
1760 | eight blocks parallel using the AVX Instruction Set. | |
1761 | ||
1762 | See also: | |
9332a9e7 | 1763 | <https://www.schneier.com/twofish.html> |
107778b5 | 1764 | |
584fffc8 SS |
1765 | comment "Compression" |
1766 | ||
1767 | config CRYPTO_DEFLATE | |
1768 | tristate "Deflate compression algorithm" | |
1769 | select CRYPTO_ALGAPI | |
f6ded09d | 1770 | select CRYPTO_ACOMP2 |
584fffc8 SS |
1771 | select ZLIB_INFLATE |
1772 | select ZLIB_DEFLATE | |
3c09f17c | 1773 | help |
584fffc8 SS |
1774 | This is the Deflate algorithm (RFC1951), specified for use in |
1775 | IPSec with the IPCOMP protocol (RFC3173, RFC2394). | |
1776 | ||
1777 | You will most probably want this if using IPSec. | |
3c09f17c | 1778 | |
0b77abb3 ZS |
1779 | config CRYPTO_LZO |
1780 | tristate "LZO compression algorithm" | |
1781 | select CRYPTO_ALGAPI | |
ac9d2c4b | 1782 | select CRYPTO_ACOMP2 |
0b77abb3 ZS |
1783 | select LZO_COMPRESS |
1784 | select LZO_DECOMPRESS | |
1785 | help | |
1786 | This is the LZO algorithm. | |
1787 | ||
35a1fc18 SJ |
1788 | config CRYPTO_842 |
1789 | tristate "842 compression algorithm" | |
2062c5b6 | 1790 | select CRYPTO_ALGAPI |
6a8de3ae | 1791 | select CRYPTO_ACOMP2 |
2062c5b6 DS |
1792 | select 842_COMPRESS |
1793 | select 842_DECOMPRESS | |
35a1fc18 SJ |
1794 | help |
1795 | This is the 842 algorithm. | |
0ea8530d CM |
1796 | |
1797 | config CRYPTO_LZ4 | |
1798 | tristate "LZ4 compression algorithm" | |
1799 | select CRYPTO_ALGAPI | |
8cd9330e | 1800 | select CRYPTO_ACOMP2 |
0ea8530d CM |
1801 | select LZ4_COMPRESS |
1802 | select LZ4_DECOMPRESS | |
1803 | help | |
1804 | This is the LZ4 algorithm. | |
1805 | ||
1806 | config CRYPTO_LZ4HC | |
1807 | tristate "LZ4HC compression algorithm" | |
1808 | select CRYPTO_ALGAPI | |
91d53d96 | 1809 | select CRYPTO_ACOMP2 |
0ea8530d CM |
1810 | select LZ4HC_COMPRESS |
1811 | select LZ4_DECOMPRESS | |
1812 | help | |
1813 | This is the LZ4 high compression mode algorithm. | |
35a1fc18 | 1814 | |
d28fc3db NT |
1815 | config CRYPTO_ZSTD |
1816 | tristate "Zstd compression algorithm" | |
1817 | select CRYPTO_ALGAPI | |
1818 | select CRYPTO_ACOMP2 | |
1819 | select ZSTD_COMPRESS | |
1820 | select ZSTD_DECOMPRESS | |
1821 | help | |
1822 | This is the zstd algorithm. | |
1823 | ||
17f0f4a4 NH |
1824 | comment "Random Number Generation" |
1825 | ||
1826 | config CRYPTO_ANSI_CPRNG | |
1827 | tristate "Pseudo Random Number Generation for Cryptographic modules" | |
1828 | select CRYPTO_AES | |
1829 | select CRYPTO_RNG | |
17f0f4a4 NH |
1830 | help |
1831 | This option enables the generic pseudo random number generator | |
1832 | for cryptographic modules. Uses the Algorithm specified in | |
7dd607e8 JK |
1833 | ANSI X9.31 A.2.4. Note that this option must be enabled if |
1834 | CRYPTO_FIPS is selected | |
17f0f4a4 | 1835 | |
f2c89a10 | 1836 | menuconfig CRYPTO_DRBG_MENU |
419090c6 | 1837 | tristate "NIST SP800-90A DRBG" |
419090c6 SM |
1838 | help |
1839 | NIST SP800-90A compliant DRBG. In the following submenu, one or | |
1840 | more of the DRBG types must be selected. | |
1841 | ||
f2c89a10 | 1842 | if CRYPTO_DRBG_MENU |
419090c6 SM |
1843 | |
1844 | config CRYPTO_DRBG_HMAC | |
401e4238 | 1845 | bool |
419090c6 | 1846 | default y |
419090c6 | 1847 | select CRYPTO_HMAC |
5261cdf4 | 1848 | select CRYPTO_SHA512 |
419090c6 SM |
1849 | |
1850 | config CRYPTO_DRBG_HASH | |
1851 | bool "Enable Hash DRBG" | |
826775bb | 1852 | select CRYPTO_SHA256 |
419090c6 SM |
1853 | help |
1854 | Enable the Hash DRBG variant as defined in NIST SP800-90A. | |
1855 | ||
1856 | config CRYPTO_DRBG_CTR | |
1857 | bool "Enable CTR DRBG" | |
419090c6 | 1858 | select CRYPTO_AES |
d6fc1a45 | 1859 | select CRYPTO_CTR |
419090c6 SM |
1860 | help |
1861 | Enable the CTR DRBG variant as defined in NIST SP800-90A. | |
1862 | ||
f2c89a10 HX |
1863 | config CRYPTO_DRBG |
1864 | tristate | |
401e4238 | 1865 | default CRYPTO_DRBG_MENU |
f2c89a10 | 1866 | select CRYPTO_RNG |
bb5530e4 | 1867 | select CRYPTO_JITTERENTROPY |
f2c89a10 HX |
1868 | |
1869 | endif # if CRYPTO_DRBG_MENU | |
419090c6 | 1870 | |
bb5530e4 SM |
1871 | config CRYPTO_JITTERENTROPY |
1872 | tristate "Jitterentropy Non-Deterministic Random Number Generator" | |
2f313e02 | 1873 | select CRYPTO_RNG |
bb5530e4 SM |
1874 | help |
1875 | The Jitterentropy RNG is a noise that is intended | |
1876 | to provide seed to another RNG. The RNG does not | |
1877 | perform any cryptographic whitening of the generated | |
1878 | random numbers. This Jitterentropy RNG registers with | |
1879 | the kernel crypto API and can be used by any caller. | |
1880 | ||
026a733e SM |
1881 | config CRYPTO_KDF800108_CTR |
1882 | tristate | |
a88592cc | 1883 | select CRYPTO_HMAC |
304b4ace | 1884 | select CRYPTO_SHA256 |
026a733e | 1885 | |
03c8efc1 HX |
1886 | config CRYPTO_USER_API |
1887 | tristate | |
1888 | ||
fe869cdb HX |
1889 | config CRYPTO_USER_API_HASH |
1890 | tristate "User-space interface for hash algorithms" | |
7451708f | 1891 | depends on NET |
fe869cdb HX |
1892 | select CRYPTO_HASH |
1893 | select CRYPTO_USER_API | |
1894 | help | |
1895 | This option enables the user-spaces interface for hash | |
1896 | algorithms. | |
1897 | ||
8ff59090 HX |
1898 | config CRYPTO_USER_API_SKCIPHER |
1899 | tristate "User-space interface for symmetric key cipher algorithms" | |
7451708f | 1900 | depends on NET |
b95bba5d | 1901 | select CRYPTO_SKCIPHER |
8ff59090 HX |
1902 | select CRYPTO_USER_API |
1903 | help | |
1904 | This option enables the user-spaces interface for symmetric | |
1905 | key cipher algorithms. | |
1906 | ||
2f375538 SM |
1907 | config CRYPTO_USER_API_RNG |
1908 | tristate "User-space interface for random number generator algorithms" | |
1909 | depends on NET | |
1910 | select CRYPTO_RNG | |
1911 | select CRYPTO_USER_API | |
1912 | help | |
1913 | This option enables the user-spaces interface for random | |
1914 | number generator algorithms. | |
1915 | ||
77ebdabe EP |
1916 | config CRYPTO_USER_API_RNG_CAVP |
1917 | bool "Enable CAVP testing of DRBG" | |
1918 | depends on CRYPTO_USER_API_RNG && CRYPTO_DRBG | |
1919 | help | |
1920 | This option enables extra API for CAVP testing via the user-space | |
1921 | interface: resetting of DRBG entropy, and providing Additional Data. | |
1922 | This should only be enabled for CAVP testing. You should say | |
1923 | no unless you know what this is. | |
1924 | ||
b64a2d95 HX |
1925 | config CRYPTO_USER_API_AEAD |
1926 | tristate "User-space interface for AEAD cipher algorithms" | |
1927 | depends on NET | |
1928 | select CRYPTO_AEAD | |
b95bba5d | 1929 | select CRYPTO_SKCIPHER |
72548b09 | 1930 | select CRYPTO_NULL |
b64a2d95 HX |
1931 | select CRYPTO_USER_API |
1932 | help | |
1933 | This option enables the user-spaces interface for AEAD | |
1934 | cipher algorithms. | |
1935 | ||
9ace6771 AB |
1936 | config CRYPTO_USER_API_ENABLE_OBSOLETE |
1937 | bool "Enable obsolete cryptographic algorithms for userspace" | |
1938 | depends on CRYPTO_USER_API | |
1939 | default y | |
1940 | help | |
1941 | Allow obsolete cryptographic algorithms to be selected that have | |
1942 | already been phased out from internal use by the kernel, and are | |
1943 | only useful for userspace clients that still rely on them. | |
1944 | ||
cac5818c CL |
1945 | config CRYPTO_STATS |
1946 | bool "Crypto usage statistics for User-space" | |
a6a31385 | 1947 | depends on CRYPTO_USER |
cac5818c CL |
1948 | help |
1949 | This option enables the gathering of crypto stats. | |
1950 | This will collect: | |
1951 | - encrypt/decrypt size and numbers of symmeric operations | |
1952 | - compress/decompress size and numbers of compress operations | |
1953 | - size and numbers of hash operations | |
1954 | - encrypt/decrypt/sign/verify numbers for asymmetric operations | |
1955 | - generate/seed numbers for rng operations | |
1956 | ||
ee08997f DK |
1957 | config CRYPTO_HASH_INFO |
1958 | bool | |
1959 | ||
1da177e4 | 1960 | source "drivers/crypto/Kconfig" |
8636a1f9 MY |
1961 | source "crypto/asymmetric_keys/Kconfig" |
1962 | source "certs/Kconfig" | |
1da177e4 | 1963 | |
cce9e06d | 1964 | endif # if CRYPTO |