2 # Generic algorithms support
8 # async_tx api: hardware offloaded memory transfer/transform support
10 source "crypto/async_tx/Kconfig"
13 # Cryptographic API Configuration
16 tristate "Cryptographic API"
18 This option provides the core Cryptographic API.
22 comment "Crypto core or helper"
25 bool "FIPS 200 compliance"
26 depends on (CRYPTO_ANSI_CPRNG || CRYPTO_DRBG) && !CRYPTO_MANAGER_DISABLE_TESTS
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
38 This option provides the API for cryptographic algorithms.
52 config CRYPTO_BLKCIPHER
54 select CRYPTO_BLKCIPHER2
57 config CRYPTO_BLKCIPHER2
61 select CRYPTO_WORKQUEUE
91 tristate "Cryptographic algorithm manager"
92 select CRYPTO_MANAGER2
94 Create default cryptographic template instantiations such as
97 config CRYPTO_MANAGER2
98 def_tristate CRYPTO_MANAGER || (CRYPTO_MANAGER!=n && CRYPTO_ALGAPI=y)
101 select CRYPTO_BLKCIPHER2
105 tristate "Userspace cryptographic algorithm configuration"
107 select CRYPTO_MANAGER
109 Userspace configuration for cryptographic instantiations such as
112 config CRYPTO_MANAGER_DISABLE_TESTS
113 bool "Disable run-time self tests"
115 depends on CRYPTO_MANAGER2
117 Disable run-time self tests that normally take place at
118 algorithm registration.
120 config CRYPTO_GF128MUL
121 tristate "GF(2^128) multiplication functions"
123 Efficient table driven implementation of multiplications in the
124 field GF(2^128). This is needed by some cypher modes. This
125 option will be selected automatically if you select such a
126 cipher mode. Only select this option by hand if you expect to load
127 an external module that requires these functions.
130 tristate "Null algorithms"
132 select CRYPTO_BLKCIPHER
135 These are 'Null' algorithms, used by IPsec, which do nothing.
138 tristate "Parallel crypto engine"
141 select CRYPTO_MANAGER
144 This converts an arbitrary crypto algorithm into a parallel
145 algorithm that executes in kernel threads.
147 config CRYPTO_WORKQUEUE
151 tristate "Software async crypto daemon"
152 select CRYPTO_BLKCIPHER
154 select CRYPTO_MANAGER
155 select CRYPTO_WORKQUEUE
157 This is a generic software asynchronous crypto daemon that
158 converts an arbitrary synchronous software crypto algorithm
159 into an asynchronous algorithm that executes in a kernel thread.
161 config CRYPTO_MCRYPTD
162 tristate "Software async multi-buffer crypto daemon"
163 select CRYPTO_BLKCIPHER
165 select CRYPTO_MANAGER
166 select CRYPTO_WORKQUEUE
168 This is a generic software asynchronous crypto daemon that
169 provides the kernel thread to assist multi-buffer crypto
170 algorithms for submitting jobs and flushing jobs in multi-buffer
171 crypto algorithms. Multi-buffer crypto algorithms are executed
172 in the context of this kernel thread and drivers can post
173 their crypto request asynchronously to be processed by this daemon.
175 config CRYPTO_AUTHENC
176 tristate "Authenc support"
178 select CRYPTO_BLKCIPHER
179 select CRYPTO_MANAGER
182 Authenc: Combined mode wrapper for IPsec.
183 This is required for IPSec.
186 tristate "Testing module"
188 select CRYPTO_MANAGER
190 Quick & dirty crypto test module.
192 config CRYPTO_ABLK_HELPER
196 config CRYPTO_GLUE_HELPER_X86
201 comment "Authenticated Encryption with Associated Data"
204 tristate "CCM support"
208 Support for Counter with CBC MAC. Required for IPsec.
211 tristate "GCM/GMAC support"
217 Support for Galois/Counter Mode (GCM) and Galois Message
218 Authentication Code (GMAC). Required for IPSec.
221 tristate "Sequence Number IV Generator"
223 select CRYPTO_BLKCIPHER
227 This IV generator generates an IV based on a sequence number by
228 xoring it with a salt. This algorithm is mainly useful for CTR
230 config CRYPTO_ECHAINIV
231 tristate "Encrypted Chain IV Generator"
236 This IV generator generates an IV based on the encryption of
237 a sequence number xored with a salt. This is the default
240 comment "Block modes"
243 tristate "CBC support"
244 select CRYPTO_BLKCIPHER
245 select CRYPTO_MANAGER
247 CBC: Cipher Block Chaining mode
248 This block cipher algorithm is required for IPSec.
251 tristate "CTR support"
252 select CRYPTO_BLKCIPHER
254 select CRYPTO_MANAGER
257 This block cipher algorithm is required for IPSec.
260 tristate "CTS support"
261 select CRYPTO_BLKCIPHER
263 CTS: Cipher Text Stealing
264 This is the Cipher Text Stealing mode as described by
265 Section 8 of rfc2040 and referenced by rfc3962.
266 (rfc3962 includes errata information in its Appendix A)
267 This mode is required for Kerberos gss mechanism support
271 tristate "ECB support"
272 select CRYPTO_BLKCIPHER
273 select CRYPTO_MANAGER
275 ECB: Electronic CodeBook mode
276 This is the simplest block cipher algorithm. It simply encrypts
277 the input block by block.
280 tristate "LRW support"
281 select CRYPTO_BLKCIPHER
282 select CRYPTO_MANAGER
283 select CRYPTO_GF128MUL
285 LRW: Liskov Rivest Wagner, a tweakable, non malleable, non movable
286 narrow block cipher mode for dm-crypt. Use it with cipher
287 specification string aes-lrw-benbi, the key must be 256, 320 or 384.
288 The first 128, 192 or 256 bits in the key are used for AES and the
289 rest is used to tie each cipher block to its logical position.
292 tristate "PCBC support"
293 select CRYPTO_BLKCIPHER
294 select CRYPTO_MANAGER
296 PCBC: Propagating Cipher Block Chaining mode
297 This block cipher algorithm is required for RxRPC.
300 tristate "XTS support"
301 select CRYPTO_BLKCIPHER
302 select CRYPTO_MANAGER
303 select CRYPTO_GF128MUL
305 XTS: IEEE1619/D16 narrow block cipher use with aes-xts-plain,
306 key size 256, 384 or 512 bits. This implementation currently
307 can't handle a sectorsize which is not a multiple of 16 bytes.
312 tristate "CMAC support"
314 select CRYPTO_MANAGER
316 Cipher-based Message Authentication Code (CMAC) specified by
317 The National Institute of Standards and Technology (NIST).
319 https://tools.ietf.org/html/rfc4493
320 http://csrc.nist.gov/publications/nistpubs/800-38B/SP_800-38B.pdf
323 tristate "HMAC support"
325 select CRYPTO_MANAGER
327 HMAC: Keyed-Hashing for Message Authentication (RFC2104).
328 This is required for IPSec.
331 tristate "XCBC support"
333 select CRYPTO_MANAGER
335 XCBC: Keyed-Hashing with encryption algorithm
336 http://www.ietf.org/rfc/rfc3566.txt
337 http://csrc.nist.gov/encryption/modes/proposedmodes/
338 xcbc-mac/xcbc-mac-spec.pdf
341 tristate "VMAC support"
343 select CRYPTO_MANAGER
345 VMAC is a message authentication algorithm designed for
346 very high speed on 64-bit architectures.
349 <http://fastcrypto.org/vmac>
354 tristate "CRC32c CRC algorithm"
358 Castagnoli, et al Cyclic Redundancy-Check Algorithm. Used
359 by iSCSI for header and data digests and by others.
360 See Castagnoli93. Module will be crc32c.
362 config CRYPTO_CRC32C_INTEL
363 tristate "CRC32c INTEL hardware acceleration"
367 In Intel processor with SSE4.2 supported, the processor will
368 support CRC32C implementation using hardware accelerated CRC32
369 instruction. This option will create 'crc32c-intel' module,
370 which will enable any routine to use the CRC32 instruction to
371 gain performance compared with software implementation.
372 Module will be crc32c-intel.
374 config CRYPTO_CRC32C_SPARC64
375 tristate "CRC32c CRC algorithm (SPARC64)"
380 CRC32c CRC algorithm implemented using sparc64 crypto instructions,
384 tristate "CRC32 CRC algorithm"
388 CRC-32-IEEE 802.3 cyclic redundancy-check algorithm.
389 Shash crypto api wrappers to crc32_le function.
391 config CRYPTO_CRC32_PCLMUL
392 tristate "CRC32 PCLMULQDQ hardware acceleration"
397 From Intel Westmere and AMD Bulldozer processor with SSE4.2
398 and PCLMULQDQ supported, the processor will support
399 CRC32 PCLMULQDQ implementation using hardware accelerated PCLMULQDQ
400 instruction. This option will create 'crc32-plcmul' module,
401 which will enable any routine to use the CRC-32-IEEE 802.3 checksum
402 and gain better performance as compared with the table implementation.
404 config CRYPTO_CRCT10DIF
405 tristate "CRCT10DIF algorithm"
408 CRC T10 Data Integrity Field computation is being cast as
409 a crypto transform. This allows for faster crc t10 diff
410 transforms to be used if they are available.
412 config CRYPTO_CRCT10DIF_PCLMUL
413 tristate "CRCT10DIF PCLMULQDQ hardware acceleration"
414 depends on X86 && 64BIT && CRC_T10DIF
417 For x86_64 processors with SSE4.2 and PCLMULQDQ supported,
418 CRC T10 DIF PCLMULQDQ computation can be hardware
419 accelerated PCLMULQDQ instruction. This option will create
420 'crct10dif-plcmul' module, which is faster when computing the
421 crct10dif checksum as compared with the generic table implementation.
424 tristate "GHASH digest algorithm"
425 select CRYPTO_GF128MUL
427 GHASH is message digest algorithm for GCM (Galois/Counter Mode).
429 config CRYPTO_POLY1305
430 tristate "Poly1305 authenticator algorithm"
432 Poly1305 authenticator algorithm, RFC7539.
434 Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein.
435 It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use
436 in IETF protocols. This is the portable C implementation of Poly1305.
439 tristate "MD4 digest algorithm"
442 MD4 message digest algorithm (RFC1320).
445 tristate "MD5 digest algorithm"
448 MD5 message digest algorithm (RFC1321).
450 config CRYPTO_MD5_OCTEON
451 tristate "MD5 digest algorithm (OCTEON)"
452 depends on CPU_CAVIUM_OCTEON
456 MD5 message digest algorithm (RFC1321) implemented
457 using OCTEON crypto instructions, when available.
459 config CRYPTO_MD5_PPC
460 tristate "MD5 digest algorithm (PPC)"
464 MD5 message digest algorithm (RFC1321) implemented
467 config CRYPTO_MD5_SPARC64
468 tristate "MD5 digest algorithm (SPARC64)"
473 MD5 message digest algorithm (RFC1321) implemented
474 using sparc64 crypto instructions, when available.
476 config CRYPTO_MICHAEL_MIC
477 tristate "Michael MIC keyed digest algorithm"
480 Michael MIC is used for message integrity protection in TKIP
481 (IEEE 802.11i). This algorithm is required for TKIP, but it
482 should not be used for other purposes because of the weakness
486 tristate "RIPEMD-128 digest algorithm"
489 RIPEMD-128 (ISO/IEC 10118-3:2004).
491 RIPEMD-128 is a 128-bit cryptographic hash function. It should only
492 be used as a secure replacement for RIPEMD. For other use cases,
493 RIPEMD-160 should be used.
495 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
496 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
499 tristate "RIPEMD-160 digest algorithm"
502 RIPEMD-160 (ISO/IEC 10118-3:2004).
504 RIPEMD-160 is a 160-bit cryptographic hash function. It is intended
505 to be used as a secure replacement for the 128-bit hash functions
506 MD4, MD5 and it's predecessor RIPEMD
507 (not to be confused with RIPEMD-128).
509 It's speed is comparable to SHA1 and there are no known attacks
512 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
513 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
516 tristate "RIPEMD-256 digest algorithm"
519 RIPEMD-256 is an optional extension of RIPEMD-128 with a
520 256 bit hash. It is intended for applications that require
521 longer hash-results, without needing a larger security level
524 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
525 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
528 tristate "RIPEMD-320 digest algorithm"
531 RIPEMD-320 is an optional extension of RIPEMD-160 with a
532 320 bit hash. It is intended for applications that require
533 longer hash-results, without needing a larger security level
536 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
537 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
540 tristate "SHA1 digest algorithm"
543 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
545 config CRYPTO_SHA1_SSSE3
546 tristate "SHA1 digest algorithm (SSSE3/AVX/AVX2)"
547 depends on X86 && 64BIT
551 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
552 using Supplemental SSE3 (SSSE3) instructions or Advanced Vector
553 Extensions (AVX/AVX2), when available.
555 config CRYPTO_SHA256_SSSE3
556 tristate "SHA256 digest algorithm (SSSE3/AVX/AVX2)"
557 depends on X86 && 64BIT
561 SHA-256 secure hash standard (DFIPS 180-2) implemented
562 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
563 Extensions version 1 (AVX1), or Advanced Vector Extensions
564 version 2 (AVX2) instructions, when available.
566 config CRYPTO_SHA512_SSSE3
567 tristate "SHA512 digest algorithm (SSSE3/AVX/AVX2)"
568 depends on X86 && 64BIT
572 SHA-512 secure hash standard (DFIPS 180-2) implemented
573 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
574 Extensions version 1 (AVX1), or Advanced Vector Extensions
575 version 2 (AVX2) instructions, when available.
577 config CRYPTO_SHA1_OCTEON
578 tristate "SHA1 digest algorithm (OCTEON)"
579 depends on CPU_CAVIUM_OCTEON
583 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
584 using OCTEON crypto instructions, when available.
586 config CRYPTO_SHA1_SPARC64
587 tristate "SHA1 digest algorithm (SPARC64)"
592 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
593 using sparc64 crypto instructions, when available.
595 config CRYPTO_SHA1_PPC
596 tristate "SHA1 digest algorithm (powerpc)"
599 This is the powerpc hardware accelerated implementation of the
600 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
602 config CRYPTO_SHA1_PPC_SPE
603 tristate "SHA1 digest algorithm (PPC SPE)"
604 depends on PPC && SPE
606 SHA-1 secure hash standard (DFIPS 180-4) implemented
607 using powerpc SPE SIMD instruction set.
609 config CRYPTO_SHA1_MB
610 tristate "SHA1 digest algorithm (x86_64 Multi-Buffer, Experimental)"
611 depends on X86 && 64BIT
614 select CRYPTO_MCRYPTD
616 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
617 using multi-buffer technique. This algorithm computes on
618 multiple data lanes concurrently with SIMD instructions for
619 better throughput. It should not be enabled by default but
620 used when there is significant amount of work to keep the keep
621 the data lanes filled to get performance benefit. If the data
622 lanes remain unfilled, a flush operation will be initiated to
623 process the crypto jobs, adding a slight latency.
626 tristate "SHA224 and SHA256 digest algorithm"
629 SHA256 secure hash standard (DFIPS 180-2).
631 This version of SHA implements a 256 bit hash with 128 bits of
632 security against collision attacks.
634 This code also includes SHA-224, a 224 bit hash with 112 bits
635 of security against collision attacks.
637 config CRYPTO_SHA256_PPC_SPE
638 tristate "SHA224 and SHA256 digest algorithm (PPC SPE)"
639 depends on PPC && SPE
643 SHA224 and SHA256 secure hash standard (DFIPS 180-2)
644 implemented using powerpc SPE SIMD instruction set.
646 config CRYPTO_SHA256_OCTEON
647 tristate "SHA224 and SHA256 digest algorithm (OCTEON)"
648 depends on CPU_CAVIUM_OCTEON
652 SHA-256 secure hash standard (DFIPS 180-2) implemented
653 using OCTEON crypto instructions, when available.
655 config CRYPTO_SHA256_SPARC64
656 tristate "SHA224 and SHA256 digest algorithm (SPARC64)"
661 SHA-256 secure hash standard (DFIPS 180-2) implemented
662 using sparc64 crypto instructions, when available.
665 tristate "SHA384 and SHA512 digest algorithms"
668 SHA512 secure hash standard (DFIPS 180-2).
670 This version of SHA implements a 512 bit hash with 256 bits of
671 security against collision attacks.
673 This code also includes SHA-384, a 384 bit hash with 192 bits
674 of security against collision attacks.
676 config CRYPTO_SHA512_OCTEON
677 tristate "SHA384 and SHA512 digest algorithms (OCTEON)"
678 depends on CPU_CAVIUM_OCTEON
682 SHA-512 secure hash standard (DFIPS 180-2) implemented
683 using OCTEON crypto instructions, when available.
685 config CRYPTO_SHA512_SPARC64
686 tristate "SHA384 and SHA512 digest algorithm (SPARC64)"
691 SHA-512 secure hash standard (DFIPS 180-2) implemented
692 using sparc64 crypto instructions, when available.
695 tristate "Tiger digest algorithms"
698 Tiger hash algorithm 192, 160 and 128-bit hashes
700 Tiger is a hash function optimized for 64-bit processors while
701 still having decent performance on 32-bit processors.
702 Tiger was developed by Ross Anderson and Eli Biham.
705 <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>.
708 tristate "Whirlpool digest algorithms"
711 Whirlpool hash algorithm 512, 384 and 256-bit hashes
713 Whirlpool-512 is part of the NESSIE cryptographic primitives.
714 Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard
717 <http://www.larc.usp.br/~pbarreto/WhirlpoolPage.html>
719 config CRYPTO_GHASH_CLMUL_NI_INTEL
720 tristate "GHASH digest algorithm (CLMUL-NI accelerated)"
721 depends on X86 && 64BIT
724 GHASH is message digest algorithm for GCM (Galois/Counter Mode).
725 The implementation is accelerated by CLMUL-NI of Intel.
730 tristate "AES cipher algorithms"
733 AES cipher algorithms (FIPS-197). AES uses the Rijndael
736 Rijndael appears to be consistently a very good performer in
737 both hardware and software across a wide range of computing
738 environments regardless of its use in feedback or non-feedback
739 modes. Its key setup time is excellent, and its key agility is
740 good. Rijndael's very low memory requirements make it very well
741 suited for restricted-space environments, in which it also
742 demonstrates excellent performance. Rijndael's operations are
743 among the easiest to defend against power and timing attacks.
745 The AES specifies three key sizes: 128, 192 and 256 bits
747 See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information.
749 config CRYPTO_AES_586
750 tristate "AES cipher algorithms (i586)"
751 depends on (X86 || UML_X86) && !64BIT
755 AES cipher algorithms (FIPS-197). AES uses the Rijndael
758 Rijndael appears to be consistently a very good performer in
759 both hardware and software across a wide range of computing
760 environments regardless of its use in feedback or non-feedback
761 modes. Its key setup time is excellent, and its key agility is
762 good. Rijndael's very low memory requirements make it very well
763 suited for restricted-space environments, in which it also
764 demonstrates excellent performance. Rijndael's operations are
765 among the easiest to defend against power and timing attacks.
767 The AES specifies three key sizes: 128, 192 and 256 bits
769 See <http://csrc.nist.gov/encryption/aes/> for more information.
771 config CRYPTO_AES_X86_64
772 tristate "AES cipher algorithms (x86_64)"
773 depends on (X86 || UML_X86) && 64BIT
777 AES cipher algorithms (FIPS-197). AES uses the Rijndael
780 Rijndael appears to be consistently a very good performer in
781 both hardware and software across a wide range of computing
782 environments regardless of its use in feedback or non-feedback
783 modes. Its key setup time is excellent, and its key agility is
784 good. Rijndael's very low memory requirements make it very well
785 suited for restricted-space environments, in which it also
786 demonstrates excellent performance. Rijndael's operations are
787 among the easiest to defend against power and timing attacks.
789 The AES specifies three key sizes: 128, 192 and 256 bits
791 See <http://csrc.nist.gov/encryption/aes/> for more information.
793 config CRYPTO_AES_NI_INTEL
794 tristate "AES cipher algorithms (AES-NI)"
796 select CRYPTO_AES_X86_64 if 64BIT
797 select CRYPTO_AES_586 if !64BIT
799 select CRYPTO_ABLK_HELPER
801 select CRYPTO_GLUE_HELPER_X86 if 64BIT
805 Use Intel AES-NI instructions for AES algorithm.
807 AES cipher algorithms (FIPS-197). AES uses the Rijndael
810 Rijndael appears to be consistently a very good performer in
811 both hardware and software across a wide range of computing
812 environments regardless of its use in feedback or non-feedback
813 modes. Its key setup time is excellent, and its key agility is
814 good. Rijndael's very low memory requirements make it very well
815 suited for restricted-space environments, in which it also
816 demonstrates excellent performance. Rijndael's operations are
817 among the easiest to defend against power and timing attacks.
819 The AES specifies three key sizes: 128, 192 and 256 bits
821 See <http://csrc.nist.gov/encryption/aes/> for more information.
823 In addition to AES cipher algorithm support, the acceleration
824 for some popular block cipher mode is supported too, including
825 ECB, CBC, LRW, PCBC, XTS. The 64 bit version has additional
826 acceleration for CTR.
828 config CRYPTO_AES_SPARC64
829 tristate "AES cipher algorithms (SPARC64)"
834 Use SPARC64 crypto opcodes for AES algorithm.
836 AES cipher algorithms (FIPS-197). AES uses the Rijndael
839 Rijndael appears to be consistently a very good performer in
840 both hardware and software across a wide range of computing
841 environments regardless of its use in feedback or non-feedback
842 modes. Its key setup time is excellent, and its key agility is
843 good. Rijndael's very low memory requirements make it very well
844 suited for restricted-space environments, in which it also
845 demonstrates excellent performance. Rijndael's operations are
846 among the easiest to defend against power and timing attacks.
848 The AES specifies three key sizes: 128, 192 and 256 bits
850 See <http://csrc.nist.gov/encryption/aes/> for more information.
852 In addition to AES cipher algorithm support, the acceleration
853 for some popular block cipher mode is supported too, including
856 config CRYPTO_AES_PPC_SPE
857 tristate "AES cipher algorithms (PPC SPE)"
858 depends on PPC && SPE
860 AES cipher algorithms (FIPS-197). Additionally the acceleration
861 for popular block cipher modes ECB, CBC, CTR and XTS is supported.
862 This module should only be used for low power (router) devices
863 without hardware AES acceleration (e.g. caam crypto). It reduces the
864 size of the AES tables from 16KB to 8KB + 256 bytes and mitigates
865 timining attacks. Nevertheless it might be not as secure as other
866 architecture specific assembler implementations that work on 1KB
867 tables or 256 bytes S-boxes.
870 tristate "Anubis cipher algorithm"
873 Anubis cipher algorithm.
875 Anubis is a variable key length cipher which can use keys from
876 128 bits to 320 bits in length. It was evaluated as a entrant
877 in the NESSIE competition.
880 <https://www.cosic.esat.kuleuven.be/nessie/reports/>
881 <http://www.larc.usp.br/~pbarreto/AnubisPage.html>
884 tristate "ARC4 cipher algorithm"
885 select CRYPTO_BLKCIPHER
887 ARC4 cipher algorithm.
889 ARC4 is a stream cipher using keys ranging from 8 bits to 2048
890 bits in length. This algorithm is required for driver-based
891 WEP, but it should not be for other purposes because of the
892 weakness of the algorithm.
894 config CRYPTO_BLOWFISH
895 tristate "Blowfish cipher algorithm"
897 select CRYPTO_BLOWFISH_COMMON
899 Blowfish cipher algorithm, by Bruce Schneier.
901 This is a variable key length cipher which can use keys from 32
902 bits to 448 bits in length. It's fast, simple and specifically
903 designed for use on "large microprocessors".
906 <http://www.schneier.com/blowfish.html>
908 config CRYPTO_BLOWFISH_COMMON
911 Common parts of the Blowfish cipher algorithm shared by the
912 generic c and the assembler implementations.
915 <http://www.schneier.com/blowfish.html>
917 config CRYPTO_BLOWFISH_X86_64
918 tristate "Blowfish cipher algorithm (x86_64)"
919 depends on X86 && 64BIT
921 select CRYPTO_BLOWFISH_COMMON
923 Blowfish cipher algorithm (x86_64), by Bruce Schneier.
925 This is a variable key length cipher which can use keys from 32
926 bits to 448 bits in length. It's fast, simple and specifically
927 designed for use on "large microprocessors".
930 <http://www.schneier.com/blowfish.html>
932 config CRYPTO_CAMELLIA
933 tristate "Camellia cipher algorithms"
937 Camellia cipher algorithms module.
939 Camellia is a symmetric key block cipher developed jointly
940 at NTT and Mitsubishi Electric Corporation.
942 The Camellia specifies three key sizes: 128, 192 and 256 bits.
945 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
947 config CRYPTO_CAMELLIA_X86_64
948 tristate "Camellia cipher algorithm (x86_64)"
949 depends on X86 && 64BIT
952 select CRYPTO_GLUE_HELPER_X86
956 Camellia cipher algorithm module (x86_64).
958 Camellia is a symmetric key block cipher developed jointly
959 at NTT and Mitsubishi Electric Corporation.
961 The Camellia specifies three key sizes: 128, 192 and 256 bits.
964 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
966 config CRYPTO_CAMELLIA_AESNI_AVX_X86_64
967 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX)"
968 depends on X86 && 64BIT
972 select CRYPTO_ABLK_HELPER
973 select CRYPTO_GLUE_HELPER_X86
974 select CRYPTO_CAMELLIA_X86_64
978 Camellia cipher algorithm module (x86_64/AES-NI/AVX).
980 Camellia is a symmetric key block cipher developed jointly
981 at NTT and Mitsubishi Electric Corporation.
983 The Camellia specifies three key sizes: 128, 192 and 256 bits.
986 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
988 config CRYPTO_CAMELLIA_AESNI_AVX2_X86_64
989 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX2)"
990 depends on X86 && 64BIT
994 select CRYPTO_ABLK_HELPER
995 select CRYPTO_GLUE_HELPER_X86
996 select CRYPTO_CAMELLIA_X86_64
997 select CRYPTO_CAMELLIA_AESNI_AVX_X86_64
1001 Camellia cipher algorithm module (x86_64/AES-NI/AVX2).
1003 Camellia is a symmetric key block cipher developed jointly
1004 at NTT and Mitsubishi Electric Corporation.
1006 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1009 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1011 config CRYPTO_CAMELLIA_SPARC64
1012 tristate "Camellia cipher algorithm (SPARC64)"
1015 select CRYPTO_ALGAPI
1017 Camellia cipher algorithm module (SPARC64).
1019 Camellia is a symmetric key block cipher developed jointly
1020 at NTT and Mitsubishi Electric Corporation.
1022 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1025 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1027 config CRYPTO_CAST_COMMON
1030 Common parts of the CAST cipher algorithms shared by the
1031 generic c and the assembler implementations.
1034 tristate "CAST5 (CAST-128) cipher algorithm"
1035 select CRYPTO_ALGAPI
1036 select CRYPTO_CAST_COMMON
1038 The CAST5 encryption algorithm (synonymous with CAST-128) is
1039 described in RFC2144.
1041 config CRYPTO_CAST5_AVX_X86_64
1042 tristate "CAST5 (CAST-128) cipher algorithm (x86_64/AVX)"
1043 depends on X86 && 64BIT
1044 select CRYPTO_ALGAPI
1045 select CRYPTO_CRYPTD
1046 select CRYPTO_ABLK_HELPER
1047 select CRYPTO_CAST_COMMON
1050 The CAST5 encryption algorithm (synonymous with CAST-128) is
1051 described in RFC2144.
1053 This module provides the Cast5 cipher algorithm that processes
1054 sixteen blocks parallel using the AVX instruction set.
1057 tristate "CAST6 (CAST-256) cipher algorithm"
1058 select CRYPTO_ALGAPI
1059 select CRYPTO_CAST_COMMON
1061 The CAST6 encryption algorithm (synonymous with CAST-256) is
1062 described in RFC2612.
1064 config CRYPTO_CAST6_AVX_X86_64
1065 tristate "CAST6 (CAST-256) cipher algorithm (x86_64/AVX)"
1066 depends on X86 && 64BIT
1067 select CRYPTO_ALGAPI
1068 select CRYPTO_CRYPTD
1069 select CRYPTO_ABLK_HELPER
1070 select CRYPTO_GLUE_HELPER_X86
1071 select CRYPTO_CAST_COMMON
1076 The CAST6 encryption algorithm (synonymous with CAST-256) is
1077 described in RFC2612.
1079 This module provides the Cast6 cipher algorithm that processes
1080 eight blocks parallel using the AVX instruction set.
1083 tristate "DES and Triple DES EDE cipher algorithms"
1084 select CRYPTO_ALGAPI
1086 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
1088 config CRYPTO_DES_SPARC64
1089 tristate "DES and Triple DES EDE cipher algorithms (SPARC64)"
1091 select CRYPTO_ALGAPI
1094 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3),
1095 optimized using SPARC64 crypto opcodes.
1097 config CRYPTO_DES3_EDE_X86_64
1098 tristate "Triple DES EDE cipher algorithm (x86-64)"
1099 depends on X86 && 64BIT
1100 select CRYPTO_ALGAPI
1103 Triple DES EDE (FIPS 46-3) algorithm.
1105 This module provides implementation of the Triple DES EDE cipher
1106 algorithm that is optimized for x86-64 processors. Two versions of
1107 algorithm are provided; regular processing one input block and
1108 one that processes three blocks parallel.
1110 config CRYPTO_FCRYPT
1111 tristate "FCrypt cipher algorithm"
1112 select CRYPTO_ALGAPI
1113 select CRYPTO_BLKCIPHER
1115 FCrypt algorithm used by RxRPC.
1117 config CRYPTO_KHAZAD
1118 tristate "Khazad cipher algorithm"
1119 select CRYPTO_ALGAPI
1121 Khazad cipher algorithm.
1123 Khazad was a finalist in the initial NESSIE competition. It is
1124 an algorithm optimized for 64-bit processors with good performance
1125 on 32-bit processors. Khazad uses an 128 bit key size.
1128 <http://www.larc.usp.br/~pbarreto/KhazadPage.html>
1130 config CRYPTO_SALSA20
1131 tristate "Salsa20 stream cipher algorithm"
1132 select CRYPTO_BLKCIPHER
1134 Salsa20 stream cipher algorithm.
1136 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
1137 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
1139 The Salsa20 stream cipher algorithm is designed by Daniel J.
1140 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
1142 config CRYPTO_SALSA20_586
1143 tristate "Salsa20 stream cipher algorithm (i586)"
1144 depends on (X86 || UML_X86) && !64BIT
1145 select CRYPTO_BLKCIPHER
1147 Salsa20 stream cipher algorithm.
1149 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
1150 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
1152 The Salsa20 stream cipher algorithm is designed by Daniel J.
1153 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
1155 config CRYPTO_SALSA20_X86_64
1156 tristate "Salsa20 stream cipher algorithm (x86_64)"
1157 depends on (X86 || UML_X86) && 64BIT
1158 select CRYPTO_BLKCIPHER
1160 Salsa20 stream cipher algorithm.
1162 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
1163 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
1165 The Salsa20 stream cipher algorithm is designed by Daniel J.
1166 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
1168 config CRYPTO_CHACHA20
1169 tristate "ChaCha20 cipher algorithm"
1170 select CRYPTO_BLKCIPHER
1172 ChaCha20 cipher algorithm, RFC7539.
1174 ChaCha20 is a 256-bit high-speed stream cipher designed by Daniel J.
1175 Bernstein and further specified in RFC7539 for use in IETF protocols.
1176 This is the portable C implementation of ChaCha20.
1179 <http://cr.yp.to/chacha/chacha-20080128.pdf>
1182 tristate "SEED cipher algorithm"
1183 select CRYPTO_ALGAPI
1185 SEED cipher algorithm (RFC4269).
1187 SEED is a 128-bit symmetric key block cipher that has been
1188 developed by KISA (Korea Information Security Agency) as a
1189 national standard encryption algorithm of the Republic of Korea.
1190 It is a 16 round block cipher with the key size of 128 bit.
1193 <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>
1195 config CRYPTO_SERPENT
1196 tristate "Serpent cipher algorithm"
1197 select CRYPTO_ALGAPI
1199 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1201 Keys are allowed to be from 0 to 256 bits in length, in steps
1202 of 8 bits. Also includes the 'Tnepres' algorithm, a reversed
1203 variant of Serpent for compatibility with old kerneli.org code.
1206 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1208 config CRYPTO_SERPENT_SSE2_X86_64
1209 tristate "Serpent cipher algorithm (x86_64/SSE2)"
1210 depends on X86 && 64BIT
1211 select CRYPTO_ALGAPI
1212 select CRYPTO_CRYPTD
1213 select CRYPTO_ABLK_HELPER
1214 select CRYPTO_GLUE_HELPER_X86
1215 select CRYPTO_SERPENT
1219 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1221 Keys are allowed to be from 0 to 256 bits in length, in steps
1224 This module provides Serpent cipher algorithm that processes eight
1225 blocks parallel using SSE2 instruction set.
1228 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1230 config CRYPTO_SERPENT_SSE2_586
1231 tristate "Serpent cipher algorithm (i586/SSE2)"
1232 depends on X86 && !64BIT
1233 select CRYPTO_ALGAPI
1234 select CRYPTO_CRYPTD
1235 select CRYPTO_ABLK_HELPER
1236 select CRYPTO_GLUE_HELPER_X86
1237 select CRYPTO_SERPENT
1241 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1243 Keys are allowed to be from 0 to 256 bits in length, in steps
1246 This module provides Serpent cipher algorithm that processes four
1247 blocks parallel using SSE2 instruction set.
1250 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1252 config CRYPTO_SERPENT_AVX_X86_64
1253 tristate "Serpent cipher algorithm (x86_64/AVX)"
1254 depends on X86 && 64BIT
1255 select CRYPTO_ALGAPI
1256 select CRYPTO_CRYPTD
1257 select CRYPTO_ABLK_HELPER
1258 select CRYPTO_GLUE_HELPER_X86
1259 select CRYPTO_SERPENT
1263 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1265 Keys are allowed to be from 0 to 256 bits in length, in steps
1268 This module provides the Serpent cipher algorithm that processes
1269 eight blocks parallel using the AVX instruction set.
1272 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1274 config CRYPTO_SERPENT_AVX2_X86_64
1275 tristate "Serpent cipher algorithm (x86_64/AVX2)"
1276 depends on X86 && 64BIT
1277 select CRYPTO_ALGAPI
1278 select CRYPTO_CRYPTD
1279 select CRYPTO_ABLK_HELPER
1280 select CRYPTO_GLUE_HELPER_X86
1281 select CRYPTO_SERPENT
1282 select CRYPTO_SERPENT_AVX_X86_64
1286 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1288 Keys are allowed to be from 0 to 256 bits in length, in steps
1291 This module provides Serpent cipher algorithm that processes 16
1292 blocks parallel using AVX2 instruction set.
1295 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1298 tristate "TEA, XTEA and XETA cipher algorithms"
1299 select CRYPTO_ALGAPI
1301 TEA cipher algorithm.
1303 Tiny Encryption Algorithm is a simple cipher that uses
1304 many rounds for security. It is very fast and uses
1307 Xtendend Tiny Encryption Algorithm is a modification to
1308 the TEA algorithm to address a potential key weakness
1309 in the TEA algorithm.
1311 Xtendend Encryption Tiny Algorithm is a mis-implementation
1312 of the XTEA algorithm for compatibility purposes.
1314 config CRYPTO_TWOFISH
1315 tristate "Twofish cipher algorithm"
1316 select CRYPTO_ALGAPI
1317 select CRYPTO_TWOFISH_COMMON
1319 Twofish cipher algorithm.
1321 Twofish was submitted as an AES (Advanced Encryption Standard)
1322 candidate cipher by researchers at CounterPane Systems. It is a
1323 16 round block cipher supporting key sizes of 128, 192, and 256
1327 <http://www.schneier.com/twofish.html>
1329 config CRYPTO_TWOFISH_COMMON
1332 Common parts of the Twofish cipher algorithm shared by the
1333 generic c and the assembler implementations.
1335 config CRYPTO_TWOFISH_586
1336 tristate "Twofish cipher algorithms (i586)"
1337 depends on (X86 || UML_X86) && !64BIT
1338 select CRYPTO_ALGAPI
1339 select CRYPTO_TWOFISH_COMMON
1341 Twofish cipher algorithm.
1343 Twofish was submitted as an AES (Advanced Encryption Standard)
1344 candidate cipher by researchers at CounterPane Systems. It is a
1345 16 round block cipher supporting key sizes of 128, 192, and 256
1349 <http://www.schneier.com/twofish.html>
1351 config CRYPTO_TWOFISH_X86_64
1352 tristate "Twofish cipher algorithm (x86_64)"
1353 depends on (X86 || UML_X86) && 64BIT
1354 select CRYPTO_ALGAPI
1355 select CRYPTO_TWOFISH_COMMON
1357 Twofish cipher algorithm (x86_64).
1359 Twofish was submitted as an AES (Advanced Encryption Standard)
1360 candidate cipher by researchers at CounterPane Systems. It is a
1361 16 round block cipher supporting key sizes of 128, 192, and 256
1365 <http://www.schneier.com/twofish.html>
1367 config CRYPTO_TWOFISH_X86_64_3WAY
1368 tristate "Twofish cipher algorithm (x86_64, 3-way parallel)"
1369 depends on X86 && 64BIT
1370 select CRYPTO_ALGAPI
1371 select CRYPTO_TWOFISH_COMMON
1372 select CRYPTO_TWOFISH_X86_64
1373 select CRYPTO_GLUE_HELPER_X86
1377 Twofish cipher algorithm (x86_64, 3-way parallel).
1379 Twofish was submitted as an AES (Advanced Encryption Standard)
1380 candidate cipher by researchers at CounterPane Systems. It is a
1381 16 round block cipher supporting key sizes of 128, 192, and 256
1384 This module provides Twofish cipher algorithm that processes three
1385 blocks parallel, utilizing resources of out-of-order CPUs better.
1388 <http://www.schneier.com/twofish.html>
1390 config CRYPTO_TWOFISH_AVX_X86_64
1391 tristate "Twofish cipher algorithm (x86_64/AVX)"
1392 depends on X86 && 64BIT
1393 select CRYPTO_ALGAPI
1394 select CRYPTO_CRYPTD
1395 select CRYPTO_ABLK_HELPER
1396 select CRYPTO_GLUE_HELPER_X86
1397 select CRYPTO_TWOFISH_COMMON
1398 select CRYPTO_TWOFISH_X86_64
1399 select CRYPTO_TWOFISH_X86_64_3WAY
1403 Twofish cipher algorithm (x86_64/AVX).
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
1410 This module provides the Twofish cipher algorithm that processes
1411 eight blocks parallel using the AVX Instruction Set.
1414 <http://www.schneier.com/twofish.html>
1416 comment "Compression"
1418 config CRYPTO_DEFLATE
1419 tristate "Deflate compression algorithm"
1420 select CRYPTO_ALGAPI
1424 This is the Deflate algorithm (RFC1951), specified for use in
1425 IPSec with the IPCOMP protocol (RFC3173, RFC2394).
1427 You will most probably want this if using IPSec.
1430 tristate "Zlib compression algorithm"
1436 This is the zlib algorithm.
1439 tristate "LZO compression algorithm"
1440 select CRYPTO_ALGAPI
1442 select LZO_DECOMPRESS
1444 This is the LZO algorithm.
1447 tristate "842 compression algorithm"
1448 select CRYPTO_ALGAPI
1450 select 842_DECOMPRESS
1452 This is the 842 algorithm.
1455 tristate "LZ4 compression algorithm"
1456 select CRYPTO_ALGAPI
1458 select LZ4_DECOMPRESS
1460 This is the LZ4 algorithm.
1463 tristate "LZ4HC compression algorithm"
1464 select CRYPTO_ALGAPI
1465 select LZ4HC_COMPRESS
1466 select LZ4_DECOMPRESS
1468 This is the LZ4 high compression mode algorithm.
1470 comment "Random Number Generation"
1472 config CRYPTO_ANSI_CPRNG
1473 tristate "Pseudo Random Number Generation for Cryptographic modules"
1478 This option enables the generic pseudo random number generator
1479 for cryptographic modules. Uses the Algorithm specified in
1480 ANSI X9.31 A.2.4. Note that this option must be enabled if
1481 CRYPTO_FIPS is selected
1483 menuconfig CRYPTO_DRBG_MENU
1484 tristate "NIST SP800-90A DRBG"
1486 NIST SP800-90A compliant DRBG. In the following submenu, one or
1487 more of the DRBG types must be selected.
1491 config CRYPTO_DRBG_HMAC
1492 bool "Enable HMAC DRBG"
1496 Enable the HMAC DRBG variant as defined in NIST SP800-90A.
1498 config CRYPTO_DRBG_HASH
1499 bool "Enable Hash DRBG"
1502 Enable the Hash DRBG variant as defined in NIST SP800-90A.
1504 config CRYPTO_DRBG_CTR
1505 bool "Enable CTR DRBG"
1508 Enable the CTR DRBG variant as defined in NIST SP800-90A.
1512 default CRYPTO_DRBG_MENU if (CRYPTO_DRBG_HMAC || CRYPTO_DRBG_HASH || CRYPTO_DRBG_CTR)
1514 select CRYPTO_JITTERENTROPY
1516 endif # if CRYPTO_DRBG_MENU
1518 config CRYPTO_JITTERENTROPY
1519 tristate "Jitterentropy Non-Deterministic Random Number Generator"
1521 The Jitterentropy RNG is a noise that is intended
1522 to provide seed to another RNG. The RNG does not
1523 perform any cryptographic whitening of the generated
1524 random numbers. This Jitterentropy RNG registers with
1525 the kernel crypto API and can be used by any caller.
1527 config CRYPTO_USER_API
1530 config CRYPTO_USER_API_HASH
1531 tristate "User-space interface for hash algorithms"
1534 select CRYPTO_USER_API
1536 This option enables the user-spaces interface for hash
1539 config CRYPTO_USER_API_SKCIPHER
1540 tristate "User-space interface for symmetric key cipher algorithms"
1542 select CRYPTO_BLKCIPHER
1543 select CRYPTO_USER_API
1545 This option enables the user-spaces interface for symmetric
1546 key cipher algorithms.
1548 config CRYPTO_USER_API_RNG
1549 tristate "User-space interface for random number generator algorithms"
1552 select CRYPTO_USER_API
1554 This option enables the user-spaces interface for random
1555 number generator algorithms.
1557 config CRYPTO_USER_API_AEAD
1558 tristate "User-space interface for AEAD cipher algorithms"
1561 select CRYPTO_USER_API
1563 This option enables the user-spaces interface for AEAD
1566 config CRYPTO_HASH_INFO
1569 source "drivers/crypto/Kconfig"
1570 source crypto/asymmetric_keys/Kconfig