1 # SPDX-License-Identifier: GPL-2.0
3 # Generic algorithms support
9 # async_tx api: hardware offloaded memory transfer/transform support
11 source "crypto/async_tx/Kconfig"
14 # Cryptographic API Configuration
17 tristate "Cryptographic API"
20 This option provides the core Cryptographic API.
24 comment "Crypto core or helper"
27 bool "FIPS 200 compliance"
28 depends on (CRYPTO_ANSI_CPRNG || CRYPTO_DRBG) && !CRYPTO_MANAGER_DISABLE_TESTS
29 depends on (MODULE_SIG || !MODULES)
31 This option enables the fips boot option which is
32 required if you want the system to operate in a FIPS 200
33 certification. You should say no unless you know what
40 This option provides the API for cryptographic algorithms.
56 config CRYPTO_SKCIPHER
58 select CRYPTO_SKCIPHER2
61 config CRYPTO_SKCIPHER2
84 config CRYPTO_RNG_DEFAULT
86 select CRYPTO_DRBG_MENU
88 config CRYPTO_AKCIPHER2
92 config CRYPTO_AKCIPHER
94 select CRYPTO_AKCIPHER2
108 select CRYPTO_ALGAPI2
116 config CRYPTO_MANAGER
117 tristate "Cryptographic algorithm manager"
118 select CRYPTO_MANAGER2
120 Create default cryptographic template instantiations such as
123 config CRYPTO_MANAGER2
124 def_tristate CRYPTO_MANAGER || (CRYPTO_MANAGER!=n && CRYPTO_ALGAPI=y)
127 select CRYPTO_SKCIPHER2
128 select CRYPTO_AKCIPHER2
133 tristate "Userspace cryptographic algorithm configuration"
135 select CRYPTO_MANAGER
137 Userspace configuration for cryptographic instantiations such as
140 config CRYPTO_MANAGER_DISABLE_TESTS
141 bool "Disable run-time self tests"
144 Disable run-time self tests that normally take place at
145 algorithm registration.
147 config CRYPTO_MANAGER_EXTRA_TESTS
148 bool "Enable extra run-time crypto self tests"
149 depends on DEBUG_KERNEL && !CRYPTO_MANAGER_DISABLE_TESTS && CRYPTO_MANAGER
151 Enable extra run-time self tests of registered crypto algorithms,
152 including randomized fuzz tests.
154 This is intended for developer use only, as these tests take much
155 longer to run than the normal self tests.
157 config CRYPTO_GF128MUL
161 tristate "Null algorithms"
164 These are 'Null' algorithms, used by IPsec, which do nothing.
168 select CRYPTO_ALGAPI2
169 select CRYPTO_SKCIPHER2
173 tristate "Parallel crypto engine"
176 select CRYPTO_MANAGER
179 This converts an arbitrary crypto algorithm into a parallel
180 algorithm that executes in kernel threads.
183 tristate "Software async crypto daemon"
184 select CRYPTO_SKCIPHER
186 select CRYPTO_MANAGER
188 This is a generic software asynchronous crypto daemon that
189 converts an arbitrary synchronous software crypto algorithm
190 into an asynchronous algorithm that executes in a kernel thread.
192 config CRYPTO_AUTHENC
193 tristate "Authenc support"
195 select CRYPTO_SKCIPHER
196 select CRYPTO_MANAGER
200 Authenc: Combined mode wrapper for IPsec.
201 This is required for IPSec.
204 tristate "Testing module"
205 depends on m || EXPERT
206 select CRYPTO_MANAGER
208 Quick & dirty crypto test module.
217 comment "Public-key cryptography"
220 tristate "RSA algorithm"
221 select CRYPTO_AKCIPHER
222 select CRYPTO_MANAGER
226 Generic implementation of the RSA public key algorithm.
229 tristate "Diffie-Hellman algorithm"
233 Generic implementation of the Diffie-Hellman algorithm.
237 select CRYPTO_RNG_DEFAULT
240 tristate "ECDH algorithm"
244 Generic implementation of the ECDH algorithm
247 tristate "ECDSA (NIST P192, P256 etc.) algorithm"
249 select CRYPTO_AKCIPHER
252 Elliptic Curve Digital Signature Algorithm (NIST P192, P256 etc.)
253 is A NIST cryptographic standard algorithm. Only signature verification
257 tristate "EC-RDSA (GOST 34.10) algorithm"
259 select CRYPTO_AKCIPHER
260 select CRYPTO_STREEBOG
264 Elliptic Curve Russian Digital Signature Algorithm (GOST R 34.10-2012,
265 RFC 7091, ISO/IEC 14888-3:2018) is one of the Russian cryptographic
266 standard algorithms (called GOST algorithms). Only signature verification
270 tristate "SM2 algorithm"
272 select CRYPTO_AKCIPHER
273 select CRYPTO_MANAGER
277 Generic implementation of the SM2 public key algorithm. It was
278 published by State Encryption Management Bureau, China.
279 as specified by OSCCA GM/T 0003.1-2012 -- 0003.5-2012.
282 https://tools.ietf.org/html/draft-shen-sm2-ecdsa-02
283 http://www.oscca.gov.cn/sca/xxgk/2010-12/17/content_1002386.shtml
284 http://www.gmbz.org.cn/main/bzlb.html
286 config CRYPTO_CURVE25519
287 tristate "Curve25519 algorithm"
289 select CRYPTO_LIB_CURVE25519_GENERIC
291 config CRYPTO_CURVE25519_X86
292 tristate "x86_64 accelerated Curve25519 scalar multiplication library"
293 depends on X86 && 64BIT
294 select CRYPTO_LIB_CURVE25519_GENERIC
295 select CRYPTO_ARCH_HAVE_LIB_CURVE25519
297 comment "Authenticated Encryption with Associated Data"
300 tristate "CCM support"
304 select CRYPTO_MANAGER
306 Support for Counter with CBC MAC. Required for IPsec.
309 tristate "GCM/GMAC support"
314 select CRYPTO_MANAGER
316 Support for Galois/Counter Mode (GCM) and Galois Message
317 Authentication Code (GMAC). Required for IPSec.
319 config CRYPTO_CHACHA20POLY1305
320 tristate "ChaCha20-Poly1305 AEAD support"
321 select CRYPTO_CHACHA20
322 select CRYPTO_POLY1305
324 select CRYPTO_MANAGER
326 ChaCha20-Poly1305 AEAD support, RFC7539.
328 Support for the AEAD wrapper using the ChaCha20 stream cipher combined
329 with the Poly1305 authenticator. It is defined in RFC7539 for use in
332 config CRYPTO_AEGIS128
333 tristate "AEGIS-128 AEAD algorithm"
335 select CRYPTO_AES # for AES S-box tables
337 Support for the AEGIS-128 dedicated AEAD algorithm.
339 config CRYPTO_AEGIS128_SIMD
340 bool "Support SIMD acceleration for AEGIS-128"
341 depends on CRYPTO_AEGIS128 && ((ARM || ARM64) && KERNEL_MODE_NEON)
344 config CRYPTO_AEGIS128_AESNI_SSE2
345 tristate "AEGIS-128 AEAD algorithm (x86_64 AESNI+SSE2 implementation)"
346 depends on X86 && 64BIT
350 AESNI+SSE2 implementation of the AEGIS-128 dedicated AEAD algorithm.
353 tristate "Sequence Number IV Generator"
355 select CRYPTO_SKCIPHER
357 select CRYPTO_RNG_DEFAULT
358 select CRYPTO_MANAGER
360 This IV generator generates an IV based on a sequence number by
361 xoring it with a salt. This algorithm is mainly useful for CTR
363 config CRYPTO_ECHAINIV
364 tristate "Encrypted Chain IV Generator"
367 select CRYPTO_RNG_DEFAULT
368 select CRYPTO_MANAGER
370 This IV generator generates an IV based on the encryption of
371 a sequence number xored with a salt. This is the default
374 comment "Block modes"
377 tristate "CBC support"
378 select CRYPTO_SKCIPHER
379 select CRYPTO_MANAGER
381 CBC: Cipher Block Chaining mode
382 This block cipher algorithm is required for IPSec.
385 tristate "CFB support"
386 select CRYPTO_SKCIPHER
387 select CRYPTO_MANAGER
389 CFB: Cipher FeedBack mode
390 This block cipher algorithm is required for TPM2 Cryptography.
393 tristate "CTR support"
394 select CRYPTO_SKCIPHER
395 select CRYPTO_MANAGER
398 This block cipher algorithm is required for IPSec.
401 tristate "CTS support"
402 select CRYPTO_SKCIPHER
403 select CRYPTO_MANAGER
405 CTS: Cipher Text Stealing
406 This is the Cipher Text Stealing mode as described by
407 Section 8 of rfc2040 and referenced by rfc3962
408 (rfc3962 includes errata information in its Appendix A) or
409 CBC-CS3 as defined by NIST in Sp800-38A addendum from Oct 2010.
410 This mode is required for Kerberos gss mechanism support
413 See: https://csrc.nist.gov/publications/detail/sp/800-38a/addendum/final
416 tristate "ECB support"
417 select CRYPTO_SKCIPHER
418 select CRYPTO_MANAGER
420 ECB: Electronic CodeBook mode
421 This is the simplest block cipher algorithm. It simply encrypts
422 the input block by block.
425 tristate "LRW support"
426 select CRYPTO_SKCIPHER
427 select CRYPTO_MANAGER
428 select CRYPTO_GF128MUL
430 LRW: Liskov Rivest Wagner, a tweakable, non malleable, non movable
431 narrow block cipher mode for dm-crypt. Use it with cipher
432 specification string aes-lrw-benbi, the key must be 256, 320 or 384.
433 The first 128, 192 or 256 bits in the key are used for AES and the
434 rest is used to tie each cipher block to its logical position.
437 tristate "OFB support"
438 select CRYPTO_SKCIPHER
439 select CRYPTO_MANAGER
441 OFB: the Output Feedback mode makes a block cipher into a synchronous
442 stream cipher. It generates keystream blocks, which are then XORed
443 with the plaintext blocks to get the ciphertext. Flipping a bit in the
444 ciphertext produces a flipped bit in the plaintext at the same
445 location. This property allows many error correcting codes to function
446 normally even when applied before encryption.
449 tristate "PCBC support"
450 select CRYPTO_SKCIPHER
451 select CRYPTO_MANAGER
453 PCBC: Propagating Cipher Block Chaining mode
454 This block cipher algorithm is required for RxRPC.
457 tristate "XTS support"
458 select CRYPTO_SKCIPHER
459 select CRYPTO_MANAGER
462 XTS: IEEE1619/D16 narrow block cipher use with aes-xts-plain,
463 key size 256, 384 or 512 bits. This implementation currently
464 can't handle a sectorsize which is not a multiple of 16 bytes.
466 config CRYPTO_KEYWRAP
467 tristate "Key wrapping support"
468 select CRYPTO_SKCIPHER
469 select CRYPTO_MANAGER
471 Support for key wrapping (NIST SP800-38F / RFC3394) without
474 config CRYPTO_NHPOLY1305
477 select CRYPTO_LIB_POLY1305_GENERIC
479 config CRYPTO_NHPOLY1305_SSE2
480 tristate "NHPoly1305 hash function (x86_64 SSE2 implementation)"
481 depends on X86 && 64BIT
482 select CRYPTO_NHPOLY1305
484 SSE2 optimized implementation of the hash function used by the
485 Adiantum encryption mode.
487 config CRYPTO_NHPOLY1305_AVX2
488 tristate "NHPoly1305 hash function (x86_64 AVX2 implementation)"
489 depends on X86 && 64BIT
490 select CRYPTO_NHPOLY1305
492 AVX2 optimized implementation of the hash function used by the
493 Adiantum encryption mode.
495 config CRYPTO_ADIANTUM
496 tristate "Adiantum support"
497 select CRYPTO_CHACHA20
498 select CRYPTO_LIB_POLY1305_GENERIC
499 select CRYPTO_NHPOLY1305
500 select CRYPTO_MANAGER
502 Adiantum is a tweakable, length-preserving encryption mode
503 designed for fast and secure disk encryption, especially on
504 CPUs without dedicated crypto instructions. It encrypts
505 each sector using the XChaCha12 stream cipher, two passes of
506 an ε-almost-∆-universal hash function, and an invocation of
507 the AES-256 block cipher on a single 16-byte block. On CPUs
508 without AES instructions, Adiantum is much faster than
511 Adiantum's security is provably reducible to that of its
512 underlying stream and block ciphers, subject to a security
513 bound. Unlike XTS, Adiantum is a true wide-block encryption
514 mode, so it actually provides an even stronger notion of
515 security than XTS, subject to the security bound.
520 tristate "ESSIV support for block encryption"
521 select CRYPTO_AUTHENC
523 Encrypted salt-sector initialization vector (ESSIV) is an IV
524 generation method that is used in some cases by fscrypt and/or
525 dm-crypt. It uses the hash of the block encryption key as the
526 symmetric key for a block encryption pass applied to the input
527 IV, making low entropy IV sources more suitable for block
530 This driver implements a crypto API template that can be
531 instantiated either as an skcipher or as an AEAD (depending on the
532 type of the first template argument), and which defers encryption
533 and decryption requests to the encapsulated cipher after applying
534 ESSIV to the input IV. Note that in the AEAD case, it is assumed
535 that the keys are presented in the same format used by the authenc
536 template, and that the IV appears at the end of the authenticated
537 associated data (AAD) region (which is how dm-crypt uses it.)
539 Note that the use of ESSIV is not recommended for new deployments,
540 and so this only needs to be enabled when interoperability with
541 existing encrypted volumes of filesystems is required, or when
542 building for a particular system that requires it (e.g., when
543 the SoC in question has accelerated CBC but not XTS, making CBC
544 combined with ESSIV the only feasible mode for h/w accelerated
550 tristate "CMAC support"
552 select CRYPTO_MANAGER
554 Cipher-based Message Authentication Code (CMAC) specified by
555 The National Institute of Standards and Technology (NIST).
557 https://tools.ietf.org/html/rfc4493
558 http://csrc.nist.gov/publications/nistpubs/800-38B/SP_800-38B.pdf
561 tristate "HMAC support"
563 select CRYPTO_MANAGER
565 HMAC: Keyed-Hashing for Message Authentication (RFC2104).
566 This is required for IPSec.
569 tristate "XCBC support"
571 select CRYPTO_MANAGER
573 XCBC: Keyed-Hashing with encryption algorithm
574 https://www.ietf.org/rfc/rfc3566.txt
575 http://csrc.nist.gov/encryption/modes/proposedmodes/
576 xcbc-mac/xcbc-mac-spec.pdf
579 tristate "VMAC support"
581 select CRYPTO_MANAGER
583 VMAC is a message authentication algorithm designed for
584 very high speed on 64-bit architectures.
587 <https://fastcrypto.org/vmac>
592 tristate "CRC32c CRC algorithm"
596 Castagnoli, et al Cyclic Redundancy-Check Algorithm. Used
597 by iSCSI for header and data digests and by others.
598 See Castagnoli93. Module will be crc32c.
600 config CRYPTO_CRC32C_INTEL
601 tristate "CRC32c INTEL hardware acceleration"
605 In Intel processor with SSE4.2 supported, the processor will
606 support CRC32C implementation using hardware accelerated CRC32
607 instruction. This option will create 'crc32c-intel' module,
608 which will enable any routine to use the CRC32 instruction to
609 gain performance compared with software implementation.
610 Module will be crc32c-intel.
612 config CRYPTO_CRC32C_VPMSUM
613 tristate "CRC32c CRC algorithm (powerpc64)"
614 depends on PPC64 && ALTIVEC
618 CRC32c algorithm implemented using vector polynomial multiply-sum
619 (vpmsum) instructions, introduced in POWER8. Enable on POWER8
620 and newer processors for improved performance.
623 config CRYPTO_CRC32C_SPARC64
624 tristate "CRC32c CRC algorithm (SPARC64)"
629 CRC32c CRC algorithm implemented using sparc64 crypto instructions,
633 tristate "CRC32 CRC algorithm"
637 CRC-32-IEEE 802.3 cyclic redundancy-check algorithm.
638 Shash crypto api wrappers to crc32_le function.
640 config CRYPTO_CRC32_PCLMUL
641 tristate "CRC32 PCLMULQDQ hardware acceleration"
646 From Intel Westmere and AMD Bulldozer processor with SSE4.2
647 and PCLMULQDQ supported, the processor will support
648 CRC32 PCLMULQDQ implementation using hardware accelerated PCLMULQDQ
649 instruction. This option will create 'crc32-pclmul' module,
650 which will enable any routine to use the CRC-32-IEEE 802.3 checksum
651 and gain better performance as compared with the table implementation.
653 config CRYPTO_CRC32_MIPS
654 tristate "CRC32c and CRC32 CRC algorithm (MIPS)"
655 depends on MIPS_CRC_SUPPORT
658 CRC32c and CRC32 CRC algorithms implemented using mips crypto
659 instructions, when available.
663 tristate "xxHash hash algorithm"
667 xxHash non-cryptographic hash algorithm. Extremely fast, working at
668 speeds close to RAM limits.
670 config CRYPTO_BLAKE2B
671 tristate "BLAKE2b digest algorithm"
674 Implementation of cryptographic hash function BLAKE2b (or just BLAKE2),
675 optimized for 64bit platforms and can produce digests of any size
676 between 1 to 64. The keyed hash is also implemented.
678 This module provides the following algorithms:
685 See https://blake2.net for further information.
687 config CRYPTO_BLAKE2S_X86
688 bool "BLAKE2s digest algorithm (x86 accelerated version)"
689 depends on X86 && 64BIT
690 select CRYPTO_LIB_BLAKE2S_GENERIC
691 select CRYPTO_ARCH_HAVE_LIB_BLAKE2S
693 config CRYPTO_CRCT10DIF
694 tristate "CRCT10DIF algorithm"
697 CRC T10 Data Integrity Field computation is being cast as
698 a crypto transform. This allows for faster crc t10 diff
699 transforms to be used if they are available.
701 config CRYPTO_CRCT10DIF_PCLMUL
702 tristate "CRCT10DIF PCLMULQDQ hardware acceleration"
703 depends on X86 && 64BIT && CRC_T10DIF
706 For x86_64 processors with SSE4.2 and PCLMULQDQ supported,
707 CRC T10 DIF PCLMULQDQ computation can be hardware
708 accelerated PCLMULQDQ instruction. This option will create
709 'crct10dif-pclmul' module, which is faster when computing the
710 crct10dif checksum as compared with the generic table implementation.
712 config CRYPTO_CRCT10DIF_VPMSUM
713 tristate "CRC32T10DIF powerpc64 hardware acceleration"
714 depends on PPC64 && ALTIVEC && CRC_T10DIF
717 CRC10T10DIF algorithm implemented using vector polynomial
718 multiply-sum (vpmsum) instructions, introduced in POWER8. Enable on
719 POWER8 and newer processors for improved performance.
721 config CRYPTO_VPMSUM_TESTER
722 tristate "Powerpc64 vpmsum hardware acceleration tester"
723 depends on CRYPTO_CRCT10DIF_VPMSUM && CRYPTO_CRC32C_VPMSUM
725 Stress test for CRC32c and CRC-T10DIF algorithms implemented with
726 POWER8 vpmsum instructions.
727 Unless you are testing these algorithms, you don't need this.
730 tristate "GHASH hash function"
731 select CRYPTO_GF128MUL
734 GHASH is the hash function used in GCM (Galois/Counter Mode).
735 It is not a general-purpose cryptographic hash function.
737 config CRYPTO_POLY1305
738 tristate "Poly1305 authenticator algorithm"
740 select CRYPTO_LIB_POLY1305_GENERIC
742 Poly1305 authenticator algorithm, RFC7539.
744 Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein.
745 It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use
746 in IETF protocols. This is the portable C implementation of Poly1305.
748 config CRYPTO_POLY1305_X86_64
749 tristate "Poly1305 authenticator algorithm (x86_64/SSE2/AVX2)"
750 depends on X86 && 64BIT
751 select CRYPTO_LIB_POLY1305_GENERIC
752 select CRYPTO_ARCH_HAVE_LIB_POLY1305
754 Poly1305 authenticator algorithm, RFC7539.
756 Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein.
757 It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use
758 in IETF protocols. This is the x86_64 assembler implementation using SIMD
761 config CRYPTO_POLY1305_MIPS
762 tristate "Poly1305 authenticator algorithm (MIPS optimized)"
764 select CRYPTO_ARCH_HAVE_LIB_POLY1305
767 tristate "MD4 digest algorithm"
770 MD4 message digest algorithm (RFC1320).
773 tristate "MD5 digest algorithm"
776 MD5 message digest algorithm (RFC1321).
778 config CRYPTO_MD5_OCTEON
779 tristate "MD5 digest algorithm (OCTEON)"
780 depends on CPU_CAVIUM_OCTEON
784 MD5 message digest algorithm (RFC1321) implemented
785 using OCTEON crypto instructions, when available.
787 config CRYPTO_MD5_PPC
788 tristate "MD5 digest algorithm (PPC)"
792 MD5 message digest algorithm (RFC1321) implemented
795 config CRYPTO_MD5_SPARC64
796 tristate "MD5 digest algorithm (SPARC64)"
801 MD5 message digest algorithm (RFC1321) implemented
802 using sparc64 crypto instructions, when available.
804 config CRYPTO_MICHAEL_MIC
805 tristate "Michael MIC keyed digest algorithm"
808 Michael MIC is used for message integrity protection in TKIP
809 (IEEE 802.11i). This algorithm is required for TKIP, but it
810 should not be used for other purposes because of the weakness
814 tristate "RIPEMD-160 digest algorithm"
817 RIPEMD-160 (ISO/IEC 10118-3:2004).
819 RIPEMD-160 is a 160-bit cryptographic hash function. It is intended
820 to be used as a secure replacement for the 128-bit hash functions
821 MD4, MD5 and it's predecessor RIPEMD
822 (not to be confused with RIPEMD-128).
824 It's speed is comparable to SHA1 and there are no known attacks
827 Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
828 See <https://homes.esat.kuleuven.be/~bosselae/ripemd160.html>
831 tristate "SHA1 digest algorithm"
834 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
836 config CRYPTO_SHA1_SSSE3
837 tristate "SHA1 digest algorithm (SSSE3/AVX/AVX2/SHA-NI)"
838 depends on X86 && 64BIT
842 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
843 using Supplemental SSE3 (SSSE3) instructions or Advanced Vector
844 Extensions (AVX/AVX2) or SHA-NI(SHA Extensions New Instructions),
847 config CRYPTO_SHA256_SSSE3
848 tristate "SHA256 digest algorithm (SSSE3/AVX/AVX2/SHA-NI)"
849 depends on X86 && 64BIT
853 SHA-256 secure hash standard (DFIPS 180-2) implemented
854 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
855 Extensions version 1 (AVX1), or Advanced Vector Extensions
856 version 2 (AVX2) instructions, or SHA-NI (SHA Extensions New
857 Instructions) when available.
859 config CRYPTO_SHA512_SSSE3
860 tristate "SHA512 digest algorithm (SSSE3/AVX/AVX2)"
861 depends on X86 && 64BIT
865 SHA-512 secure hash standard (DFIPS 180-2) implemented
866 using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector
867 Extensions version 1 (AVX1), or Advanced Vector Extensions
868 version 2 (AVX2) instructions, when available.
870 config CRYPTO_SHA1_OCTEON
871 tristate "SHA1 digest algorithm (OCTEON)"
872 depends on CPU_CAVIUM_OCTEON
876 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
877 using OCTEON crypto instructions, when available.
879 config CRYPTO_SHA1_SPARC64
880 tristate "SHA1 digest algorithm (SPARC64)"
885 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
886 using sparc64 crypto instructions, when available.
888 config CRYPTO_SHA1_PPC
889 tristate "SHA1 digest algorithm (powerpc)"
892 This is the powerpc hardware accelerated implementation of the
893 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
895 config CRYPTO_SHA1_PPC_SPE
896 tristate "SHA1 digest algorithm (PPC SPE)"
897 depends on PPC && SPE
899 SHA-1 secure hash standard (DFIPS 180-4) implemented
900 using powerpc SPE SIMD instruction set.
903 tristate "SHA224 and SHA256 digest algorithm"
905 select CRYPTO_LIB_SHA256
907 SHA256 secure hash standard (DFIPS 180-2).
909 This version of SHA implements a 256 bit hash with 128 bits of
910 security against collision attacks.
912 This code also includes SHA-224, a 224 bit hash with 112 bits
913 of security against collision attacks.
915 config CRYPTO_SHA256_PPC_SPE
916 tristate "SHA224 and SHA256 digest algorithm (PPC SPE)"
917 depends on PPC && SPE
921 SHA224 and SHA256 secure hash standard (DFIPS 180-2)
922 implemented using powerpc SPE SIMD instruction set.
924 config CRYPTO_SHA256_OCTEON
925 tristate "SHA224 and SHA256 digest algorithm (OCTEON)"
926 depends on CPU_CAVIUM_OCTEON
930 SHA-256 secure hash standard (DFIPS 180-2) implemented
931 using OCTEON crypto instructions, when available.
933 config CRYPTO_SHA256_SPARC64
934 tristate "SHA224 and SHA256 digest algorithm (SPARC64)"
939 SHA-256 secure hash standard (DFIPS 180-2) implemented
940 using sparc64 crypto instructions, when available.
943 tristate "SHA384 and SHA512 digest algorithms"
946 SHA512 secure hash standard (DFIPS 180-2).
948 This version of SHA implements a 512 bit hash with 256 bits of
949 security against collision attacks.
951 This code also includes SHA-384, a 384 bit hash with 192 bits
952 of security against collision attacks.
954 config CRYPTO_SHA512_OCTEON
955 tristate "SHA384 and SHA512 digest algorithms (OCTEON)"
956 depends on CPU_CAVIUM_OCTEON
960 SHA-512 secure hash standard (DFIPS 180-2) implemented
961 using OCTEON crypto instructions, when available.
963 config CRYPTO_SHA512_SPARC64
964 tristate "SHA384 and SHA512 digest algorithm (SPARC64)"
969 SHA-512 secure hash standard (DFIPS 180-2) implemented
970 using sparc64 crypto instructions, when available.
973 tristate "SHA3 digest algorithm"
976 SHA-3 secure hash standard (DFIPS 202). It's based on
977 cryptographic sponge function family called Keccak.
980 http://keccak.noekeon.org/
983 tristate "SM3 digest algorithm"
986 SM3 secure hash function as defined by OSCCA GM/T 0004-2012 SM3).
987 It is part of the Chinese Commercial Cryptography suite.
990 http://www.oscca.gov.cn/UpFile/20101222141857786.pdf
991 https://datatracker.ietf.org/doc/html/draft-shen-sm3-hash
993 config CRYPTO_STREEBOG
994 tristate "Streebog Hash Function"
997 Streebog Hash Function (GOST R 34.11-2012, RFC 6986) is one of the Russian
998 cryptographic standard algorithms (called GOST algorithms).
999 This setting enables two hash algorithms with 256 and 512 bits output.
1002 https://tc26.ru/upload/iblock/fed/feddbb4d26b685903faa2ba11aea43f6.pdf
1003 https://tools.ietf.org/html/rfc6986
1006 tristate "Whirlpool digest algorithms"
1009 Whirlpool hash algorithm 512, 384 and 256-bit hashes
1011 Whirlpool-512 is part of the NESSIE cryptographic primitives.
1012 Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard
1015 <http://www.larc.usp.br/~pbarreto/WhirlpoolPage.html>
1017 config CRYPTO_GHASH_CLMUL_NI_INTEL
1018 tristate "GHASH hash function (CLMUL-NI accelerated)"
1019 depends on X86 && 64BIT
1020 select CRYPTO_CRYPTD
1022 This is the x86_64 CLMUL-NI accelerated implementation of
1023 GHASH, the hash function used in GCM (Galois/Counter mode).
1028 tristate "AES cipher algorithms"
1029 select CRYPTO_ALGAPI
1030 select CRYPTO_LIB_AES
1032 AES cipher algorithms (FIPS-197). AES uses the Rijndael
1035 Rijndael appears to be consistently a very good performer in
1036 both hardware and software across a wide range of computing
1037 environments regardless of its use in feedback or non-feedback
1038 modes. Its key setup time is excellent, and its key agility is
1039 good. Rijndael's very low memory requirements make it very well
1040 suited for restricted-space environments, in which it also
1041 demonstrates excellent performance. Rijndael's operations are
1042 among the easiest to defend against power and timing attacks.
1044 The AES specifies three key sizes: 128, 192 and 256 bits
1046 See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information.
1048 config CRYPTO_AES_TI
1049 tristate "Fixed time AES cipher"
1050 select CRYPTO_ALGAPI
1051 select CRYPTO_LIB_AES
1053 This is a generic implementation of AES that attempts to eliminate
1054 data dependent latencies as much as possible without affecting
1055 performance too much. It is intended for use by the generic CCM
1056 and GCM drivers, and other CTR or CMAC/XCBC based modes that rely
1057 solely on encryption (although decryption is supported as well, but
1058 with a more dramatic performance hit)
1060 Instead of using 16 lookup tables of 1 KB each, (8 for encryption and
1061 8 for decryption), this implementation only uses just two S-boxes of
1062 256 bytes each, and attempts to eliminate data dependent latencies by
1063 prefetching the entire table into the cache at the start of each
1064 block. Interrupts are also disabled to avoid races where cachelines
1065 are evicted when the CPU is interrupted to do something else.
1067 config CRYPTO_AES_NI_INTEL
1068 tristate "AES cipher algorithms (AES-NI)"
1071 select CRYPTO_LIB_AES
1072 select CRYPTO_ALGAPI
1073 select CRYPTO_SKCIPHER
1076 Use Intel AES-NI instructions for AES algorithm.
1078 AES cipher algorithms (FIPS-197). AES uses the Rijndael
1081 Rijndael appears to be consistently a very good performer in
1082 both hardware and software across a wide range of computing
1083 environments regardless of its use in feedback or non-feedback
1084 modes. Its key setup time is excellent, and its key agility is
1085 good. Rijndael's very low memory requirements make it very well
1086 suited for restricted-space environments, in which it also
1087 demonstrates excellent performance. Rijndael's operations are
1088 among the easiest to defend against power and timing attacks.
1090 The AES specifies three key sizes: 128, 192 and 256 bits
1092 See <http://csrc.nist.gov/encryption/aes/> for more information.
1094 In addition to AES cipher algorithm support, the acceleration
1095 for some popular block cipher mode is supported too, including
1096 ECB, CBC, LRW, XTS. The 64 bit version has additional
1097 acceleration for CTR.
1099 config CRYPTO_AES_SPARC64
1100 tristate "AES cipher algorithms (SPARC64)"
1102 select CRYPTO_SKCIPHER
1104 Use SPARC64 crypto opcodes for AES algorithm.
1106 AES cipher algorithms (FIPS-197). AES uses the Rijndael
1109 Rijndael appears to be consistently a very good performer in
1110 both hardware and software across a wide range of computing
1111 environments regardless of its use in feedback or non-feedback
1112 modes. Its key setup time is excellent, and its key agility is
1113 good. Rijndael's very low memory requirements make it very well
1114 suited for restricted-space environments, in which it also
1115 demonstrates excellent performance. Rijndael's operations are
1116 among the easiest to defend against power and timing attacks.
1118 The AES specifies three key sizes: 128, 192 and 256 bits
1120 See <http://csrc.nist.gov/encryption/aes/> for more information.
1122 In addition to AES cipher algorithm support, the acceleration
1123 for some popular block cipher mode is supported too, including
1126 config CRYPTO_AES_PPC_SPE
1127 tristate "AES cipher algorithms (PPC SPE)"
1128 depends on PPC && SPE
1129 select CRYPTO_SKCIPHER
1131 AES cipher algorithms (FIPS-197). Additionally the acceleration
1132 for popular block cipher modes ECB, CBC, CTR and XTS is supported.
1133 This module should only be used for low power (router) devices
1134 without hardware AES acceleration (e.g. caam crypto). It reduces the
1135 size of the AES tables from 16KB to 8KB + 256 bytes and mitigates
1136 timining attacks. Nevertheless it might be not as secure as other
1137 architecture specific assembler implementations that work on 1KB
1138 tables or 256 bytes S-boxes.
1140 config CRYPTO_ANUBIS
1141 tristate "Anubis cipher algorithm"
1142 depends on CRYPTO_USER_API_ENABLE_OBSOLETE
1143 select CRYPTO_ALGAPI
1145 Anubis cipher algorithm.
1147 Anubis is a variable key length cipher which can use keys from
1148 128 bits to 320 bits in length. It was evaluated as a entrant
1149 in the NESSIE competition.
1152 <https://www.cosic.esat.kuleuven.be/nessie/reports/>
1153 <http://www.larc.usp.br/~pbarreto/AnubisPage.html>
1156 tristate "ARC4 cipher algorithm"
1157 depends on CRYPTO_USER_API_ENABLE_OBSOLETE
1158 select CRYPTO_SKCIPHER
1159 select CRYPTO_LIB_ARC4
1161 ARC4 cipher algorithm.
1163 ARC4 is a stream cipher using keys ranging from 8 bits to 2048
1164 bits in length. This algorithm is required for driver-based
1165 WEP, but it should not be for other purposes because of the
1166 weakness of the algorithm.
1168 config CRYPTO_BLOWFISH
1169 tristate "Blowfish cipher algorithm"
1170 select CRYPTO_ALGAPI
1171 select CRYPTO_BLOWFISH_COMMON
1173 Blowfish cipher algorithm, by Bruce Schneier.
1175 This is a variable key length cipher which can use keys from 32
1176 bits to 448 bits in length. It's fast, simple and specifically
1177 designed for use on "large microprocessors".
1180 <https://www.schneier.com/blowfish.html>
1182 config CRYPTO_BLOWFISH_COMMON
1185 Common parts of the Blowfish cipher algorithm shared by the
1186 generic c and the assembler implementations.
1189 <https://www.schneier.com/blowfish.html>
1191 config CRYPTO_BLOWFISH_X86_64
1192 tristate "Blowfish cipher algorithm (x86_64)"
1193 depends on X86 && 64BIT
1194 select CRYPTO_SKCIPHER
1195 select CRYPTO_BLOWFISH_COMMON
1198 Blowfish cipher algorithm (x86_64), by Bruce Schneier.
1200 This is a variable key length cipher which can use keys from 32
1201 bits to 448 bits in length. It's fast, simple and specifically
1202 designed for use on "large microprocessors".
1205 <https://www.schneier.com/blowfish.html>
1207 config CRYPTO_CAMELLIA
1208 tristate "Camellia cipher algorithms"
1209 select CRYPTO_ALGAPI
1211 Camellia cipher algorithms module.
1213 Camellia is a symmetric key block cipher developed jointly
1214 at NTT and Mitsubishi Electric Corporation.
1216 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1219 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1221 config CRYPTO_CAMELLIA_X86_64
1222 tristate "Camellia cipher algorithm (x86_64)"
1223 depends on X86 && 64BIT
1224 select CRYPTO_SKCIPHER
1227 Camellia cipher algorithm module (x86_64).
1229 Camellia is a symmetric key block cipher developed jointly
1230 at NTT and Mitsubishi Electric Corporation.
1232 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1235 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1237 config CRYPTO_CAMELLIA_AESNI_AVX_X86_64
1238 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX)"
1239 depends on X86 && 64BIT
1240 select CRYPTO_SKCIPHER
1241 select CRYPTO_CAMELLIA_X86_64
1245 Camellia cipher algorithm module (x86_64/AES-NI/AVX).
1247 Camellia is a symmetric key block cipher developed jointly
1248 at NTT and Mitsubishi Electric Corporation.
1250 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1253 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1255 config CRYPTO_CAMELLIA_AESNI_AVX2_X86_64
1256 tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX2)"
1257 depends on X86 && 64BIT
1258 select CRYPTO_CAMELLIA_AESNI_AVX_X86_64
1260 Camellia cipher algorithm module (x86_64/AES-NI/AVX2).
1262 Camellia is a symmetric key block cipher developed jointly
1263 at NTT and Mitsubishi Electric Corporation.
1265 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1268 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1270 config CRYPTO_CAMELLIA_SPARC64
1271 tristate "Camellia cipher algorithm (SPARC64)"
1273 select CRYPTO_ALGAPI
1274 select CRYPTO_SKCIPHER
1276 Camellia cipher algorithm module (SPARC64).
1278 Camellia is a symmetric key block cipher developed jointly
1279 at NTT and Mitsubishi Electric Corporation.
1281 The Camellia specifies three key sizes: 128, 192 and 256 bits.
1284 <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html>
1286 config CRYPTO_CAST_COMMON
1289 Common parts of the CAST cipher algorithms shared by the
1290 generic c and the assembler implementations.
1293 tristate "CAST5 (CAST-128) cipher algorithm"
1294 select CRYPTO_ALGAPI
1295 select CRYPTO_CAST_COMMON
1297 The CAST5 encryption algorithm (synonymous with CAST-128) is
1298 described in RFC2144.
1300 config CRYPTO_CAST5_AVX_X86_64
1301 tristate "CAST5 (CAST-128) cipher algorithm (x86_64/AVX)"
1302 depends on X86 && 64BIT
1303 select CRYPTO_SKCIPHER
1305 select CRYPTO_CAST_COMMON
1309 The CAST5 encryption algorithm (synonymous with CAST-128) is
1310 described in RFC2144.
1312 This module provides the Cast5 cipher algorithm that processes
1313 sixteen blocks parallel using the AVX instruction set.
1316 tristate "CAST6 (CAST-256) cipher algorithm"
1317 select CRYPTO_ALGAPI
1318 select CRYPTO_CAST_COMMON
1320 The CAST6 encryption algorithm (synonymous with CAST-256) is
1321 described in RFC2612.
1323 config CRYPTO_CAST6_AVX_X86_64
1324 tristate "CAST6 (CAST-256) cipher algorithm (x86_64/AVX)"
1325 depends on X86 && 64BIT
1326 select CRYPTO_SKCIPHER
1328 select CRYPTO_CAST_COMMON
1333 The CAST6 encryption algorithm (synonymous with CAST-256) is
1334 described in RFC2612.
1336 This module provides the Cast6 cipher algorithm that processes
1337 eight blocks parallel using the AVX instruction set.
1340 tristate "DES and Triple DES EDE cipher algorithms"
1341 select CRYPTO_ALGAPI
1342 select CRYPTO_LIB_DES
1344 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
1346 config CRYPTO_DES_SPARC64
1347 tristate "DES and Triple DES EDE cipher algorithms (SPARC64)"
1349 select CRYPTO_ALGAPI
1350 select CRYPTO_LIB_DES
1351 select CRYPTO_SKCIPHER
1353 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3),
1354 optimized using SPARC64 crypto opcodes.
1356 config CRYPTO_DES3_EDE_X86_64
1357 tristate "Triple DES EDE cipher algorithm (x86-64)"
1358 depends on X86 && 64BIT
1359 select CRYPTO_SKCIPHER
1360 select CRYPTO_LIB_DES
1363 Triple DES EDE (FIPS 46-3) algorithm.
1365 This module provides implementation of the Triple DES EDE cipher
1366 algorithm that is optimized for x86-64 processors. Two versions of
1367 algorithm are provided; regular processing one input block and
1368 one that processes three blocks parallel.
1370 config CRYPTO_FCRYPT
1371 tristate "FCrypt cipher algorithm"
1372 select CRYPTO_ALGAPI
1373 select CRYPTO_SKCIPHER
1375 FCrypt algorithm used by RxRPC.
1377 config CRYPTO_KHAZAD
1378 tristate "Khazad cipher algorithm"
1379 depends on CRYPTO_USER_API_ENABLE_OBSOLETE
1380 select CRYPTO_ALGAPI
1382 Khazad cipher algorithm.
1384 Khazad was a finalist in the initial NESSIE competition. It is
1385 an algorithm optimized for 64-bit processors with good performance
1386 on 32-bit processors. Khazad uses an 128 bit key size.
1389 <http://www.larc.usp.br/~pbarreto/KhazadPage.html>
1391 config CRYPTO_CHACHA20
1392 tristate "ChaCha stream cipher algorithms"
1393 select CRYPTO_LIB_CHACHA_GENERIC
1394 select CRYPTO_SKCIPHER
1396 The ChaCha20, XChaCha20, and XChaCha12 stream cipher algorithms.
1398 ChaCha20 is a 256-bit high-speed stream cipher designed by Daniel J.
1399 Bernstein and further specified in RFC7539 for use in IETF protocols.
1400 This is the portable C implementation of ChaCha20. See also:
1401 <https://cr.yp.to/chacha/chacha-20080128.pdf>
1403 XChaCha20 is the application of the XSalsa20 construction to ChaCha20
1404 rather than to Salsa20. XChaCha20 extends ChaCha20's nonce length
1405 from 64 bits (or 96 bits using the RFC7539 convention) to 192 bits,
1406 while provably retaining ChaCha20's security. See also:
1407 <https://cr.yp.to/snuffle/xsalsa-20081128.pdf>
1409 XChaCha12 is XChaCha20 reduced to 12 rounds, with correspondingly
1410 reduced security margin but increased performance. It can be needed
1411 in some performance-sensitive scenarios.
1413 config CRYPTO_CHACHA20_X86_64
1414 tristate "ChaCha stream cipher algorithms (x86_64/SSSE3/AVX2/AVX-512VL)"
1415 depends on X86 && 64BIT
1416 select CRYPTO_SKCIPHER
1417 select CRYPTO_LIB_CHACHA_GENERIC
1418 select CRYPTO_ARCH_HAVE_LIB_CHACHA
1420 SSSE3, AVX2, and AVX-512VL optimized implementations of the ChaCha20,
1421 XChaCha20, and XChaCha12 stream ciphers.
1423 config CRYPTO_CHACHA_MIPS
1424 tristate "ChaCha stream cipher algorithms (MIPS 32r2 optimized)"
1425 depends on CPU_MIPS32_R2
1426 select CRYPTO_SKCIPHER
1427 select CRYPTO_ARCH_HAVE_LIB_CHACHA
1430 tristate "SEED cipher algorithm"
1431 depends on CRYPTO_USER_API_ENABLE_OBSOLETE
1432 select CRYPTO_ALGAPI
1434 SEED cipher algorithm (RFC4269).
1436 SEED is a 128-bit symmetric key block cipher that has been
1437 developed by KISA (Korea Information Security Agency) as a
1438 national standard encryption algorithm of the Republic of Korea.
1439 It is a 16 round block cipher with the key size of 128 bit.
1442 <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>
1444 config CRYPTO_SERPENT
1445 tristate "Serpent cipher algorithm"
1446 select CRYPTO_ALGAPI
1448 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1450 Keys are allowed to be from 0 to 256 bits in length, in steps
1454 <https://www.cl.cam.ac.uk/~rja14/serpent.html>
1456 config CRYPTO_SERPENT_SSE2_X86_64
1457 tristate "Serpent cipher algorithm (x86_64/SSE2)"
1458 depends on X86 && 64BIT
1459 select CRYPTO_SKCIPHER
1460 select CRYPTO_SERPENT
1464 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1466 Keys are allowed to be from 0 to 256 bits in length, in steps
1469 This module provides Serpent cipher algorithm that processes eight
1470 blocks parallel using SSE2 instruction set.
1473 <https://www.cl.cam.ac.uk/~rja14/serpent.html>
1475 config CRYPTO_SERPENT_SSE2_586
1476 tristate "Serpent cipher algorithm (i586/SSE2)"
1477 depends on X86 && !64BIT
1478 select CRYPTO_SKCIPHER
1479 select CRYPTO_SERPENT
1483 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1485 Keys are allowed to be from 0 to 256 bits in length, in steps
1488 This module provides Serpent cipher algorithm that processes four
1489 blocks parallel using SSE2 instruction set.
1492 <https://www.cl.cam.ac.uk/~rja14/serpent.html>
1494 config CRYPTO_SERPENT_AVX_X86_64
1495 tristate "Serpent cipher algorithm (x86_64/AVX)"
1496 depends on X86 && 64BIT
1497 select CRYPTO_SKCIPHER
1498 select CRYPTO_SERPENT
1503 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1505 Keys are allowed to be from 0 to 256 bits in length, in steps
1508 This module provides the Serpent cipher algorithm that processes
1509 eight blocks parallel using the AVX instruction set.
1512 <https://www.cl.cam.ac.uk/~rja14/serpent.html>
1514 config CRYPTO_SERPENT_AVX2_X86_64
1515 tristate "Serpent cipher algorithm (x86_64/AVX2)"
1516 depends on X86 && 64BIT
1517 select CRYPTO_SERPENT_AVX_X86_64
1519 Serpent cipher algorithm, by Anderson, Biham & Knudsen.
1521 Keys are allowed to be from 0 to 256 bits in length, in steps
1524 This module provides Serpent cipher algorithm that processes 16
1525 blocks parallel using AVX2 instruction set.
1528 <https://www.cl.cam.ac.uk/~rja14/serpent.html>
1531 tristate "SM4 cipher algorithm"
1532 select CRYPTO_ALGAPI
1533 select CRYPTO_LIB_SM4
1535 SM4 cipher algorithms (OSCCA GB/T 32907-2016).
1537 SM4 (GBT.32907-2016) is a cryptographic standard issued by the
1538 Organization of State Commercial Administration of China (OSCCA)
1539 as an authorized cryptographic algorithms for the use within China.
1541 SMS4 was originally created for use in protecting wireless
1542 networks, and is mandated in the Chinese National Standard for
1543 Wireless LAN WAPI (Wired Authentication and Privacy Infrastructure)
1546 The latest SM4 standard (GBT.32907-2016) was proposed by OSCCA and
1547 standardized through TC 260 of the Standardization Administration
1548 of the People's Republic of China (SAC).
1550 The input, output, and key of SMS4 are each 128 bits.
1552 See also: <https://eprint.iacr.org/2008/329.pdf>
1556 config CRYPTO_SM4_AESNI_AVX_X86_64
1557 tristate "SM4 cipher algorithm (x86_64/AES-NI/AVX)"
1558 depends on X86 && 64BIT
1559 select CRYPTO_SKCIPHER
1561 select CRYPTO_ALGAPI
1562 select CRYPTO_LIB_SM4
1564 SM4 cipher algorithms (OSCCA GB/T 32907-2016) (x86_64/AES-NI/AVX).
1566 SM4 (GBT.32907-2016) is a cryptographic standard issued by the
1567 Organization of State Commercial Administration of China (OSCCA)
1568 as an authorized cryptographic algorithms for the use within China.
1570 This is SM4 optimized implementation using AES-NI/AVX/x86_64
1571 instruction set for block cipher. Through two affine transforms,
1572 we can use the AES S-Box to simulate the SM4 S-Box to achieve the
1573 effect of instruction acceleration.
1577 config CRYPTO_SM4_AESNI_AVX2_X86_64
1578 tristate "SM4 cipher algorithm (x86_64/AES-NI/AVX2)"
1579 depends on X86 && 64BIT
1580 select CRYPTO_SKCIPHER
1582 select CRYPTO_ALGAPI
1583 select CRYPTO_LIB_SM4
1584 select CRYPTO_SM4_AESNI_AVX_X86_64
1586 SM4 cipher algorithms (OSCCA GB/T 32907-2016) (x86_64/AES-NI/AVX2).
1588 SM4 (GBT.32907-2016) is a cryptographic standard issued by the
1589 Organization of State Commercial Administration of China (OSCCA)
1590 as an authorized cryptographic algorithms for the use within China.
1592 This is SM4 optimized implementation using AES-NI/AVX2/x86_64
1593 instruction set for block cipher. Through two affine transforms,
1594 we can use the AES S-Box to simulate the SM4 S-Box to achieve the
1595 effect of instruction acceleration.
1600 tristate "TEA, XTEA and XETA cipher algorithms"
1601 depends on CRYPTO_USER_API_ENABLE_OBSOLETE
1602 select CRYPTO_ALGAPI
1604 TEA cipher algorithm.
1606 Tiny Encryption Algorithm is a simple cipher that uses
1607 many rounds for security. It is very fast and uses
1610 Xtendend Tiny Encryption Algorithm is a modification to
1611 the TEA algorithm to address a potential key weakness
1612 in the TEA algorithm.
1614 Xtendend Encryption Tiny Algorithm is a mis-implementation
1615 of the XTEA algorithm for compatibility purposes.
1617 config CRYPTO_TWOFISH
1618 tristate "Twofish cipher algorithm"
1619 select CRYPTO_ALGAPI
1620 select CRYPTO_TWOFISH_COMMON
1622 Twofish cipher algorithm.
1624 Twofish was submitted as an AES (Advanced Encryption Standard)
1625 candidate cipher by researchers at CounterPane Systems. It is a
1626 16 round block cipher supporting key sizes of 128, 192, and 256
1630 <https://www.schneier.com/twofish.html>
1632 config CRYPTO_TWOFISH_COMMON
1635 Common parts of the Twofish cipher algorithm shared by the
1636 generic c and the assembler implementations.
1638 config CRYPTO_TWOFISH_586
1639 tristate "Twofish cipher algorithms (i586)"
1640 depends on (X86 || UML_X86) && !64BIT
1641 select CRYPTO_ALGAPI
1642 select CRYPTO_TWOFISH_COMMON
1645 Twofish cipher algorithm.
1647 Twofish was submitted as an AES (Advanced Encryption Standard)
1648 candidate cipher by researchers at CounterPane Systems. It is a
1649 16 round block cipher supporting key sizes of 128, 192, and 256
1653 <https://www.schneier.com/twofish.html>
1655 config CRYPTO_TWOFISH_X86_64
1656 tristate "Twofish cipher algorithm (x86_64)"
1657 depends on (X86 || UML_X86) && 64BIT
1658 select CRYPTO_ALGAPI
1659 select CRYPTO_TWOFISH_COMMON
1662 Twofish cipher algorithm (x86_64).
1664 Twofish was submitted as an AES (Advanced Encryption Standard)
1665 candidate cipher by researchers at CounterPane Systems. It is a
1666 16 round block cipher supporting key sizes of 128, 192, and 256
1670 <https://www.schneier.com/twofish.html>
1672 config CRYPTO_TWOFISH_X86_64_3WAY
1673 tristate "Twofish cipher algorithm (x86_64, 3-way parallel)"
1674 depends on X86 && 64BIT
1675 select CRYPTO_SKCIPHER
1676 select CRYPTO_TWOFISH_COMMON
1677 select CRYPTO_TWOFISH_X86_64
1679 Twofish cipher algorithm (x86_64, 3-way parallel).
1681 Twofish was submitted as an AES (Advanced Encryption Standard)
1682 candidate cipher by researchers at CounterPane Systems. It is a
1683 16 round block cipher supporting key sizes of 128, 192, and 256
1686 This module provides Twofish cipher algorithm that processes three
1687 blocks parallel, utilizing resources of out-of-order CPUs better.
1690 <https://www.schneier.com/twofish.html>
1692 config CRYPTO_TWOFISH_AVX_X86_64
1693 tristate "Twofish cipher algorithm (x86_64/AVX)"
1694 depends on X86 && 64BIT
1695 select CRYPTO_SKCIPHER
1697 select CRYPTO_TWOFISH_COMMON
1698 select CRYPTO_TWOFISH_X86_64
1699 select CRYPTO_TWOFISH_X86_64_3WAY
1702 Twofish cipher algorithm (x86_64/AVX).
1704 Twofish was submitted as an AES (Advanced Encryption Standard)
1705 candidate cipher by researchers at CounterPane Systems. It is a
1706 16 round block cipher supporting key sizes of 128, 192, and 256
1709 This module provides the Twofish cipher algorithm that processes
1710 eight blocks parallel using the AVX Instruction Set.
1713 <https://www.schneier.com/twofish.html>
1715 comment "Compression"
1717 config CRYPTO_DEFLATE
1718 tristate "Deflate compression algorithm"
1719 select CRYPTO_ALGAPI
1720 select CRYPTO_ACOMP2
1724 This is the Deflate algorithm (RFC1951), specified for use in
1725 IPSec with the IPCOMP protocol (RFC3173, RFC2394).
1727 You will most probably want this if using IPSec.
1730 tristate "LZO compression algorithm"
1731 select CRYPTO_ALGAPI
1732 select CRYPTO_ACOMP2
1734 select LZO_DECOMPRESS
1736 This is the LZO algorithm.
1739 tristate "842 compression algorithm"
1740 select CRYPTO_ALGAPI
1741 select CRYPTO_ACOMP2
1743 select 842_DECOMPRESS
1745 This is the 842 algorithm.
1748 tristate "LZ4 compression algorithm"
1749 select CRYPTO_ALGAPI
1750 select CRYPTO_ACOMP2
1752 select LZ4_DECOMPRESS
1754 This is the LZ4 algorithm.
1757 tristate "LZ4HC compression algorithm"
1758 select CRYPTO_ALGAPI
1759 select CRYPTO_ACOMP2
1760 select LZ4HC_COMPRESS
1761 select LZ4_DECOMPRESS
1763 This is the LZ4 high compression mode algorithm.
1766 tristate "Zstd compression algorithm"
1767 select CRYPTO_ALGAPI
1768 select CRYPTO_ACOMP2
1769 select ZSTD_COMPRESS
1770 select ZSTD_DECOMPRESS
1772 This is the zstd algorithm.
1774 comment "Random Number Generation"
1776 config CRYPTO_ANSI_CPRNG
1777 tristate "Pseudo Random Number Generation for Cryptographic modules"
1781 This option enables the generic pseudo random number generator
1782 for cryptographic modules. Uses the Algorithm specified in
1783 ANSI X9.31 A.2.4. Note that this option must be enabled if
1784 CRYPTO_FIPS is selected
1786 menuconfig CRYPTO_DRBG_MENU
1787 tristate "NIST SP800-90A DRBG"
1789 NIST SP800-90A compliant DRBG. In the following submenu, one or
1790 more of the DRBG types must be selected.
1794 config CRYPTO_DRBG_HMAC
1798 select CRYPTO_SHA512
1800 config CRYPTO_DRBG_HASH
1801 bool "Enable Hash DRBG"
1802 select CRYPTO_SHA256
1804 Enable the Hash DRBG variant as defined in NIST SP800-90A.
1806 config CRYPTO_DRBG_CTR
1807 bool "Enable CTR DRBG"
1811 Enable the CTR DRBG variant as defined in NIST SP800-90A.
1815 default CRYPTO_DRBG_MENU
1817 select CRYPTO_JITTERENTROPY
1819 endif # if CRYPTO_DRBG_MENU
1821 config CRYPTO_JITTERENTROPY
1822 tristate "Jitterentropy Non-Deterministic Random Number Generator"
1825 The Jitterentropy RNG is a noise that is intended
1826 to provide seed to another RNG. The RNG does not
1827 perform any cryptographic whitening of the generated
1828 random numbers. This Jitterentropy RNG registers with
1829 the kernel crypto API and can be used by any caller.
1831 config CRYPTO_USER_API
1834 config CRYPTO_USER_API_HASH
1835 tristate "User-space interface for hash algorithms"
1838 select CRYPTO_USER_API
1840 This option enables the user-spaces interface for hash
1843 config CRYPTO_USER_API_SKCIPHER
1844 tristate "User-space interface for symmetric key cipher algorithms"
1846 select CRYPTO_SKCIPHER
1847 select CRYPTO_USER_API
1849 This option enables the user-spaces interface for symmetric
1850 key cipher algorithms.
1852 config CRYPTO_USER_API_RNG
1853 tristate "User-space interface for random number generator algorithms"
1856 select CRYPTO_USER_API
1858 This option enables the user-spaces interface for random
1859 number generator algorithms.
1861 config CRYPTO_USER_API_RNG_CAVP
1862 bool "Enable CAVP testing of DRBG"
1863 depends on CRYPTO_USER_API_RNG && CRYPTO_DRBG
1865 This option enables extra API for CAVP testing via the user-space
1866 interface: resetting of DRBG entropy, and providing Additional Data.
1867 This should only be enabled for CAVP testing. You should say
1868 no unless you know what this is.
1870 config CRYPTO_USER_API_AEAD
1871 tristate "User-space interface for AEAD cipher algorithms"
1874 select CRYPTO_SKCIPHER
1876 select CRYPTO_USER_API
1878 This option enables the user-spaces interface for AEAD
1881 config CRYPTO_USER_API_ENABLE_OBSOLETE
1882 bool "Enable obsolete cryptographic algorithms for userspace"
1883 depends on CRYPTO_USER_API
1886 Allow obsolete cryptographic algorithms to be selected that have
1887 already been phased out from internal use by the kernel, and are
1888 only useful for userspace clients that still rely on them.
1891 bool "Crypto usage statistics for User-space"
1892 depends on CRYPTO_USER
1894 This option enables the gathering of crypto stats.
1896 - encrypt/decrypt size and numbers of symmeric operations
1897 - compress/decompress size and numbers of compress operations
1898 - size and numbers of hash operations
1899 - encrypt/decrypt/sign/verify numbers for asymmetric operations
1900 - generate/seed numbers for rng operations
1902 config CRYPTO_HASH_INFO
1905 source "drivers/crypto/Kconfig"
1906 source "crypto/asymmetric_keys/Kconfig"
1907 source "certs/Kconfig"