]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - crypto/Kconfig
crypto: akcipher - add PKE API
[mirror_ubuntu-bionic-kernel.git] / crypto / Kconfig
CommitLineData
685784aa
DW
1#
2# Generic algorithms support
3#
4config XOR_BLOCKS
5 tristate
6
1da177e4 7#
9bc89cd8 8# async_tx api: hardware offloaded memory transfer/transform support
1da177e4 9#
9bc89cd8 10source "crypto/async_tx/Kconfig"
1da177e4 11
9bc89cd8
DW
12#
13# Cryptographic API Configuration
14#
2e290f43 15menuconfig CRYPTO
c3715cb9 16 tristate "Cryptographic API"
1da177e4
LT
17 help
18 This option provides the core Cryptographic API.
19
cce9e06d
HX
20if CRYPTO
21
584fffc8
SS
22comment "Crypto core or helper"
23
ccb778e1
NH
24config CRYPTO_FIPS
25 bool "FIPS 200 compliance"
f2c89a10 26 depends on (CRYPTO_ANSI_CPRNG || CRYPTO_DRBG) && !CRYPTO_MANAGER_DISABLE_TESTS
002c77a4 27 depends on MODULE_SIG
ccb778e1
NH
28 help
29 This options enables the fips boot option which is
30 required if you want to system to operate in a FIPS 200
31 certification. You should say no unless you know what
e84c5480 32 this is.
ccb778e1 33
cce9e06d
HX
34config CRYPTO_ALGAPI
35 tristate
6a0fcbb4 36 select CRYPTO_ALGAPI2
cce9e06d
HX
37 help
38 This option provides the API for cryptographic algorithms.
39
6a0fcbb4
HX
40config CRYPTO_ALGAPI2
41 tristate
42
1ae97820
HX
43config CRYPTO_AEAD
44 tristate
6a0fcbb4 45 select CRYPTO_AEAD2
1ae97820
HX
46 select CRYPTO_ALGAPI
47
6a0fcbb4
HX
48config CRYPTO_AEAD2
49 tristate
50 select CRYPTO_ALGAPI2
51
5cde0af2
HX
52config CRYPTO_BLKCIPHER
53 tristate
6a0fcbb4 54 select CRYPTO_BLKCIPHER2
5cde0af2 55 select CRYPTO_ALGAPI
6a0fcbb4
HX
56
57config CRYPTO_BLKCIPHER2
58 tristate
59 select CRYPTO_ALGAPI2
60 select CRYPTO_RNG2
0a2e821d 61 select CRYPTO_WORKQUEUE
5cde0af2 62
055bcee3
HX
63config CRYPTO_HASH
64 tristate
6a0fcbb4 65 select CRYPTO_HASH2
055bcee3
HX
66 select CRYPTO_ALGAPI
67
6a0fcbb4
HX
68config CRYPTO_HASH2
69 tristate
70 select CRYPTO_ALGAPI2
71
17f0f4a4
NH
72config CRYPTO_RNG
73 tristate
6a0fcbb4 74 select CRYPTO_RNG2
17f0f4a4
NH
75 select CRYPTO_ALGAPI
76
6a0fcbb4
HX
77config CRYPTO_RNG2
78 tristate
79 select CRYPTO_ALGAPI2
80
401e4238
HX
81config CRYPTO_RNG_DEFAULT
82 tristate
83 select CRYPTO_DRBG_MENU
84
a1d2f095 85config CRYPTO_PCOMP
bc94e596
HX
86 tristate
87 select CRYPTO_PCOMP2
88 select CRYPTO_ALGAPI
89
90config CRYPTO_PCOMP2
a1d2f095
GU
91 tristate
92 select CRYPTO_ALGAPI2
93
3c339ab8
TS
94config CRYPTO_AKCIPHER2
95 tristate
96 select CRYPTO_ALGAPI2
97
98config CRYPTO_AKCIPHER
99 tristate
100 select CRYPTO_AKCIPHER2
101 select CRYPTO_ALGAPI
102
2b8c19db
HX
103config CRYPTO_MANAGER
104 tristate "Cryptographic algorithm manager"
6a0fcbb4 105 select CRYPTO_MANAGER2
2b8c19db
HX
106 help
107 Create default cryptographic template instantiations such as
108 cbc(aes).
109
6a0fcbb4
HX
110config CRYPTO_MANAGER2
111 def_tristate CRYPTO_MANAGER || (CRYPTO_MANAGER!=n && CRYPTO_ALGAPI=y)
112 select CRYPTO_AEAD2
113 select CRYPTO_HASH2
114 select CRYPTO_BLKCIPHER2
bc94e596 115 select CRYPTO_PCOMP2
6a0fcbb4 116
a38f7907
SK
117config CRYPTO_USER
118 tristate "Userspace cryptographic algorithm configuration"
5db017aa 119 depends on NET
a38f7907
SK
120 select CRYPTO_MANAGER
121 help
d19978f5 122 Userspace configuration for cryptographic instantiations such as
a38f7907
SK
123 cbc(aes).
124
326a6346
HX
125config CRYPTO_MANAGER_DISABLE_TESTS
126 bool "Disable run-time self tests"
00ca28a5
HX
127 default y
128 depends on CRYPTO_MANAGER2
0b767f96 129 help
326a6346
HX
130 Disable run-time self tests that normally take place at
131 algorithm registration.
0b767f96 132
584fffc8 133config CRYPTO_GF128MUL
08c70fc3 134 tristate "GF(2^128) multiplication functions"
333b0d7e 135 help
584fffc8
SS
136 Efficient table driven implementation of multiplications in the
137 field GF(2^128). This is needed by some cypher modes. This
138 option will be selected automatically if you select such a
139 cipher mode. Only select this option by hand if you expect to load
140 an external module that requires these functions.
333b0d7e 141
1da177e4
LT
142config CRYPTO_NULL
143 tristate "Null algorithms"
cce9e06d 144 select CRYPTO_ALGAPI
c8620c25 145 select CRYPTO_BLKCIPHER
d35d2454 146 select CRYPTO_HASH
1da177e4
LT
147 help
148 These are 'Null' algorithms, used by IPsec, which do nothing.
149
5068c7a8 150config CRYPTO_PCRYPT
3b4afaf2
KC
151 tristate "Parallel crypto engine"
152 depends on SMP
5068c7a8
SK
153 select PADATA
154 select CRYPTO_MANAGER
155 select CRYPTO_AEAD
156 help
157 This converts an arbitrary crypto algorithm into a parallel
158 algorithm that executes in kernel threads.
159
25c38d3f
HY
160config CRYPTO_WORKQUEUE
161 tristate
162
584fffc8
SS
163config CRYPTO_CRYPTD
164 tristate "Software async crypto daemon"
165 select CRYPTO_BLKCIPHER
b8a28251 166 select CRYPTO_HASH
584fffc8 167 select CRYPTO_MANAGER
254eff77 168 select CRYPTO_WORKQUEUE
1da177e4 169 help
584fffc8
SS
170 This is a generic software asynchronous crypto daemon that
171 converts an arbitrary synchronous software crypto algorithm
172 into an asynchronous algorithm that executes in a kernel thread.
1da177e4 173
1e65b81a
TC
174config CRYPTO_MCRYPTD
175 tristate "Software async multi-buffer crypto daemon"
176 select CRYPTO_BLKCIPHER
177 select CRYPTO_HASH
178 select CRYPTO_MANAGER
179 select CRYPTO_WORKQUEUE
180 help
181 This is a generic software asynchronous crypto daemon that
182 provides the kernel thread to assist multi-buffer crypto
183 algorithms for submitting jobs and flushing jobs in multi-buffer
184 crypto algorithms. Multi-buffer crypto algorithms are executed
185 in the context of this kernel thread and drivers can post
0e56673b 186 their crypto request asynchronously to be processed by this daemon.
1e65b81a 187
584fffc8
SS
188config CRYPTO_AUTHENC
189 tristate "Authenc support"
190 select CRYPTO_AEAD
191 select CRYPTO_BLKCIPHER
192 select CRYPTO_MANAGER
193 select CRYPTO_HASH
1da177e4 194 help
584fffc8
SS
195 Authenc: Combined mode wrapper for IPsec.
196 This is required for IPSec.
1da177e4 197
584fffc8
SS
198config CRYPTO_TEST
199 tristate "Testing module"
200 depends on m
da7f033d 201 select CRYPTO_MANAGER
1da177e4 202 help
584fffc8 203 Quick & dirty crypto test module.
1da177e4 204
a62b01cd 205config CRYPTO_ABLK_HELPER
ffaf9156 206 tristate
ffaf9156
JK
207 select CRYPTO_CRYPTD
208
596d8750
JK
209config CRYPTO_GLUE_HELPER_X86
210 tristate
211 depends on X86
212 select CRYPTO_ALGAPI
213
584fffc8 214comment "Authenticated Encryption with Associated Data"
cd12fb90 215
584fffc8
SS
216config CRYPTO_CCM
217 tristate "CCM support"
218 select CRYPTO_CTR
219 select CRYPTO_AEAD
1da177e4 220 help
584fffc8 221 Support for Counter with CBC MAC. Required for IPsec.
1da177e4 222
584fffc8
SS
223config CRYPTO_GCM
224 tristate "GCM/GMAC support"
225 select CRYPTO_CTR
226 select CRYPTO_AEAD
9382d97a 227 select CRYPTO_GHASH
9489667d 228 select CRYPTO_NULL
1da177e4 229 help
584fffc8
SS
230 Support for Galois/Counter Mode (GCM) and Galois Message
231 Authentication Code (GMAC). Required for IPSec.
1da177e4 232
71ebc4d1
MW
233config CRYPTO_CHACHA20POLY1305
234 tristate "ChaCha20-Poly1305 AEAD support"
235 select CRYPTO_CHACHA20
236 select CRYPTO_POLY1305
237 select CRYPTO_AEAD
238 help
239 ChaCha20-Poly1305 AEAD support, RFC7539.
240
241 Support for the AEAD wrapper using the ChaCha20 stream cipher combined
242 with the Poly1305 authenticator. It is defined in RFC7539 for use in
243 IETF protocols.
244
584fffc8
SS
245config CRYPTO_SEQIV
246 tristate "Sequence Number IV Generator"
247 select CRYPTO_AEAD
248 select CRYPTO_BLKCIPHER
856e3f40 249 select CRYPTO_NULL
401e4238 250 select CRYPTO_RNG_DEFAULT
1da177e4 251 help
584fffc8
SS
252 This IV generator generates an IV based on a sequence number by
253 xoring it with a salt. This algorithm is mainly useful for CTR
1da177e4 254
a10f554f
HX
255config CRYPTO_ECHAINIV
256 tristate "Encrypted Chain IV Generator"
257 select CRYPTO_AEAD
258 select CRYPTO_NULL
401e4238 259 select CRYPTO_RNG_DEFAULT
3491244c 260 default m
a10f554f
HX
261 help
262 This IV generator generates an IV based on the encryption of
263 a sequence number xored with a salt. This is the default
264 algorithm for CBC.
265
584fffc8 266comment "Block modes"
c494e070 267
584fffc8
SS
268config CRYPTO_CBC
269 tristate "CBC support"
db131ef9 270 select CRYPTO_BLKCIPHER
43518407 271 select CRYPTO_MANAGER
db131ef9 272 help
584fffc8
SS
273 CBC: Cipher Block Chaining mode
274 This block cipher algorithm is required for IPSec.
db131ef9 275
584fffc8
SS
276config CRYPTO_CTR
277 tristate "CTR support"
db131ef9 278 select CRYPTO_BLKCIPHER
584fffc8 279 select CRYPTO_SEQIV
43518407 280 select CRYPTO_MANAGER
db131ef9 281 help
584fffc8 282 CTR: Counter mode
db131ef9
HX
283 This block cipher algorithm is required for IPSec.
284
584fffc8
SS
285config CRYPTO_CTS
286 tristate "CTS support"
287 select CRYPTO_BLKCIPHER
288 help
289 CTS: Cipher Text Stealing
290 This is the Cipher Text Stealing mode as described by
291 Section 8 of rfc2040 and referenced by rfc3962.
292 (rfc3962 includes errata information in its Appendix A)
293 This mode is required for Kerberos gss mechanism support
294 for AES encryption.
295
296config CRYPTO_ECB
297 tristate "ECB support"
91652be5
DH
298 select CRYPTO_BLKCIPHER
299 select CRYPTO_MANAGER
91652be5 300 help
584fffc8
SS
301 ECB: Electronic CodeBook mode
302 This is the simplest block cipher algorithm. It simply encrypts
303 the input block by block.
91652be5 304
64470f1b 305config CRYPTO_LRW
2470a2b2 306 tristate "LRW support"
64470f1b
RS
307 select CRYPTO_BLKCIPHER
308 select CRYPTO_MANAGER
309 select CRYPTO_GF128MUL
310 help
311 LRW: Liskov Rivest Wagner, a tweakable, non malleable, non movable
312 narrow block cipher mode for dm-crypt. Use it with cipher
313 specification string aes-lrw-benbi, the key must be 256, 320 or 384.
314 The first 128, 192 or 256 bits in the key are used for AES and the
315 rest is used to tie each cipher block to its logical position.
316
584fffc8
SS
317config CRYPTO_PCBC
318 tristate "PCBC support"
319 select CRYPTO_BLKCIPHER
320 select CRYPTO_MANAGER
321 help
322 PCBC: Propagating Cipher Block Chaining mode
323 This block cipher algorithm is required for RxRPC.
324
f19f5111 325config CRYPTO_XTS
5bcf8e6d 326 tristate "XTS support"
f19f5111
RS
327 select CRYPTO_BLKCIPHER
328 select CRYPTO_MANAGER
329 select CRYPTO_GF128MUL
330 help
331 XTS: IEEE1619/D16 narrow block cipher use with aes-xts-plain,
332 key size 256, 384 or 512 bits. This implementation currently
333 can't handle a sectorsize which is not a multiple of 16 bytes.
334
584fffc8
SS
335comment "Hash modes"
336
93b5e86a
JK
337config CRYPTO_CMAC
338 tristate "CMAC support"
339 select CRYPTO_HASH
340 select CRYPTO_MANAGER
341 help
342 Cipher-based Message Authentication Code (CMAC) specified by
343 The National Institute of Standards and Technology (NIST).
344
345 https://tools.ietf.org/html/rfc4493
346 http://csrc.nist.gov/publications/nistpubs/800-38B/SP_800-38B.pdf
347
584fffc8
SS
348config CRYPTO_HMAC
349 tristate "HMAC support"
350 select CRYPTO_HASH
23e353c8 351 select CRYPTO_MANAGER
23e353c8 352 help
584fffc8
SS
353 HMAC: Keyed-Hashing for Message Authentication (RFC2104).
354 This is required for IPSec.
23e353c8 355
584fffc8
SS
356config CRYPTO_XCBC
357 tristate "XCBC support"
584fffc8
SS
358 select CRYPTO_HASH
359 select CRYPTO_MANAGER
76cb9521 360 help
584fffc8
SS
361 XCBC: Keyed-Hashing with encryption algorithm
362 http://www.ietf.org/rfc/rfc3566.txt
363 http://csrc.nist.gov/encryption/modes/proposedmodes/
364 xcbc-mac/xcbc-mac-spec.pdf
76cb9521 365
f1939f7c
SW
366config CRYPTO_VMAC
367 tristate "VMAC support"
f1939f7c
SW
368 select CRYPTO_HASH
369 select CRYPTO_MANAGER
370 help
371 VMAC is a message authentication algorithm designed for
372 very high speed on 64-bit architectures.
373
374 See also:
375 <http://fastcrypto.org/vmac>
376
584fffc8 377comment "Digest"
28db8e3e 378
584fffc8
SS
379config CRYPTO_CRC32C
380 tristate "CRC32c CRC algorithm"
5773a3e6 381 select CRYPTO_HASH
6a0962b2 382 select CRC32
4a49b499 383 help
584fffc8
SS
384 Castagnoli, et al Cyclic Redundancy-Check Algorithm. Used
385 by iSCSI for header and data digests and by others.
69c35efc 386 See Castagnoli93. Module will be crc32c.
4a49b499 387
8cb51ba8
AZ
388config CRYPTO_CRC32C_INTEL
389 tristate "CRC32c INTEL hardware acceleration"
390 depends on X86
391 select CRYPTO_HASH
392 help
393 In Intel processor with SSE4.2 supported, the processor will
394 support CRC32C implementation using hardware accelerated CRC32
395 instruction. This option will create 'crc32c-intel' module,
396 which will enable any routine to use the CRC32 instruction to
397 gain performance compared with software implementation.
398 Module will be crc32c-intel.
399
442a7c40
DM
400config CRYPTO_CRC32C_SPARC64
401 tristate "CRC32c CRC algorithm (SPARC64)"
402 depends on SPARC64
403 select CRYPTO_HASH
404 select CRC32
405 help
406 CRC32c CRC algorithm implemented using sparc64 crypto instructions,
407 when available.
408
78c37d19
AB
409config CRYPTO_CRC32
410 tristate "CRC32 CRC algorithm"
411 select CRYPTO_HASH
412 select CRC32
413 help
414 CRC-32-IEEE 802.3 cyclic redundancy-check algorithm.
415 Shash crypto api wrappers to crc32_le function.
416
417config CRYPTO_CRC32_PCLMUL
418 tristate "CRC32 PCLMULQDQ hardware acceleration"
419 depends on X86
420 select CRYPTO_HASH
421 select CRC32
422 help
423 From Intel Westmere and AMD Bulldozer processor with SSE4.2
424 and PCLMULQDQ supported, the processor will support
425 CRC32 PCLMULQDQ implementation using hardware accelerated PCLMULQDQ
426 instruction. This option will create 'crc32-plcmul' module,
427 which will enable any routine to use the CRC-32-IEEE 802.3 checksum
428 and gain better performance as compared with the table implementation.
429
68411521
HX
430config CRYPTO_CRCT10DIF
431 tristate "CRCT10DIF algorithm"
432 select CRYPTO_HASH
433 help
434 CRC T10 Data Integrity Field computation is being cast as
435 a crypto transform. This allows for faster crc t10 diff
436 transforms to be used if they are available.
437
438config CRYPTO_CRCT10DIF_PCLMUL
439 tristate "CRCT10DIF PCLMULQDQ hardware acceleration"
440 depends on X86 && 64BIT && CRC_T10DIF
441 select CRYPTO_HASH
442 help
443 For x86_64 processors with SSE4.2 and PCLMULQDQ supported,
444 CRC T10 DIF PCLMULQDQ computation can be hardware
445 accelerated PCLMULQDQ instruction. This option will create
446 'crct10dif-plcmul' module, which is faster when computing the
447 crct10dif checksum as compared with the generic table implementation.
448
2cdc6899
HY
449config CRYPTO_GHASH
450 tristate "GHASH digest algorithm"
2cdc6899
HY
451 select CRYPTO_GF128MUL
452 help
453 GHASH is message digest algorithm for GCM (Galois/Counter Mode).
454
f979e014
MW
455config CRYPTO_POLY1305
456 tristate "Poly1305 authenticator algorithm"
457 help
458 Poly1305 authenticator algorithm, RFC7539.
459
460 Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein.
461 It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use
462 in IETF protocols. This is the portable C implementation of Poly1305.
463
584fffc8
SS
464config CRYPTO_MD4
465 tristate "MD4 digest algorithm"
808a1763 466 select CRYPTO_HASH
124b53d0 467 help
584fffc8 468 MD4 message digest algorithm (RFC1320).
124b53d0 469
584fffc8
SS
470config CRYPTO_MD5
471 tristate "MD5 digest algorithm"
14b75ba7 472 select CRYPTO_HASH
1da177e4 473 help
584fffc8 474 MD5 message digest algorithm (RFC1321).
1da177e4 475
d69e75de
AK
476config CRYPTO_MD5_OCTEON
477 tristate "MD5 digest algorithm (OCTEON)"
478 depends on CPU_CAVIUM_OCTEON
479 select CRYPTO_MD5
480 select CRYPTO_HASH
481 help
482 MD5 message digest algorithm (RFC1321) implemented
483 using OCTEON crypto instructions, when available.
484
e8e59953
MS
485config CRYPTO_MD5_PPC
486 tristate "MD5 digest algorithm (PPC)"
487 depends on PPC
488 select CRYPTO_HASH
489 help
490 MD5 message digest algorithm (RFC1321) implemented
491 in PPC assembler.
492
fa4dfedc
DM
493config CRYPTO_MD5_SPARC64
494 tristate "MD5 digest algorithm (SPARC64)"
495 depends on SPARC64
496 select CRYPTO_MD5
497 select CRYPTO_HASH
498 help
499 MD5 message digest algorithm (RFC1321) implemented
500 using sparc64 crypto instructions, when available.
501
584fffc8
SS
502config CRYPTO_MICHAEL_MIC
503 tristate "Michael MIC keyed digest algorithm"
19e2bf14 504 select CRYPTO_HASH
90831639 505 help
584fffc8
SS
506 Michael MIC is used for message integrity protection in TKIP
507 (IEEE 802.11i). This algorithm is required for TKIP, but it
508 should not be used for other purposes because of the weakness
509 of the algorithm.
90831639 510
82798f90 511config CRYPTO_RMD128
b6d44341 512 tristate "RIPEMD-128 digest algorithm"
7c4468bc 513 select CRYPTO_HASH
b6d44341
AB
514 help
515 RIPEMD-128 (ISO/IEC 10118-3:2004).
82798f90 516
b6d44341 517 RIPEMD-128 is a 128-bit cryptographic hash function. It should only
35ed4b35 518 be used as a secure replacement for RIPEMD. For other use cases,
b6d44341 519 RIPEMD-160 should be used.
82798f90 520
b6d44341 521 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
6d8de74c 522 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
82798f90
AKR
523
524config CRYPTO_RMD160
b6d44341 525 tristate "RIPEMD-160 digest algorithm"
e5835fba 526 select CRYPTO_HASH
b6d44341
AB
527 help
528 RIPEMD-160 (ISO/IEC 10118-3:2004).
82798f90 529
b6d44341
AB
530 RIPEMD-160 is a 160-bit cryptographic hash function. It is intended
531 to be used as a secure replacement for the 128-bit hash functions
532 MD4, MD5 and it's predecessor RIPEMD
533 (not to be confused with RIPEMD-128).
82798f90 534
b6d44341
AB
535 It's speed is comparable to SHA1 and there are no known attacks
536 against RIPEMD-160.
534fe2c1 537
b6d44341 538 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
6d8de74c 539 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
534fe2c1
AKR
540
541config CRYPTO_RMD256
b6d44341 542 tristate "RIPEMD-256 digest algorithm"
d8a5e2e9 543 select CRYPTO_HASH
b6d44341
AB
544 help
545 RIPEMD-256 is an optional extension of RIPEMD-128 with a
546 256 bit hash. It is intended for applications that require
547 longer hash-results, without needing a larger security level
548 (than RIPEMD-128).
534fe2c1 549
b6d44341 550 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
6d8de74c 551 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
534fe2c1
AKR
552
553config CRYPTO_RMD320
b6d44341 554 tristate "RIPEMD-320 digest algorithm"
3b8efb4c 555 select CRYPTO_HASH
b6d44341
AB
556 help
557 RIPEMD-320 is an optional extension of RIPEMD-160 with a
558 320 bit hash. It is intended for applications that require
559 longer hash-results, without needing a larger security level
560 (than RIPEMD-160).
534fe2c1 561
b6d44341 562 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
6d8de74c 563 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
82798f90 564
584fffc8
SS
565config CRYPTO_SHA1
566 tristate "SHA1 digest algorithm"
54ccb367 567 select CRYPTO_HASH
1da177e4 568 help
584fffc8 569 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
1da177e4 570
66be8951 571config CRYPTO_SHA1_SSSE3
7c1da8d0 572 tristate "SHA1 digest algorithm (SSSE3/AVX/AVX2)"
66be8951
MK
573 depends on X86 && 64BIT
574 select CRYPTO_SHA1
575 select CRYPTO_HASH
576 help
577 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
578 using Supplemental SSE3 (SSSE3) instructions or Advanced Vector
7c1da8d0 579 Extensions (AVX/AVX2), when available.
66be8951 580
8275d1aa
TC
581config CRYPTO_SHA256_SSSE3
582 tristate "SHA256 digest algorithm (SSSE3/AVX/AVX2)"
583 depends on X86 && 64BIT
584 select CRYPTO_SHA256
585 select CRYPTO_HASH
586 help
587 SHA-256 secure hash standard (DFIPS 180-2) implemented
588 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
589 Extensions version 1 (AVX1), or Advanced Vector Extensions
87de4579
TC
590 version 2 (AVX2) instructions, when available.
591
592config CRYPTO_SHA512_SSSE3
593 tristate "SHA512 digest algorithm (SSSE3/AVX/AVX2)"
594 depends on X86 && 64BIT
595 select CRYPTO_SHA512
596 select CRYPTO_HASH
597 help
598 SHA-512 secure hash standard (DFIPS 180-2) implemented
599 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
600 Extensions version 1 (AVX1), or Advanced Vector Extensions
8275d1aa
TC
601 version 2 (AVX2) instructions, when available.
602
efdb6f6e
AK
603config CRYPTO_SHA1_OCTEON
604 tristate "SHA1 digest algorithm (OCTEON)"
605 depends on CPU_CAVIUM_OCTEON
606 select CRYPTO_SHA1
607 select CRYPTO_HASH
608 help
609 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
610 using OCTEON crypto instructions, when available.
611
4ff28d4c
DM
612config CRYPTO_SHA1_SPARC64
613 tristate "SHA1 digest algorithm (SPARC64)"
614 depends on SPARC64
615 select CRYPTO_SHA1
616 select CRYPTO_HASH
617 help
618 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
619 using sparc64 crypto instructions, when available.
620
323a6bf1
ME
621config CRYPTO_SHA1_PPC
622 tristate "SHA1 digest algorithm (powerpc)"
623 depends on PPC
624 help
625 This is the powerpc hardware accelerated implementation of the
626 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
627
d9850fc5
MS
628config CRYPTO_SHA1_PPC_SPE
629 tristate "SHA1 digest algorithm (PPC SPE)"
630 depends on PPC && SPE
631 help
632 SHA-1 secure hash standard (DFIPS 180-4) implemented
633 using powerpc SPE SIMD instruction set.
634
1e65b81a
TC
635config CRYPTO_SHA1_MB
636 tristate "SHA1 digest algorithm (x86_64 Multi-Buffer, Experimental)"
637 depends on X86 && 64BIT
638 select CRYPTO_SHA1
639 select CRYPTO_HASH
640 select CRYPTO_MCRYPTD
641 help
642 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
643 using multi-buffer technique. This algorithm computes on
644 multiple data lanes concurrently with SIMD instructions for
645 better throughput. It should not be enabled by default but
646 used when there is significant amount of work to keep the keep
647 the data lanes filled to get performance benefit. If the data
648 lanes remain unfilled, a flush operation will be initiated to
649 process the crypto jobs, adding a slight latency.
650
584fffc8
SS
651config CRYPTO_SHA256
652 tristate "SHA224 and SHA256 digest algorithm"
50e109b5 653 select CRYPTO_HASH
1da177e4 654 help
584fffc8 655 SHA256 secure hash standard (DFIPS 180-2).
1da177e4 656
584fffc8
SS
657 This version of SHA implements a 256 bit hash with 128 bits of
658 security against collision attacks.
2729bb42 659
b6d44341
AB
660 This code also includes SHA-224, a 224 bit hash with 112 bits
661 of security against collision attacks.
584fffc8 662
2ecc1e95
MS
663config CRYPTO_SHA256_PPC_SPE
664 tristate "SHA224 and SHA256 digest algorithm (PPC SPE)"
665 depends on PPC && SPE
666 select CRYPTO_SHA256
667 select CRYPTO_HASH
668 help
669 SHA224 and SHA256 secure hash standard (DFIPS 180-2)
670 implemented using powerpc SPE SIMD instruction set.
671
efdb6f6e
AK
672config CRYPTO_SHA256_OCTEON
673 tristate "SHA224 and SHA256 digest algorithm (OCTEON)"
674 depends on CPU_CAVIUM_OCTEON
675 select CRYPTO_SHA256
676 select CRYPTO_HASH
677 help
678 SHA-256 secure hash standard (DFIPS 180-2) implemented
679 using OCTEON crypto instructions, when available.
680
86c93b24
DM
681config CRYPTO_SHA256_SPARC64
682 tristate "SHA224 and SHA256 digest algorithm (SPARC64)"
683 depends on SPARC64
684 select CRYPTO_SHA256
685 select CRYPTO_HASH
686 help
687 SHA-256 secure hash standard (DFIPS 180-2) implemented
688 using sparc64 crypto instructions, when available.
689
584fffc8
SS
690config CRYPTO_SHA512
691 tristate "SHA384 and SHA512 digest algorithms"
bd9d20db 692 select CRYPTO_HASH
b9f535ff 693 help
584fffc8 694 SHA512 secure hash standard (DFIPS 180-2).
b9f535ff 695
584fffc8
SS
696 This version of SHA implements a 512 bit hash with 256 bits of
697 security against collision attacks.
b9f535ff 698
584fffc8
SS
699 This code also includes SHA-384, a 384 bit hash with 192 bits
700 of security against collision attacks.
b9f535ff 701
efdb6f6e
AK
702config CRYPTO_SHA512_OCTEON
703 tristate "SHA384 and SHA512 digest algorithms (OCTEON)"
704 depends on CPU_CAVIUM_OCTEON
705 select CRYPTO_SHA512
706 select CRYPTO_HASH
707 help
708 SHA-512 secure hash standard (DFIPS 180-2) implemented
709 using OCTEON crypto instructions, when available.
710
775e0c69
DM
711config CRYPTO_SHA512_SPARC64
712 tristate "SHA384 and SHA512 digest algorithm (SPARC64)"
713 depends on SPARC64
714 select CRYPTO_SHA512
715 select CRYPTO_HASH
716 help
717 SHA-512 secure hash standard (DFIPS 180-2) implemented
718 using sparc64 crypto instructions, when available.
719
584fffc8
SS
720config CRYPTO_TGR192
721 tristate "Tiger digest algorithms"
f63fbd3d 722 select CRYPTO_HASH
eaf44088 723 help
584fffc8 724 Tiger hash algorithm 192, 160 and 128-bit hashes
eaf44088 725
584fffc8
SS
726 Tiger is a hash function optimized for 64-bit processors while
727 still having decent performance on 32-bit processors.
728 Tiger was developed by Ross Anderson and Eli Biham.
eaf44088
JF
729
730 See also:
584fffc8 731 <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>.
eaf44088 732
584fffc8
SS
733config CRYPTO_WP512
734 tristate "Whirlpool digest algorithms"
4946510b 735 select CRYPTO_HASH
1da177e4 736 help
584fffc8 737 Whirlpool hash algorithm 512, 384 and 256-bit hashes
1da177e4 738
584fffc8
SS
739 Whirlpool-512 is part of the NESSIE cryptographic primitives.
740 Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard
1da177e4
LT
741
742 See also:
6d8de74c 743 <http://www.larc.usp.br/~pbarreto/WhirlpoolPage.html>
584fffc8 744
0e1227d3
HY
745config CRYPTO_GHASH_CLMUL_NI_INTEL
746 tristate "GHASH digest algorithm (CLMUL-NI accelerated)"
8af00860 747 depends on X86 && 64BIT
0e1227d3
HY
748 select CRYPTO_CRYPTD
749 help
750 GHASH is message digest algorithm for GCM (Galois/Counter Mode).
751 The implementation is accelerated by CLMUL-NI of Intel.
752
584fffc8 753comment "Ciphers"
1da177e4
LT
754
755config CRYPTO_AES
756 tristate "AES cipher algorithms"
cce9e06d 757 select CRYPTO_ALGAPI
1da177e4 758 help
584fffc8 759 AES cipher algorithms (FIPS-197). AES uses the Rijndael
1da177e4
LT
760 algorithm.
761
762 Rijndael appears to be consistently a very good performer in
584fffc8
SS
763 both hardware and software across a wide range of computing
764 environments regardless of its use in feedback or non-feedback
765 modes. Its key setup time is excellent, and its key agility is
766 good. Rijndael's very low memory requirements make it very well
767 suited for restricted-space environments, in which it also
768 demonstrates excellent performance. Rijndael's operations are
769 among the easiest to defend against power and timing attacks.
1da177e4 770
584fffc8 771 The AES specifies three key sizes: 128, 192 and 256 bits
1da177e4
LT
772
773 See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information.
774
775config CRYPTO_AES_586
776 tristate "AES cipher algorithms (i586)"
cce9e06d
HX
777 depends on (X86 || UML_X86) && !64BIT
778 select CRYPTO_ALGAPI
5157dea8 779 select CRYPTO_AES
1da177e4 780 help
584fffc8 781 AES cipher algorithms (FIPS-197). AES uses the Rijndael
1da177e4
LT
782 algorithm.
783
784 Rijndael appears to be consistently a very good performer in
584fffc8
SS
785 both hardware and software across a wide range of computing
786 environments regardless of its use in feedback or non-feedback
787 modes. Its key setup time is excellent, and its key agility is
788 good. Rijndael's very low memory requirements make it very well
789 suited for restricted-space environments, in which it also
790 demonstrates excellent performance. Rijndael's operations are
791 among the easiest to defend against power and timing attacks.
1da177e4 792
584fffc8 793 The AES specifies three key sizes: 128, 192 and 256 bits
a2a892a2
AS
794
795 See <http://csrc.nist.gov/encryption/aes/> for more information.
796
797config CRYPTO_AES_X86_64
798 tristate "AES cipher algorithms (x86_64)"
cce9e06d
HX
799 depends on (X86 || UML_X86) && 64BIT
800 select CRYPTO_ALGAPI
81190b32 801 select CRYPTO_AES
a2a892a2 802 help
584fffc8 803 AES cipher algorithms (FIPS-197). AES uses the Rijndael
a2a892a2
AS
804 algorithm.
805
806 Rijndael appears to be consistently a very good performer in
584fffc8
SS
807 both hardware and software across a wide range of computing
808 environments regardless of its use in feedback or non-feedback
809 modes. Its key setup time is excellent, and its key agility is
54b6a1bd
HY
810 good. Rijndael's very low memory requirements make it very well
811 suited for restricted-space environments, in which it also
812 demonstrates excellent performance. Rijndael's operations are
813 among the easiest to defend against power and timing attacks.
814
815 The AES specifies three key sizes: 128, 192 and 256 bits
816
817 See <http://csrc.nist.gov/encryption/aes/> for more information.
818
819config CRYPTO_AES_NI_INTEL
820 tristate "AES cipher algorithms (AES-NI)"
8af00860 821 depends on X86
0d258efb
MK
822 select CRYPTO_AES_X86_64 if 64BIT
823 select CRYPTO_AES_586 if !64BIT
54b6a1bd 824 select CRYPTO_CRYPTD
801201aa 825 select CRYPTO_ABLK_HELPER
54b6a1bd 826 select CRYPTO_ALGAPI
7643a11a 827 select CRYPTO_GLUE_HELPER_X86 if 64BIT
023af608
JK
828 select CRYPTO_LRW
829 select CRYPTO_XTS
54b6a1bd
HY
830 help
831 Use Intel AES-NI instructions for AES algorithm.
832
833 AES cipher algorithms (FIPS-197). AES uses the Rijndael
834 algorithm.
835
836 Rijndael appears to be consistently a very good performer in
837 both hardware and software across a wide range of computing
838 environments regardless of its use in feedback or non-feedback
839 modes. Its key setup time is excellent, and its key agility is
584fffc8
SS
840 good. Rijndael's very low memory requirements make it very well
841 suited for restricted-space environments, in which it also
842 demonstrates excellent performance. Rijndael's operations are
843 among the easiest to defend against power and timing attacks.
a2a892a2 844
584fffc8 845 The AES specifies three key sizes: 128, 192 and 256 bits
1da177e4
LT
846
847 See <http://csrc.nist.gov/encryption/aes/> for more information.
848
0d258efb
MK
849 In addition to AES cipher algorithm support, the acceleration
850 for some popular block cipher mode is supported too, including
851 ECB, CBC, LRW, PCBC, XTS. The 64 bit version has additional
852 acceleration for CTR.
2cf4ac8b 853
9bf4852d
DM
854config CRYPTO_AES_SPARC64
855 tristate "AES cipher algorithms (SPARC64)"
856 depends on SPARC64
857 select CRYPTO_CRYPTD
858 select CRYPTO_ALGAPI
859 help
860 Use SPARC64 crypto opcodes for AES algorithm.
861
862 AES cipher algorithms (FIPS-197). AES uses the Rijndael
863 algorithm.
864
865 Rijndael appears to be consistently a very good performer in
866 both hardware and software across a wide range of computing
867 environments regardless of its use in feedback or non-feedback
868 modes. Its key setup time is excellent, and its key agility is
869 good. Rijndael's very low memory requirements make it very well
870 suited for restricted-space environments, in which it also
871 demonstrates excellent performance. Rijndael's operations are
872 among the easiest to defend against power and timing attacks.
873
874 The AES specifies three key sizes: 128, 192 and 256 bits
875
876 See <http://csrc.nist.gov/encryption/aes/> for more information.
877
878 In addition to AES cipher algorithm support, the acceleration
879 for some popular block cipher mode is supported too, including
880 ECB and CBC.
881
504c6143
MS
882config CRYPTO_AES_PPC_SPE
883 tristate "AES cipher algorithms (PPC SPE)"
884 depends on PPC && SPE
885 help
886 AES cipher algorithms (FIPS-197). Additionally the acceleration
887 for popular block cipher modes ECB, CBC, CTR and XTS is supported.
888 This module should only be used for low power (router) devices
889 without hardware AES acceleration (e.g. caam crypto). It reduces the
890 size of the AES tables from 16KB to 8KB + 256 bytes and mitigates
891 timining attacks. Nevertheless it might be not as secure as other
892 architecture specific assembler implementations that work on 1KB
893 tables or 256 bytes S-boxes.
894
584fffc8
SS
895config CRYPTO_ANUBIS
896 tristate "Anubis cipher algorithm"
897 select CRYPTO_ALGAPI
898 help
899 Anubis cipher algorithm.
900
901 Anubis is a variable key length cipher which can use keys from
902 128 bits to 320 bits in length. It was evaluated as a entrant
903 in the NESSIE competition.
904
905 See also:
6d8de74c
JM
906 <https://www.cosic.esat.kuleuven.be/nessie/reports/>
907 <http://www.larc.usp.br/~pbarreto/AnubisPage.html>
584fffc8
SS
908
909config CRYPTO_ARC4
910 tristate "ARC4 cipher algorithm"
b9b0f080 911 select CRYPTO_BLKCIPHER
584fffc8
SS
912 help
913 ARC4 cipher algorithm.
914
915 ARC4 is a stream cipher using keys ranging from 8 bits to 2048
916 bits in length. This algorithm is required for driver-based
917 WEP, but it should not be for other purposes because of the
918 weakness of the algorithm.
919
920config CRYPTO_BLOWFISH
921 tristate "Blowfish cipher algorithm"
922 select CRYPTO_ALGAPI
52ba867c 923 select CRYPTO_BLOWFISH_COMMON
584fffc8
SS
924 help
925 Blowfish cipher algorithm, by Bruce Schneier.
926
927 This is a variable key length cipher which can use keys from 32
928 bits to 448 bits in length. It's fast, simple and specifically
929 designed for use on "large microprocessors".
930
931 See also:
932 <http://www.schneier.com/blowfish.html>
933
52ba867c
JK
934config CRYPTO_BLOWFISH_COMMON
935 tristate
936 help
937 Common parts of the Blowfish cipher algorithm shared by the
938 generic c and the assembler implementations.
939
940 See also:
941 <http://www.schneier.com/blowfish.html>
942
64b94cea
JK
943config CRYPTO_BLOWFISH_X86_64
944 tristate "Blowfish cipher algorithm (x86_64)"
f21a7c19 945 depends on X86 && 64BIT
64b94cea
JK
946 select CRYPTO_ALGAPI
947 select CRYPTO_BLOWFISH_COMMON
948 help
949 Blowfish cipher algorithm (x86_64), by Bruce Schneier.
950
951 This is a variable key length cipher which can use keys from 32
952 bits to 448 bits in length. It's fast, simple and specifically
953 designed for use on "large microprocessors".
954
955 See also:
956 <http://www.schneier.com/blowfish.html>
957
584fffc8
SS
958config CRYPTO_CAMELLIA
959 tristate "Camellia cipher algorithms"
960 depends on CRYPTO
961 select CRYPTO_ALGAPI
962 help
963 Camellia cipher algorithms module.
964
965 Camellia is a symmetric key block cipher developed jointly
966 at NTT and Mitsubishi Electric Corporation.
967
968 The Camellia specifies three key sizes: 128, 192 and 256 bits.
969
970 See also:
971 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
972
0b95ec56
JK
973config CRYPTO_CAMELLIA_X86_64
974 tristate "Camellia cipher algorithm (x86_64)"
f21a7c19 975 depends on X86 && 64BIT
0b95ec56
JK
976 depends on CRYPTO
977 select CRYPTO_ALGAPI
964263af 978 select CRYPTO_GLUE_HELPER_X86
0b95ec56
JK
979 select CRYPTO_LRW
980 select CRYPTO_XTS
981 help
982 Camellia cipher algorithm module (x86_64).
983
984 Camellia is a symmetric key block cipher developed jointly
985 at NTT and Mitsubishi Electric Corporation.
986
987 The Camellia specifies three key sizes: 128, 192 and 256 bits.
988
989 See also:
d9b1d2e7
JK
990 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
991
992config CRYPTO_CAMELLIA_AESNI_AVX_X86_64
993 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX)"
994 depends on X86 && 64BIT
995 depends on CRYPTO
996 select CRYPTO_ALGAPI
997 select CRYPTO_CRYPTD
801201aa 998 select CRYPTO_ABLK_HELPER
d9b1d2e7
JK
999 select CRYPTO_GLUE_HELPER_X86
1000 select CRYPTO_CAMELLIA_X86_64
1001 select CRYPTO_LRW
1002 select CRYPTO_XTS
1003 help
1004 Camellia cipher algorithm module (x86_64/AES-NI/AVX).
1005
1006 Camellia is a symmetric key block cipher developed jointly
1007 at NTT and Mitsubishi Electric Corporation.
1008
1009 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1010
1011 See also:
0b95ec56
JK
1012 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1013
f3f935a7
JK
1014config CRYPTO_CAMELLIA_AESNI_AVX2_X86_64
1015 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX2)"
1016 depends on X86 && 64BIT
1017 depends on CRYPTO
1018 select CRYPTO_ALGAPI
1019 select CRYPTO_CRYPTD
801201aa 1020 select CRYPTO_ABLK_HELPER
f3f935a7
JK
1021 select CRYPTO_GLUE_HELPER_X86
1022 select CRYPTO_CAMELLIA_X86_64
1023 select CRYPTO_CAMELLIA_AESNI_AVX_X86_64
1024 select CRYPTO_LRW
1025 select CRYPTO_XTS
1026 help
1027 Camellia cipher algorithm module (x86_64/AES-NI/AVX2).
1028
1029 Camellia is a symmetric key block cipher developed jointly
1030 at NTT and Mitsubishi Electric Corporation.
1031
1032 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1033
1034 See also:
1035 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1036
81658ad0
DM
1037config CRYPTO_CAMELLIA_SPARC64
1038 tristate "Camellia cipher algorithm (SPARC64)"
1039 depends on SPARC64
1040 depends on CRYPTO
1041 select CRYPTO_ALGAPI
1042 help
1043 Camellia cipher algorithm module (SPARC64).
1044
1045 Camellia is a symmetric key block cipher developed jointly
1046 at NTT and Mitsubishi Electric Corporation.
1047
1048 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1049
1050 See also:
1051 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1052
044ab525
JK
1053config CRYPTO_CAST_COMMON
1054 tristate
1055 help
1056 Common parts of the CAST cipher algorithms shared by the
1057 generic c and the assembler implementations.
1058
1da177e4
LT
1059config CRYPTO_CAST5
1060 tristate "CAST5 (CAST-128) cipher algorithm"
cce9e06d 1061 select CRYPTO_ALGAPI
044ab525 1062 select CRYPTO_CAST_COMMON
1da177e4
LT
1063 help
1064 The CAST5 encryption algorithm (synonymous with CAST-128) is
1065 described in RFC2144.
1066
4d6d6a2c
JG
1067config CRYPTO_CAST5_AVX_X86_64
1068 tristate "CAST5 (CAST-128) cipher algorithm (x86_64/AVX)"
1069 depends on X86 && 64BIT
1070 select CRYPTO_ALGAPI
1071 select CRYPTO_CRYPTD
801201aa 1072 select CRYPTO_ABLK_HELPER
044ab525 1073 select CRYPTO_CAST_COMMON
4d6d6a2c
JG
1074 select CRYPTO_CAST5
1075 help
1076 The CAST5 encryption algorithm (synonymous with CAST-128) is
1077 described in RFC2144.
1078
1079 This module provides the Cast5 cipher algorithm that processes
1080 sixteen blocks parallel using the AVX instruction set.
1081
1da177e4
LT
1082config CRYPTO_CAST6
1083 tristate "CAST6 (CAST-256) cipher algorithm"
cce9e06d 1084 select CRYPTO_ALGAPI
044ab525 1085 select CRYPTO_CAST_COMMON
1da177e4
LT
1086 help
1087 The CAST6 encryption algorithm (synonymous with CAST-256) is
1088 described in RFC2612.
1089
4ea1277d
JG
1090config CRYPTO_CAST6_AVX_X86_64
1091 tristate "CAST6 (CAST-256) cipher algorithm (x86_64/AVX)"
1092 depends on X86 && 64BIT
1093 select CRYPTO_ALGAPI
1094 select CRYPTO_CRYPTD
801201aa 1095 select CRYPTO_ABLK_HELPER
4ea1277d 1096 select CRYPTO_GLUE_HELPER_X86
044ab525 1097 select CRYPTO_CAST_COMMON
4ea1277d
JG
1098 select CRYPTO_CAST6
1099 select CRYPTO_LRW
1100 select CRYPTO_XTS
1101 help
1102 The CAST6 encryption algorithm (synonymous with CAST-256) is
1103 described in RFC2612.
1104
1105 This module provides the Cast6 cipher algorithm that processes
1106 eight blocks parallel using the AVX instruction set.
1107
584fffc8
SS
1108config CRYPTO_DES
1109 tristate "DES and Triple DES EDE cipher algorithms"
cce9e06d 1110 select CRYPTO_ALGAPI
1da177e4 1111 help
584fffc8 1112 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
fb4f10ed 1113
c5aac2df
DM
1114config CRYPTO_DES_SPARC64
1115 tristate "DES and Triple DES EDE cipher algorithms (SPARC64)"
97da37b3 1116 depends on SPARC64
c5aac2df
DM
1117 select CRYPTO_ALGAPI
1118 select CRYPTO_DES
1119 help
1120 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3),
1121 optimized using SPARC64 crypto opcodes.
1122
6574e6c6
JK
1123config CRYPTO_DES3_EDE_X86_64
1124 tristate "Triple DES EDE cipher algorithm (x86-64)"
1125 depends on X86 && 64BIT
1126 select CRYPTO_ALGAPI
1127 select CRYPTO_DES
1128 help
1129 Triple DES EDE (FIPS 46-3) algorithm.
1130
1131 This module provides implementation of the Triple DES EDE cipher
1132 algorithm that is optimized for x86-64 processors. Two versions of
1133 algorithm are provided; regular processing one input block and
1134 one that processes three blocks parallel.
1135
584fffc8
SS
1136config CRYPTO_FCRYPT
1137 tristate "FCrypt cipher algorithm"
cce9e06d 1138 select CRYPTO_ALGAPI
584fffc8 1139 select CRYPTO_BLKCIPHER
1da177e4 1140 help
584fffc8 1141 FCrypt algorithm used by RxRPC.
1da177e4
LT
1142
1143config CRYPTO_KHAZAD
1144 tristate "Khazad cipher algorithm"
cce9e06d 1145 select CRYPTO_ALGAPI
1da177e4
LT
1146 help
1147 Khazad cipher algorithm.
1148
1149 Khazad was a finalist in the initial NESSIE competition. It is
1150 an algorithm optimized for 64-bit processors with good performance
1151 on 32-bit processors. Khazad uses an 128 bit key size.
1152
1153 See also:
6d8de74c 1154 <http://www.larc.usp.br/~pbarreto/KhazadPage.html>
1da177e4 1155
2407d608 1156config CRYPTO_SALSA20
3b4afaf2 1157 tristate "Salsa20 stream cipher algorithm"
2407d608
TSH
1158 select CRYPTO_BLKCIPHER
1159 help
1160 Salsa20 stream cipher algorithm.
1161
1162 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
1163 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
974e4b75
TSH
1164
1165 The Salsa20 stream cipher algorithm is designed by Daniel J.
1166 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
1167
1168config CRYPTO_SALSA20_586
3b4afaf2 1169 tristate "Salsa20 stream cipher algorithm (i586)"
974e4b75 1170 depends on (X86 || UML_X86) && !64BIT
974e4b75 1171 select CRYPTO_BLKCIPHER
974e4b75
TSH
1172 help
1173 Salsa20 stream cipher algorithm.
1174
1175 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
1176 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
9a7dafbb
TSH
1177
1178 The Salsa20 stream cipher algorithm is designed by Daniel J.
1179 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
1180
1181config CRYPTO_SALSA20_X86_64
3b4afaf2 1182 tristate "Salsa20 stream cipher algorithm (x86_64)"
9a7dafbb 1183 depends on (X86 || UML_X86) && 64BIT
9a7dafbb 1184 select CRYPTO_BLKCIPHER
9a7dafbb
TSH
1185 help
1186 Salsa20 stream cipher algorithm.
1187
1188 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
1189 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
2407d608
TSH
1190
1191 The Salsa20 stream cipher algorithm is designed by Daniel J.
1192 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
1da177e4 1193
c08d0e64
MW
1194config CRYPTO_CHACHA20
1195 tristate "ChaCha20 cipher algorithm"
1196 select CRYPTO_BLKCIPHER
1197 help
1198 ChaCha20 cipher algorithm, RFC7539.
1199
1200 ChaCha20 is a 256-bit high-speed stream cipher designed by Daniel J.
1201 Bernstein and further specified in RFC7539 for use in IETF protocols.
1202 This is the portable C implementation of ChaCha20.
1203
1204 See also:
1205 <http://cr.yp.to/chacha/chacha-20080128.pdf>
1206
584fffc8
SS
1207config CRYPTO_SEED
1208 tristate "SEED cipher algorithm"
cce9e06d 1209 select CRYPTO_ALGAPI
1da177e4 1210 help
584fffc8 1211 SEED cipher algorithm (RFC4269).
1da177e4 1212
584fffc8
SS
1213 SEED is a 128-bit symmetric key block cipher that has been
1214 developed by KISA (Korea Information Security Agency) as a
1215 national standard encryption algorithm of the Republic of Korea.
1216 It is a 16 round block cipher with the key size of 128 bit.
1217
1218 See also:
1219 <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>
1220
1221config CRYPTO_SERPENT
1222 tristate "Serpent cipher algorithm"
cce9e06d 1223 select CRYPTO_ALGAPI
1da177e4 1224 help
584fffc8 1225 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1da177e4 1226
584fffc8
SS
1227 Keys are allowed to be from 0 to 256 bits in length, in steps
1228 of 8 bits. Also includes the 'Tnepres' algorithm, a reversed
1229 variant of Serpent for compatibility with old kerneli.org code.
1230
1231 See also:
1232 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1233
937c30d7
JK
1234config CRYPTO_SERPENT_SSE2_X86_64
1235 tristate "Serpent cipher algorithm (x86_64/SSE2)"
1236 depends on X86 && 64BIT
1237 select CRYPTO_ALGAPI
341975bf 1238 select CRYPTO_CRYPTD
801201aa 1239 select CRYPTO_ABLK_HELPER
596d8750 1240 select CRYPTO_GLUE_HELPER_X86
937c30d7 1241 select CRYPTO_SERPENT
feaf0cfc
JK
1242 select CRYPTO_LRW
1243 select CRYPTO_XTS
937c30d7
JK
1244 help
1245 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1246
1247 Keys are allowed to be from 0 to 256 bits in length, in steps
1248 of 8 bits.
1249
1e6232f8 1250 This module provides Serpent cipher algorithm that processes eight
937c30d7
JK
1251 blocks parallel using SSE2 instruction set.
1252
1253 See also:
1254 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1255
251496db
JK
1256config CRYPTO_SERPENT_SSE2_586
1257 tristate "Serpent cipher algorithm (i586/SSE2)"
1258 depends on X86 && !64BIT
1259 select CRYPTO_ALGAPI
341975bf 1260 select CRYPTO_CRYPTD
801201aa 1261 select CRYPTO_ABLK_HELPER
596d8750 1262 select CRYPTO_GLUE_HELPER_X86
251496db 1263 select CRYPTO_SERPENT
feaf0cfc
JK
1264 select CRYPTO_LRW
1265 select CRYPTO_XTS
251496db
JK
1266 help
1267 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1268
1269 Keys are allowed to be from 0 to 256 bits in length, in steps
1270 of 8 bits.
1271
1272 This module provides Serpent cipher algorithm that processes four
1273 blocks parallel using SSE2 instruction set.
1274
1275 See also:
1276 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
7efe4076
JG
1277
1278config CRYPTO_SERPENT_AVX_X86_64
1279 tristate "Serpent cipher algorithm (x86_64/AVX)"
1280 depends on X86 && 64BIT
1281 select CRYPTO_ALGAPI
1282 select CRYPTO_CRYPTD
801201aa 1283 select CRYPTO_ABLK_HELPER
1d0debbd 1284 select CRYPTO_GLUE_HELPER_X86
7efe4076
JG
1285 select CRYPTO_SERPENT
1286 select CRYPTO_LRW
1287 select CRYPTO_XTS
1288 help
1289 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1290
1291 Keys are allowed to be from 0 to 256 bits in length, in steps
1292 of 8 bits.
1293
1294 This module provides the Serpent cipher algorithm that processes
1295 eight blocks parallel using the AVX instruction set.
1296
1297 See also:
1298 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
251496db 1299
56d76c96
JK
1300config CRYPTO_SERPENT_AVX2_X86_64
1301 tristate "Serpent cipher algorithm (x86_64/AVX2)"
1302 depends on X86 && 64BIT
1303 select CRYPTO_ALGAPI
1304 select CRYPTO_CRYPTD
801201aa 1305 select CRYPTO_ABLK_HELPER
56d76c96
JK
1306 select CRYPTO_GLUE_HELPER_X86
1307 select CRYPTO_SERPENT
1308 select CRYPTO_SERPENT_AVX_X86_64
1309 select CRYPTO_LRW
1310 select CRYPTO_XTS
1311 help
1312 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1313
1314 Keys are allowed to be from 0 to 256 bits in length, in steps
1315 of 8 bits.
1316
1317 This module provides Serpent cipher algorithm that processes 16
1318 blocks parallel using AVX2 instruction set.
1319
1320 See also:
1321 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1322
584fffc8
SS
1323config CRYPTO_TEA
1324 tristate "TEA, XTEA and XETA cipher algorithms"
cce9e06d 1325 select CRYPTO_ALGAPI
1da177e4 1326 help
584fffc8 1327 TEA cipher algorithm.
1da177e4 1328
584fffc8
SS
1329 Tiny Encryption Algorithm is a simple cipher that uses
1330 many rounds for security. It is very fast and uses
1331 little memory.
1332
1333 Xtendend Tiny Encryption Algorithm is a modification to
1334 the TEA algorithm to address a potential key weakness
1335 in the TEA algorithm.
1336
1337 Xtendend Encryption Tiny Algorithm is a mis-implementation
1338 of the XTEA algorithm for compatibility purposes.
1339
1340config CRYPTO_TWOFISH
1341 tristate "Twofish cipher algorithm"
04ac7db3 1342 select CRYPTO_ALGAPI
584fffc8 1343 select CRYPTO_TWOFISH_COMMON
04ac7db3 1344 help
584fffc8 1345 Twofish cipher algorithm.
04ac7db3 1346
584fffc8
SS
1347 Twofish was submitted as an AES (Advanced Encryption Standard)
1348 candidate cipher by researchers at CounterPane Systems. It is a
1349 16 round block cipher supporting key sizes of 128, 192, and 256
1350 bits.
04ac7db3 1351
584fffc8
SS
1352 See also:
1353 <http://www.schneier.com/twofish.html>
1354
1355config CRYPTO_TWOFISH_COMMON
1356 tristate
1357 help
1358 Common parts of the Twofish cipher algorithm shared by the
1359 generic c and the assembler implementations.
1360
1361config CRYPTO_TWOFISH_586
1362 tristate "Twofish cipher algorithms (i586)"
1363 depends on (X86 || UML_X86) && !64BIT
1364 select CRYPTO_ALGAPI
1365 select CRYPTO_TWOFISH_COMMON
1366 help
1367 Twofish cipher algorithm.
1368
1369 Twofish was submitted as an AES (Advanced Encryption Standard)
1370 candidate cipher by researchers at CounterPane Systems. It is a
1371 16 round block cipher supporting key sizes of 128, 192, and 256
1372 bits.
04ac7db3
NT
1373
1374 See also:
584fffc8 1375 <http://www.schneier.com/twofish.html>
04ac7db3 1376
584fffc8
SS
1377config CRYPTO_TWOFISH_X86_64
1378 tristate "Twofish cipher algorithm (x86_64)"
1379 depends on (X86 || UML_X86) && 64BIT
cce9e06d 1380 select CRYPTO_ALGAPI
584fffc8 1381 select CRYPTO_TWOFISH_COMMON
1da177e4 1382 help
584fffc8 1383 Twofish cipher algorithm (x86_64).
1da177e4 1384
584fffc8
SS
1385 Twofish was submitted as an AES (Advanced Encryption Standard)
1386 candidate cipher by researchers at CounterPane Systems. It is a
1387 16 round block cipher supporting key sizes of 128, 192, and 256
1388 bits.
1389
1390 See also:
1391 <http://www.schneier.com/twofish.html>
1392
8280daad
JK
1393config CRYPTO_TWOFISH_X86_64_3WAY
1394 tristate "Twofish cipher algorithm (x86_64, 3-way parallel)"
f21a7c19 1395 depends on X86 && 64BIT
8280daad
JK
1396 select CRYPTO_ALGAPI
1397 select CRYPTO_TWOFISH_COMMON
1398 select CRYPTO_TWOFISH_X86_64
414cb5e7 1399 select CRYPTO_GLUE_HELPER_X86
e7cda5d2
JK
1400 select CRYPTO_LRW
1401 select CRYPTO_XTS
8280daad
JK
1402 help
1403 Twofish cipher algorithm (x86_64, 3-way parallel).
1404
1405 Twofish was submitted as an AES (Advanced Encryption Standard)
1406 candidate cipher by researchers at CounterPane Systems. It is a
1407 16 round block cipher supporting key sizes of 128, 192, and 256
1408 bits.
1409
1410 This module provides Twofish cipher algorithm that processes three
1411 blocks parallel, utilizing resources of out-of-order CPUs better.
1412
1413 See also:
1414 <http://www.schneier.com/twofish.html>
1415
107778b5
JG
1416config CRYPTO_TWOFISH_AVX_X86_64
1417 tristate "Twofish cipher algorithm (x86_64/AVX)"
1418 depends on X86 && 64BIT
1419 select CRYPTO_ALGAPI
1420 select CRYPTO_CRYPTD
801201aa 1421 select CRYPTO_ABLK_HELPER
a7378d4e 1422 select CRYPTO_GLUE_HELPER_X86
107778b5
JG
1423 select CRYPTO_TWOFISH_COMMON
1424 select CRYPTO_TWOFISH_X86_64
1425 select CRYPTO_TWOFISH_X86_64_3WAY
1426 select CRYPTO_LRW
1427 select CRYPTO_XTS
1428 help
1429 Twofish cipher algorithm (x86_64/AVX).
1430
1431 Twofish was submitted as an AES (Advanced Encryption Standard)
1432 candidate cipher by researchers at CounterPane Systems. It is a
1433 16 round block cipher supporting key sizes of 128, 192, and 256
1434 bits.
1435
1436 This module provides the Twofish cipher algorithm that processes
1437 eight blocks parallel using the AVX Instruction Set.
1438
1439 See also:
1440 <http://www.schneier.com/twofish.html>
1441
584fffc8
SS
1442comment "Compression"
1443
1444config CRYPTO_DEFLATE
1445 tristate "Deflate compression algorithm"
1446 select CRYPTO_ALGAPI
1447 select ZLIB_INFLATE
1448 select ZLIB_DEFLATE
3c09f17c 1449 help
584fffc8
SS
1450 This is the Deflate algorithm (RFC1951), specified for use in
1451 IPSec with the IPCOMP protocol (RFC3173, RFC2394).
1452
1453 You will most probably want this if using IPSec.
3c09f17c 1454
bf68e65e
GU
1455config CRYPTO_ZLIB
1456 tristate "Zlib compression algorithm"
1457 select CRYPTO_PCOMP
1458 select ZLIB_INFLATE
1459 select ZLIB_DEFLATE
1460 select NLATTR
1461 help
1462 This is the zlib algorithm.
1463
0b77abb3
ZS
1464config CRYPTO_LZO
1465 tristate "LZO compression algorithm"
1466 select CRYPTO_ALGAPI
1467 select LZO_COMPRESS
1468 select LZO_DECOMPRESS
1469 help
1470 This is the LZO algorithm.
1471
35a1fc18
SJ
1472config CRYPTO_842
1473 tristate "842 compression algorithm"
2062c5b6
DS
1474 select CRYPTO_ALGAPI
1475 select 842_COMPRESS
1476 select 842_DECOMPRESS
35a1fc18
SJ
1477 help
1478 This is the 842 algorithm.
0ea8530d
CM
1479
1480config CRYPTO_LZ4
1481 tristate "LZ4 compression algorithm"
1482 select CRYPTO_ALGAPI
1483 select LZ4_COMPRESS
1484 select LZ4_DECOMPRESS
1485 help
1486 This is the LZ4 algorithm.
1487
1488config CRYPTO_LZ4HC
1489 tristate "LZ4HC compression algorithm"
1490 select CRYPTO_ALGAPI
1491 select LZ4HC_COMPRESS
1492 select LZ4_DECOMPRESS
1493 help
1494 This is the LZ4 high compression mode algorithm.
35a1fc18 1495
17f0f4a4
NH
1496comment "Random Number Generation"
1497
1498config CRYPTO_ANSI_CPRNG
1499 tristate "Pseudo Random Number Generation for Cryptographic modules"
1500 select CRYPTO_AES
1501 select CRYPTO_RNG
17f0f4a4
NH
1502 help
1503 This option enables the generic pseudo random number generator
1504 for cryptographic modules. Uses the Algorithm specified in
7dd607e8
JK
1505 ANSI X9.31 A.2.4. Note that this option must be enabled if
1506 CRYPTO_FIPS is selected
17f0f4a4 1507
f2c89a10 1508menuconfig CRYPTO_DRBG_MENU
419090c6 1509 tristate "NIST SP800-90A DRBG"
419090c6
SM
1510 help
1511 NIST SP800-90A compliant DRBG. In the following submenu, one or
1512 more of the DRBG types must be selected.
1513
f2c89a10 1514if CRYPTO_DRBG_MENU
419090c6
SM
1515
1516config CRYPTO_DRBG_HMAC
401e4238 1517 bool
419090c6 1518 default y
419090c6 1519 select CRYPTO_HMAC
826775bb 1520 select CRYPTO_SHA256
419090c6
SM
1521
1522config CRYPTO_DRBG_HASH
1523 bool "Enable Hash DRBG"
826775bb 1524 select CRYPTO_SHA256
419090c6
SM
1525 help
1526 Enable the Hash DRBG variant as defined in NIST SP800-90A.
1527
1528config CRYPTO_DRBG_CTR
1529 bool "Enable CTR DRBG"
419090c6
SM
1530 select CRYPTO_AES
1531 help
1532 Enable the CTR DRBG variant as defined in NIST SP800-90A.
1533
f2c89a10
HX
1534config CRYPTO_DRBG
1535 tristate
401e4238 1536 default CRYPTO_DRBG_MENU
f2c89a10 1537 select CRYPTO_RNG
bb5530e4 1538 select CRYPTO_JITTERENTROPY
f2c89a10
HX
1539
1540endif # if CRYPTO_DRBG_MENU
419090c6 1541
bb5530e4
SM
1542config CRYPTO_JITTERENTROPY
1543 tristate "Jitterentropy Non-Deterministic Random Number Generator"
1544 help
1545 The Jitterentropy RNG is a noise that is intended
1546 to provide seed to another RNG. The RNG does not
1547 perform any cryptographic whitening of the generated
1548 random numbers. This Jitterentropy RNG registers with
1549 the kernel crypto API and can be used by any caller.
1550
03c8efc1
HX
1551config CRYPTO_USER_API
1552 tristate
1553
fe869cdb
HX
1554config CRYPTO_USER_API_HASH
1555 tristate "User-space interface for hash algorithms"
7451708f 1556 depends on NET
fe869cdb
HX
1557 select CRYPTO_HASH
1558 select CRYPTO_USER_API
1559 help
1560 This option enables the user-spaces interface for hash
1561 algorithms.
1562
8ff59090
HX
1563config CRYPTO_USER_API_SKCIPHER
1564 tristate "User-space interface for symmetric key cipher algorithms"
7451708f 1565 depends on NET
8ff59090
HX
1566 select CRYPTO_BLKCIPHER
1567 select CRYPTO_USER_API
1568 help
1569 This option enables the user-spaces interface for symmetric
1570 key cipher algorithms.
1571
2f375538
SM
1572config CRYPTO_USER_API_RNG
1573 tristate "User-space interface for random number generator algorithms"
1574 depends on NET
1575 select CRYPTO_RNG
1576 select CRYPTO_USER_API
1577 help
1578 This option enables the user-spaces interface for random
1579 number generator algorithms.
1580
b64a2d95
HX
1581config CRYPTO_USER_API_AEAD
1582 tristate "User-space interface for AEAD cipher algorithms"
1583 depends on NET
1584 select CRYPTO_AEAD
1585 select CRYPTO_USER_API
1586 help
1587 This option enables the user-spaces interface for AEAD
1588 cipher algorithms.
1589
ee08997f
DK
1590config CRYPTO_HASH_INFO
1591 bool
1592
1da177e4 1593source "drivers/crypto/Kconfig"
964f3b3b 1594source crypto/asymmetric_keys/Kconfig
1da177e4 1595
cce9e06d 1596endif # if CRYPTO