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 comment "Block modes"
233 tristate "CBC support"
234 select CRYPTO_BLKCIPHER
235 select CRYPTO_MANAGER
237 CBC: Cipher Block Chaining mode
238 This block cipher algorithm is required for IPSec.
241 tristate "CTR support"
242 select CRYPTO_BLKCIPHER
244 select CRYPTO_MANAGER
247 This block cipher algorithm is required for IPSec.
250 tristate "CTS support"
251 select CRYPTO_BLKCIPHER
253 CTS: Cipher Text Stealing
254 This is the Cipher Text Stealing mode as described by
255 Section 8 of rfc2040 and referenced by rfc3962.
256 (rfc3962 includes errata information in its Appendix A)
257 This mode is required for Kerberos gss mechanism support
261 tristate "ECB support"
262 select CRYPTO_BLKCIPHER
263 select CRYPTO_MANAGER
265 ECB: Electronic CodeBook mode
266 This is the simplest block cipher algorithm. It simply encrypts
267 the input block by block.
270 tristate "LRW support"
271 select CRYPTO_BLKCIPHER
272 select CRYPTO_MANAGER
273 select CRYPTO_GF128MUL
275 LRW: Liskov Rivest Wagner, a tweakable, non malleable, non movable
276 narrow block cipher mode for dm-crypt. Use it with cipher
277 specification string aes-lrw-benbi, the key must be 256, 320 or 384.
278 The first 128, 192 or 256 bits in the key are used for AES and the
279 rest is used to tie each cipher block to its logical position.
282 tristate "PCBC support"
283 select CRYPTO_BLKCIPHER
284 select CRYPTO_MANAGER
286 PCBC: Propagating Cipher Block Chaining mode
287 This block cipher algorithm is required for RxRPC.
290 tristate "XTS support"
291 select CRYPTO_BLKCIPHER
292 select CRYPTO_MANAGER
293 select CRYPTO_GF128MUL
295 XTS: IEEE1619/D16 narrow block cipher use with aes-xts-plain,
296 key size 256, 384 or 512 bits. This implementation currently
297 can't handle a sectorsize which is not a multiple of 16 bytes.
302 tristate "CMAC support"
304 select CRYPTO_MANAGER
306 Cipher-based Message Authentication Code (CMAC) specified by
307 The National Institute of Standards and Technology (NIST).
309 https://tools.ietf.org/html/rfc4493
310 http://csrc.nist.gov/publications/nistpubs/800-38B/SP_800-38B.pdf
313 tristate "HMAC support"
315 select CRYPTO_MANAGER
317 HMAC: Keyed-Hashing for Message Authentication (RFC2104).
318 This is required for IPSec.
321 tristate "XCBC support"
323 select CRYPTO_MANAGER
325 XCBC: Keyed-Hashing with encryption algorithm
326 http://www.ietf.org/rfc/rfc3566.txt
327 http://csrc.nist.gov/encryption/modes/proposedmodes/
328 xcbc-mac/xcbc-mac-spec.pdf
331 tristate "VMAC support"
333 select CRYPTO_MANAGER
335 VMAC is a message authentication algorithm designed for
336 very high speed on 64-bit architectures.
339 <http://fastcrypto.org/vmac>
344 tristate "CRC32c CRC algorithm"
348 Castagnoli, et al Cyclic Redundancy-Check Algorithm. Used
349 by iSCSI for header and data digests and by others.
350 See Castagnoli93. Module will be crc32c.
352 config CRYPTO_CRC32C_INTEL
353 tristate "CRC32c INTEL hardware acceleration"
357 In Intel processor with SSE4.2 supported, the processor will
358 support CRC32C implementation using hardware accelerated CRC32
359 instruction. This option will create 'crc32c-intel' module,
360 which will enable any routine to use the CRC32 instruction to
361 gain performance compared with software implementation.
362 Module will be crc32c-intel.
364 config CRYPTO_CRC32C_SPARC64
365 tristate "CRC32c CRC algorithm (SPARC64)"
370 CRC32c CRC algorithm implemented using sparc64 crypto instructions,
374 tristate "CRC32 CRC algorithm"
378 CRC-32-IEEE 802.3 cyclic redundancy-check algorithm.
379 Shash crypto api wrappers to crc32_le function.
381 config CRYPTO_CRC32_PCLMUL
382 tristate "CRC32 PCLMULQDQ hardware acceleration"
387 From Intel Westmere and AMD Bulldozer processor with SSE4.2
388 and PCLMULQDQ supported, the processor will support
389 CRC32 PCLMULQDQ implementation using hardware accelerated PCLMULQDQ
390 instruction. This option will create 'crc32-plcmul' module,
391 which will enable any routine to use the CRC-32-IEEE 802.3 checksum
392 and gain better performance as compared with the table implementation.
394 config CRYPTO_CRCT10DIF
395 tristate "CRCT10DIF algorithm"
398 CRC T10 Data Integrity Field computation is being cast as
399 a crypto transform. This allows for faster crc t10 diff
400 transforms to be used if they are available.
402 config CRYPTO_CRCT10DIF_PCLMUL
403 tristate "CRCT10DIF PCLMULQDQ hardware acceleration"
404 depends on X86 && 64BIT && CRC_T10DIF
407 For x86_64 processors with SSE4.2 and PCLMULQDQ supported,
408 CRC T10 DIF PCLMULQDQ computation can be hardware
409 accelerated PCLMULQDQ instruction. This option will create
410 'crct10dif-plcmul' module, which is faster when computing the
411 crct10dif checksum as compared with the generic table implementation.
414 tristate "GHASH digest algorithm"
415 select CRYPTO_GF128MUL
417 GHASH is message digest algorithm for GCM (Galois/Counter Mode).
420 tristate "MD4 digest algorithm"
423 MD4 message digest algorithm (RFC1320).
426 tristate "MD5 digest algorithm"
429 MD5 message digest algorithm (RFC1321).
431 config CRYPTO_MD5_OCTEON
432 tristate "MD5 digest algorithm (OCTEON)"
433 depends on CPU_CAVIUM_OCTEON
437 MD5 message digest algorithm (RFC1321) implemented
438 using OCTEON crypto instructions, when available.
440 config CRYPTO_MD5_PPC
441 tristate "MD5 digest algorithm (PPC)"
445 MD5 message digest algorithm (RFC1321) implemented
448 config CRYPTO_MD5_SPARC64
449 tristate "MD5 digest algorithm (SPARC64)"
454 MD5 message digest algorithm (RFC1321) implemented
455 using sparc64 crypto instructions, when available.
457 config CRYPTO_MICHAEL_MIC
458 tristate "Michael MIC keyed digest algorithm"
461 Michael MIC is used for message integrity protection in TKIP
462 (IEEE 802.11i). This algorithm is required for TKIP, but it
463 should not be used for other purposes because of the weakness
467 tristate "RIPEMD-128 digest algorithm"
470 RIPEMD-128 (ISO/IEC 10118-3:2004).
472 RIPEMD-128 is a 128-bit cryptographic hash function. It should only
473 be used as a secure replacement for RIPEMD. For other use cases,
474 RIPEMD-160 should be used.
476 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
477 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
480 tristate "RIPEMD-160 digest algorithm"
483 RIPEMD-160 (ISO/IEC 10118-3:2004).
485 RIPEMD-160 is a 160-bit cryptographic hash function. It is intended
486 to be used as a secure replacement for the 128-bit hash functions
487 MD4, MD5 and it's predecessor RIPEMD
488 (not to be confused with RIPEMD-128).
490 It's speed is comparable to SHA1 and there are no known attacks
493 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
494 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
497 tristate "RIPEMD-256 digest algorithm"
500 RIPEMD-256 is an optional extension of RIPEMD-128 with a
501 256 bit hash. It is intended for applications that require
502 longer hash-results, without needing a larger security level
505 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
506 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
509 tristate "RIPEMD-320 digest algorithm"
512 RIPEMD-320 is an optional extension of RIPEMD-160 with a
513 320 bit hash. It is intended for applications that require
514 longer hash-results, without needing a larger security level
517 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
518 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
521 tristate "SHA1 digest algorithm"
524 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
526 config CRYPTO_SHA1_SSSE3
527 tristate "SHA1 digest algorithm (SSSE3/AVX/AVX2)"
528 depends on X86 && 64BIT
532 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
533 using Supplemental SSE3 (SSSE3) instructions or Advanced Vector
534 Extensions (AVX/AVX2), when available.
536 config CRYPTO_SHA256_SSSE3
537 tristate "SHA256 digest algorithm (SSSE3/AVX/AVX2)"
538 depends on X86 && 64BIT
542 SHA-256 secure hash standard (DFIPS 180-2) implemented
543 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
544 Extensions version 1 (AVX1), or Advanced Vector Extensions
545 version 2 (AVX2) instructions, when available.
547 config CRYPTO_SHA512_SSSE3
548 tristate "SHA512 digest algorithm (SSSE3/AVX/AVX2)"
549 depends on X86 && 64BIT
553 SHA-512 secure hash standard (DFIPS 180-2) implemented
554 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
555 Extensions version 1 (AVX1), or Advanced Vector Extensions
556 version 2 (AVX2) instructions, when available.
558 config CRYPTO_SHA1_OCTEON
559 tristate "SHA1 digest algorithm (OCTEON)"
560 depends on CPU_CAVIUM_OCTEON
564 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
565 using OCTEON crypto instructions, when available.
567 config CRYPTO_SHA1_SPARC64
568 tristate "SHA1 digest algorithm (SPARC64)"
573 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
574 using sparc64 crypto instructions, when available.
576 config CRYPTO_SHA1_PPC
577 tristate "SHA1 digest algorithm (powerpc)"
580 This is the powerpc hardware accelerated implementation of the
581 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
583 config CRYPTO_SHA1_PPC_SPE
584 tristate "SHA1 digest algorithm (PPC SPE)"
585 depends on PPC && SPE
587 SHA-1 secure hash standard (DFIPS 180-4) implemented
588 using powerpc SPE SIMD instruction set.
590 config CRYPTO_SHA1_MB
591 tristate "SHA1 digest algorithm (x86_64 Multi-Buffer, Experimental)"
592 depends on X86 && 64BIT
595 select CRYPTO_MCRYPTD
597 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
598 using multi-buffer technique. This algorithm computes on
599 multiple data lanes concurrently with SIMD instructions for
600 better throughput. It should not be enabled by default but
601 used when there is significant amount of work to keep the keep
602 the data lanes filled to get performance benefit. If the data
603 lanes remain unfilled, a flush operation will be initiated to
604 process the crypto jobs, adding a slight latency.
607 tristate "SHA224 and SHA256 digest algorithm"
610 SHA256 secure hash standard (DFIPS 180-2).
612 This version of SHA implements a 256 bit hash with 128 bits of
613 security against collision attacks.
615 This code also includes SHA-224, a 224 bit hash with 112 bits
616 of security against collision attacks.
618 config CRYPTO_SHA256_PPC_SPE
619 tristate "SHA224 and SHA256 digest algorithm (PPC SPE)"
620 depends on PPC && SPE
624 SHA224 and SHA256 secure hash standard (DFIPS 180-2)
625 implemented using powerpc SPE SIMD instruction set.
627 config CRYPTO_SHA256_OCTEON
628 tristate "SHA224 and SHA256 digest algorithm (OCTEON)"
629 depends on CPU_CAVIUM_OCTEON
633 SHA-256 secure hash standard (DFIPS 180-2) implemented
634 using OCTEON crypto instructions, when available.
636 config CRYPTO_SHA256_SPARC64
637 tristate "SHA224 and SHA256 digest algorithm (SPARC64)"
642 SHA-256 secure hash standard (DFIPS 180-2) implemented
643 using sparc64 crypto instructions, when available.
646 tristate "SHA384 and SHA512 digest algorithms"
649 SHA512 secure hash standard (DFIPS 180-2).
651 This version of SHA implements a 512 bit hash with 256 bits of
652 security against collision attacks.
654 This code also includes SHA-384, a 384 bit hash with 192 bits
655 of security against collision attacks.
657 config CRYPTO_SHA512_OCTEON
658 tristate "SHA384 and SHA512 digest algorithms (OCTEON)"
659 depends on CPU_CAVIUM_OCTEON
663 SHA-512 secure hash standard (DFIPS 180-2) implemented
664 using OCTEON crypto instructions, when available.
666 config CRYPTO_SHA512_SPARC64
667 tristate "SHA384 and SHA512 digest algorithm (SPARC64)"
672 SHA-512 secure hash standard (DFIPS 180-2) implemented
673 using sparc64 crypto instructions, when available.
676 tristate "Tiger digest algorithms"
679 Tiger hash algorithm 192, 160 and 128-bit hashes
681 Tiger is a hash function optimized for 64-bit processors while
682 still having decent performance on 32-bit processors.
683 Tiger was developed by Ross Anderson and Eli Biham.
686 <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>.
689 tristate "Whirlpool digest algorithms"
692 Whirlpool hash algorithm 512, 384 and 256-bit hashes
694 Whirlpool-512 is part of the NESSIE cryptographic primitives.
695 Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard
698 <http://www.larc.usp.br/~pbarreto/WhirlpoolPage.html>
700 config CRYPTO_GHASH_CLMUL_NI_INTEL
701 tristate "GHASH digest algorithm (CLMUL-NI accelerated)"
702 depends on X86 && 64BIT
705 GHASH is message digest algorithm for GCM (Galois/Counter Mode).
706 The implementation is accelerated by CLMUL-NI of Intel.
711 tristate "AES cipher algorithms"
714 AES cipher algorithms (FIPS-197). AES uses the Rijndael
717 Rijndael appears to be consistently a very good performer in
718 both hardware and software across a wide range of computing
719 environments regardless of its use in feedback or non-feedback
720 modes. Its key setup time is excellent, and its key agility is
721 good. Rijndael's very low memory requirements make it very well
722 suited for restricted-space environments, in which it also
723 demonstrates excellent performance. Rijndael's operations are
724 among the easiest to defend against power and timing attacks.
726 The AES specifies three key sizes: 128, 192 and 256 bits
728 See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information.
730 config CRYPTO_AES_586
731 tristate "AES cipher algorithms (i586)"
732 depends on (X86 || UML_X86) && !64BIT
736 AES cipher algorithms (FIPS-197). AES uses the Rijndael
739 Rijndael appears to be consistently a very good performer in
740 both hardware and software across a wide range of computing
741 environments regardless of its use in feedback or non-feedback
742 modes. Its key setup time is excellent, and its key agility is
743 good. Rijndael's very low memory requirements make it very well
744 suited for restricted-space environments, in which it also
745 demonstrates excellent performance. Rijndael's operations are
746 among the easiest to defend against power and timing attacks.
748 The AES specifies three key sizes: 128, 192 and 256 bits
750 See <http://csrc.nist.gov/encryption/aes/> for more information.
752 config CRYPTO_AES_X86_64
753 tristate "AES cipher algorithms (x86_64)"
754 depends on (X86 || UML_X86) && 64BIT
758 AES cipher algorithms (FIPS-197). AES uses the Rijndael
761 Rijndael appears to be consistently a very good performer in
762 both hardware and software across a wide range of computing
763 environments regardless of its use in feedback or non-feedback
764 modes. Its key setup time is excellent, and its key agility is
765 good. Rijndael's very low memory requirements make it very well
766 suited for restricted-space environments, in which it also
767 demonstrates excellent performance. Rijndael's operations are
768 among the easiest to defend against power and timing attacks.
770 The AES specifies three key sizes: 128, 192 and 256 bits
772 See <http://csrc.nist.gov/encryption/aes/> for more information.
774 config CRYPTO_AES_NI_INTEL
775 tristate "AES cipher algorithms (AES-NI)"
777 select CRYPTO_AES_X86_64 if 64BIT
778 select CRYPTO_AES_586 if !64BIT
780 select CRYPTO_ABLK_HELPER
782 select CRYPTO_GLUE_HELPER_X86 if 64BIT
786 Use Intel AES-NI instructions for AES algorithm.
788 AES cipher algorithms (FIPS-197). AES uses the Rijndael
791 Rijndael appears to be consistently a very good performer in
792 both hardware and software across a wide range of computing
793 environments regardless of its use in feedback or non-feedback
794 modes. Its key setup time is excellent, and its key agility is
795 good. Rijndael's very low memory requirements make it very well
796 suited for restricted-space environments, in which it also
797 demonstrates excellent performance. Rijndael's operations are
798 among the easiest to defend against power and timing attacks.
800 The AES specifies three key sizes: 128, 192 and 256 bits
802 See <http://csrc.nist.gov/encryption/aes/> for more information.
804 In addition to AES cipher algorithm support, the acceleration
805 for some popular block cipher mode is supported too, including
806 ECB, CBC, LRW, PCBC, XTS. The 64 bit version has additional
807 acceleration for CTR.
809 config CRYPTO_AES_SPARC64
810 tristate "AES cipher algorithms (SPARC64)"
815 Use SPARC64 crypto opcodes for AES algorithm.
817 AES cipher algorithms (FIPS-197). AES uses the Rijndael
820 Rijndael appears to be consistently a very good performer in
821 both hardware and software across a wide range of computing
822 environments regardless of its use in feedback or non-feedback
823 modes. Its key setup time is excellent, and its key agility is
824 good. Rijndael's very low memory requirements make it very well
825 suited for restricted-space environments, in which it also
826 demonstrates excellent performance. Rijndael's operations are
827 among the easiest to defend against power and timing attacks.
829 The AES specifies three key sizes: 128, 192 and 256 bits
831 See <http://csrc.nist.gov/encryption/aes/> for more information.
833 In addition to AES cipher algorithm support, the acceleration
834 for some popular block cipher mode is supported too, including
837 config CRYPTO_AES_PPC_SPE
838 tristate "AES cipher algorithms (PPC SPE)"
839 depends on PPC && SPE
841 AES cipher algorithms (FIPS-197). Additionally the acceleration
842 for popular block cipher modes ECB, CBC, CTR and XTS is supported.
843 This module should only be used for low power (router) devices
844 without hardware AES acceleration (e.g. caam crypto). It reduces the
845 size of the AES tables from 16KB to 8KB + 256 bytes and mitigates
846 timining attacks. Nevertheless it might be not as secure as other
847 architecture specific assembler implementations that work on 1KB
848 tables or 256 bytes S-boxes.
851 tristate "Anubis cipher algorithm"
854 Anubis cipher algorithm.
856 Anubis is a variable key length cipher which can use keys from
857 128 bits to 320 bits in length. It was evaluated as a entrant
858 in the NESSIE competition.
861 <https://www.cosic.esat.kuleuven.be/nessie/reports/>
862 <http://www.larc.usp.br/~pbarreto/AnubisPage.html>
865 tristate "ARC4 cipher algorithm"
866 select CRYPTO_BLKCIPHER
868 ARC4 cipher algorithm.
870 ARC4 is a stream cipher using keys ranging from 8 bits to 2048
871 bits in length. This algorithm is required for driver-based
872 WEP, but it should not be for other purposes because of the
873 weakness of the algorithm.
875 config CRYPTO_BLOWFISH
876 tristate "Blowfish cipher algorithm"
878 select CRYPTO_BLOWFISH_COMMON
880 Blowfish cipher algorithm, by Bruce Schneier.
882 This is a variable key length cipher which can use keys from 32
883 bits to 448 bits in length. It's fast, simple and specifically
884 designed for use on "large microprocessors".
887 <http://www.schneier.com/blowfish.html>
889 config CRYPTO_BLOWFISH_COMMON
892 Common parts of the Blowfish cipher algorithm shared by the
893 generic c and the assembler implementations.
896 <http://www.schneier.com/blowfish.html>
898 config CRYPTO_BLOWFISH_X86_64
899 tristate "Blowfish cipher algorithm (x86_64)"
900 depends on X86 && 64BIT
902 select CRYPTO_BLOWFISH_COMMON
904 Blowfish cipher algorithm (x86_64), by Bruce Schneier.
906 This is a variable key length cipher which can use keys from 32
907 bits to 448 bits in length. It's fast, simple and specifically
908 designed for use on "large microprocessors".
911 <http://www.schneier.com/blowfish.html>
913 config CRYPTO_CAMELLIA
914 tristate "Camellia cipher algorithms"
918 Camellia cipher algorithms module.
920 Camellia is a symmetric key block cipher developed jointly
921 at NTT and Mitsubishi Electric Corporation.
923 The Camellia specifies three key sizes: 128, 192 and 256 bits.
926 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
928 config CRYPTO_CAMELLIA_X86_64
929 tristate "Camellia cipher algorithm (x86_64)"
930 depends on X86 && 64BIT
933 select CRYPTO_GLUE_HELPER_X86
937 Camellia cipher algorithm module (x86_64).
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_AESNI_AVX_X86_64
948 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX)"
949 depends on X86 && 64BIT
953 select CRYPTO_ABLK_HELPER
954 select CRYPTO_GLUE_HELPER_X86
955 select CRYPTO_CAMELLIA_X86_64
959 Camellia cipher algorithm module (x86_64/AES-NI/AVX).
961 Camellia is a symmetric key block cipher developed jointly
962 at NTT and Mitsubishi Electric Corporation.
964 The Camellia specifies three key sizes: 128, 192 and 256 bits.
967 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
969 config CRYPTO_CAMELLIA_AESNI_AVX2_X86_64
970 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX2)"
971 depends on X86 && 64BIT
975 select CRYPTO_ABLK_HELPER
976 select CRYPTO_GLUE_HELPER_X86
977 select CRYPTO_CAMELLIA_X86_64
978 select CRYPTO_CAMELLIA_AESNI_AVX_X86_64
982 Camellia cipher algorithm module (x86_64/AES-NI/AVX2).
984 Camellia is a symmetric key block cipher developed jointly
985 at NTT and Mitsubishi Electric Corporation.
987 The Camellia specifies three key sizes: 128, 192 and 256 bits.
990 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
992 config CRYPTO_CAMELLIA_SPARC64
993 tristate "Camellia cipher algorithm (SPARC64)"
998 Camellia cipher algorithm module (SPARC64).
1000 Camellia is a symmetric key block cipher developed jointly
1001 at NTT and Mitsubishi Electric Corporation.
1003 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1006 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1008 config CRYPTO_CAST_COMMON
1011 Common parts of the CAST cipher algorithms shared by the
1012 generic c and the assembler implementations.
1015 tristate "CAST5 (CAST-128) cipher algorithm"
1016 select CRYPTO_ALGAPI
1017 select CRYPTO_CAST_COMMON
1019 The CAST5 encryption algorithm (synonymous with CAST-128) is
1020 described in RFC2144.
1022 config CRYPTO_CAST5_AVX_X86_64
1023 tristate "CAST5 (CAST-128) cipher algorithm (x86_64/AVX)"
1024 depends on X86 && 64BIT
1025 select CRYPTO_ALGAPI
1026 select CRYPTO_CRYPTD
1027 select CRYPTO_ABLK_HELPER
1028 select CRYPTO_CAST_COMMON
1031 The CAST5 encryption algorithm (synonymous with CAST-128) is
1032 described in RFC2144.
1034 This module provides the Cast5 cipher algorithm that processes
1035 sixteen blocks parallel using the AVX instruction set.
1038 tristate "CAST6 (CAST-256) cipher algorithm"
1039 select CRYPTO_ALGAPI
1040 select CRYPTO_CAST_COMMON
1042 The CAST6 encryption algorithm (synonymous with CAST-256) is
1043 described in RFC2612.
1045 config CRYPTO_CAST6_AVX_X86_64
1046 tristate "CAST6 (CAST-256) cipher algorithm (x86_64/AVX)"
1047 depends on X86 && 64BIT
1048 select CRYPTO_ALGAPI
1049 select CRYPTO_CRYPTD
1050 select CRYPTO_ABLK_HELPER
1051 select CRYPTO_GLUE_HELPER_X86
1052 select CRYPTO_CAST_COMMON
1057 The CAST6 encryption algorithm (synonymous with CAST-256) is
1058 described in RFC2612.
1060 This module provides the Cast6 cipher algorithm that processes
1061 eight blocks parallel using the AVX instruction set.
1064 tristate "DES and Triple DES EDE cipher algorithms"
1065 select CRYPTO_ALGAPI
1067 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
1069 config CRYPTO_DES_SPARC64
1070 tristate "DES and Triple DES EDE cipher algorithms (SPARC64)"
1072 select CRYPTO_ALGAPI
1075 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3),
1076 optimized using SPARC64 crypto opcodes.
1078 config CRYPTO_DES3_EDE_X86_64
1079 tristate "Triple DES EDE cipher algorithm (x86-64)"
1080 depends on X86 && 64BIT
1081 select CRYPTO_ALGAPI
1084 Triple DES EDE (FIPS 46-3) algorithm.
1086 This module provides implementation of the Triple DES EDE cipher
1087 algorithm that is optimized for x86-64 processors. Two versions of
1088 algorithm are provided; regular processing one input block and
1089 one that processes three blocks parallel.
1091 config CRYPTO_FCRYPT
1092 tristate "FCrypt cipher algorithm"
1093 select CRYPTO_ALGAPI
1094 select CRYPTO_BLKCIPHER
1096 FCrypt algorithm used by RxRPC.
1098 config CRYPTO_KHAZAD
1099 tristate "Khazad cipher algorithm"
1100 select CRYPTO_ALGAPI
1102 Khazad cipher algorithm.
1104 Khazad was a finalist in the initial NESSIE competition. It is
1105 an algorithm optimized for 64-bit processors with good performance
1106 on 32-bit processors. Khazad uses an 128 bit key size.
1109 <http://www.larc.usp.br/~pbarreto/KhazadPage.html>
1111 config CRYPTO_SALSA20
1112 tristate "Salsa20 stream cipher algorithm"
1113 select CRYPTO_BLKCIPHER
1115 Salsa20 stream cipher algorithm.
1117 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
1118 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
1120 The Salsa20 stream cipher algorithm is designed by Daniel J.
1121 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
1123 config CRYPTO_SALSA20_586
1124 tristate "Salsa20 stream cipher algorithm (i586)"
1125 depends on (X86 || UML_X86) && !64BIT
1126 select CRYPTO_BLKCIPHER
1128 Salsa20 stream cipher algorithm.
1130 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
1131 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
1133 The Salsa20 stream cipher algorithm is designed by Daniel J.
1134 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
1136 config CRYPTO_SALSA20_X86_64
1137 tristate "Salsa20 stream cipher algorithm (x86_64)"
1138 depends on (X86 || UML_X86) && 64BIT
1139 select CRYPTO_BLKCIPHER
1141 Salsa20 stream cipher algorithm.
1143 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
1144 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
1146 The Salsa20 stream cipher algorithm is designed by Daniel J.
1147 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
1150 tristate "SEED cipher algorithm"
1151 select CRYPTO_ALGAPI
1153 SEED cipher algorithm (RFC4269).
1155 SEED is a 128-bit symmetric key block cipher that has been
1156 developed by KISA (Korea Information Security Agency) as a
1157 national standard encryption algorithm of the Republic of Korea.
1158 It is a 16 round block cipher with the key size of 128 bit.
1161 <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>
1163 config CRYPTO_SERPENT
1164 tristate "Serpent cipher algorithm"
1165 select CRYPTO_ALGAPI
1167 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1169 Keys are allowed to be from 0 to 256 bits in length, in steps
1170 of 8 bits. Also includes the 'Tnepres' algorithm, a reversed
1171 variant of Serpent for compatibility with old kerneli.org code.
1174 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1176 config CRYPTO_SERPENT_SSE2_X86_64
1177 tristate "Serpent cipher algorithm (x86_64/SSE2)"
1178 depends on X86 && 64BIT
1179 select CRYPTO_ALGAPI
1180 select CRYPTO_CRYPTD
1181 select CRYPTO_ABLK_HELPER
1182 select CRYPTO_GLUE_HELPER_X86
1183 select CRYPTO_SERPENT
1187 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1189 Keys are allowed to be from 0 to 256 bits in length, in steps
1192 This module provides Serpent cipher algorithm that processes eight
1193 blocks parallel using SSE2 instruction set.
1196 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1198 config CRYPTO_SERPENT_SSE2_586
1199 tristate "Serpent cipher algorithm (i586/SSE2)"
1200 depends on X86 && !64BIT
1201 select CRYPTO_ALGAPI
1202 select CRYPTO_CRYPTD
1203 select CRYPTO_ABLK_HELPER
1204 select CRYPTO_GLUE_HELPER_X86
1205 select CRYPTO_SERPENT
1209 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1211 Keys are allowed to be from 0 to 256 bits in length, in steps
1214 This module provides Serpent cipher algorithm that processes four
1215 blocks parallel using SSE2 instruction set.
1218 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1220 config CRYPTO_SERPENT_AVX_X86_64
1221 tristate "Serpent cipher algorithm (x86_64/AVX)"
1222 depends on X86 && 64BIT
1223 select CRYPTO_ALGAPI
1224 select CRYPTO_CRYPTD
1225 select CRYPTO_ABLK_HELPER
1226 select CRYPTO_GLUE_HELPER_X86
1227 select CRYPTO_SERPENT
1231 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1233 Keys are allowed to be from 0 to 256 bits in length, in steps
1236 This module provides the Serpent cipher algorithm that processes
1237 eight blocks parallel using the AVX instruction set.
1240 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1242 config CRYPTO_SERPENT_AVX2_X86_64
1243 tristate "Serpent cipher algorithm (x86_64/AVX2)"
1244 depends on X86 && 64BIT
1245 select CRYPTO_ALGAPI
1246 select CRYPTO_CRYPTD
1247 select CRYPTO_ABLK_HELPER
1248 select CRYPTO_GLUE_HELPER_X86
1249 select CRYPTO_SERPENT
1250 select CRYPTO_SERPENT_AVX_X86_64
1254 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1256 Keys are allowed to be from 0 to 256 bits in length, in steps
1259 This module provides Serpent cipher algorithm that processes 16
1260 blocks parallel using AVX2 instruction set.
1263 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1266 tristate "TEA, XTEA and XETA cipher algorithms"
1267 select CRYPTO_ALGAPI
1269 TEA cipher algorithm.
1271 Tiny Encryption Algorithm is a simple cipher that uses
1272 many rounds for security. It is very fast and uses
1275 Xtendend Tiny Encryption Algorithm is a modification to
1276 the TEA algorithm to address a potential key weakness
1277 in the TEA algorithm.
1279 Xtendend Encryption Tiny Algorithm is a mis-implementation
1280 of the XTEA algorithm for compatibility purposes.
1282 config CRYPTO_TWOFISH
1283 tristate "Twofish cipher algorithm"
1284 select CRYPTO_ALGAPI
1285 select CRYPTO_TWOFISH_COMMON
1287 Twofish cipher algorithm.
1289 Twofish was submitted as an AES (Advanced Encryption Standard)
1290 candidate cipher by researchers at CounterPane Systems. It is a
1291 16 round block cipher supporting key sizes of 128, 192, and 256
1295 <http://www.schneier.com/twofish.html>
1297 config CRYPTO_TWOFISH_COMMON
1300 Common parts of the Twofish cipher algorithm shared by the
1301 generic c and the assembler implementations.
1303 config CRYPTO_TWOFISH_586
1304 tristate "Twofish cipher algorithms (i586)"
1305 depends on (X86 || UML_X86) && !64BIT
1306 select CRYPTO_ALGAPI
1307 select CRYPTO_TWOFISH_COMMON
1309 Twofish cipher algorithm.
1311 Twofish was submitted as an AES (Advanced Encryption Standard)
1312 candidate cipher by researchers at CounterPane Systems. It is a
1313 16 round block cipher supporting key sizes of 128, 192, and 256
1317 <http://www.schneier.com/twofish.html>
1319 config CRYPTO_TWOFISH_X86_64
1320 tristate "Twofish cipher algorithm (x86_64)"
1321 depends on (X86 || UML_X86) && 64BIT
1322 select CRYPTO_ALGAPI
1323 select CRYPTO_TWOFISH_COMMON
1325 Twofish cipher algorithm (x86_64).
1327 Twofish was submitted as an AES (Advanced Encryption Standard)
1328 candidate cipher by researchers at CounterPane Systems. It is a
1329 16 round block cipher supporting key sizes of 128, 192, and 256
1333 <http://www.schneier.com/twofish.html>
1335 config CRYPTO_TWOFISH_X86_64_3WAY
1336 tristate "Twofish cipher algorithm (x86_64, 3-way parallel)"
1337 depends on X86 && 64BIT
1338 select CRYPTO_ALGAPI
1339 select CRYPTO_TWOFISH_COMMON
1340 select CRYPTO_TWOFISH_X86_64
1341 select CRYPTO_GLUE_HELPER_X86
1345 Twofish cipher algorithm (x86_64, 3-way parallel).
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
1352 This module provides Twofish cipher algorithm that processes three
1353 blocks parallel, utilizing resources of out-of-order CPUs better.
1356 <http://www.schneier.com/twofish.html>
1358 config CRYPTO_TWOFISH_AVX_X86_64
1359 tristate "Twofish cipher algorithm (x86_64/AVX)"
1360 depends on X86 && 64BIT
1361 select CRYPTO_ALGAPI
1362 select CRYPTO_CRYPTD
1363 select CRYPTO_ABLK_HELPER
1364 select CRYPTO_GLUE_HELPER_X86
1365 select CRYPTO_TWOFISH_COMMON
1366 select CRYPTO_TWOFISH_X86_64
1367 select CRYPTO_TWOFISH_X86_64_3WAY
1371 Twofish cipher algorithm (x86_64/AVX).
1373 Twofish was submitted as an AES (Advanced Encryption Standard)
1374 candidate cipher by researchers at CounterPane Systems. It is a
1375 16 round block cipher supporting key sizes of 128, 192, and 256
1378 This module provides the Twofish cipher algorithm that processes
1379 eight blocks parallel using the AVX Instruction Set.
1382 <http://www.schneier.com/twofish.html>
1384 comment "Compression"
1386 config CRYPTO_DEFLATE
1387 tristate "Deflate compression algorithm"
1388 select CRYPTO_ALGAPI
1392 This is the Deflate algorithm (RFC1951), specified for use in
1393 IPSec with the IPCOMP protocol (RFC3173, RFC2394).
1395 You will most probably want this if using IPSec.
1398 tristate "Zlib compression algorithm"
1404 This is the zlib algorithm.
1407 tristate "LZO compression algorithm"
1408 select CRYPTO_ALGAPI
1410 select LZO_DECOMPRESS
1412 This is the LZO algorithm.
1415 tristate "842 compression algorithm"
1416 select CRYPTO_ALGAPI
1418 select 842_DECOMPRESS
1420 This is the 842 algorithm.
1423 tristate "LZ4 compression algorithm"
1424 select CRYPTO_ALGAPI
1426 select LZ4_DECOMPRESS
1428 This is the LZ4 algorithm.
1431 tristate "LZ4HC compression algorithm"
1432 select CRYPTO_ALGAPI
1433 select LZ4HC_COMPRESS
1434 select LZ4_DECOMPRESS
1436 This is the LZ4 high compression mode algorithm.
1438 comment "Random Number Generation"
1440 config CRYPTO_ANSI_CPRNG
1441 tristate "Pseudo Random Number Generation for Cryptographic modules"
1446 This option enables the generic pseudo random number generator
1447 for cryptographic modules. Uses the Algorithm specified in
1448 ANSI X9.31 A.2.4. Note that this option must be enabled if
1449 CRYPTO_FIPS is selected
1451 menuconfig CRYPTO_DRBG_MENU
1452 tristate "NIST SP800-90A DRBG"
1454 NIST SP800-90A compliant DRBG. In the following submenu, one or
1455 more of the DRBG types must be selected.
1459 config CRYPTO_DRBG_HMAC
1460 bool "Enable HMAC DRBG"
1464 Enable the HMAC DRBG variant as defined in NIST SP800-90A.
1466 config CRYPTO_DRBG_HASH
1467 bool "Enable Hash DRBG"
1470 Enable the Hash DRBG variant as defined in NIST SP800-90A.
1472 config CRYPTO_DRBG_CTR
1473 bool "Enable CTR DRBG"
1476 Enable the CTR DRBG variant as defined in NIST SP800-90A.
1480 default CRYPTO_DRBG_MENU if (CRYPTO_DRBG_HMAC || CRYPTO_DRBG_HASH || CRYPTO_DRBG_CTR)
1483 endif # if CRYPTO_DRBG_MENU
1485 config CRYPTO_USER_API
1488 config CRYPTO_USER_API_HASH
1489 tristate "User-space interface for hash algorithms"
1492 select CRYPTO_USER_API
1494 This option enables the user-spaces interface for hash
1497 config CRYPTO_USER_API_SKCIPHER
1498 tristate "User-space interface for symmetric key cipher algorithms"
1500 select CRYPTO_BLKCIPHER
1501 select CRYPTO_USER_API
1503 This option enables the user-spaces interface for symmetric
1504 key cipher algorithms.
1506 config CRYPTO_USER_API_RNG
1507 tristate "User-space interface for random number generator algorithms"
1510 select CRYPTO_USER_API
1512 This option enables the user-spaces interface for random
1513 number generator algorithms.
1515 config CRYPTO_USER_API_AEAD
1516 tristate "User-space interface for AEAD cipher algorithms"
1519 select CRYPTO_USER_API
1521 This option enables the user-spaces interface for AEAD
1524 config CRYPTO_HASH_INFO
1527 source "drivers/crypto/Kconfig"
1528 source crypto/asymmetric_keys/Kconfig