1 # SPDX-License-Identifier: GPL-2.0
3 # Generic algorithms support
9 # async_tx api: hardware offloaded memory transfer/transform support
11 source "crypto/async_tx/Kconfig"
14 # Cryptographic API Configuration
17 tristate "Cryptographic API"
19 This option provides the core Cryptographic API.
23 comment "Crypto core or helper"
26 bool "FIPS 200 compliance"
27 depends on (CRYPTO_ANSI_CPRNG || CRYPTO_DRBG) && !CRYPTO_MANAGER_DISABLE_TESTS
28 depends on (MODULE_SIG || !MODULES)
30 This options enables the fips boot option which is
31 required if you want to system to operate in a FIPS 200
32 certification. You should say no unless you know what
39 This option provides the API for cryptographic algorithms.
55 config CRYPTO_BLKCIPHER
57 select CRYPTO_BLKCIPHER2
60 config CRYPTO_BLKCIPHER2
64 select CRYPTO_WORKQUEUE
84 config CRYPTO_RNG_DEFAULT
86 select CRYPTO_DRBG_MENU
88 config CRYPTO_AKCIPHER2
92 config CRYPTO_AKCIPHER
94 select CRYPTO_AKCIPHER2
108 select CRYPTO_ALGAPI2
117 tristate "RSA algorithm"
118 select CRYPTO_AKCIPHER
119 select CRYPTO_MANAGER
123 Generic implementation of the RSA public key algorithm.
126 tristate "Diffie-Hellman algorithm"
130 Generic implementation of the Diffie-Hellman algorithm.
133 tristate "ECDH algorithm"
135 select CRYPTO_RNG_DEFAULT
137 Generic implementation of the ECDH algorithm
139 config CRYPTO_MANAGER
140 tristate "Cryptographic algorithm manager"
141 select CRYPTO_MANAGER2
143 Create default cryptographic template instantiations such as
146 config CRYPTO_MANAGER2
147 def_tristate CRYPTO_MANAGER || (CRYPTO_MANAGER!=n && CRYPTO_ALGAPI=y)
150 select CRYPTO_BLKCIPHER2
151 select CRYPTO_AKCIPHER2
156 tristate "Userspace cryptographic algorithm configuration"
158 select CRYPTO_MANAGER
160 Userspace configuration for cryptographic instantiations such as
163 config CRYPTO_MANAGER_DISABLE_TESTS
164 bool "Disable run-time self tests"
166 depends on CRYPTO_MANAGER2
168 Disable run-time self tests that normally take place at
169 algorithm registration.
171 config CRYPTO_GF128MUL
172 tristate "GF(2^128) multiplication functions"
174 Efficient table driven implementation of multiplications in the
175 field GF(2^128). This is needed by some cypher modes. This
176 option will be selected automatically if you select such a
177 cipher mode. Only select this option by hand if you expect to load
178 an external module that requires these functions.
181 tristate "Null algorithms"
184 These are 'Null' algorithms, used by IPsec, which do nothing.
188 select CRYPTO_ALGAPI2
189 select CRYPTO_BLKCIPHER2
193 tristate "Parallel crypto engine"
196 select CRYPTO_MANAGER
199 This converts an arbitrary crypto algorithm into a parallel
200 algorithm that executes in kernel threads.
202 config CRYPTO_WORKQUEUE
206 tristate "Software async crypto daemon"
207 select CRYPTO_BLKCIPHER
209 select CRYPTO_MANAGER
210 select CRYPTO_WORKQUEUE
212 This is a generic software asynchronous crypto daemon that
213 converts an arbitrary synchronous software crypto algorithm
214 into an asynchronous algorithm that executes in a kernel thread.
216 config CRYPTO_AUTHENC
217 tristate "Authenc support"
219 select CRYPTO_BLKCIPHER
220 select CRYPTO_MANAGER
224 Authenc: Combined mode wrapper for IPsec.
225 This is required for IPSec.
228 tristate "Testing module"
230 select CRYPTO_MANAGER
232 Quick & dirty crypto test module.
238 config CRYPTO_GLUE_HELPER_X86
241 select CRYPTO_BLKCIPHER
246 comment "Authenticated Encryption with Associated Data"
249 tristate "CCM support"
254 Support for Counter with CBC MAC. Required for IPsec.
257 tristate "GCM/GMAC support"
263 Support for Galois/Counter Mode (GCM) and Galois Message
264 Authentication Code (GMAC). Required for IPSec.
266 config CRYPTO_CHACHA20POLY1305
267 tristate "ChaCha20-Poly1305 AEAD support"
268 select CRYPTO_CHACHA20
269 select CRYPTO_POLY1305
272 ChaCha20-Poly1305 AEAD support, RFC7539.
274 Support for the AEAD wrapper using the ChaCha20 stream cipher combined
275 with the Poly1305 authenticator. It is defined in RFC7539 for use in
278 config CRYPTO_AEGIS128
279 tristate "AEGIS-128 AEAD algorithm"
281 select CRYPTO_AES # for AES S-box tables
283 Support for the AEGIS-128 dedicated AEAD algorithm.
285 config CRYPTO_AEGIS128L
286 tristate "AEGIS-128L AEAD algorithm"
288 select CRYPTO_AES # for AES S-box tables
290 Support for the AEGIS-128L dedicated AEAD algorithm.
292 config CRYPTO_AEGIS256
293 tristate "AEGIS-256 AEAD algorithm"
295 select CRYPTO_AES # for AES S-box tables
297 Support for the AEGIS-256 dedicated AEAD algorithm.
299 config CRYPTO_AEGIS128_AESNI_SSE2
300 tristate "AEGIS-128 AEAD algorithm (x86_64 AESNI+SSE2 implementation)"
301 depends on X86 && 64BIT
305 AESNI+SSE2 implementation of the AEGSI-128 dedicated AEAD algorithm.
307 config CRYPTO_AEGIS128L_AESNI_SSE2
308 tristate "AEGIS-128L AEAD algorithm (x86_64 AESNI+SSE2 implementation)"
309 depends on X86 && 64BIT
313 AESNI+SSE2 implementation of the AEGSI-128L dedicated AEAD algorithm.
315 config CRYPTO_AEGIS256_AESNI_SSE2
316 tristate "AEGIS-256 AEAD algorithm (x86_64 AESNI+SSE2 implementation)"
317 depends on X86 && 64BIT
321 AESNI+SSE2 implementation of the AEGSI-256 dedicated AEAD algorithm.
323 config CRYPTO_MORUS640
324 tristate "MORUS-640 AEAD algorithm"
327 Support for the MORUS-640 dedicated AEAD algorithm.
329 config CRYPTO_MORUS640_GLUE
335 Common glue for SIMD optimizations of the MORUS-640 dedicated AEAD
338 config CRYPTO_MORUS640_SSE2
339 tristate "MORUS-640 AEAD algorithm (x86_64 SSE2 implementation)"
340 depends on X86 && 64BIT
342 select CRYPTO_MORUS640_GLUE
344 SSE2 implementation of the MORUS-640 dedicated AEAD algorithm.
346 config CRYPTO_MORUS1280
347 tristate "MORUS-1280 AEAD algorithm"
350 Support for the MORUS-1280 dedicated AEAD algorithm.
352 config CRYPTO_MORUS1280_GLUE
358 Common glue for SIMD optimizations of the MORUS-1280 dedicated AEAD
361 config CRYPTO_MORUS1280_SSE2
362 tristate "MORUS-1280 AEAD algorithm (x86_64 SSE2 implementation)"
363 depends on X86 && 64BIT
365 select CRYPTO_MORUS1280_GLUE
367 SSE2 optimizedimplementation of the MORUS-1280 dedicated AEAD
370 config CRYPTO_MORUS1280_AVX2
371 tristate "MORUS-1280 AEAD algorithm (x86_64 AVX2 implementation)"
372 depends on X86 && 64BIT
374 select CRYPTO_MORUS1280_GLUE
376 AVX2 optimized implementation of the MORUS-1280 dedicated AEAD
380 tristate "Sequence Number IV Generator"
382 select CRYPTO_BLKCIPHER
384 select CRYPTO_RNG_DEFAULT
386 This IV generator generates an IV based on a sequence number by
387 xoring it with a salt. This algorithm is mainly useful for CTR
389 config CRYPTO_ECHAINIV
390 tristate "Encrypted Chain IV Generator"
393 select CRYPTO_RNG_DEFAULT
396 This IV generator generates an IV based on the encryption of
397 a sequence number xored with a salt. This is the default
400 comment "Block modes"
403 tristate "CBC support"
404 select CRYPTO_BLKCIPHER
405 select CRYPTO_MANAGER
407 CBC: Cipher Block Chaining mode
408 This block cipher algorithm is required for IPSec.
411 tristate "CFB support"
412 select CRYPTO_BLKCIPHER
413 select CRYPTO_MANAGER
415 CFB: Cipher FeedBack mode
416 This block cipher algorithm is required for TPM2 Cryptography.
419 tristate "CTR support"
420 select CRYPTO_BLKCIPHER
422 select CRYPTO_MANAGER
425 This block cipher algorithm is required for IPSec.
428 tristate "CTS support"
429 select CRYPTO_BLKCIPHER
431 CTS: Cipher Text Stealing
432 This is the Cipher Text Stealing mode as described by
433 Section 8 of rfc2040 and referenced by rfc3962
434 (rfc3962 includes errata information in its Appendix A) or
435 CBC-CS3 as defined by NIST in Sp800-38A addendum from Oct 2010.
436 This mode is required for Kerberos gss mechanism support
439 See: https://csrc.nist.gov/publications/detail/sp/800-38a/addendum/final
442 tristate "ECB support"
443 select CRYPTO_BLKCIPHER
444 select CRYPTO_MANAGER
446 ECB: Electronic CodeBook mode
447 This is the simplest block cipher algorithm. It simply encrypts
448 the input block by block.
451 tristate "LRW support"
452 select CRYPTO_BLKCIPHER
453 select CRYPTO_MANAGER
454 select CRYPTO_GF128MUL
456 LRW: Liskov Rivest Wagner, a tweakable, non malleable, non movable
457 narrow block cipher mode for dm-crypt. Use it with cipher
458 specification string aes-lrw-benbi, the key must be 256, 320 or 384.
459 The first 128, 192 or 256 bits in the key are used for AES and the
460 rest is used to tie each cipher block to its logical position.
463 tristate "OFB support"
464 select CRYPTO_BLKCIPHER
465 select CRYPTO_MANAGER
467 OFB: the Output Feedback mode makes a block cipher into a synchronous
468 stream cipher. It generates keystream blocks, which are then XORed
469 with the plaintext blocks to get the ciphertext. Flipping a bit in the
470 ciphertext produces a flipped bit in the plaintext at the same
471 location. This property allows many error correcting codes to function
472 normally even when applied before encryption.
475 tristate "PCBC support"
476 select CRYPTO_BLKCIPHER
477 select CRYPTO_MANAGER
479 PCBC: Propagating Cipher Block Chaining mode
480 This block cipher algorithm is required for RxRPC.
483 tristate "XTS support"
484 select CRYPTO_BLKCIPHER
485 select CRYPTO_MANAGER
488 XTS: IEEE1619/D16 narrow block cipher use with aes-xts-plain,
489 key size 256, 384 or 512 bits. This implementation currently
490 can't handle a sectorsize which is not a multiple of 16 bytes.
492 config CRYPTO_KEYWRAP
493 tristate "Key wrapping support"
494 select CRYPTO_BLKCIPHER
496 Support for key wrapping (NIST SP800-38F / RFC3394) without
499 config CRYPTO_NHPOLY1305
502 select CRYPTO_POLY1305
504 config CRYPTO_NHPOLY1305_SSE2
505 tristate "NHPoly1305 hash function (x86_64 SSE2 implementation)"
506 depends on X86 && 64BIT
507 select CRYPTO_NHPOLY1305
509 SSE2 optimized implementation of the hash function used by the
510 Adiantum encryption mode.
512 config CRYPTO_NHPOLY1305_AVX2
513 tristate "NHPoly1305 hash function (x86_64 AVX2 implementation)"
514 depends on X86 && 64BIT
515 select CRYPTO_NHPOLY1305
517 AVX2 optimized implementation of the hash function used by the
518 Adiantum encryption mode.
520 config CRYPTO_ADIANTUM
521 tristate "Adiantum support"
522 select CRYPTO_CHACHA20
523 select CRYPTO_POLY1305
524 select CRYPTO_NHPOLY1305
526 Adiantum is a tweakable, length-preserving encryption mode
527 designed for fast and secure disk encryption, especially on
528 CPUs without dedicated crypto instructions. It encrypts
529 each sector using the XChaCha12 stream cipher, two passes of
530 an ε-almost-∆-universal hash function, and an invocation of
531 the AES-256 block cipher on a single 16-byte block. On CPUs
532 without AES instructions, Adiantum is much faster than
535 Adiantum's security is provably reducible to that of its
536 underlying stream and block ciphers, subject to a security
537 bound. Unlike XTS, Adiantum is a true wide-block encryption
538 mode, so it actually provides an even stronger notion of
539 security than XTS, subject to the security bound.
546 tristate "CMAC support"
548 select CRYPTO_MANAGER
550 Cipher-based Message Authentication Code (CMAC) specified by
551 The National Institute of Standards and Technology (NIST).
553 https://tools.ietf.org/html/rfc4493
554 http://csrc.nist.gov/publications/nistpubs/800-38B/SP_800-38B.pdf
557 tristate "HMAC support"
559 select CRYPTO_MANAGER
561 HMAC: Keyed-Hashing for Message Authentication (RFC2104).
562 This is required for IPSec.
565 tristate "XCBC support"
567 select CRYPTO_MANAGER
569 XCBC: Keyed-Hashing with encryption algorithm
570 http://www.ietf.org/rfc/rfc3566.txt
571 http://csrc.nist.gov/encryption/modes/proposedmodes/
572 xcbc-mac/xcbc-mac-spec.pdf
575 tristate "VMAC support"
577 select CRYPTO_MANAGER
579 VMAC is a message authentication algorithm designed for
580 very high speed on 64-bit architectures.
583 <http://fastcrypto.org/vmac>
588 tristate "CRC32c CRC algorithm"
592 Castagnoli, et al Cyclic Redundancy-Check Algorithm. Used
593 by iSCSI for header and data digests and by others.
594 See Castagnoli93. Module will be crc32c.
596 config CRYPTO_CRC32C_INTEL
597 tristate "CRC32c INTEL hardware acceleration"
601 In Intel processor with SSE4.2 supported, the processor will
602 support CRC32C implementation using hardware accelerated CRC32
603 instruction. This option will create 'crc32c-intel' module,
604 which will enable any routine to use the CRC32 instruction to
605 gain performance compared with software implementation.
606 Module will be crc32c-intel.
608 config CRYPTO_CRC32C_VPMSUM
609 tristate "CRC32c CRC algorithm (powerpc64)"
610 depends on PPC64 && ALTIVEC
614 CRC32c algorithm implemented using vector polynomial multiply-sum
615 (vpmsum) instructions, introduced in POWER8. Enable on POWER8
616 and newer processors for improved performance.
619 config CRYPTO_CRC32C_SPARC64
620 tristate "CRC32c CRC algorithm (SPARC64)"
625 CRC32c CRC algorithm implemented using sparc64 crypto instructions,
629 tristate "CRC32 CRC algorithm"
633 CRC-32-IEEE 802.3 cyclic redundancy-check algorithm.
634 Shash crypto api wrappers to crc32_le function.
636 config CRYPTO_CRC32_PCLMUL
637 tristate "CRC32 PCLMULQDQ hardware acceleration"
642 From Intel Westmere and AMD Bulldozer processor with SSE4.2
643 and PCLMULQDQ supported, the processor will support
644 CRC32 PCLMULQDQ implementation using hardware accelerated PCLMULQDQ
645 instruction. This option will create 'crc32-plcmul' module,
646 which will enable any routine to use the CRC-32-IEEE 802.3 checksum
647 and gain better performance as compared with the table implementation.
649 config CRYPTO_CRC32_MIPS
650 tristate "CRC32c and CRC32 CRC algorithm (MIPS)"
651 depends on MIPS_CRC_SUPPORT
654 CRC32c and CRC32 CRC algorithms implemented using mips crypto
655 instructions, when available.
658 config CRYPTO_CRCT10DIF
659 tristate "CRCT10DIF algorithm"
662 CRC T10 Data Integrity Field computation is being cast as
663 a crypto transform. This allows for faster crc t10 diff
664 transforms to be used if they are available.
666 config CRYPTO_CRCT10DIF_PCLMUL
667 tristate "CRCT10DIF PCLMULQDQ hardware acceleration"
668 depends on X86 && 64BIT && CRC_T10DIF
671 For x86_64 processors with SSE4.2 and PCLMULQDQ supported,
672 CRC T10 DIF PCLMULQDQ computation can be hardware
673 accelerated PCLMULQDQ instruction. This option will create
674 'crct10dif-plcmul' module, which is faster when computing the
675 crct10dif checksum as compared with the generic table implementation.
677 config CRYPTO_CRCT10DIF_VPMSUM
678 tristate "CRC32T10DIF powerpc64 hardware acceleration"
679 depends on PPC64 && ALTIVEC && CRC_T10DIF
682 CRC10T10DIF algorithm implemented using vector polynomial
683 multiply-sum (vpmsum) instructions, introduced in POWER8. Enable on
684 POWER8 and newer processors for improved performance.
686 config CRYPTO_VPMSUM_TESTER
687 tristate "Powerpc64 vpmsum hardware acceleration tester"
688 depends on CRYPTO_CRCT10DIF_VPMSUM && CRYPTO_CRC32C_VPMSUM
690 Stress test for CRC32c and CRC-T10DIF algorithms implemented with
691 POWER8 vpmsum instructions.
692 Unless you are testing these algorithms, you don't need this.
695 tristate "GHASH digest algorithm"
696 select CRYPTO_GF128MUL
699 GHASH is message digest algorithm for GCM (Galois/Counter Mode).
701 config CRYPTO_POLY1305
702 tristate "Poly1305 authenticator algorithm"
705 Poly1305 authenticator algorithm, RFC7539.
707 Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein.
708 It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use
709 in IETF protocols. This is the portable C implementation of Poly1305.
711 config CRYPTO_POLY1305_X86_64
712 tristate "Poly1305 authenticator algorithm (x86_64/SSE2/AVX2)"
713 depends on X86 && 64BIT
714 select CRYPTO_POLY1305
716 Poly1305 authenticator algorithm, RFC7539.
718 Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein.
719 It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use
720 in IETF protocols. This is the x86_64 assembler implementation using SIMD
724 tristate "MD4 digest algorithm"
727 MD4 message digest algorithm (RFC1320).
730 tristate "MD5 digest algorithm"
733 MD5 message digest algorithm (RFC1321).
735 config CRYPTO_MD5_OCTEON
736 tristate "MD5 digest algorithm (OCTEON)"
737 depends on CPU_CAVIUM_OCTEON
741 MD5 message digest algorithm (RFC1321) implemented
742 using OCTEON crypto instructions, when available.
744 config CRYPTO_MD5_PPC
745 tristate "MD5 digest algorithm (PPC)"
749 MD5 message digest algorithm (RFC1321) implemented
752 config CRYPTO_MD5_SPARC64
753 tristate "MD5 digest algorithm (SPARC64)"
758 MD5 message digest algorithm (RFC1321) implemented
759 using sparc64 crypto instructions, when available.
761 config CRYPTO_MICHAEL_MIC
762 tristate "Michael MIC keyed digest algorithm"
765 Michael MIC is used for message integrity protection in TKIP
766 (IEEE 802.11i). This algorithm is required for TKIP, but it
767 should not be used for other purposes because of the weakness
771 tristate "RIPEMD-128 digest algorithm"
774 RIPEMD-128 (ISO/IEC 10118-3:2004).
776 RIPEMD-128 is a 128-bit cryptographic hash function. It should only
777 be used as a secure replacement for RIPEMD. For other use cases,
778 RIPEMD-160 should be used.
780 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
781 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
784 tristate "RIPEMD-160 digest algorithm"
787 RIPEMD-160 (ISO/IEC 10118-3:2004).
789 RIPEMD-160 is a 160-bit cryptographic hash function. It is intended
790 to be used as a secure replacement for the 128-bit hash functions
791 MD4, MD5 and it's predecessor RIPEMD
792 (not to be confused with RIPEMD-128).
794 It's speed is comparable to SHA1 and there are no known attacks
797 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
798 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
801 tristate "RIPEMD-256 digest algorithm"
804 RIPEMD-256 is an optional extension of RIPEMD-128 with a
805 256 bit hash. It is intended for applications that require
806 longer hash-results, without needing a larger security level
809 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
810 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
813 tristate "RIPEMD-320 digest algorithm"
816 RIPEMD-320 is an optional extension of RIPEMD-160 with a
817 320 bit hash. It is intended for applications that require
818 longer hash-results, without needing a larger security level
821 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
822 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
825 tristate "SHA1 digest algorithm"
828 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
830 config CRYPTO_SHA1_SSSE3
831 tristate "SHA1 digest algorithm (SSSE3/AVX/AVX2/SHA-NI)"
832 depends on X86 && 64BIT
836 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
837 using Supplemental SSE3 (SSSE3) instructions or Advanced Vector
838 Extensions (AVX/AVX2) or SHA-NI(SHA Extensions New Instructions),
841 config CRYPTO_SHA256_SSSE3
842 tristate "SHA256 digest algorithm (SSSE3/AVX/AVX2/SHA-NI)"
843 depends on X86 && 64BIT
847 SHA-256 secure hash standard (DFIPS 180-2) implemented
848 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
849 Extensions version 1 (AVX1), or Advanced Vector Extensions
850 version 2 (AVX2) instructions, or SHA-NI (SHA Extensions New
851 Instructions) when available.
853 config CRYPTO_SHA512_SSSE3
854 tristate "SHA512 digest algorithm (SSSE3/AVX/AVX2)"
855 depends on X86 && 64BIT
859 SHA-512 secure hash standard (DFIPS 180-2) implemented
860 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
861 Extensions version 1 (AVX1), or Advanced Vector Extensions
862 version 2 (AVX2) instructions, when available.
864 config CRYPTO_SHA1_OCTEON
865 tristate "SHA1 digest algorithm (OCTEON)"
866 depends on CPU_CAVIUM_OCTEON
870 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
871 using OCTEON crypto instructions, when available.
873 config CRYPTO_SHA1_SPARC64
874 tristate "SHA1 digest algorithm (SPARC64)"
879 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
880 using sparc64 crypto instructions, when available.
882 config CRYPTO_SHA1_PPC
883 tristate "SHA1 digest algorithm (powerpc)"
886 This is the powerpc hardware accelerated implementation of the
887 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
889 config CRYPTO_SHA1_PPC_SPE
890 tristate "SHA1 digest algorithm (PPC SPE)"
891 depends on PPC && SPE
893 SHA-1 secure hash standard (DFIPS 180-4) implemented
894 using powerpc SPE SIMD instruction set.
897 tristate "SHA224 and SHA256 digest algorithm"
900 SHA256 secure hash standard (DFIPS 180-2).
902 This version of SHA implements a 256 bit hash with 128 bits of
903 security against collision attacks.
905 This code also includes SHA-224, a 224 bit hash with 112 bits
906 of security against collision attacks.
908 config CRYPTO_SHA256_PPC_SPE
909 tristate "SHA224 and SHA256 digest algorithm (PPC SPE)"
910 depends on PPC && SPE
914 SHA224 and SHA256 secure hash standard (DFIPS 180-2)
915 implemented using powerpc SPE SIMD instruction set.
917 config CRYPTO_SHA256_OCTEON
918 tristate "SHA224 and SHA256 digest algorithm (OCTEON)"
919 depends on CPU_CAVIUM_OCTEON
923 SHA-256 secure hash standard (DFIPS 180-2) implemented
924 using OCTEON crypto instructions, when available.
926 config CRYPTO_SHA256_SPARC64
927 tristate "SHA224 and SHA256 digest algorithm (SPARC64)"
932 SHA-256 secure hash standard (DFIPS 180-2) implemented
933 using sparc64 crypto instructions, when available.
936 tristate "SHA384 and SHA512 digest algorithms"
939 SHA512 secure hash standard (DFIPS 180-2).
941 This version of SHA implements a 512 bit hash with 256 bits of
942 security against collision attacks.
944 This code also includes SHA-384, a 384 bit hash with 192 bits
945 of security against collision attacks.
947 config CRYPTO_SHA512_OCTEON
948 tristate "SHA384 and SHA512 digest algorithms (OCTEON)"
949 depends on CPU_CAVIUM_OCTEON
953 SHA-512 secure hash standard (DFIPS 180-2) implemented
954 using OCTEON crypto instructions, when available.
956 config CRYPTO_SHA512_SPARC64
957 tristate "SHA384 and SHA512 digest algorithm (SPARC64)"
962 SHA-512 secure hash standard (DFIPS 180-2) implemented
963 using sparc64 crypto instructions, when available.
966 tristate "SHA3 digest algorithm"
969 SHA-3 secure hash standard (DFIPS 202). It's based on
970 cryptographic sponge function family called Keccak.
973 http://keccak.noekeon.org/
976 tristate "SM3 digest algorithm"
979 SM3 secure hash function as defined by OSCCA GM/T 0004-2012 SM3).
980 It is part of the Chinese Commercial Cryptography suite.
983 http://www.oscca.gov.cn/UpFile/20101222141857786.pdf
984 https://datatracker.ietf.org/doc/html/draft-shen-sm3-hash
986 config CRYPTO_STREEBOG
987 tristate "Streebog Hash Function"
990 Streebog Hash Function (GOST R 34.11-2012, RFC 6986) is one of the Russian
991 cryptographic standard algorithms (called GOST algorithms).
992 This setting enables two hash algorithms with 256 and 512 bits output.
995 https://tc26.ru/upload/iblock/fed/feddbb4d26b685903faa2ba11aea43f6.pdf
996 https://tools.ietf.org/html/rfc6986
999 tristate "Tiger digest algorithms"
1002 Tiger hash algorithm 192, 160 and 128-bit hashes
1004 Tiger is a hash function optimized for 64-bit processors while
1005 still having decent performance on 32-bit processors.
1006 Tiger was developed by Ross Anderson and Eli Biham.
1009 <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>.
1012 tristate "Whirlpool digest algorithms"
1015 Whirlpool hash algorithm 512, 384 and 256-bit hashes
1017 Whirlpool-512 is part of the NESSIE cryptographic primitives.
1018 Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard
1021 <http://www.larc.usp.br/~pbarreto/WhirlpoolPage.html>
1023 config CRYPTO_GHASH_CLMUL_NI_INTEL
1024 tristate "GHASH digest algorithm (CLMUL-NI accelerated)"
1025 depends on X86 && 64BIT
1026 select CRYPTO_CRYPTD
1028 GHASH is message digest algorithm for GCM (Galois/Counter Mode).
1029 The implementation is accelerated by CLMUL-NI of Intel.
1034 tristate "AES cipher algorithms"
1035 select CRYPTO_ALGAPI
1037 AES cipher algorithms (FIPS-197). AES uses the Rijndael
1040 Rijndael appears to be consistently a very good performer in
1041 both hardware and software across a wide range of computing
1042 environments regardless of its use in feedback or non-feedback
1043 modes. Its key setup time is excellent, and its key agility is
1044 good. Rijndael's very low memory requirements make it very well
1045 suited for restricted-space environments, in which it also
1046 demonstrates excellent performance. Rijndael's operations are
1047 among the easiest to defend against power and timing attacks.
1049 The AES specifies three key sizes: 128, 192 and 256 bits
1051 See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information.
1053 config CRYPTO_AES_TI
1054 tristate "Fixed time AES cipher"
1055 select CRYPTO_ALGAPI
1057 This is a generic implementation of AES that attempts to eliminate
1058 data dependent latencies as much as possible without affecting
1059 performance too much. It is intended for use by the generic CCM
1060 and GCM drivers, and other CTR or CMAC/XCBC based modes that rely
1061 solely on encryption (although decryption is supported as well, but
1062 with a more dramatic performance hit)
1064 Instead of using 16 lookup tables of 1 KB each, (8 for encryption and
1065 8 for decryption), this implementation only uses just two S-boxes of
1066 256 bytes each, and attempts to eliminate data dependent latencies by
1067 prefetching the entire table into the cache at the start of each
1068 block. Interrupts are also disabled to avoid races where cachelines
1069 are evicted when the CPU is interrupted to do something else.
1071 config CRYPTO_AES_586
1072 tristate "AES cipher algorithms (i586)"
1073 depends on (X86 || UML_X86) && !64BIT
1074 select CRYPTO_ALGAPI
1077 AES cipher algorithms (FIPS-197). AES uses the Rijndael
1080 Rijndael appears to be consistently a very good performer in
1081 both hardware and software across a wide range of computing
1082 environments regardless of its use in feedback or non-feedback
1083 modes. Its key setup time is excellent, and its key agility is
1084 good. Rijndael's very low memory requirements make it very well
1085 suited for restricted-space environments, in which it also
1086 demonstrates excellent performance. Rijndael's operations are
1087 among the easiest to defend against power and timing attacks.
1089 The AES specifies three key sizes: 128, 192 and 256 bits
1091 See <http://csrc.nist.gov/encryption/aes/> for more information.
1093 config CRYPTO_AES_X86_64
1094 tristate "AES cipher algorithms (x86_64)"
1095 depends on (X86 || UML_X86) && 64BIT
1096 select CRYPTO_ALGAPI
1099 AES cipher algorithms (FIPS-197). AES uses the Rijndael
1102 Rijndael appears to be consistently a very good performer in
1103 both hardware and software across a wide range of computing
1104 environments regardless of its use in feedback or non-feedback
1105 modes. Its key setup time is excellent, and its key agility is
1106 good. Rijndael's very low memory requirements make it very well
1107 suited for restricted-space environments, in which it also
1108 demonstrates excellent performance. Rijndael's operations are
1109 among the easiest to defend against power and timing attacks.
1111 The AES specifies three key sizes: 128, 192 and 256 bits
1113 See <http://csrc.nist.gov/encryption/aes/> for more information.
1115 config CRYPTO_AES_NI_INTEL
1116 tristate "AES cipher algorithms (AES-NI)"
1119 select CRYPTO_AES_X86_64 if 64BIT
1120 select CRYPTO_AES_586 if !64BIT
1121 select CRYPTO_ALGAPI
1122 select CRYPTO_BLKCIPHER
1123 select CRYPTO_GLUE_HELPER_X86 if 64BIT
1126 Use Intel AES-NI instructions for AES algorithm.
1128 AES cipher algorithms (FIPS-197). AES uses the Rijndael
1131 Rijndael appears to be consistently a very good performer in
1132 both hardware and software across a wide range of computing
1133 environments regardless of its use in feedback or non-feedback
1134 modes. Its key setup time is excellent, and its key agility is
1135 good. Rijndael's very low memory requirements make it very well
1136 suited for restricted-space environments, in which it also
1137 demonstrates excellent performance. Rijndael's operations are
1138 among the easiest to defend against power and timing attacks.
1140 The AES specifies three key sizes: 128, 192 and 256 bits
1142 See <http://csrc.nist.gov/encryption/aes/> for more information.
1144 In addition to AES cipher algorithm support, the acceleration
1145 for some popular block cipher mode is supported too, including
1146 ECB, CBC, LRW, XTS. The 64 bit version has additional
1147 acceleration for CTR.
1149 config CRYPTO_AES_SPARC64
1150 tristate "AES cipher algorithms (SPARC64)"
1152 select CRYPTO_CRYPTD
1153 select CRYPTO_ALGAPI
1155 Use SPARC64 crypto opcodes for AES algorithm.
1157 AES cipher algorithms (FIPS-197). AES uses the Rijndael
1160 Rijndael appears to be consistently a very good performer in
1161 both hardware and software across a wide range of computing
1162 environments regardless of its use in feedback or non-feedback
1163 modes. Its key setup time is excellent, and its key agility is
1164 good. Rijndael's very low memory requirements make it very well
1165 suited for restricted-space environments, in which it also
1166 demonstrates excellent performance. Rijndael's operations are
1167 among the easiest to defend against power and timing attacks.
1169 The AES specifies three key sizes: 128, 192 and 256 bits
1171 See <http://csrc.nist.gov/encryption/aes/> for more information.
1173 In addition to AES cipher algorithm support, the acceleration
1174 for some popular block cipher mode is supported too, including
1177 config CRYPTO_AES_PPC_SPE
1178 tristate "AES cipher algorithms (PPC SPE)"
1179 depends on PPC && SPE
1181 AES cipher algorithms (FIPS-197). Additionally the acceleration
1182 for popular block cipher modes ECB, CBC, CTR and XTS is supported.
1183 This module should only be used for low power (router) devices
1184 without hardware AES acceleration (e.g. caam crypto). It reduces the
1185 size of the AES tables from 16KB to 8KB + 256 bytes and mitigates
1186 timining attacks. Nevertheless it might be not as secure as other
1187 architecture specific assembler implementations that work on 1KB
1188 tables or 256 bytes S-boxes.
1190 config CRYPTO_ANUBIS
1191 tristate "Anubis cipher algorithm"
1192 select CRYPTO_ALGAPI
1194 Anubis cipher algorithm.
1196 Anubis is a variable key length cipher which can use keys from
1197 128 bits to 320 bits in length. It was evaluated as a entrant
1198 in the NESSIE competition.
1201 <https://www.cosic.esat.kuleuven.be/nessie/reports/>
1202 <http://www.larc.usp.br/~pbarreto/AnubisPage.html>
1205 tristate "ARC4 cipher algorithm"
1206 select CRYPTO_BLKCIPHER
1208 ARC4 cipher algorithm.
1210 ARC4 is a stream cipher using keys ranging from 8 bits to 2048
1211 bits in length. This algorithm is required for driver-based
1212 WEP, but it should not be for other purposes because of the
1213 weakness of the algorithm.
1215 config CRYPTO_BLOWFISH
1216 tristate "Blowfish cipher algorithm"
1217 select CRYPTO_ALGAPI
1218 select CRYPTO_BLOWFISH_COMMON
1220 Blowfish cipher algorithm, by Bruce Schneier.
1222 This is a variable key length cipher which can use keys from 32
1223 bits to 448 bits in length. It's fast, simple and specifically
1224 designed for use on "large microprocessors".
1227 <http://www.schneier.com/blowfish.html>
1229 config CRYPTO_BLOWFISH_COMMON
1232 Common parts of the Blowfish cipher algorithm shared by the
1233 generic c and the assembler implementations.
1236 <http://www.schneier.com/blowfish.html>
1238 config CRYPTO_BLOWFISH_X86_64
1239 tristate "Blowfish cipher algorithm (x86_64)"
1240 depends on X86 && 64BIT
1241 select CRYPTO_BLKCIPHER
1242 select CRYPTO_BLOWFISH_COMMON
1244 Blowfish cipher algorithm (x86_64), by Bruce Schneier.
1246 This is a variable key length cipher which can use keys from 32
1247 bits to 448 bits in length. It's fast, simple and specifically
1248 designed for use on "large microprocessors".
1251 <http://www.schneier.com/blowfish.html>
1253 config CRYPTO_CAMELLIA
1254 tristate "Camellia cipher algorithms"
1256 select CRYPTO_ALGAPI
1258 Camellia cipher algorithms module.
1260 Camellia is a symmetric key block cipher developed jointly
1261 at NTT and Mitsubishi Electric Corporation.
1263 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1266 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1268 config CRYPTO_CAMELLIA_X86_64
1269 tristate "Camellia cipher algorithm (x86_64)"
1270 depends on X86 && 64BIT
1272 select CRYPTO_BLKCIPHER
1273 select CRYPTO_GLUE_HELPER_X86
1275 Camellia cipher algorithm module (x86_64).
1277 Camellia is a symmetric key block cipher developed jointly
1278 at NTT and Mitsubishi Electric Corporation.
1280 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1283 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1285 config CRYPTO_CAMELLIA_AESNI_AVX_X86_64
1286 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX)"
1287 depends on X86 && 64BIT
1289 select CRYPTO_BLKCIPHER
1290 select CRYPTO_CAMELLIA_X86_64
1291 select CRYPTO_GLUE_HELPER_X86
1295 Camellia cipher algorithm module (x86_64/AES-NI/AVX).
1297 Camellia is a symmetric key block cipher developed jointly
1298 at NTT and Mitsubishi Electric Corporation.
1300 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1303 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1305 config CRYPTO_CAMELLIA_AESNI_AVX2_X86_64
1306 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX2)"
1307 depends on X86 && 64BIT
1309 select CRYPTO_CAMELLIA_AESNI_AVX_X86_64
1311 Camellia cipher algorithm module (x86_64/AES-NI/AVX2).
1313 Camellia is a symmetric key block cipher developed jointly
1314 at NTT and Mitsubishi Electric Corporation.
1316 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1319 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1321 config CRYPTO_CAMELLIA_SPARC64
1322 tristate "Camellia cipher algorithm (SPARC64)"
1325 select CRYPTO_ALGAPI
1327 Camellia cipher algorithm module (SPARC64).
1329 Camellia is a symmetric key block cipher developed jointly
1330 at NTT and Mitsubishi Electric Corporation.
1332 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1335 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1337 config CRYPTO_CAST_COMMON
1340 Common parts of the CAST cipher algorithms shared by the
1341 generic c and the assembler implementations.
1344 tristate "CAST5 (CAST-128) cipher algorithm"
1345 select CRYPTO_ALGAPI
1346 select CRYPTO_CAST_COMMON
1348 The CAST5 encryption algorithm (synonymous with CAST-128) is
1349 described in RFC2144.
1351 config CRYPTO_CAST5_AVX_X86_64
1352 tristate "CAST5 (CAST-128) cipher algorithm (x86_64/AVX)"
1353 depends on X86 && 64BIT
1354 select CRYPTO_BLKCIPHER
1356 select CRYPTO_CAST_COMMON
1359 The CAST5 encryption algorithm (synonymous with CAST-128) is
1360 described in RFC2144.
1362 This module provides the Cast5 cipher algorithm that processes
1363 sixteen blocks parallel using the AVX instruction set.
1366 tristate "CAST6 (CAST-256) cipher algorithm"
1367 select CRYPTO_ALGAPI
1368 select CRYPTO_CAST_COMMON
1370 The CAST6 encryption algorithm (synonymous with CAST-256) is
1371 described in RFC2612.
1373 config CRYPTO_CAST6_AVX_X86_64
1374 tristate "CAST6 (CAST-256) cipher algorithm (x86_64/AVX)"
1375 depends on X86 && 64BIT
1376 select CRYPTO_BLKCIPHER
1378 select CRYPTO_CAST_COMMON
1379 select CRYPTO_GLUE_HELPER_X86
1383 The CAST6 encryption algorithm (synonymous with CAST-256) is
1384 described in RFC2612.
1386 This module provides the Cast6 cipher algorithm that processes
1387 eight blocks parallel using the AVX instruction set.
1390 tristate "DES and Triple DES EDE cipher algorithms"
1391 select CRYPTO_ALGAPI
1393 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
1395 config CRYPTO_DES_SPARC64
1396 tristate "DES and Triple DES EDE cipher algorithms (SPARC64)"
1398 select CRYPTO_ALGAPI
1401 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3),
1402 optimized using SPARC64 crypto opcodes.
1404 config CRYPTO_DES3_EDE_X86_64
1405 tristate "Triple DES EDE cipher algorithm (x86-64)"
1406 depends on X86 && 64BIT
1407 select CRYPTO_BLKCIPHER
1410 Triple DES EDE (FIPS 46-3) algorithm.
1412 This module provides implementation of the Triple DES EDE cipher
1413 algorithm that is optimized for x86-64 processors. Two versions of
1414 algorithm are provided; regular processing one input block and
1415 one that processes three blocks parallel.
1417 config CRYPTO_FCRYPT
1418 tristate "FCrypt cipher algorithm"
1419 select CRYPTO_ALGAPI
1420 select CRYPTO_BLKCIPHER
1422 FCrypt algorithm used by RxRPC.
1424 config CRYPTO_KHAZAD
1425 tristate "Khazad cipher algorithm"
1426 select CRYPTO_ALGAPI
1428 Khazad cipher algorithm.
1430 Khazad was a finalist in the initial NESSIE competition. It is
1431 an algorithm optimized for 64-bit processors with good performance
1432 on 32-bit processors. Khazad uses an 128 bit key size.
1435 <http://www.larc.usp.br/~pbarreto/KhazadPage.html>
1437 config CRYPTO_SALSA20
1438 tristate "Salsa20 stream cipher algorithm"
1439 select CRYPTO_BLKCIPHER
1441 Salsa20 stream cipher algorithm.
1443 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
1444 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
1446 The Salsa20 stream cipher algorithm is designed by Daniel J.
1449 config CRYPTO_CHACHA20
1450 tristate "ChaCha stream cipher algorithms"
1451 select CRYPTO_BLKCIPHER
1453 The ChaCha20, XChaCha20, and XChaCha12 stream cipher algorithms.
1455 ChaCha20 is a 256-bit high-speed stream cipher designed by Daniel J.
1456 Bernstein and further specified in RFC7539 for use in IETF protocols.
1457 This is the portable C implementation of ChaCha20. See also:
1458 <http://cr.yp.to/chacha/chacha-20080128.pdf>
1460 XChaCha20 is the application of the XSalsa20 construction to ChaCha20
1461 rather than to Salsa20. XChaCha20 extends ChaCha20's nonce length
1462 from 64 bits (or 96 bits using the RFC7539 convention) to 192 bits,
1463 while provably retaining ChaCha20's security. See also:
1464 <https://cr.yp.to/snuffle/xsalsa-20081128.pdf>
1466 XChaCha12 is XChaCha20 reduced to 12 rounds, with correspondingly
1467 reduced security margin but increased performance. It can be needed
1468 in some performance-sensitive scenarios.
1470 config CRYPTO_CHACHA20_X86_64
1471 tristate "ChaCha stream cipher algorithms (x86_64/SSSE3/AVX2/AVX-512VL)"
1472 depends on X86 && 64BIT
1473 select CRYPTO_BLKCIPHER
1474 select CRYPTO_CHACHA20
1476 SSSE3, AVX2, and AVX-512VL optimized implementations of the ChaCha20,
1477 XChaCha20, and XChaCha12 stream ciphers.
1480 tristate "SEED cipher algorithm"
1481 select CRYPTO_ALGAPI
1483 SEED cipher algorithm (RFC4269).
1485 SEED is a 128-bit symmetric key block cipher that has been
1486 developed by KISA (Korea Information Security Agency) as a
1487 national standard encryption algorithm of the Republic of Korea.
1488 It is a 16 round block cipher with the key size of 128 bit.
1491 <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>
1493 config CRYPTO_SERPENT
1494 tristate "Serpent cipher algorithm"
1495 select CRYPTO_ALGAPI
1497 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1499 Keys are allowed to be from 0 to 256 bits in length, in steps
1500 of 8 bits. Also includes the 'Tnepres' algorithm, a reversed
1501 variant of Serpent for compatibility with old kerneli.org code.
1504 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1506 config CRYPTO_SERPENT_SSE2_X86_64
1507 tristate "Serpent cipher algorithm (x86_64/SSE2)"
1508 depends on X86 && 64BIT
1509 select CRYPTO_BLKCIPHER
1510 select CRYPTO_GLUE_HELPER_X86
1511 select CRYPTO_SERPENT
1514 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1516 Keys are allowed to be from 0 to 256 bits in length, in steps
1519 This module provides Serpent cipher algorithm that processes eight
1520 blocks parallel using SSE2 instruction set.
1523 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1525 config CRYPTO_SERPENT_SSE2_586
1526 tristate "Serpent cipher algorithm (i586/SSE2)"
1527 depends on X86 && !64BIT
1528 select CRYPTO_BLKCIPHER
1529 select CRYPTO_GLUE_HELPER_X86
1530 select CRYPTO_SERPENT
1533 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1535 Keys are allowed to be from 0 to 256 bits in length, in steps
1538 This module provides Serpent cipher algorithm that processes four
1539 blocks parallel using SSE2 instruction set.
1542 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1544 config CRYPTO_SERPENT_AVX_X86_64
1545 tristate "Serpent cipher algorithm (x86_64/AVX)"
1546 depends on X86 && 64BIT
1547 select CRYPTO_BLKCIPHER
1548 select CRYPTO_GLUE_HELPER_X86
1549 select CRYPTO_SERPENT
1553 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1555 Keys are allowed to be from 0 to 256 bits in length, in steps
1558 This module provides the Serpent cipher algorithm that processes
1559 eight blocks parallel using the AVX instruction set.
1562 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1564 config CRYPTO_SERPENT_AVX2_X86_64
1565 tristate "Serpent cipher algorithm (x86_64/AVX2)"
1566 depends on X86 && 64BIT
1567 select CRYPTO_SERPENT_AVX_X86_64
1569 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1571 Keys are allowed to be from 0 to 256 bits in length, in steps
1574 This module provides Serpent cipher algorithm that processes 16
1575 blocks parallel using AVX2 instruction set.
1578 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1581 tristate "SM4 cipher algorithm"
1582 select CRYPTO_ALGAPI
1584 SM4 cipher algorithms (OSCCA GB/T 32907-2016).
1586 SM4 (GBT.32907-2016) is a cryptographic standard issued by the
1587 Organization of State Commercial Administration of China (OSCCA)
1588 as an authorized cryptographic algorithms for the use within China.
1590 SMS4 was originally created for use in protecting wireless
1591 networks, and is mandated in the Chinese National Standard for
1592 Wireless LAN WAPI (Wired Authentication and Privacy Infrastructure)
1595 The latest SM4 standard (GBT.32907-2016) was proposed by OSCCA and
1596 standardized through TC 260 of the Standardization Administration
1597 of the People's Republic of China (SAC).
1599 The input, output, and key of SMS4 are each 128 bits.
1601 See also: <https://eprint.iacr.org/2008/329.pdf>
1606 tristate "TEA, XTEA and XETA cipher algorithms"
1607 select CRYPTO_ALGAPI
1609 TEA cipher algorithm.
1611 Tiny Encryption Algorithm is a simple cipher that uses
1612 many rounds for security. It is very fast and uses
1615 Xtendend Tiny Encryption Algorithm is a modification to
1616 the TEA algorithm to address a potential key weakness
1617 in the TEA algorithm.
1619 Xtendend Encryption Tiny Algorithm is a mis-implementation
1620 of the XTEA algorithm for compatibility purposes.
1622 config CRYPTO_TWOFISH
1623 tristate "Twofish cipher algorithm"
1624 select CRYPTO_ALGAPI
1625 select CRYPTO_TWOFISH_COMMON
1627 Twofish cipher algorithm.
1629 Twofish was submitted as an AES (Advanced Encryption Standard)
1630 candidate cipher by researchers at CounterPane Systems. It is a
1631 16 round block cipher supporting key sizes of 128, 192, and 256
1635 <http://www.schneier.com/twofish.html>
1637 config CRYPTO_TWOFISH_COMMON
1640 Common parts of the Twofish cipher algorithm shared by the
1641 generic c and the assembler implementations.
1643 config CRYPTO_TWOFISH_586
1644 tristate "Twofish cipher algorithms (i586)"
1645 depends on (X86 || UML_X86) && !64BIT
1646 select CRYPTO_ALGAPI
1647 select CRYPTO_TWOFISH_COMMON
1649 Twofish cipher algorithm.
1651 Twofish was submitted as an AES (Advanced Encryption Standard)
1652 candidate cipher by researchers at CounterPane Systems. It is a
1653 16 round block cipher supporting key sizes of 128, 192, and 256
1657 <http://www.schneier.com/twofish.html>
1659 config CRYPTO_TWOFISH_X86_64
1660 tristate "Twofish cipher algorithm (x86_64)"
1661 depends on (X86 || UML_X86) && 64BIT
1662 select CRYPTO_ALGAPI
1663 select CRYPTO_TWOFISH_COMMON
1665 Twofish cipher algorithm (x86_64).
1667 Twofish was submitted as an AES (Advanced Encryption Standard)
1668 candidate cipher by researchers at CounterPane Systems. It is a
1669 16 round block cipher supporting key sizes of 128, 192, and 256
1673 <http://www.schneier.com/twofish.html>
1675 config CRYPTO_TWOFISH_X86_64_3WAY
1676 tristate "Twofish cipher algorithm (x86_64, 3-way parallel)"
1677 depends on X86 && 64BIT
1678 select CRYPTO_BLKCIPHER
1679 select CRYPTO_TWOFISH_COMMON
1680 select CRYPTO_TWOFISH_X86_64
1681 select CRYPTO_GLUE_HELPER_X86
1683 Twofish cipher algorithm (x86_64, 3-way parallel).
1685 Twofish was submitted as an AES (Advanced Encryption Standard)
1686 candidate cipher by researchers at CounterPane Systems. It is a
1687 16 round block cipher supporting key sizes of 128, 192, and 256
1690 This module provides Twofish cipher algorithm that processes three
1691 blocks parallel, utilizing resources of out-of-order CPUs better.
1694 <http://www.schneier.com/twofish.html>
1696 config CRYPTO_TWOFISH_AVX_X86_64
1697 tristate "Twofish cipher algorithm (x86_64/AVX)"
1698 depends on X86 && 64BIT
1699 select CRYPTO_BLKCIPHER
1700 select CRYPTO_GLUE_HELPER_X86
1702 select CRYPTO_TWOFISH_COMMON
1703 select CRYPTO_TWOFISH_X86_64
1704 select CRYPTO_TWOFISH_X86_64_3WAY
1706 Twofish cipher algorithm (x86_64/AVX).
1708 Twofish was submitted as an AES (Advanced Encryption Standard)
1709 candidate cipher by researchers at CounterPane Systems. It is a
1710 16 round block cipher supporting key sizes of 128, 192, and 256
1713 This module provides the Twofish cipher algorithm that processes
1714 eight blocks parallel using the AVX Instruction Set.
1717 <http://www.schneier.com/twofish.html>
1719 comment "Compression"
1721 config CRYPTO_DEFLATE
1722 tristate "Deflate compression algorithm"
1723 select CRYPTO_ALGAPI
1724 select CRYPTO_ACOMP2
1728 This is the Deflate algorithm (RFC1951), specified for use in
1729 IPSec with the IPCOMP protocol (RFC3173, RFC2394).
1731 You will most probably want this if using IPSec.
1734 tristate "LZO compression algorithm"
1735 select CRYPTO_ALGAPI
1736 select CRYPTO_ACOMP2
1738 select LZO_DECOMPRESS
1740 This is the LZO algorithm.
1743 tristate "842 compression algorithm"
1744 select CRYPTO_ALGAPI
1745 select CRYPTO_ACOMP2
1747 select 842_DECOMPRESS
1749 This is the 842 algorithm.
1752 tristate "LZ4 compression algorithm"
1753 select CRYPTO_ALGAPI
1754 select CRYPTO_ACOMP2
1756 select LZ4_DECOMPRESS
1758 This is the LZ4 algorithm.
1761 tristate "LZ4HC compression algorithm"
1762 select CRYPTO_ALGAPI
1763 select CRYPTO_ACOMP2
1764 select LZ4HC_COMPRESS
1765 select LZ4_DECOMPRESS
1767 This is the LZ4 high compression mode algorithm.
1770 tristate "Zstd compression algorithm"
1771 select CRYPTO_ALGAPI
1772 select CRYPTO_ACOMP2
1773 select ZSTD_COMPRESS
1774 select ZSTD_DECOMPRESS
1776 This is the zstd algorithm.
1778 comment "Random Number Generation"
1780 config CRYPTO_ANSI_CPRNG
1781 tristate "Pseudo Random Number Generation for Cryptographic modules"
1785 This option enables the generic pseudo random number generator
1786 for cryptographic modules. Uses the Algorithm specified in
1787 ANSI X9.31 A.2.4. Note that this option must be enabled if
1788 CRYPTO_FIPS is selected
1790 menuconfig CRYPTO_DRBG_MENU
1791 tristate "NIST SP800-90A DRBG"
1793 NIST SP800-90A compliant DRBG. In the following submenu, one or
1794 more of the DRBG types must be selected.
1798 config CRYPTO_DRBG_HMAC
1802 select CRYPTO_SHA256
1804 config CRYPTO_DRBG_HASH
1805 bool "Enable Hash DRBG"
1806 select CRYPTO_SHA256
1808 Enable the Hash DRBG variant as defined in NIST SP800-90A.
1810 config CRYPTO_DRBG_CTR
1811 bool "Enable CTR DRBG"
1813 depends on CRYPTO_CTR
1815 Enable the CTR DRBG variant as defined in NIST SP800-90A.
1819 default CRYPTO_DRBG_MENU
1821 select CRYPTO_JITTERENTROPY
1823 endif # if CRYPTO_DRBG_MENU
1825 config CRYPTO_JITTERENTROPY
1826 tristate "Jitterentropy Non-Deterministic Random Number Generator"
1829 The Jitterentropy RNG is a noise that is intended
1830 to provide seed to another RNG. The RNG does not
1831 perform any cryptographic whitening of the generated
1832 random numbers. This Jitterentropy RNG registers with
1833 the kernel crypto API and can be used by any caller.
1835 config CRYPTO_USER_API
1838 config CRYPTO_USER_API_HASH
1839 tristate "User-space interface for hash algorithms"
1842 select CRYPTO_USER_API
1844 This option enables the user-spaces interface for hash
1847 config CRYPTO_USER_API_SKCIPHER
1848 tristate "User-space interface for symmetric key cipher algorithms"
1850 select CRYPTO_BLKCIPHER
1851 select CRYPTO_USER_API
1853 This option enables the user-spaces interface for symmetric
1854 key cipher algorithms.
1856 config CRYPTO_USER_API_RNG
1857 tristate "User-space interface for random number generator algorithms"
1860 select CRYPTO_USER_API
1862 This option enables the user-spaces interface for random
1863 number generator algorithms.
1865 config CRYPTO_USER_API_AEAD
1866 tristate "User-space interface for AEAD cipher algorithms"
1869 select CRYPTO_BLKCIPHER
1871 select CRYPTO_USER_API
1873 This option enables the user-spaces interface for AEAD
1877 bool "Crypto usage statistics for User-space"
1878 depends on CRYPTO_USER
1880 This option enables the gathering of crypto stats.
1882 - encrypt/decrypt size and numbers of symmeric operations
1883 - compress/decompress size and numbers of compress operations
1884 - size and numbers of hash operations
1885 - encrypt/decrypt/sign/verify numbers for asymmetric operations
1886 - generate/seed numbers for rng operations
1888 config CRYPTO_HASH_INFO
1891 source "drivers/crypto/Kconfig"
1892 source "crypto/asymmetric_keys/Kconfig"
1893 source "certs/Kconfig"