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