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