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