]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blame - crypto/Kconfig
crypto: chacha - move existing library code into lib/crypto
[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
449 select CRYPTO_POLY1305
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
470 select CRYPTO_POLY1305
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
f979e014
MW
706 help
707 Poly1305 authenticator algorithm, RFC7539.
708
709 Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein.
710 It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use
711 in IETF protocols. This is the portable C implementation of Poly1305.
712
c70f4abe 713config CRYPTO_POLY1305_X86_64
b1ccc8f4 714 tristate "Poly1305 authenticator algorithm (x86_64/SSE2/AVX2)"
c70f4abe
MW
715 depends on X86 && 64BIT
716 select CRYPTO_POLY1305
717 help
718 Poly1305 authenticator algorithm, RFC7539.
719
720 Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein.
721 It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use
722 in IETF protocols. This is the x86_64 assembler implementation using SIMD
723 instructions.
724
584fffc8
SS
725config CRYPTO_MD4
726 tristate "MD4 digest algorithm"
808a1763 727 select CRYPTO_HASH
124b53d0 728 help
584fffc8 729 MD4 message digest algorithm (RFC1320).
124b53d0 730
584fffc8
SS
731config CRYPTO_MD5
732 tristate "MD5 digest algorithm"
14b75ba7 733 select CRYPTO_HASH
1da177e4 734 help
584fffc8 735 MD5 message digest algorithm (RFC1321).
1da177e4 736
d69e75de
AK
737config CRYPTO_MD5_OCTEON
738 tristate "MD5 digest algorithm (OCTEON)"
739 depends on CPU_CAVIUM_OCTEON
740 select CRYPTO_MD5
741 select CRYPTO_HASH
742 help
743 MD5 message digest algorithm (RFC1321) implemented
744 using OCTEON crypto instructions, when available.
745
e8e59953
MS
746config CRYPTO_MD5_PPC
747 tristate "MD5 digest algorithm (PPC)"
748 depends on PPC
749 select CRYPTO_HASH
750 help
751 MD5 message digest algorithm (RFC1321) implemented
752 in PPC assembler.
753
fa4dfedc
DM
754config CRYPTO_MD5_SPARC64
755 tristate "MD5 digest algorithm (SPARC64)"
756 depends on SPARC64
757 select CRYPTO_MD5
758 select CRYPTO_HASH
759 help
760 MD5 message digest algorithm (RFC1321) implemented
761 using sparc64 crypto instructions, when available.
762
584fffc8
SS
763config CRYPTO_MICHAEL_MIC
764 tristate "Michael MIC keyed digest algorithm"
19e2bf14 765 select CRYPTO_HASH
90831639 766 help
584fffc8
SS
767 Michael MIC is used for message integrity protection in TKIP
768 (IEEE 802.11i). This algorithm is required for TKIP, but it
769 should not be used for other purposes because of the weakness
770 of the algorithm.
90831639 771
82798f90 772config CRYPTO_RMD128
b6d44341 773 tristate "RIPEMD-128 digest algorithm"
7c4468bc 774 select CRYPTO_HASH
b6d44341
AB
775 help
776 RIPEMD-128 (ISO/IEC 10118-3:2004).
82798f90 777
b6d44341 778 RIPEMD-128 is a 128-bit cryptographic hash function. It should only
35ed4b35 779 be used as a secure replacement for RIPEMD. For other use cases,
b6d44341 780 RIPEMD-160 should be used.
82798f90 781
b6d44341 782 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
6d8de74c 783 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
82798f90
AKR
784
785config CRYPTO_RMD160
b6d44341 786 tristate "RIPEMD-160 digest algorithm"
e5835fba 787 select CRYPTO_HASH
b6d44341
AB
788 help
789 RIPEMD-160 (ISO/IEC 10118-3:2004).
82798f90 790
b6d44341
AB
791 RIPEMD-160 is a 160-bit cryptographic hash function. It is intended
792 to be used as a secure replacement for the 128-bit hash functions
793 MD4, MD5 and it's predecessor RIPEMD
794 (not to be confused with RIPEMD-128).
82798f90 795
b6d44341
AB
796 It's speed is comparable to SHA1 and there are no known attacks
797 against RIPEMD-160.
534fe2c1 798
b6d44341 799 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
6d8de74c 800 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
534fe2c1
AKR
801
802config CRYPTO_RMD256
b6d44341 803 tristate "RIPEMD-256 digest algorithm"
d8a5e2e9 804 select CRYPTO_HASH
b6d44341
AB
805 help
806 RIPEMD-256 is an optional extension of RIPEMD-128 with a
807 256 bit hash. It is intended for applications that require
808 longer hash-results, without needing a larger security level
809 (than RIPEMD-128).
534fe2c1 810
b6d44341 811 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
6d8de74c 812 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
534fe2c1
AKR
813
814config CRYPTO_RMD320
b6d44341 815 tristate "RIPEMD-320 digest algorithm"
3b8efb4c 816 select CRYPTO_HASH
b6d44341
AB
817 help
818 RIPEMD-320 is an optional extension of RIPEMD-160 with a
819 320 bit hash. It is intended for applications that require
820 longer hash-results, without needing a larger security level
821 (than RIPEMD-160).
534fe2c1 822
b6d44341 823 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
6d8de74c 824 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
82798f90 825
584fffc8
SS
826config CRYPTO_SHA1
827 tristate "SHA1 digest algorithm"
54ccb367 828 select CRYPTO_HASH
1da177e4 829 help
584fffc8 830 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
1da177e4 831
66be8951 832config CRYPTO_SHA1_SSSE3
e38b6b7f 833 tristate "SHA1 digest algorithm (SSSE3/AVX/AVX2/SHA-NI)"
66be8951
MK
834 depends on X86 && 64BIT
835 select CRYPTO_SHA1
836 select CRYPTO_HASH
837 help
838 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
839 using Supplemental SSE3 (SSSE3) instructions or Advanced Vector
e38b6b7f 840 Extensions (AVX/AVX2) or SHA-NI(SHA Extensions New Instructions),
841 when available.
66be8951 842
8275d1aa 843config CRYPTO_SHA256_SSSE3
e38b6b7f 844 tristate "SHA256 digest algorithm (SSSE3/AVX/AVX2/SHA-NI)"
8275d1aa
TC
845 depends on X86 && 64BIT
846 select CRYPTO_SHA256
847 select CRYPTO_HASH
848 help
849 SHA-256 secure hash standard (DFIPS 180-2) implemented
850 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
851 Extensions version 1 (AVX1), or Advanced Vector Extensions
e38b6b7f 852 version 2 (AVX2) instructions, or SHA-NI (SHA Extensions New
853 Instructions) when available.
87de4579
TC
854
855config CRYPTO_SHA512_SSSE3
856 tristate "SHA512 digest algorithm (SSSE3/AVX/AVX2)"
857 depends on X86 && 64BIT
858 select CRYPTO_SHA512
859 select CRYPTO_HASH
860 help
861 SHA-512 secure hash standard (DFIPS 180-2) implemented
862 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
863 Extensions version 1 (AVX1), or Advanced Vector Extensions
8275d1aa
TC
864 version 2 (AVX2) instructions, when available.
865
efdb6f6e
AK
866config CRYPTO_SHA1_OCTEON
867 tristate "SHA1 digest algorithm (OCTEON)"
868 depends on CPU_CAVIUM_OCTEON
869 select CRYPTO_SHA1
870 select CRYPTO_HASH
871 help
872 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
873 using OCTEON crypto instructions, when available.
874
4ff28d4c
DM
875config CRYPTO_SHA1_SPARC64
876 tristate "SHA1 digest algorithm (SPARC64)"
877 depends on SPARC64
878 select CRYPTO_SHA1
879 select CRYPTO_HASH
880 help
881 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
882 using sparc64 crypto instructions, when available.
883
323a6bf1
ME
884config CRYPTO_SHA1_PPC
885 tristate "SHA1 digest algorithm (powerpc)"
886 depends on PPC
887 help
888 This is the powerpc hardware accelerated implementation of the
889 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
890
d9850fc5
MS
891config CRYPTO_SHA1_PPC_SPE
892 tristate "SHA1 digest algorithm (PPC SPE)"
893 depends on PPC && SPE
894 help
895 SHA-1 secure hash standard (DFIPS 180-4) implemented
896 using powerpc SPE SIMD instruction set.
897
584fffc8
SS
898config CRYPTO_SHA256
899 tristate "SHA224 and SHA256 digest algorithm"
50e109b5 900 select CRYPTO_HASH
08c327f6 901 select CRYPTO_LIB_SHA256
1da177e4 902 help
584fffc8 903 SHA256 secure hash standard (DFIPS 180-2).
1da177e4 904
584fffc8
SS
905 This version of SHA implements a 256 bit hash with 128 bits of
906 security against collision attacks.
2729bb42 907
b6d44341
AB
908 This code also includes SHA-224, a 224 bit hash with 112 bits
909 of security against collision attacks.
584fffc8 910
2ecc1e95
MS
911config CRYPTO_SHA256_PPC_SPE
912 tristate "SHA224 and SHA256 digest algorithm (PPC SPE)"
913 depends on PPC && SPE
914 select CRYPTO_SHA256
915 select CRYPTO_HASH
916 help
917 SHA224 and SHA256 secure hash standard (DFIPS 180-2)
918 implemented using powerpc SPE SIMD instruction set.
919
efdb6f6e
AK
920config CRYPTO_SHA256_OCTEON
921 tristate "SHA224 and SHA256 digest algorithm (OCTEON)"
922 depends on CPU_CAVIUM_OCTEON
923 select CRYPTO_SHA256
924 select CRYPTO_HASH
925 help
926 SHA-256 secure hash standard (DFIPS 180-2) implemented
927 using OCTEON crypto instructions, when available.
928
86c93b24
DM
929config CRYPTO_SHA256_SPARC64
930 tristate "SHA224 and SHA256 digest algorithm (SPARC64)"
931 depends on SPARC64
932 select CRYPTO_SHA256
933 select CRYPTO_HASH
934 help
935 SHA-256 secure hash standard (DFIPS 180-2) implemented
936 using sparc64 crypto instructions, when available.
937
584fffc8
SS
938config CRYPTO_SHA512
939 tristate "SHA384 and SHA512 digest algorithms"
bd9d20db 940 select CRYPTO_HASH
b9f535ff 941 help
584fffc8 942 SHA512 secure hash standard (DFIPS 180-2).
b9f535ff 943
584fffc8
SS
944 This version of SHA implements a 512 bit hash with 256 bits of
945 security against collision attacks.
b9f535ff 946
584fffc8
SS
947 This code also includes SHA-384, a 384 bit hash with 192 bits
948 of security against collision attacks.
b9f535ff 949
efdb6f6e
AK
950config CRYPTO_SHA512_OCTEON
951 tristate "SHA384 and SHA512 digest algorithms (OCTEON)"
952 depends on CPU_CAVIUM_OCTEON
953 select CRYPTO_SHA512
954 select CRYPTO_HASH
955 help
956 SHA-512 secure hash standard (DFIPS 180-2) implemented
957 using OCTEON crypto instructions, when available.
958
775e0c69
DM
959config CRYPTO_SHA512_SPARC64
960 tristate "SHA384 and SHA512 digest algorithm (SPARC64)"
961 depends on SPARC64
962 select CRYPTO_SHA512
963 select CRYPTO_HASH
964 help
965 SHA-512 secure hash standard (DFIPS 180-2) implemented
966 using sparc64 crypto instructions, when available.
967
53964b9e
JG
968config CRYPTO_SHA3
969 tristate "SHA3 digest algorithm"
970 select CRYPTO_HASH
971 help
972 SHA-3 secure hash standard (DFIPS 202). It's based on
973 cryptographic sponge function family called Keccak.
974
975 References:
976 http://keccak.noekeon.org/
977
4f0fc160
GBY
978config CRYPTO_SM3
979 tristate "SM3 digest algorithm"
980 select CRYPTO_HASH
981 help
982 SM3 secure hash function as defined by OSCCA GM/T 0004-2012 SM3).
983 It is part of the Chinese Commercial Cryptography suite.
984
985 References:
986 http://www.oscca.gov.cn/UpFile/20101222141857786.pdf
987 https://datatracker.ietf.org/doc/html/draft-shen-sm3-hash
988
fe18957e
VC
989config CRYPTO_STREEBOG
990 tristate "Streebog Hash Function"
991 select CRYPTO_HASH
992 help
993 Streebog Hash Function (GOST R 34.11-2012, RFC 6986) is one of the Russian
994 cryptographic standard algorithms (called GOST algorithms).
995 This setting enables two hash algorithms with 256 and 512 bits output.
996
997 References:
998 https://tc26.ru/upload/iblock/fed/feddbb4d26b685903faa2ba11aea43f6.pdf
999 https://tools.ietf.org/html/rfc6986
1000
584fffc8
SS
1001config CRYPTO_TGR192
1002 tristate "Tiger digest algorithms"
f63fbd3d 1003 select CRYPTO_HASH
eaf44088 1004 help
584fffc8 1005 Tiger hash algorithm 192, 160 and 128-bit hashes
eaf44088 1006
584fffc8
SS
1007 Tiger is a hash function optimized for 64-bit processors while
1008 still having decent performance on 32-bit processors.
1009 Tiger was developed by Ross Anderson and Eli Biham.
eaf44088
JF
1010
1011 See also:
584fffc8 1012 <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>.
eaf44088 1013
584fffc8
SS
1014config CRYPTO_WP512
1015 tristate "Whirlpool digest algorithms"
4946510b 1016 select CRYPTO_HASH
1da177e4 1017 help
584fffc8 1018 Whirlpool hash algorithm 512, 384 and 256-bit hashes
1da177e4 1019
584fffc8
SS
1020 Whirlpool-512 is part of the NESSIE cryptographic primitives.
1021 Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard
1da177e4
LT
1022
1023 See also:
6d8de74c 1024 <http://www.larc.usp.br/~pbarreto/WhirlpoolPage.html>
584fffc8 1025
0e1227d3 1026config CRYPTO_GHASH_CLMUL_NI_INTEL
8dfa20fc 1027 tristate "GHASH hash function (CLMUL-NI accelerated)"
8af00860 1028 depends on X86 && 64BIT
0e1227d3
HY
1029 select CRYPTO_CRYPTD
1030 help
8dfa20fc
EB
1031 This is the x86_64 CLMUL-NI accelerated implementation of
1032 GHASH, the hash function used in GCM (Galois/Counter mode).
0e1227d3 1033
584fffc8 1034comment "Ciphers"
1da177e4
LT
1035
1036config CRYPTO_AES
1037 tristate "AES cipher algorithms"
cce9e06d 1038 select CRYPTO_ALGAPI
5bb12d78 1039 select CRYPTO_LIB_AES
1da177e4 1040 help
584fffc8 1041 AES cipher algorithms (FIPS-197). AES uses the Rijndael
1da177e4
LT
1042 algorithm.
1043
1044 Rijndael appears to be consistently a very good performer in
584fffc8
SS
1045 both hardware and software across a wide range of computing
1046 environments regardless of its use in feedback or non-feedback
1047 modes. Its key setup time is excellent, and its key agility is
1048 good. Rijndael's very low memory requirements make it very well
1049 suited for restricted-space environments, in which it also
1050 demonstrates excellent performance. Rijndael's operations are
1051 among the easiest to defend against power and timing attacks.
1da177e4 1052
584fffc8 1053 The AES specifies three key sizes: 128, 192 and 256 bits
1da177e4
LT
1054
1055 See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information.
1056
b5e0b032
AB
1057config CRYPTO_AES_TI
1058 tristate "Fixed time AES cipher"
1059 select CRYPTO_ALGAPI
e59c1c98 1060 select CRYPTO_LIB_AES
b5e0b032
AB
1061 help
1062 This is a generic implementation of AES that attempts to eliminate
1063 data dependent latencies as much as possible without affecting
1064 performance too much. It is intended for use by the generic CCM
1065 and GCM drivers, and other CTR or CMAC/XCBC based modes that rely
1066 solely on encryption (although decryption is supported as well, but
1067 with a more dramatic performance hit)
1068
1069 Instead of using 16 lookup tables of 1 KB each, (8 for encryption and
1070 8 for decryption), this implementation only uses just two S-boxes of
1071 256 bytes each, and attempts to eliminate data dependent latencies by
1072 prefetching the entire table into the cache at the start of each
0a6a40c2
EB
1073 block. Interrupts are also disabled to avoid races where cachelines
1074 are evicted when the CPU is interrupted to do something else.
b5e0b032 1075
54b6a1bd
HY
1076config CRYPTO_AES_NI_INTEL
1077 tristate "AES cipher algorithms (AES-NI)"
8af00860 1078 depends on X86
85671860 1079 select CRYPTO_AEAD
2c53fd11 1080 select CRYPTO_LIB_AES
54b6a1bd 1081 select CRYPTO_ALGAPI
b95bba5d 1082 select CRYPTO_SKCIPHER
7643a11a 1083 select CRYPTO_GLUE_HELPER_X86 if 64BIT
85671860 1084 select CRYPTO_SIMD
54b6a1bd
HY
1085 help
1086 Use Intel AES-NI instructions for AES algorithm.
1087
1088 AES cipher algorithms (FIPS-197). AES uses the Rijndael
1089 algorithm.
1090
1091 Rijndael appears to be consistently a very good performer in
1092 both hardware and software across a wide range of computing
1093 environments regardless of its use in feedback or non-feedback
1094 modes. Its key setup time is excellent, and its key agility is
584fffc8
SS
1095 good. Rijndael's very low memory requirements make it very well
1096 suited for restricted-space environments, in which it also
1097 demonstrates excellent performance. Rijndael's operations are
1098 among the easiest to defend against power and timing attacks.
a2a892a2 1099
584fffc8 1100 The AES specifies three key sizes: 128, 192 and 256 bits
1da177e4
LT
1101
1102 See <http://csrc.nist.gov/encryption/aes/> for more information.
1103
0d258efb
MK
1104 In addition to AES cipher algorithm support, the acceleration
1105 for some popular block cipher mode is supported too, including
944585a6 1106 ECB, CBC, LRW, XTS. The 64 bit version has additional
0d258efb 1107 acceleration for CTR.
2cf4ac8b 1108
9bf4852d
DM
1109config CRYPTO_AES_SPARC64
1110 tristate "AES cipher algorithms (SPARC64)"
1111 depends on SPARC64
b95bba5d 1112 select CRYPTO_SKCIPHER
9bf4852d
DM
1113 help
1114 Use SPARC64 crypto opcodes for AES algorithm.
1115
1116 AES cipher algorithms (FIPS-197). AES uses the Rijndael
1117 algorithm.
1118
1119 Rijndael appears to be consistently a very good performer in
1120 both hardware and software across a wide range of computing
1121 environments regardless of its use in feedback or non-feedback
1122 modes. Its key setup time is excellent, and its key agility is
1123 good. Rijndael's very low memory requirements make it very well
1124 suited for restricted-space environments, in which it also
1125 demonstrates excellent performance. Rijndael's operations are
1126 among the easiest to defend against power and timing attacks.
1127
1128 The AES specifies three key sizes: 128, 192 and 256 bits
1129
1130 See <http://csrc.nist.gov/encryption/aes/> for more information.
1131
1132 In addition to AES cipher algorithm support, the acceleration
1133 for some popular block cipher mode is supported too, including
1134 ECB and CBC.
1135
504c6143
MS
1136config CRYPTO_AES_PPC_SPE
1137 tristate "AES cipher algorithms (PPC SPE)"
1138 depends on PPC && SPE
b95bba5d 1139 select CRYPTO_SKCIPHER
504c6143
MS
1140 help
1141 AES cipher algorithms (FIPS-197). Additionally the acceleration
1142 for popular block cipher modes ECB, CBC, CTR and XTS is supported.
1143 This module should only be used for low power (router) devices
1144 without hardware AES acceleration (e.g. caam crypto). It reduces the
1145 size of the AES tables from 16KB to 8KB + 256 bytes and mitigates
1146 timining attacks. Nevertheless it might be not as secure as other
1147 architecture specific assembler implementations that work on 1KB
1148 tables or 256 bytes S-boxes.
1149
584fffc8
SS
1150config CRYPTO_ANUBIS
1151 tristate "Anubis cipher algorithm"
1152 select CRYPTO_ALGAPI
1153 help
1154 Anubis cipher algorithm.
1155
1156 Anubis is a variable key length cipher which can use keys from
1157 128 bits to 320 bits in length. It was evaluated as a entrant
1158 in the NESSIE competition.
1159
1160 See also:
6d8de74c
JM
1161 <https://www.cosic.esat.kuleuven.be/nessie/reports/>
1162 <http://www.larc.usp.br/~pbarreto/AnubisPage.html>
584fffc8
SS
1163
1164config CRYPTO_ARC4
1165 tristate "ARC4 cipher algorithm"
b95bba5d 1166 select CRYPTO_SKCIPHER
dc51f257 1167 select CRYPTO_LIB_ARC4
584fffc8
SS
1168 help
1169 ARC4 cipher algorithm.
1170
1171 ARC4 is a stream cipher using keys ranging from 8 bits to 2048
1172 bits in length. This algorithm is required for driver-based
1173 WEP, but it should not be for other purposes because of the
1174 weakness of the algorithm.
1175
1176config CRYPTO_BLOWFISH
1177 tristate "Blowfish cipher algorithm"
1178 select CRYPTO_ALGAPI
52ba867c 1179 select CRYPTO_BLOWFISH_COMMON
584fffc8
SS
1180 help
1181 Blowfish cipher algorithm, by Bruce Schneier.
1182
1183 This is a variable key length cipher which can use keys from 32
1184 bits to 448 bits in length. It's fast, simple and specifically
1185 designed for use on "large microprocessors".
1186
1187 See also:
1188 <http://www.schneier.com/blowfish.html>
1189
52ba867c
JK
1190config CRYPTO_BLOWFISH_COMMON
1191 tristate
1192 help
1193 Common parts of the Blowfish cipher algorithm shared by the
1194 generic c and the assembler implementations.
1195
1196 See also:
1197 <http://www.schneier.com/blowfish.html>
1198
64b94cea
JK
1199config CRYPTO_BLOWFISH_X86_64
1200 tristate "Blowfish cipher algorithm (x86_64)"
f21a7c19 1201 depends on X86 && 64BIT
b95bba5d 1202 select CRYPTO_SKCIPHER
64b94cea
JK
1203 select CRYPTO_BLOWFISH_COMMON
1204 help
1205 Blowfish cipher algorithm (x86_64), by Bruce Schneier.
1206
1207 This is a variable key length cipher which can use keys from 32
1208 bits to 448 bits in length. It's fast, simple and specifically
1209 designed for use on "large microprocessors".
1210
1211 See also:
1212 <http://www.schneier.com/blowfish.html>
1213
584fffc8
SS
1214config CRYPTO_CAMELLIA
1215 tristate "Camellia cipher algorithms"
1216 depends on CRYPTO
1217 select CRYPTO_ALGAPI
1218 help
1219 Camellia cipher algorithms module.
1220
1221 Camellia is a symmetric key block cipher developed jointly
1222 at NTT and Mitsubishi Electric Corporation.
1223
1224 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1225
1226 See also:
1227 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1228
0b95ec56
JK
1229config CRYPTO_CAMELLIA_X86_64
1230 tristate "Camellia cipher algorithm (x86_64)"
f21a7c19 1231 depends on X86 && 64BIT
0b95ec56 1232 depends on CRYPTO
b95bba5d 1233 select CRYPTO_SKCIPHER
964263af 1234 select CRYPTO_GLUE_HELPER_X86
0b95ec56
JK
1235 help
1236 Camellia cipher algorithm module (x86_64).
1237
1238 Camellia is a symmetric key block cipher developed jointly
1239 at NTT and Mitsubishi Electric Corporation.
1240
1241 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1242
1243 See also:
d9b1d2e7
JK
1244 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1245
1246config CRYPTO_CAMELLIA_AESNI_AVX_X86_64
1247 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX)"
1248 depends on X86 && 64BIT
1249 depends on CRYPTO
b95bba5d 1250 select CRYPTO_SKCIPHER
d9b1d2e7 1251 select CRYPTO_CAMELLIA_X86_64
44893bc2
EB
1252 select CRYPTO_GLUE_HELPER_X86
1253 select CRYPTO_SIMD
d9b1d2e7
JK
1254 select CRYPTO_XTS
1255 help
1256 Camellia cipher algorithm module (x86_64/AES-NI/AVX).
1257
1258 Camellia is a symmetric key block cipher developed jointly
1259 at NTT and Mitsubishi Electric Corporation.
1260
1261 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1262
1263 See also:
0b95ec56
JK
1264 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1265
f3f935a7
JK
1266config CRYPTO_CAMELLIA_AESNI_AVX2_X86_64
1267 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX2)"
1268 depends on X86 && 64BIT
1269 depends on CRYPTO
f3f935a7 1270 select CRYPTO_CAMELLIA_AESNI_AVX_X86_64
f3f935a7
JK
1271 help
1272 Camellia cipher algorithm module (x86_64/AES-NI/AVX2).
1273
1274 Camellia is a symmetric key block cipher developed jointly
1275 at NTT and Mitsubishi Electric Corporation.
1276
1277 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1278
1279 See also:
1280 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1281
81658ad0
DM
1282config CRYPTO_CAMELLIA_SPARC64
1283 tristate "Camellia cipher algorithm (SPARC64)"
1284 depends on SPARC64
1285 depends on CRYPTO
1286 select CRYPTO_ALGAPI
b95bba5d 1287 select CRYPTO_SKCIPHER
81658ad0
DM
1288 help
1289 Camellia cipher algorithm module (SPARC64).
1290
1291 Camellia is a symmetric key block cipher developed jointly
1292 at NTT and Mitsubishi Electric Corporation.
1293
1294 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1295
1296 See also:
1297 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1298
044ab525
JK
1299config CRYPTO_CAST_COMMON
1300 tristate
1301 help
1302 Common parts of the CAST cipher algorithms shared by the
1303 generic c and the assembler implementations.
1304
1da177e4
LT
1305config CRYPTO_CAST5
1306 tristate "CAST5 (CAST-128) cipher algorithm"
cce9e06d 1307 select CRYPTO_ALGAPI
044ab525 1308 select CRYPTO_CAST_COMMON
1da177e4
LT
1309 help
1310 The CAST5 encryption algorithm (synonymous with CAST-128) is
1311 described in RFC2144.
1312
4d6d6a2c
JG
1313config CRYPTO_CAST5_AVX_X86_64
1314 tristate "CAST5 (CAST-128) cipher algorithm (x86_64/AVX)"
1315 depends on X86 && 64BIT
b95bba5d 1316 select CRYPTO_SKCIPHER
4d6d6a2c 1317 select CRYPTO_CAST5
1e63183a
EB
1318 select CRYPTO_CAST_COMMON
1319 select CRYPTO_SIMD
4d6d6a2c
JG
1320 help
1321 The CAST5 encryption algorithm (synonymous with CAST-128) is
1322 described in RFC2144.
1323
1324 This module provides the Cast5 cipher algorithm that processes
1325 sixteen blocks parallel using the AVX instruction set.
1326
1da177e4
LT
1327config CRYPTO_CAST6
1328 tristate "CAST6 (CAST-256) cipher algorithm"
cce9e06d 1329 select CRYPTO_ALGAPI
044ab525 1330 select CRYPTO_CAST_COMMON
1da177e4
LT
1331 help
1332 The CAST6 encryption algorithm (synonymous with CAST-256) is
1333 described in RFC2612.
1334
4ea1277d
JG
1335config CRYPTO_CAST6_AVX_X86_64
1336 tristate "CAST6 (CAST-256) cipher algorithm (x86_64/AVX)"
1337 depends on X86 && 64BIT
b95bba5d 1338 select CRYPTO_SKCIPHER
4ea1277d 1339 select CRYPTO_CAST6
4bd96924
EB
1340 select CRYPTO_CAST_COMMON
1341 select CRYPTO_GLUE_HELPER_X86
1342 select CRYPTO_SIMD
4ea1277d
JG
1343 select CRYPTO_XTS
1344 help
1345 The CAST6 encryption algorithm (synonymous with CAST-256) is
1346 described in RFC2612.
1347
1348 This module provides the Cast6 cipher algorithm that processes
1349 eight blocks parallel using the AVX instruction set.
1350
584fffc8
SS
1351config CRYPTO_DES
1352 tristate "DES and Triple DES EDE cipher algorithms"
cce9e06d 1353 select CRYPTO_ALGAPI
04007b0e 1354 select CRYPTO_LIB_DES
1da177e4 1355 help
584fffc8 1356 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
fb4f10ed 1357
c5aac2df
DM
1358config CRYPTO_DES_SPARC64
1359 tristate "DES and Triple DES EDE cipher algorithms (SPARC64)"
97da37b3 1360 depends on SPARC64
c5aac2df 1361 select CRYPTO_ALGAPI
04007b0e 1362 select CRYPTO_LIB_DES
b95bba5d 1363 select CRYPTO_SKCIPHER
c5aac2df
DM
1364 help
1365 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3),
1366 optimized using SPARC64 crypto opcodes.
1367
6574e6c6
JK
1368config CRYPTO_DES3_EDE_X86_64
1369 tristate "Triple DES EDE cipher algorithm (x86-64)"
1370 depends on X86 && 64BIT
b95bba5d 1371 select CRYPTO_SKCIPHER
04007b0e 1372 select CRYPTO_LIB_DES
6574e6c6
JK
1373 help
1374 Triple DES EDE (FIPS 46-3) algorithm.
1375
1376 This module provides implementation of the Triple DES EDE cipher
1377 algorithm that is optimized for x86-64 processors. Two versions of
1378 algorithm are provided; regular processing one input block and
1379 one that processes three blocks parallel.
1380
584fffc8
SS
1381config CRYPTO_FCRYPT
1382 tristate "FCrypt cipher algorithm"
cce9e06d 1383 select CRYPTO_ALGAPI
b95bba5d 1384 select CRYPTO_SKCIPHER
1da177e4 1385 help
584fffc8 1386 FCrypt algorithm used by RxRPC.
1da177e4
LT
1387
1388config CRYPTO_KHAZAD
1389 tristate "Khazad cipher algorithm"
cce9e06d 1390 select CRYPTO_ALGAPI
1da177e4
LT
1391 help
1392 Khazad cipher algorithm.
1393
1394 Khazad was a finalist in the initial NESSIE competition. It is
1395 an algorithm optimized for 64-bit processors with good performance
1396 on 32-bit processors. Khazad uses an 128 bit key size.
1397
1398 See also:
6d8de74c 1399 <http://www.larc.usp.br/~pbarreto/KhazadPage.html>
1da177e4 1400
2407d608 1401config CRYPTO_SALSA20
3b4afaf2 1402 tristate "Salsa20 stream cipher algorithm"
b95bba5d 1403 select CRYPTO_SKCIPHER
2407d608
TSH
1404 help
1405 Salsa20 stream cipher algorithm.
1406
1407 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
1408 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
974e4b75
TSH
1409
1410 The Salsa20 stream cipher algorithm is designed by Daniel J.
1411 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
1412
c08d0e64 1413config CRYPTO_CHACHA20
aa762409 1414 tristate "ChaCha stream cipher algorithms"
5fb8ef25 1415 select CRYPTO_LIB_CHACHA_GENERIC
b95bba5d 1416 select CRYPTO_SKCIPHER
c08d0e64 1417 help
aa762409 1418 The ChaCha20, XChaCha20, and XChaCha12 stream cipher algorithms.
c08d0e64
MW
1419
1420 ChaCha20 is a 256-bit high-speed stream cipher designed by Daniel J.
1421 Bernstein and further specified in RFC7539 for use in IETF protocols.
de61d7ae 1422 This is the portable C implementation of ChaCha20. See also:
c08d0e64
MW
1423 <http://cr.yp.to/chacha/chacha-20080128.pdf>
1424
de61d7ae
EB
1425 XChaCha20 is the application of the XSalsa20 construction to ChaCha20
1426 rather than to Salsa20. XChaCha20 extends ChaCha20's nonce length
1427 from 64 bits (or 96 bits using the RFC7539 convention) to 192 bits,
1428 while provably retaining ChaCha20's security. See also:
1429 <https://cr.yp.to/snuffle/xsalsa-20081128.pdf>
1430
aa762409
EB
1431 XChaCha12 is XChaCha20 reduced to 12 rounds, with correspondingly
1432 reduced security margin but increased performance. It can be needed
1433 in some performance-sensitive scenarios.
1434
c9320b6d 1435config CRYPTO_CHACHA20_X86_64
4af78261 1436 tristate "ChaCha stream cipher algorithms (x86_64/SSSE3/AVX2/AVX-512VL)"
c9320b6d 1437 depends on X86 && 64BIT
b95bba5d 1438 select CRYPTO_SKCIPHER
c9320b6d
MW
1439 select CRYPTO_CHACHA20
1440 help
7a507d62
EB
1441 SSSE3, AVX2, and AVX-512VL optimized implementations of the ChaCha20,
1442 XChaCha20, and XChaCha12 stream ciphers.
c9320b6d 1443
584fffc8
SS
1444config CRYPTO_SEED
1445 tristate "SEED cipher algorithm"
cce9e06d 1446 select CRYPTO_ALGAPI
1da177e4 1447 help
584fffc8 1448 SEED cipher algorithm (RFC4269).
1da177e4 1449
584fffc8
SS
1450 SEED is a 128-bit symmetric key block cipher that has been
1451 developed by KISA (Korea Information Security Agency) as a
1452 national standard encryption algorithm of the Republic of Korea.
1453 It is a 16 round block cipher with the key size of 128 bit.
1454
1455 See also:
1456 <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>
1457
1458config CRYPTO_SERPENT
1459 tristate "Serpent cipher algorithm"
cce9e06d 1460 select CRYPTO_ALGAPI
1da177e4 1461 help
584fffc8 1462 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1da177e4 1463
584fffc8
SS
1464 Keys are allowed to be from 0 to 256 bits in length, in steps
1465 of 8 bits. Also includes the 'Tnepres' algorithm, a reversed
1466 variant of Serpent for compatibility with old kerneli.org code.
1467
1468 See also:
1469 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1470
937c30d7
JK
1471config CRYPTO_SERPENT_SSE2_X86_64
1472 tristate "Serpent cipher algorithm (x86_64/SSE2)"
1473 depends on X86 && 64BIT
b95bba5d 1474 select CRYPTO_SKCIPHER
596d8750 1475 select CRYPTO_GLUE_HELPER_X86
937c30d7 1476 select CRYPTO_SERPENT
e0f409dc 1477 select CRYPTO_SIMD
937c30d7
JK
1478 help
1479 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1480
1481 Keys are allowed to be from 0 to 256 bits in length, in steps
1482 of 8 bits.
1483
1e6232f8 1484 This module provides Serpent cipher algorithm that processes eight
937c30d7
JK
1485 blocks parallel using SSE2 instruction set.
1486
1487 See also:
1488 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1489
251496db
JK
1490config CRYPTO_SERPENT_SSE2_586
1491 tristate "Serpent cipher algorithm (i586/SSE2)"
1492 depends on X86 && !64BIT
b95bba5d 1493 select CRYPTO_SKCIPHER
596d8750 1494 select CRYPTO_GLUE_HELPER_X86
251496db 1495 select CRYPTO_SERPENT
e0f409dc 1496 select CRYPTO_SIMD
251496db
JK
1497 help
1498 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1499
1500 Keys are allowed to be from 0 to 256 bits in length, in steps
1501 of 8 bits.
1502
1503 This module provides Serpent cipher algorithm that processes four
1504 blocks parallel using SSE2 instruction set.
1505
1506 See also:
1507 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
7efe4076
JG
1508
1509config CRYPTO_SERPENT_AVX_X86_64
1510 tristate "Serpent cipher algorithm (x86_64/AVX)"
1511 depends on X86 && 64BIT
b95bba5d 1512 select CRYPTO_SKCIPHER
1d0debbd 1513 select CRYPTO_GLUE_HELPER_X86
7efe4076 1514 select CRYPTO_SERPENT
e16bf974 1515 select CRYPTO_SIMD
7efe4076
JG
1516 select CRYPTO_XTS
1517 help
1518 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1519
1520 Keys are allowed to be from 0 to 256 bits in length, in steps
1521 of 8 bits.
1522
1523 This module provides the Serpent cipher algorithm that processes
1524 eight blocks parallel using the AVX instruction set.
1525
1526 See also:
1527 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
251496db 1528
56d76c96
JK
1529config CRYPTO_SERPENT_AVX2_X86_64
1530 tristate "Serpent cipher algorithm (x86_64/AVX2)"
1531 depends on X86 && 64BIT
56d76c96 1532 select CRYPTO_SERPENT_AVX_X86_64
56d76c96
JK
1533 help
1534 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1535
1536 Keys are allowed to be from 0 to 256 bits in length, in steps
1537 of 8 bits.
1538
1539 This module provides Serpent cipher algorithm that processes 16
1540 blocks parallel using AVX2 instruction set.
1541
1542 See also:
1543 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1544
747c8ce4
GBY
1545config CRYPTO_SM4
1546 tristate "SM4 cipher algorithm"
1547 select CRYPTO_ALGAPI
1548 help
1549 SM4 cipher algorithms (OSCCA GB/T 32907-2016).
1550
1551 SM4 (GBT.32907-2016) is a cryptographic standard issued by the
1552 Organization of State Commercial Administration of China (OSCCA)
1553 as an authorized cryptographic algorithms for the use within China.
1554
1555 SMS4 was originally created for use in protecting wireless
1556 networks, and is mandated in the Chinese National Standard for
1557 Wireless LAN WAPI (Wired Authentication and Privacy Infrastructure)
1558 (GB.15629.11-2003).
1559
1560 The latest SM4 standard (GBT.32907-2016) was proposed by OSCCA and
1561 standardized through TC 260 of the Standardization Administration
1562 of the People's Republic of China (SAC).
1563
1564 The input, output, and key of SMS4 are each 128 bits.
1565
1566 See also: <https://eprint.iacr.org/2008/329.pdf>
1567
1568 If unsure, say N.
1569
584fffc8
SS
1570config CRYPTO_TEA
1571 tristate "TEA, XTEA and XETA cipher algorithms"
cce9e06d 1572 select CRYPTO_ALGAPI
1da177e4 1573 help
584fffc8 1574 TEA cipher algorithm.
1da177e4 1575
584fffc8
SS
1576 Tiny Encryption Algorithm is a simple cipher that uses
1577 many rounds for security. It is very fast and uses
1578 little memory.
1579
1580 Xtendend Tiny Encryption Algorithm is a modification to
1581 the TEA algorithm to address a potential key weakness
1582 in the TEA algorithm.
1583
1584 Xtendend Encryption Tiny Algorithm is a mis-implementation
1585 of the XTEA algorithm for compatibility purposes.
1586
1587config CRYPTO_TWOFISH
1588 tristate "Twofish cipher algorithm"
04ac7db3 1589 select CRYPTO_ALGAPI
584fffc8 1590 select CRYPTO_TWOFISH_COMMON
04ac7db3 1591 help
584fffc8 1592 Twofish cipher algorithm.
04ac7db3 1593
584fffc8
SS
1594 Twofish was submitted as an AES (Advanced Encryption Standard)
1595 candidate cipher by researchers at CounterPane Systems. It is a
1596 16 round block cipher supporting key sizes of 128, 192, and 256
1597 bits.
04ac7db3 1598
584fffc8
SS
1599 See also:
1600 <http://www.schneier.com/twofish.html>
1601
1602config CRYPTO_TWOFISH_COMMON
1603 tristate
1604 help
1605 Common parts of the Twofish cipher algorithm shared by the
1606 generic c and the assembler implementations.
1607
1608config CRYPTO_TWOFISH_586
1609 tristate "Twofish cipher algorithms (i586)"
1610 depends on (X86 || UML_X86) && !64BIT
1611 select CRYPTO_ALGAPI
1612 select CRYPTO_TWOFISH_COMMON
1613 help
1614 Twofish cipher algorithm.
1615
1616 Twofish was submitted as an AES (Advanced Encryption Standard)
1617 candidate cipher by researchers at CounterPane Systems. It is a
1618 16 round block cipher supporting key sizes of 128, 192, and 256
1619 bits.
04ac7db3
NT
1620
1621 See also:
584fffc8 1622 <http://www.schneier.com/twofish.html>
04ac7db3 1623
584fffc8
SS
1624config CRYPTO_TWOFISH_X86_64
1625 tristate "Twofish cipher algorithm (x86_64)"
1626 depends on (X86 || UML_X86) && 64BIT
cce9e06d 1627 select CRYPTO_ALGAPI
584fffc8 1628 select CRYPTO_TWOFISH_COMMON
1da177e4 1629 help
584fffc8 1630 Twofish cipher algorithm (x86_64).
1da177e4 1631
584fffc8
SS
1632 Twofish was submitted as an AES (Advanced Encryption Standard)
1633 candidate cipher by researchers at CounterPane Systems. It is a
1634 16 round block cipher supporting key sizes of 128, 192, and 256
1635 bits.
1636
1637 See also:
1638 <http://www.schneier.com/twofish.html>
1639
8280daad
JK
1640config CRYPTO_TWOFISH_X86_64_3WAY
1641 tristate "Twofish cipher algorithm (x86_64, 3-way parallel)"
f21a7c19 1642 depends on X86 && 64BIT
b95bba5d 1643 select CRYPTO_SKCIPHER
8280daad
JK
1644 select CRYPTO_TWOFISH_COMMON
1645 select CRYPTO_TWOFISH_X86_64
414cb5e7 1646 select CRYPTO_GLUE_HELPER_X86
8280daad
JK
1647 help
1648 Twofish cipher algorithm (x86_64, 3-way parallel).
1649
1650 Twofish was submitted as an AES (Advanced Encryption Standard)
1651 candidate cipher by researchers at CounterPane Systems. It is a
1652 16 round block cipher supporting key sizes of 128, 192, and 256
1653 bits.
1654
1655 This module provides Twofish cipher algorithm that processes three
1656 blocks parallel, utilizing resources of out-of-order CPUs better.
1657
1658 See also:
1659 <http://www.schneier.com/twofish.html>
1660
107778b5
JG
1661config CRYPTO_TWOFISH_AVX_X86_64
1662 tristate "Twofish cipher algorithm (x86_64/AVX)"
1663 depends on X86 && 64BIT
b95bba5d 1664 select CRYPTO_SKCIPHER
a7378d4e 1665 select CRYPTO_GLUE_HELPER_X86
0e6ab46d 1666 select CRYPTO_SIMD
107778b5
JG
1667 select CRYPTO_TWOFISH_COMMON
1668 select CRYPTO_TWOFISH_X86_64
1669 select CRYPTO_TWOFISH_X86_64_3WAY
107778b5
JG
1670 help
1671 Twofish cipher algorithm (x86_64/AVX).
1672
1673 Twofish was submitted as an AES (Advanced Encryption Standard)
1674 candidate cipher by researchers at CounterPane Systems. It is a
1675 16 round block cipher supporting key sizes of 128, 192, and 256
1676 bits.
1677
1678 This module provides the Twofish cipher algorithm that processes
1679 eight blocks parallel using the AVX Instruction Set.
1680
1681 See also:
1682 <http://www.schneier.com/twofish.html>
1683
584fffc8
SS
1684comment "Compression"
1685
1686config CRYPTO_DEFLATE
1687 tristate "Deflate compression algorithm"
1688 select CRYPTO_ALGAPI
f6ded09d 1689 select CRYPTO_ACOMP2
584fffc8
SS
1690 select ZLIB_INFLATE
1691 select ZLIB_DEFLATE
3c09f17c 1692 help
584fffc8
SS
1693 This is the Deflate algorithm (RFC1951), specified for use in
1694 IPSec with the IPCOMP protocol (RFC3173, RFC2394).
1695
1696 You will most probably want this if using IPSec.
3c09f17c 1697
0b77abb3
ZS
1698config CRYPTO_LZO
1699 tristate "LZO compression algorithm"
1700 select CRYPTO_ALGAPI
ac9d2c4b 1701 select CRYPTO_ACOMP2
0b77abb3
ZS
1702 select LZO_COMPRESS
1703 select LZO_DECOMPRESS
1704 help
1705 This is the LZO algorithm.
1706
35a1fc18
SJ
1707config CRYPTO_842
1708 tristate "842 compression algorithm"
2062c5b6 1709 select CRYPTO_ALGAPI
6a8de3ae 1710 select CRYPTO_ACOMP2
2062c5b6
DS
1711 select 842_COMPRESS
1712 select 842_DECOMPRESS
35a1fc18
SJ
1713 help
1714 This is the 842 algorithm.
0ea8530d
CM
1715
1716config CRYPTO_LZ4
1717 tristate "LZ4 compression algorithm"
1718 select CRYPTO_ALGAPI
8cd9330e 1719 select CRYPTO_ACOMP2
0ea8530d
CM
1720 select LZ4_COMPRESS
1721 select LZ4_DECOMPRESS
1722 help
1723 This is the LZ4 algorithm.
1724
1725config CRYPTO_LZ4HC
1726 tristate "LZ4HC compression algorithm"
1727 select CRYPTO_ALGAPI
91d53d96 1728 select CRYPTO_ACOMP2
0ea8530d
CM
1729 select LZ4HC_COMPRESS
1730 select LZ4_DECOMPRESS
1731 help
1732 This is the LZ4 high compression mode algorithm.
35a1fc18 1733
d28fc3db
NT
1734config CRYPTO_ZSTD
1735 tristate "Zstd compression algorithm"
1736 select CRYPTO_ALGAPI
1737 select CRYPTO_ACOMP2
1738 select ZSTD_COMPRESS
1739 select ZSTD_DECOMPRESS
1740 help
1741 This is the zstd algorithm.
1742
17f0f4a4
NH
1743comment "Random Number Generation"
1744
1745config CRYPTO_ANSI_CPRNG
1746 tristate "Pseudo Random Number Generation for Cryptographic modules"
1747 select CRYPTO_AES
1748 select CRYPTO_RNG
17f0f4a4
NH
1749 help
1750 This option enables the generic pseudo random number generator
1751 for cryptographic modules. Uses the Algorithm specified in
7dd607e8
JK
1752 ANSI X9.31 A.2.4. Note that this option must be enabled if
1753 CRYPTO_FIPS is selected
17f0f4a4 1754
f2c89a10 1755menuconfig CRYPTO_DRBG_MENU
419090c6 1756 tristate "NIST SP800-90A DRBG"
419090c6
SM
1757 help
1758 NIST SP800-90A compliant DRBG. In the following submenu, one or
1759 more of the DRBG types must be selected.
1760
f2c89a10 1761if CRYPTO_DRBG_MENU
419090c6
SM
1762
1763config CRYPTO_DRBG_HMAC
401e4238 1764 bool
419090c6 1765 default y
419090c6 1766 select CRYPTO_HMAC
826775bb 1767 select CRYPTO_SHA256
419090c6
SM
1768
1769config CRYPTO_DRBG_HASH
1770 bool "Enable Hash DRBG"
826775bb 1771 select CRYPTO_SHA256
419090c6
SM
1772 help
1773 Enable the Hash DRBG variant as defined in NIST SP800-90A.
1774
1775config CRYPTO_DRBG_CTR
1776 bool "Enable CTR DRBG"
419090c6 1777 select CRYPTO_AES
35591285 1778 depends on CRYPTO_CTR
419090c6
SM
1779 help
1780 Enable the CTR DRBG variant as defined in NIST SP800-90A.
1781
f2c89a10
HX
1782config CRYPTO_DRBG
1783 tristate
401e4238 1784 default CRYPTO_DRBG_MENU
f2c89a10 1785 select CRYPTO_RNG
bb5530e4 1786 select CRYPTO_JITTERENTROPY
f2c89a10
HX
1787
1788endif # if CRYPTO_DRBG_MENU
419090c6 1789
bb5530e4
SM
1790config CRYPTO_JITTERENTROPY
1791 tristate "Jitterentropy Non-Deterministic Random Number Generator"
2f313e02 1792 select CRYPTO_RNG
bb5530e4
SM
1793 help
1794 The Jitterentropy RNG is a noise that is intended
1795 to provide seed to another RNG. The RNG does not
1796 perform any cryptographic whitening of the generated
1797 random numbers. This Jitterentropy RNG registers with
1798 the kernel crypto API and can be used by any caller.
1799
03c8efc1
HX
1800config CRYPTO_USER_API
1801 tristate
1802
fe869cdb
HX
1803config CRYPTO_USER_API_HASH
1804 tristate "User-space interface for hash algorithms"
7451708f 1805 depends on NET
fe869cdb
HX
1806 select CRYPTO_HASH
1807 select CRYPTO_USER_API
1808 help
1809 This option enables the user-spaces interface for hash
1810 algorithms.
1811
8ff59090
HX
1812config CRYPTO_USER_API_SKCIPHER
1813 tristate "User-space interface for symmetric key cipher algorithms"
7451708f 1814 depends on NET
b95bba5d 1815 select CRYPTO_SKCIPHER
8ff59090
HX
1816 select CRYPTO_USER_API
1817 help
1818 This option enables the user-spaces interface for symmetric
1819 key cipher algorithms.
1820
2f375538
SM
1821config CRYPTO_USER_API_RNG
1822 tristate "User-space interface for random number generator algorithms"
1823 depends on NET
1824 select CRYPTO_RNG
1825 select CRYPTO_USER_API
1826 help
1827 This option enables the user-spaces interface for random
1828 number generator algorithms.
1829
b64a2d95
HX
1830config CRYPTO_USER_API_AEAD
1831 tristate "User-space interface for AEAD cipher algorithms"
1832 depends on NET
1833 select CRYPTO_AEAD
b95bba5d 1834 select CRYPTO_SKCIPHER
72548b09 1835 select CRYPTO_NULL
b64a2d95
HX
1836 select CRYPTO_USER_API
1837 help
1838 This option enables the user-spaces interface for AEAD
1839 cipher algorithms.
1840
cac5818c
CL
1841config CRYPTO_STATS
1842 bool "Crypto usage statistics for User-space"
a6a31385 1843 depends on CRYPTO_USER
cac5818c
CL
1844 help
1845 This option enables the gathering of crypto stats.
1846 This will collect:
1847 - encrypt/decrypt size and numbers of symmeric operations
1848 - compress/decompress size and numbers of compress operations
1849 - size and numbers of hash operations
1850 - encrypt/decrypt/sign/verify numbers for asymmetric operations
1851 - generate/seed numbers for rng operations
1852
ee08997f
DK
1853config CRYPTO_HASH_INFO
1854 bool
1855
746b2e02 1856source "lib/crypto/Kconfig"
1da177e4 1857source "drivers/crypto/Kconfig"
8636a1f9
MY
1858source "crypto/asymmetric_keys/Kconfig"
1859source "certs/Kconfig"
1da177e4 1860
cce9e06d 1861endif # if CRYPTO