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_MANAGER_DISABLE_TESTS
28 This options enables the fips boot option which is
29 required if you want to system to operate in a FIPS 200
30 certification. You should say no unless you know what
37 This option provides the API for cryptographic algorithms.
51 config CRYPTO_BLKCIPHER
53 select CRYPTO_BLKCIPHER2
56 config CRYPTO_BLKCIPHER2
60 select CRYPTO_WORKQUEUE
90 tristate "Cryptographic algorithm manager"
91 select CRYPTO_MANAGER2
93 Create default cryptographic template instantiations such as
96 config CRYPTO_MANAGER2
97 def_tristate CRYPTO_MANAGER || (CRYPTO_MANAGER!=n && CRYPTO_ALGAPI=y)
100 select CRYPTO_BLKCIPHER2
104 tristate "Userspace cryptographic algorithm configuration"
106 select CRYPTO_MANAGER
108 Userspace configuration for cryptographic instantiations such as
111 config CRYPTO_MANAGER_DISABLE_TESTS
112 bool "Disable run-time self tests"
114 depends on CRYPTO_MANAGER2
116 Disable run-time self tests that normally take place at
117 algorithm registration.
119 config CRYPTO_GF128MUL
120 tristate "GF(2^128) multiplication functions"
122 Efficient table driven implementation of multiplications in the
123 field GF(2^128). This is needed by some cypher modes. This
124 option will be selected automatically if you select such a
125 cipher mode. Only select this option by hand if you expect to load
126 an external module that requires these functions.
129 tristate "Null algorithms"
131 select CRYPTO_BLKCIPHER
134 These are 'Null' algorithms, used by IPsec, which do nothing.
137 tristate "Parallel crypto engine"
140 select CRYPTO_MANAGER
143 This converts an arbitrary crypto algorithm into a parallel
144 algorithm that executes in kernel threads.
146 config CRYPTO_WORKQUEUE
150 tristate "Software async crypto daemon"
151 select CRYPTO_BLKCIPHER
153 select CRYPTO_MANAGER
154 select CRYPTO_WORKQUEUE
156 This is a generic software asynchronous crypto daemon that
157 converts an arbitrary synchronous software crypto algorithm
158 into an asynchronous algorithm that executes in a kernel thread.
160 config CRYPTO_AUTHENC
161 tristate "Authenc support"
163 select CRYPTO_BLKCIPHER
164 select CRYPTO_MANAGER
167 Authenc: Combined mode wrapper for IPsec.
168 This is required for IPSec.
171 tristate "Testing module"
173 select CRYPTO_MANAGER
175 Quick & dirty crypto test module.
177 config CRYPTO_ABLK_HELPER
181 config CRYPTO_GLUE_HELPER_X86
186 comment "Authenticated Encryption with Associated Data"
189 tristate "CCM support"
193 Support for Counter with CBC MAC. Required for IPsec.
196 tristate "GCM/GMAC support"
202 Support for Galois/Counter Mode (GCM) and Galois Message
203 Authentication Code (GMAC). Required for IPSec.
206 tristate "Sequence Number IV Generator"
208 select CRYPTO_BLKCIPHER
211 This IV generator generates an IV based on a sequence number by
212 xoring it with a salt. This algorithm is mainly useful for CTR
214 comment "Block modes"
217 tristate "CBC support"
218 select CRYPTO_BLKCIPHER
219 select CRYPTO_MANAGER
221 CBC: Cipher Block Chaining mode
222 This block cipher algorithm is required for IPSec.
225 tristate "CTR support"
226 select CRYPTO_BLKCIPHER
228 select CRYPTO_MANAGER
231 This block cipher algorithm is required for IPSec.
234 tristate "CTS support"
235 select CRYPTO_BLKCIPHER
237 CTS: Cipher Text Stealing
238 This is the Cipher Text Stealing mode as described by
239 Section 8 of rfc2040 and referenced by rfc3962.
240 (rfc3962 includes errata information in its Appendix A)
241 This mode is required for Kerberos gss mechanism support
245 tristate "ECB support"
246 select CRYPTO_BLKCIPHER
247 select CRYPTO_MANAGER
249 ECB: Electronic CodeBook mode
250 This is the simplest block cipher algorithm. It simply encrypts
251 the input block by block.
254 tristate "LRW support"
255 select CRYPTO_BLKCIPHER
256 select CRYPTO_MANAGER
257 select CRYPTO_GF128MUL
259 LRW: Liskov Rivest Wagner, a tweakable, non malleable, non movable
260 narrow block cipher mode for dm-crypt. Use it with cipher
261 specification string aes-lrw-benbi, the key must be 256, 320 or 384.
262 The first 128, 192 or 256 bits in the key are used for AES and the
263 rest is used to tie each cipher block to its logical position.
266 tristate "PCBC support"
267 select CRYPTO_BLKCIPHER
268 select CRYPTO_MANAGER
270 PCBC: Propagating Cipher Block Chaining mode
271 This block cipher algorithm is required for RxRPC.
274 tristate "XTS support"
275 select CRYPTO_BLKCIPHER
276 select CRYPTO_MANAGER
277 select CRYPTO_GF128MUL
279 XTS: IEEE1619/D16 narrow block cipher use with aes-xts-plain,
280 key size 256, 384 or 512 bits. This implementation currently
281 can't handle a sectorsize which is not a multiple of 16 bytes.
286 tristate "CMAC support"
288 select CRYPTO_MANAGER
290 Cipher-based Message Authentication Code (CMAC) specified by
291 The National Institute of Standards and Technology (NIST).
293 https://tools.ietf.org/html/rfc4493
294 http://csrc.nist.gov/publications/nistpubs/800-38B/SP_800-38B.pdf
297 tristate "HMAC support"
299 select CRYPTO_MANAGER
301 HMAC: Keyed-Hashing for Message Authentication (RFC2104).
302 This is required for IPSec.
305 tristate "XCBC support"
307 select CRYPTO_MANAGER
309 XCBC: Keyed-Hashing with encryption algorithm
310 http://www.ietf.org/rfc/rfc3566.txt
311 http://csrc.nist.gov/encryption/modes/proposedmodes/
312 xcbc-mac/xcbc-mac-spec.pdf
315 tristate "VMAC support"
317 select CRYPTO_MANAGER
319 VMAC is a message authentication algorithm designed for
320 very high speed on 64-bit architectures.
323 <http://fastcrypto.org/vmac>
328 tristate "CRC32c CRC algorithm"
332 Castagnoli, et al Cyclic Redundancy-Check Algorithm. Used
333 by iSCSI for header and data digests and by others.
334 See Castagnoli93. Module will be crc32c.
336 config CRYPTO_CRC32C_INTEL
337 tristate "CRC32c INTEL hardware acceleration"
341 In Intel processor with SSE4.2 supported, the processor will
342 support CRC32C implementation using hardware accelerated CRC32
343 instruction. This option will create 'crc32c-intel' module,
344 which will enable any routine to use the CRC32 instruction to
345 gain performance compared with software implementation.
346 Module will be crc32c-intel.
348 config CRYPTO_CRC32C_SPARC64
349 tristate "CRC32c CRC algorithm (SPARC64)"
354 CRC32c CRC algorithm implemented using sparc64 crypto instructions,
358 tristate "CRC32 CRC algorithm"
362 CRC-32-IEEE 802.3 cyclic redundancy-check algorithm.
363 Shash crypto api wrappers to crc32_le function.
365 config CRYPTO_CRC32_PCLMUL
366 tristate "CRC32 PCLMULQDQ hardware acceleration"
371 From Intel Westmere and AMD Bulldozer processor with SSE4.2
372 and PCLMULQDQ supported, the processor will support
373 CRC32 PCLMULQDQ implementation using hardware accelerated PCLMULQDQ
374 instruction. This option will create 'crc32-plcmul' module,
375 which will enable any routine to use the CRC-32-IEEE 802.3 checksum
376 and gain better performance as compared with the table implementation.
378 config CRYPTO_CRCT10DIF
379 tristate "CRCT10DIF algorithm"
382 CRC T10 Data Integrity Field computation is being cast as
383 a crypto transform. This allows for faster crc t10 diff
384 transforms to be used if they are available.
386 config CRYPTO_CRCT10DIF_PCLMUL
387 tristate "CRCT10DIF PCLMULQDQ hardware acceleration"
388 depends on X86 && 64BIT && CRC_T10DIF
391 For x86_64 processors with SSE4.2 and PCLMULQDQ supported,
392 CRC T10 DIF PCLMULQDQ computation can be hardware
393 accelerated PCLMULQDQ instruction. This option will create
394 'crct10dif-plcmul' module, which is faster when computing the
395 crct10dif checksum as compared with the generic table implementation.
398 tristate "GHASH digest algorithm"
399 select CRYPTO_GF128MUL
401 GHASH is message digest algorithm for GCM (Galois/Counter Mode).
404 tristate "MD4 digest algorithm"
407 MD4 message digest algorithm (RFC1320).
410 tristate "MD5 digest algorithm"
413 MD5 message digest algorithm (RFC1321).
415 config CRYPTO_MD5_SPARC64
416 tristate "MD5 digest algorithm (SPARC64)"
421 MD5 message digest algorithm (RFC1321) implemented
422 using sparc64 crypto instructions, when available.
424 config CRYPTO_MICHAEL_MIC
425 tristate "Michael MIC keyed digest algorithm"
428 Michael MIC is used for message integrity protection in TKIP
429 (IEEE 802.11i). This algorithm is required for TKIP, but it
430 should not be used for other purposes because of the weakness
434 tristate "RIPEMD-128 digest algorithm"
437 RIPEMD-128 (ISO/IEC 10118-3:2004).
439 RIPEMD-128 is a 128-bit cryptographic hash function. It should only
440 be used as a secure replacement for RIPEMD. For other use cases,
441 RIPEMD-160 should be used.
443 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
444 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
447 tristate "RIPEMD-160 digest algorithm"
450 RIPEMD-160 (ISO/IEC 10118-3:2004).
452 RIPEMD-160 is a 160-bit cryptographic hash function. It is intended
453 to be used as a secure replacement for the 128-bit hash functions
454 MD4, MD5 and it's predecessor RIPEMD
455 (not to be confused with RIPEMD-128).
457 It's speed is comparable to SHA1 and there are no known attacks
460 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
461 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
464 tristate "RIPEMD-256 digest algorithm"
467 RIPEMD-256 is an optional extension of RIPEMD-128 with a
468 256 bit hash. It is intended for applications that require
469 longer hash-results, without needing a larger security level
472 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
473 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
476 tristate "RIPEMD-320 digest algorithm"
479 RIPEMD-320 is an optional extension of RIPEMD-160 with a
480 320 bit hash. It is intended for applications that require
481 longer hash-results, without needing a larger security level
484 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
485 See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
488 tristate "SHA1 digest algorithm"
491 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
493 config CRYPTO_SHA1_SSSE3
494 tristate "SHA1 digest algorithm (SSSE3/AVX/AVX2)"
495 depends on X86 && 64BIT
499 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
500 using Supplemental SSE3 (SSSE3) instructions or Advanced Vector
501 Extensions (AVX/AVX2), when available.
503 config CRYPTO_SHA256_SSSE3
504 tristate "SHA256 digest algorithm (SSSE3/AVX/AVX2)"
505 depends on X86 && 64BIT
509 SHA-256 secure hash standard (DFIPS 180-2) implemented
510 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
511 Extensions version 1 (AVX1), or Advanced Vector Extensions
512 version 2 (AVX2) instructions, when available.
514 config CRYPTO_SHA512_SSSE3
515 tristate "SHA512 digest algorithm (SSSE3/AVX/AVX2)"
516 depends on X86 && 64BIT
520 SHA-512 secure hash standard (DFIPS 180-2) implemented
521 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
522 Extensions version 1 (AVX1), or Advanced Vector Extensions
523 version 2 (AVX2) instructions, when available.
525 config CRYPTO_SHA1_SPARC64
526 tristate "SHA1 digest algorithm (SPARC64)"
531 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
532 using sparc64 crypto instructions, when available.
534 config CRYPTO_SHA1_ARM
535 tristate "SHA1 digest algorithm (ARM-asm)"
540 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
541 using optimized ARM assembler.
543 config CRYPTO_SHA1_ARM_NEON
544 tristate "SHA1 digest algorithm (ARM NEON)"
545 depends on ARM && KERNEL_MODE_NEON && !CPU_BIG_ENDIAN
546 select CRYPTO_SHA1_ARM
550 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
551 using optimized ARM NEON assembly, when NEON instructions are
554 config CRYPTO_SHA1_PPC
555 tristate "SHA1 digest algorithm (powerpc)"
558 This is the powerpc hardware accelerated implementation of the
559 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
562 tristate "SHA224 and SHA256 digest algorithm"
565 SHA256 secure hash standard (DFIPS 180-2).
567 This version of SHA implements a 256 bit hash with 128 bits of
568 security against collision attacks.
570 This code also includes SHA-224, a 224 bit hash with 112 bits
571 of security against collision attacks.
573 config CRYPTO_SHA256_SPARC64
574 tristate "SHA224 and SHA256 digest algorithm (SPARC64)"
579 SHA-256 secure hash standard (DFIPS 180-2) implemented
580 using sparc64 crypto instructions, when available.
583 tristate "SHA384 and SHA512 digest algorithms"
586 SHA512 secure hash standard (DFIPS 180-2).
588 This version of SHA implements a 512 bit hash with 256 bits of
589 security against collision attacks.
591 This code also includes SHA-384, a 384 bit hash with 192 bits
592 of security against collision attacks.
594 config CRYPTO_SHA512_SPARC64
595 tristate "SHA384 and SHA512 digest algorithm (SPARC64)"
600 SHA-512 secure hash standard (DFIPS 180-2) implemented
601 using sparc64 crypto instructions, when available.
604 tristate "Tiger digest algorithms"
607 Tiger hash algorithm 192, 160 and 128-bit hashes
609 Tiger is a hash function optimized for 64-bit processors while
610 still having decent performance on 32-bit processors.
611 Tiger was developed by Ross Anderson and Eli Biham.
614 <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>.
617 tristate "Whirlpool digest algorithms"
620 Whirlpool hash algorithm 512, 384 and 256-bit hashes
622 Whirlpool-512 is part of the NESSIE cryptographic primitives.
623 Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard
626 <http://www.larc.usp.br/~pbarreto/WhirlpoolPage.html>
628 config CRYPTO_GHASH_CLMUL_NI_INTEL
629 tristate "GHASH digest algorithm (CLMUL-NI accelerated)"
630 depends on X86 && 64BIT
633 GHASH is message digest algorithm for GCM (Galois/Counter Mode).
634 The implementation is accelerated by CLMUL-NI of Intel.
639 tristate "AES cipher algorithms"
642 AES cipher algorithms (FIPS-197). AES uses the Rijndael
645 Rijndael appears to be consistently a very good performer in
646 both hardware and software across a wide range of computing
647 environments regardless of its use in feedback or non-feedback
648 modes. Its key setup time is excellent, and its key agility is
649 good. Rijndael's very low memory requirements make it very well
650 suited for restricted-space environments, in which it also
651 demonstrates excellent performance. Rijndael's operations are
652 among the easiest to defend against power and timing attacks.
654 The AES specifies three key sizes: 128, 192 and 256 bits
656 See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information.
658 config CRYPTO_AES_586
659 tristate "AES cipher algorithms (i586)"
660 depends on (X86 || UML_X86) && !64BIT
664 AES cipher algorithms (FIPS-197). AES uses the Rijndael
667 Rijndael appears to be consistently a very good performer in
668 both hardware and software across a wide range of computing
669 environments regardless of its use in feedback or non-feedback
670 modes. Its key setup time is excellent, and its key agility is
671 good. Rijndael's very low memory requirements make it very well
672 suited for restricted-space environments, in which it also
673 demonstrates excellent performance. Rijndael's operations are
674 among the easiest to defend against power and timing attacks.
676 The AES specifies three key sizes: 128, 192 and 256 bits
678 See <http://csrc.nist.gov/encryption/aes/> for more information.
680 config CRYPTO_AES_X86_64
681 tristate "AES cipher algorithms (x86_64)"
682 depends on (X86 || UML_X86) && 64BIT
686 AES cipher algorithms (FIPS-197). AES uses the Rijndael
689 Rijndael appears to be consistently a very good performer in
690 both hardware and software across a wide range of computing
691 environments regardless of its use in feedback or non-feedback
692 modes. Its key setup time is excellent, and its key agility is
693 good. Rijndael's very low memory requirements make it very well
694 suited for restricted-space environments, in which it also
695 demonstrates excellent performance. Rijndael's operations are
696 among the easiest to defend against power and timing attacks.
698 The AES specifies three key sizes: 128, 192 and 256 bits
700 See <http://csrc.nist.gov/encryption/aes/> for more information.
702 config CRYPTO_AES_NI_INTEL
703 tristate "AES cipher algorithms (AES-NI)"
705 select CRYPTO_AES_X86_64 if 64BIT
706 select CRYPTO_AES_586 if !64BIT
708 select CRYPTO_ABLK_HELPER
710 select CRYPTO_GLUE_HELPER_X86 if 64BIT
714 Use Intel AES-NI instructions for AES algorithm.
716 AES cipher algorithms (FIPS-197). AES uses the Rijndael
719 Rijndael appears to be consistently a very good performer in
720 both hardware and software across a wide range of computing
721 environments regardless of its use in feedback or non-feedback
722 modes. Its key setup time is excellent, and its key agility is
723 good. Rijndael's very low memory requirements make it very well
724 suited for restricted-space environments, in which it also
725 demonstrates excellent performance. Rijndael's operations are
726 among the easiest to defend against power and timing attacks.
728 The AES specifies three key sizes: 128, 192 and 256 bits
730 See <http://csrc.nist.gov/encryption/aes/> for more information.
732 In addition to AES cipher algorithm support, the acceleration
733 for some popular block cipher mode is supported too, including
734 ECB, CBC, LRW, PCBC, XTS. The 64 bit version has additional
735 acceleration for CTR.
737 config CRYPTO_AES_SPARC64
738 tristate "AES cipher algorithms (SPARC64)"
743 Use SPARC64 crypto opcodes for AES algorithm.
745 AES cipher algorithms (FIPS-197). AES uses the Rijndael
748 Rijndael appears to be consistently a very good performer in
749 both hardware and software across a wide range of computing
750 environments regardless of its use in feedback or non-feedback
751 modes. Its key setup time is excellent, and its key agility is
752 good. Rijndael's very low memory requirements make it very well
753 suited for restricted-space environments, in which it also
754 demonstrates excellent performance. Rijndael's operations are
755 among the easiest to defend against power and timing attacks.
757 The AES specifies three key sizes: 128, 192 and 256 bits
759 See <http://csrc.nist.gov/encryption/aes/> for more information.
761 In addition to AES cipher algorithm support, the acceleration
762 for some popular block cipher mode is supported too, including
765 config CRYPTO_AES_ARM
766 tristate "AES cipher algorithms (ARM-asm)"
771 Use optimized AES assembler routines for ARM platforms.
773 AES cipher algorithms (FIPS-197). AES uses the Rijndael
776 Rijndael appears to be consistently a very good performer in
777 both hardware and software across a wide range of computing
778 environments regardless of its use in feedback or non-feedback
779 modes. Its key setup time is excellent, and its key agility is
780 good. Rijndael's very low memory requirements make it very well
781 suited for restricted-space environments, in which it also
782 demonstrates excellent performance. Rijndael's operations are
783 among the easiest to defend against power and timing attacks.
785 The AES specifies three key sizes: 128, 192 and 256 bits
787 See <http://csrc.nist.gov/encryption/aes/> for more information.
789 config CRYPTO_AES_ARM_BS
790 tristate "Bit sliced AES using NEON instructions"
791 depends on ARM && KERNEL_MODE_NEON
793 select CRYPTO_AES_ARM
794 select CRYPTO_ABLK_HELPER
796 Use a faster and more secure NEON based implementation of AES in CBC,
799 Bit sliced AES gives around 45% speedup on Cortex-A15 for CTR mode
800 and for XTS mode encryption, CBC and XTS mode decryption speedup is
801 around 25%. (CBC encryption speed is not affected by this driver.)
802 This implementation does not rely on any lookup tables so it is
803 believed to be invulnerable to cache timing attacks.
806 tristate "Anubis cipher algorithm"
809 Anubis cipher algorithm.
811 Anubis is a variable key length cipher which can use keys from
812 128 bits to 320 bits in length. It was evaluated as a entrant
813 in the NESSIE competition.
816 <https://www.cosic.esat.kuleuven.be/nessie/reports/>
817 <http://www.larc.usp.br/~pbarreto/AnubisPage.html>
820 tristate "ARC4 cipher algorithm"
821 select CRYPTO_BLKCIPHER
823 ARC4 cipher algorithm.
825 ARC4 is a stream cipher using keys ranging from 8 bits to 2048
826 bits in length. This algorithm is required for driver-based
827 WEP, but it should not be for other purposes because of the
828 weakness of the algorithm.
830 config CRYPTO_BLOWFISH
831 tristate "Blowfish cipher algorithm"
833 select CRYPTO_BLOWFISH_COMMON
835 Blowfish cipher algorithm, by Bruce Schneier.
837 This is a variable key length cipher which can use keys from 32
838 bits to 448 bits in length. It's fast, simple and specifically
839 designed for use on "large microprocessors".
842 <http://www.schneier.com/blowfish.html>
844 config CRYPTO_BLOWFISH_COMMON
847 Common parts of the Blowfish cipher algorithm shared by the
848 generic c and the assembler implementations.
851 <http://www.schneier.com/blowfish.html>
853 config CRYPTO_BLOWFISH_X86_64
854 tristate "Blowfish cipher algorithm (x86_64)"
855 depends on X86 && 64BIT
857 select CRYPTO_BLOWFISH_COMMON
859 Blowfish cipher algorithm (x86_64), by Bruce Schneier.
861 This is a variable key length cipher which can use keys from 32
862 bits to 448 bits in length. It's fast, simple and specifically
863 designed for use on "large microprocessors".
866 <http://www.schneier.com/blowfish.html>
868 config CRYPTO_CAMELLIA
869 tristate "Camellia cipher algorithms"
873 Camellia cipher algorithms module.
875 Camellia is a symmetric key block cipher developed jointly
876 at NTT and Mitsubishi Electric Corporation.
878 The Camellia specifies three key sizes: 128, 192 and 256 bits.
881 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
883 config CRYPTO_CAMELLIA_X86_64
884 tristate "Camellia cipher algorithm (x86_64)"
885 depends on X86 && 64BIT
888 select CRYPTO_GLUE_HELPER_X86
892 Camellia cipher algorithm module (x86_64).
894 Camellia is a symmetric key block cipher developed jointly
895 at NTT and Mitsubishi Electric Corporation.
897 The Camellia specifies three key sizes: 128, 192 and 256 bits.
900 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
902 config CRYPTO_CAMELLIA_AESNI_AVX_X86_64
903 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX)"
904 depends on X86 && 64BIT
908 select CRYPTO_ABLK_HELPER
909 select CRYPTO_GLUE_HELPER_X86
910 select CRYPTO_CAMELLIA_X86_64
914 Camellia cipher algorithm module (x86_64/AES-NI/AVX).
916 Camellia is a symmetric key block cipher developed jointly
917 at NTT and Mitsubishi Electric Corporation.
919 The Camellia specifies three key sizes: 128, 192 and 256 bits.
922 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
924 config CRYPTO_CAMELLIA_AESNI_AVX2_X86_64
925 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX2)"
926 depends on X86 && 64BIT
930 select CRYPTO_ABLK_HELPER
931 select CRYPTO_GLUE_HELPER_X86
932 select CRYPTO_CAMELLIA_X86_64
933 select CRYPTO_CAMELLIA_AESNI_AVX_X86_64
937 Camellia cipher algorithm module (x86_64/AES-NI/AVX2).
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_SPARC64
948 tristate "Camellia cipher algorithm (SPARC64)"
953 Camellia cipher algorithm module (SPARC64).
955 Camellia is a symmetric key block cipher developed jointly
956 at NTT and Mitsubishi Electric Corporation.
958 The Camellia specifies three key sizes: 128, 192 and 256 bits.
961 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
963 config CRYPTO_CAST_COMMON
966 Common parts of the CAST cipher algorithms shared by the
967 generic c and the assembler implementations.
970 tristate "CAST5 (CAST-128) cipher algorithm"
972 select CRYPTO_CAST_COMMON
974 The CAST5 encryption algorithm (synonymous with CAST-128) is
975 described in RFC2144.
977 config CRYPTO_CAST5_AVX_X86_64
978 tristate "CAST5 (CAST-128) cipher algorithm (x86_64/AVX)"
979 depends on X86 && 64BIT
982 select CRYPTO_ABLK_HELPER
983 select CRYPTO_CAST_COMMON
986 The CAST5 encryption algorithm (synonymous with CAST-128) is
987 described in RFC2144.
989 This module provides the Cast5 cipher algorithm that processes
990 sixteen blocks parallel using the AVX instruction set.
993 tristate "CAST6 (CAST-256) cipher algorithm"
995 select CRYPTO_CAST_COMMON
997 The CAST6 encryption algorithm (synonymous with CAST-256) is
998 described in RFC2612.
1000 config CRYPTO_CAST6_AVX_X86_64
1001 tristate "CAST6 (CAST-256) cipher algorithm (x86_64/AVX)"
1002 depends on X86 && 64BIT
1003 select CRYPTO_ALGAPI
1004 select CRYPTO_CRYPTD
1005 select CRYPTO_ABLK_HELPER
1006 select CRYPTO_GLUE_HELPER_X86
1007 select CRYPTO_CAST_COMMON
1012 The CAST6 encryption algorithm (synonymous with CAST-256) is
1013 described in RFC2612.
1015 This module provides the Cast6 cipher algorithm that processes
1016 eight blocks parallel using the AVX instruction set.
1019 tristate "DES and Triple DES EDE cipher algorithms"
1020 select CRYPTO_ALGAPI
1022 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
1024 config CRYPTO_DES_SPARC64
1025 tristate "DES and Triple DES EDE cipher algorithms (SPARC64)"
1027 select CRYPTO_ALGAPI
1030 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3),
1031 optimized using SPARC64 crypto opcodes.
1033 config CRYPTO_FCRYPT
1034 tristate "FCrypt cipher algorithm"
1035 select CRYPTO_ALGAPI
1036 select CRYPTO_BLKCIPHER
1038 FCrypt algorithm used by RxRPC.
1040 config CRYPTO_KHAZAD
1041 tristate "Khazad cipher algorithm"
1042 select CRYPTO_ALGAPI
1044 Khazad cipher algorithm.
1046 Khazad was a finalist in the initial NESSIE competition. It is
1047 an algorithm optimized for 64-bit processors with good performance
1048 on 32-bit processors. Khazad uses an 128 bit key size.
1051 <http://www.larc.usp.br/~pbarreto/KhazadPage.html>
1053 config CRYPTO_SALSA20
1054 tristate "Salsa20 stream cipher algorithm"
1055 select CRYPTO_BLKCIPHER
1057 Salsa20 stream cipher algorithm.
1059 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
1060 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
1062 The Salsa20 stream cipher algorithm is designed by Daniel J.
1063 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
1065 config CRYPTO_SALSA20_586
1066 tristate "Salsa20 stream cipher algorithm (i586)"
1067 depends on (X86 || UML_X86) && !64BIT
1068 select CRYPTO_BLKCIPHER
1070 Salsa20 stream cipher algorithm.
1072 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
1073 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
1075 The Salsa20 stream cipher algorithm is designed by Daniel J.
1076 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
1078 config CRYPTO_SALSA20_X86_64
1079 tristate "Salsa20 stream cipher algorithm (x86_64)"
1080 depends on (X86 || UML_X86) && 64BIT
1081 select CRYPTO_BLKCIPHER
1083 Salsa20 stream cipher algorithm.
1085 Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT
1086 Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/>
1088 The Salsa20 stream cipher algorithm is designed by Daniel J.
1089 Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html>
1092 tristate "SEED cipher algorithm"
1093 select CRYPTO_ALGAPI
1095 SEED cipher algorithm (RFC4269).
1097 SEED is a 128-bit symmetric key block cipher that has been
1098 developed by KISA (Korea Information Security Agency) as a
1099 national standard encryption algorithm of the Republic of Korea.
1100 It is a 16 round block cipher with the key size of 128 bit.
1103 <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>
1105 config CRYPTO_SERPENT
1106 tristate "Serpent cipher algorithm"
1107 select CRYPTO_ALGAPI
1109 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1111 Keys are allowed to be from 0 to 256 bits in length, in steps
1112 of 8 bits. Also includes the 'Tnepres' algorithm, a reversed
1113 variant of Serpent for compatibility with old kerneli.org code.
1116 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1118 config CRYPTO_SERPENT_SSE2_X86_64
1119 tristate "Serpent cipher algorithm (x86_64/SSE2)"
1120 depends on X86 && 64BIT
1121 select CRYPTO_ALGAPI
1122 select CRYPTO_CRYPTD
1123 select CRYPTO_ABLK_HELPER
1124 select CRYPTO_GLUE_HELPER_X86
1125 select CRYPTO_SERPENT
1129 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1131 Keys are allowed to be from 0 to 256 bits in length, in steps
1134 This module provides Serpent cipher algorithm that processes eigth
1135 blocks parallel using SSE2 instruction set.
1138 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1140 config CRYPTO_SERPENT_SSE2_586
1141 tristate "Serpent cipher algorithm (i586/SSE2)"
1142 depends on X86 && !64BIT
1143 select CRYPTO_ALGAPI
1144 select CRYPTO_CRYPTD
1145 select CRYPTO_ABLK_HELPER
1146 select CRYPTO_GLUE_HELPER_X86
1147 select CRYPTO_SERPENT
1151 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1153 Keys are allowed to be from 0 to 256 bits in length, in steps
1156 This module provides Serpent cipher algorithm that processes four
1157 blocks parallel using SSE2 instruction set.
1160 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1162 config CRYPTO_SERPENT_AVX_X86_64
1163 tristate "Serpent cipher algorithm (x86_64/AVX)"
1164 depends on X86 && 64BIT
1165 select CRYPTO_ALGAPI
1166 select CRYPTO_CRYPTD
1167 select CRYPTO_ABLK_HELPER
1168 select CRYPTO_GLUE_HELPER_X86
1169 select CRYPTO_SERPENT
1173 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1175 Keys are allowed to be from 0 to 256 bits in length, in steps
1178 This module provides the Serpent cipher algorithm that processes
1179 eight blocks parallel using the AVX instruction set.
1182 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1184 config CRYPTO_SERPENT_AVX2_X86_64
1185 tristate "Serpent cipher algorithm (x86_64/AVX2)"
1186 depends on X86 && 64BIT
1187 select CRYPTO_ALGAPI
1188 select CRYPTO_CRYPTD
1189 select CRYPTO_ABLK_HELPER
1190 select CRYPTO_GLUE_HELPER_X86
1191 select CRYPTO_SERPENT
1192 select CRYPTO_SERPENT_AVX_X86_64
1196 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1198 Keys are allowed to be from 0 to 256 bits in length, in steps
1201 This module provides Serpent cipher algorithm that processes 16
1202 blocks parallel using AVX2 instruction set.
1205 <http://www.cl.cam.ac.uk/~rja14/serpent.html>
1208 tristate "TEA, XTEA and XETA cipher algorithms"
1209 select CRYPTO_ALGAPI
1211 TEA cipher algorithm.
1213 Tiny Encryption Algorithm is a simple cipher that uses
1214 many rounds for security. It is very fast and uses
1217 Xtendend Tiny Encryption Algorithm is a modification to
1218 the TEA algorithm to address a potential key weakness
1219 in the TEA algorithm.
1221 Xtendend Encryption Tiny Algorithm is a mis-implementation
1222 of the XTEA algorithm for compatibility purposes.
1224 config CRYPTO_TWOFISH
1225 tristate "Twofish cipher algorithm"
1226 select CRYPTO_ALGAPI
1227 select CRYPTO_TWOFISH_COMMON
1229 Twofish cipher algorithm.
1231 Twofish was submitted as an AES (Advanced Encryption Standard)
1232 candidate cipher by researchers at CounterPane Systems. It is a
1233 16 round block cipher supporting key sizes of 128, 192, and 256
1237 <http://www.schneier.com/twofish.html>
1239 config CRYPTO_TWOFISH_COMMON
1242 Common parts of the Twofish cipher algorithm shared by the
1243 generic c and the assembler implementations.
1245 config CRYPTO_TWOFISH_586
1246 tristate "Twofish cipher algorithms (i586)"
1247 depends on (X86 || UML_X86) && !64BIT
1248 select CRYPTO_ALGAPI
1249 select CRYPTO_TWOFISH_COMMON
1251 Twofish cipher algorithm.
1253 Twofish was submitted as an AES (Advanced Encryption Standard)
1254 candidate cipher by researchers at CounterPane Systems. It is a
1255 16 round block cipher supporting key sizes of 128, 192, and 256
1259 <http://www.schneier.com/twofish.html>
1261 config CRYPTO_TWOFISH_X86_64
1262 tristate "Twofish cipher algorithm (x86_64)"
1263 depends on (X86 || UML_X86) && 64BIT
1264 select CRYPTO_ALGAPI
1265 select CRYPTO_TWOFISH_COMMON
1267 Twofish cipher algorithm (x86_64).
1269 Twofish was submitted as an AES (Advanced Encryption Standard)
1270 candidate cipher by researchers at CounterPane Systems. It is a
1271 16 round block cipher supporting key sizes of 128, 192, and 256
1275 <http://www.schneier.com/twofish.html>
1277 config CRYPTO_TWOFISH_X86_64_3WAY
1278 tristate "Twofish cipher algorithm (x86_64, 3-way parallel)"
1279 depends on X86 && 64BIT
1280 select CRYPTO_ALGAPI
1281 select CRYPTO_TWOFISH_COMMON
1282 select CRYPTO_TWOFISH_X86_64
1283 select CRYPTO_GLUE_HELPER_X86
1287 Twofish cipher algorithm (x86_64, 3-way parallel).
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
1294 This module provides Twofish cipher algorithm that processes three
1295 blocks parallel, utilizing resources of out-of-order CPUs better.
1298 <http://www.schneier.com/twofish.html>
1300 config CRYPTO_TWOFISH_AVX_X86_64
1301 tristate "Twofish cipher algorithm (x86_64/AVX)"
1302 depends on X86 && 64BIT
1303 select CRYPTO_ALGAPI
1304 select CRYPTO_CRYPTD
1305 select CRYPTO_ABLK_HELPER
1306 select CRYPTO_GLUE_HELPER_X86
1307 select CRYPTO_TWOFISH_COMMON
1308 select CRYPTO_TWOFISH_X86_64
1309 select CRYPTO_TWOFISH_X86_64_3WAY
1313 Twofish cipher algorithm (x86_64/AVX).
1315 Twofish was submitted as an AES (Advanced Encryption Standard)
1316 candidate cipher by researchers at CounterPane Systems. It is a
1317 16 round block cipher supporting key sizes of 128, 192, and 256
1320 This module provides the Twofish cipher algorithm that processes
1321 eight blocks parallel using the AVX Instruction Set.
1324 <http://www.schneier.com/twofish.html>
1326 comment "Compression"
1328 config CRYPTO_DEFLATE
1329 tristate "Deflate compression algorithm"
1330 select CRYPTO_ALGAPI
1334 This is the Deflate algorithm (RFC1951), specified for use in
1335 IPSec with the IPCOMP protocol (RFC3173, RFC2394).
1337 You will most probably want this if using IPSec.
1340 tristate "Zlib compression algorithm"
1346 This is the zlib algorithm.
1349 tristate "LZO compression algorithm"
1350 select CRYPTO_ALGAPI
1352 select LZO_DECOMPRESS
1354 This is the LZO algorithm.
1357 tristate "842 compression algorithm"
1358 depends on CRYPTO_DEV_NX_COMPRESS
1359 # 842 uses lzo if the hardware becomes unavailable
1361 select LZO_DECOMPRESS
1363 This is the 842 algorithm.
1366 tristate "LZ4 compression algorithm"
1367 select CRYPTO_ALGAPI
1369 select LZ4_DECOMPRESS
1371 This is the LZ4 algorithm.
1374 tristate "LZ4HC compression algorithm"
1375 select CRYPTO_ALGAPI
1376 select LZ4HC_COMPRESS
1377 select LZ4_DECOMPRESS
1379 This is the LZ4 high compression mode algorithm.
1381 comment "Random Number Generation"
1383 config CRYPTO_ANSI_CPRNG
1384 tristate "Pseudo Random Number Generation for Cryptographic modules"
1389 This option enables the generic pseudo random number generator
1390 for cryptographic modules. Uses the Algorithm specified in
1391 ANSI X9.31 A.2.4. Note that this option must be enabled if
1392 CRYPTO_FIPS is selected
1394 config CRYPTO_USER_API
1397 config CRYPTO_USER_API_HASH
1398 tristate "User-space interface for hash algorithms"
1401 select CRYPTO_USER_API
1403 This option enables the user-spaces interface for hash
1406 config CRYPTO_USER_API_SKCIPHER
1407 tristate "User-space interface for symmetric key cipher algorithms"
1409 select CRYPTO_BLKCIPHER
1410 select CRYPTO_USER_API
1412 This option enables the user-spaces interface for symmetric
1413 key cipher algorithms.
1415 config CRYPTO_HASH_INFO
1418 source "drivers/crypto/Kconfig"
1419 source crypto/asymmetric_keys/Kconfig