CONFIG_CRYPTO Cryptographic API
- Off
- Module
- Built in
This option provides the core Cryptographic API.
- Selects
CRYPTO_LIB_UTILS
If CRYPTO
Crypto core or helper
CONFIG_CRYPTO_FIPS FIPS 200 compliance
This option enables the fips boot option which is required if you want the system to operate in a FIPS 200 certification. You should say no unless you know what this is.
- Depends on
CRYPTO && CRYPTO_DRBG=y && CRYPTO_SELFTESTS && (MODULE_SIG || !)
If CRYPTO_FIPS
CONFIG_CRYPTO_FIPS_NAME FIPS Module Name
This option sets the FIPS Module name reported by the Crypto API via the /proc/sys/crypto/fips_name file.
- Depends on
CRYPTO && CRYPTO_FIPS
CONFIG_CRYPTO_FIPS_CUSTOM_VERSION Use Custom FIPS Module Version
- Depends on
CRYPTO && CRYPTO_FIPS
If CRYPTO_FIPS_CUSTOM_VERSION
CONFIG_CRYPTO_FIPS_VERSION FIPS Module Version
This option provides the ability to override the FIPS Module Version. By default the KERNELRELEASE value is used.
- Depends on
CRYPTO && CRYPTO_FIPS_CUSTOM_VERSION
CONFIG_CRYPTO_ALGAPI
- Off
- Module
- Built in
This option provides the API for cryptographic algorithms.
- Selects
CRYPTO_ALGAPI2 if CRYPTO
CONFIG_CRYPTO_ALGAPI2
- Off
- Module
- Built in
CONFIG_CRYPTO_AEAD
- Off
- Module
- Built in
- Selects
CRYPTO_AEAD2 if CRYPTO - Selects
CRYPTO_ALGAPI if CRYPTO
CONFIG_CRYPTO_AEAD2
- Off
- Module
- Built in
- Selects
CRYPTO_ALGAPI2 if CRYPTO
CONFIG_CRYPTO_SIG
- Off
- Module
- Built in
- Selects
CRYPTO_SIG2 if CRYPTO - Selects
CRYPTO_ALGAPI if CRYPTO
CONFIG_CRYPTO_SIG2
- Off
- Module
- Built in
- Selects
CRYPTO_ALGAPI2 if CRYPTO
CONFIG_CRYPTO_SKCIPHER
- Off
- Module
- Built in
- Selects
CRYPTO_SKCIPHER2 if CRYPTO - Selects
CRYPTO_ALGAPI if CRYPTO - Selects
CRYPTO_ECB if CRYPTO
CONFIG_CRYPTO_SKCIPHER2
- Off
- Module
- Built in
- Selects
CRYPTO_ALGAPI2 if CRYPTO
CONFIG_CRYPTO_HASH
- Off
- Module
- Built in
- Selects
CRYPTO_HASH2 if CRYPTO - Selects
CRYPTO_ALGAPI if CRYPTO
CONFIG_CRYPTO_HASH2
- Off
- Module
- Built in
- Selects
CRYPTO_ALGAPI2 if CRYPTO
CONFIG_CRYPTO_RNG
- Off
- Module
- Built in
- Selects
CRYPTO_RNG2 if CRYPTO - Selects
CRYPTO_ALGAPI if CRYPTO
CONFIG_CRYPTO_RNG2
- Off
- Module
- Built in
- Selects
CRYPTO_ALGAPI2 if CRYPTO
CONFIG_CRYPTO_AKCIPHER2
- Off
- Module
- Built in
- Selects
CRYPTO_ALGAPI2 if CRYPTO
CONFIG_CRYPTO_AKCIPHER
- Off
- Module
- Built in
- Selects
CRYPTO_AKCIPHER2 if CRYPTO - Selects
CRYPTO_ALGAPI if CRYPTO
CONFIG_CRYPTO_KPP2
- Off
- Module
- Built in
- Selects
CRYPTO_ALGAPI2 if CRYPTO
CONFIG_CRYPTO_KPP
- Off
- Module
- Built in
- Selects
CRYPTO_ALGAPI if CRYPTO - Selects
CRYPTO_KPP2 if CRYPTO
CONFIG_CRYPTO_ACOMP2
- Off
- Module
- Built in
- Selects
CRYPTO_ALGAPI2 if CRYPTO - Selects
SGL_ALLOC if CRYPTO
CONFIG_CRYPTO_ACOMP
- Off
- Module
- Built in
- Selects
CRYPTO_ALGAPI if CRYPTO - Selects
CRYPTO_ACOMP2 if CRYPTO
CONFIG_CRYPTO_MANAGER
- Off
- Module
- Built in
This provides the support for instantiating templates such as cbc(aes), and the support for the crypto self-tests.
- Selects
CRYPTO_MANAGER2 if CRYPTO
CONFIG_CRYPTO_MANAGER2
- Off
- Module
- Built in
- Selects
CRYPTO_ACOMP2 if CRYPTO && CRYPTO_SELFTESTS - Selects
CRYPTO_AEAD2 if CRYPTO && CRYPTO_SELFTESTS - Selects
CRYPTO_AKCIPHER2 if CRYPTO && CRYPTO_SELFTESTS - Selects
CRYPTO_SIG2 if CRYPTO && CRYPTO_SELFTESTS - Selects
CRYPTO_HASH2 if CRYPTO && CRYPTO_SELFTESTS - Selects
CRYPTO_KPP2 if CRYPTO && CRYPTO_SELFTESTS - Selects
CRYPTO_RNG2 if CRYPTO && CRYPTO_SELFTESTS - Selects
CRYPTO_SKCIPHER2 if CRYPTO && CRYPTO_SELFTESTS
CONFIG_CRYPTO_USER Userspace cryptographic algorithm configuration
- Off
- Module
- Built in
Userspace configuration for cryptographic instantiations such as cbc(aes).
- Depends on
CRYPTO && NET - Selects
CRYPTO_MANAGER if CRYPTO && NET - Selects
CRYPTO_RNG if CRYPTO && NET
CONFIG_CRYPTO_SELFTESTS Enable cryptographic self-tests
Enable the cryptographic self-tests.
The cryptographic self-tests run at boot time, or at algorithm registration time if algorithms are dynamically loaded later.
There are two main use cases for these tests:
- Development and pre-release testing. In this case, also enable CRYPTO_SELFTESTS_FULL to get the full set of tests. All crypto code in the kernel is expected to pass the full set of tests.
- Production kernels, to help prevent buggy drivers from being used and/or meet FIPS 140-3 pre-operational testing requirements. In this case, enable CRYPTO_SELFTESTS but not CRYPTO_SELFTESTS_FULL.
If CRYPTO_SELFTESTS
CONFIG_CRYPTO_SELFTESTS_FULL Enable the full set of cryptographic self-tests
Enable the full set of cryptographic self-tests for each algorithm.
The full set of tests should be enabled for development and pre-release testing, but not in production kernels.
All crypto code in the kernel is expected to pass the full tests.
- Depends on
CRYPTO && CRYPTO_SELFTESTS
CONFIG_CRYPTO_NULL Null algorithms
- Off
- Module
- Built in
These are 'Null' algorithms, used by IPsec, which do nothing.
- Selects
CRYPTO_ALGAPI if CRYPTO - Selects
CRYPTO_SKCIPHER if CRYPTO - Selects
CRYPTO_HASH if CRYPTO
CONFIG_CRYPTO_PCRYPT Parallel crypto engine
- Off
- Module
- Built in
This converts an arbitrary crypto algorithm into a parallel algorithm that executes in kernel threads.
- Depends on
CRYPTO && - Selects
PADATA if CRYPTO && - Selects
CRYPTO_MANAGER if CRYPTO && - Selects
CRYPTO_AEAD if CRYPTO &&
CONFIG_CRYPTO_CRYPTD Software async crypto daemon
- Off
- Module
- Built in
This is a generic software asynchronous crypto daemon that converts an arbitrary synchronous software crypto algorithm into an asynchronous algorithm that executes in a kernel thread.
- Selects
CRYPTO_AEAD if CRYPTO - Selects
CRYPTO_SKCIPHER if CRYPTO - Selects
CRYPTO_HASH if CRYPTO - Selects
CRYPTO_MANAGER if CRYPTO
CONFIG_CRYPTO_AUTHENC Authenc support
- Off
- Module
- Built in
Authenc: Combined mode wrapper for IPsec.
This is required for IPSec ESP (XFRM_ESP).
- Selects
CRYPTO_AEAD if CRYPTO - Selects
CRYPTO_SKCIPHER if CRYPTO - Selects
CRYPTO_MANAGER if CRYPTO - Selects
CRYPTO_HASH if CRYPTO
CONFIG_CRYPTO_KRB5ENC Kerberos 5 combined hash+cipher support
- Off
- Module
- Built in
Combined hash and cipher support for Kerberos 5 RFC3961 simplified profile. This is required for Kerberos 5-style encryption, used by sunrpc/NFS and rxrpc/AFS.
- Selects
CRYPTO_AEAD if CRYPTO - Selects
CRYPTO_SKCIPHER if CRYPTO - Selects
CRYPTO_MANAGER if CRYPTO - Selects
CRYPTO_HASH if CRYPTO
CONFIG_CRYPTO_BENCHMARK Crypto benchmarking module
- Off
- Module
- Built in
Quick & dirty crypto benchmarking module.
This is mainly intended for use by people developing cryptographic algorithms in the kernel. It should not be enabled in production kernels.
- Depends on
CRYPTO && (m && || EXPERT) - Selects
CRYPTO_AEAD if CRYPTO && (m && || EXPERT) - Selects
CRYPTO_HASH if CRYPTO && (m && || EXPERT) - Selects
CRYPTO_MANAGER if CRYPTO && (m && || EXPERT) - Selects
CRYPTO_SKCIPHER if CRYPTO && (m && || EXPERT)
CONFIG_CRYPTO_SIMD
- Off
- Module
- Built in
- Selects
CRYPTO_AEAD if CRYPTO - Selects
CRYPTO_CRYPTD if CRYPTO
CONFIG_CRYPTO_ENGINE
- Off
- Module
- Built in
- Selects
CRYPTO_AEAD if CRYPTO - Selects
CRYPTO_AKCIPHER if CRYPTO - Selects
CRYPTO_HASH if CRYPTO - Selects
CRYPTO_KPP if CRYPTO - Selects
CRYPTO_SKCIPHER if CRYPTO
Public-key cryptography
CONFIG_CRYPTO_RSA RSA (Rivest-Shamir-Adleman)
- Off
- Module
- Built in
RSA (Rivest-Shamir-Adleman) public key algorithm (RFC8017)
- Selects
CRYPTO_AKCIPHER if CRYPTO - Selects
CRYPTO_MANAGER if CRYPTO - Selects
CRYPTO_SIG if CRYPTO - Selects
MPILIB if CRYPTO - Selects
ASN1 if CRYPTO
CONFIG_CRYPTO_DH DH (Diffie-Hellman)
- Off
- Module
- Built in
DH (Diffie-Hellman) key exchange algorithm
- Selects
CRYPTO_KPP if CRYPTO - Selects
MPILIB if CRYPTO
If CRYPTO_DH
CONFIG_CRYPTO_ECC
- Off
- Module
- Built in
CONFIG_CRYPTO_ECDH ECDH (Elliptic Curve Diffie-Hellman)
- Off
- Module
- Built in
ECDH (Elliptic Curve Diffie-Hellman) key exchange algorithm using curves P-192, P-256, and P-384 (FIPS 186)
- Selects
CRYPTO_ECC if CRYPTO - Selects
CRYPTO_KPP if CRYPTO
CONFIG_CRYPTO_ECDSA ECDSA (Elliptic Curve Digital Signature Algorithm)
- Off
- Module
- Built in
ECDSA (Elliptic Curve Digital Signature Algorithm) (FIPS 186, ISO/IEC 14888-3) using curves P-192, P-256, P-384 and P-521
Only signature verification is implemented.
- Selects
CRYPTO_ECC if CRYPTO - Selects
CRYPTO_SIG if CRYPTO - Selects
ASN1 if CRYPTO
CONFIG_CRYPTO_ECRDSA EC-RDSA (Elliptic Curve Russian Digital Signature Algorithm)
- Off
- Module
- Built in
Elliptic Curve Russian Digital Signature Algorithm (GOST R 34.10-2012, RFC 7091, ISO/IEC 14888-3)
One of the Russian cryptographic standard algorithms (called GOST algorithms). Only signature verification is implemented.
- Selects
CRYPTO_ECC if CRYPTO - Selects
CRYPTO_SIG if CRYPTO - Selects
CRYPTO_STREEBOG if CRYPTO - Selects
OID_REGISTRY if CRYPTO - Selects
ASN1 if CRYPTO
CONFIG_CRYPTO_MLDSA ML-DSA (Module-Lattice-Based Digital Signature Algorithm)
- Off
- Module
- Built in
ML-DSA (Module-Lattice-Based Digital Signature Algorithm) (FIPS-204).
Only signature verification is implemented.
- Selects
CRYPTO_SIG if CRYPTO - Selects
CRYPTO_LIB_MLDSA if CRYPTO
Block ciphers
CONFIG_CRYPTO_AES AES (Advanced Encryption Standard)
- Off
- Module
- Built in
AES cipher algorithms (Rijndael)(FIPS-197, ISO/IEC 18033-3)
Rijndael appears to be consistently a very good performer in both hardware and software across a wide range of computing environments regardless of its use in feedback or non-feedback modes. Its key setup time is excellent, and its key agility is good. Rijndael's very low memory requirements make it very well suited for restricted-space environments, in which it also demonstrates excellent performance. Rijndael's operations are among the easiest to defend against power and timing attacks.
The AES specifies three key sizes: 128, 192 and 256 bits
- Selects
CRYPTO_ALGAPI if CRYPTO - Selects
CRYPTO_LIB_AES if CRYPTO - Selects
CRYPTO_LIB_AES_CBC if CRYPTO && (CRYPTO_CBC!=n || CRYPTO_CTS!=n) - Selects
CRYPTO_LIB_AES_CBC_MACS if CRYPTO && (CRYPTO_CMAC!=n || CRYPTO_XCBC!=n || CRYPTO_CCM!=n) - Selects
CRYPTO_LIB_AES_CCM if CRYPTO && CRYPTO_CCM!=n - Selects
CRYPTO_LIB_AES_CTR if CRYPTO && (CRYPTO_CTR!=n || CRYPTO_XCTR!=n) - Selects
CRYPTO_LIB_AES_ECB if CRYPTO && CRYPTO_ECB!=n - Selects
CRYPTO_LIB_AES_GCM if CRYPTO && CRYPTO_GCM!=n - Selects
CRYPTO_LIB_AES_XTS if CRYPTO && CRYPTO_XTS!=n - Selects
CRYPTO_AEAD if CRYPTO && (CRYPTO_GCM!=n || CRYPTO_CCM!=n) - Selects
CRYPTO_HASH if CRYPTO && (CRYPTO_CMAC!=n || CRYPTO_XCBC!=n || CRYPTO_CCM!=n) - Selects
CRYPTO_SKCIPHER if CRYPTO
CONFIG_CRYPTO_ANUBIS Anubis
- Off
- Module
- Built in
Anubis cipher algorithm
Anubis is a variable key length cipher which can use keys from 128 bits to 320 bits in length. It was evaluated as a entrant in the NESSIE competition.
See https://web.archive.org/web/20160606112246/http://www.larc.usp.br/~pbarreto/AnubisPage.html for further information.
- Depends on
CRYPTO && CRYPTO_USER_API_ENABLE_OBSOLETE - Selects
CRYPTO_ALGAPI if CRYPTO && CRYPTO_USER_API_ENABLE_OBSOLETE
CONFIG_CRYPTO_ARIA ARIA
- Off
- Module
- Built in
ARIA cipher algorithm (RFC5794)
ARIA is a standard encryption algorithm of the Republic of Korea. The ARIA specifies three key sizes and rounds. 128-bit: 12 rounds. 192-bit: 14 rounds. 256-bit: 16 rounds.
- Selects
CRYPTO_ALGAPI if CRYPTO
CONFIG_CRYPTO_BLOWFISH Blowfish
- Off
- Module
- Built in
Blowfish cipher algorithm, by Bruce Schneier
This is a variable key length cipher which can use keys from 32 bits to 448 bits in length. It's fast, simple and specifically designed for use on "large microprocessors".
See https://www.schneier.com/blowfish.html for further information.
- Selects
CRYPTO_ALGAPI if CRYPTO - Selects
CRYPTO_BLOWFISH_COMMON if CRYPTO
CONFIG_CRYPTO_BLOWFISH_COMMON
- Off
- Module
- Built in
Common parts of the Blowfish cipher algorithm shared by the generic c and the assembler implementations.
CONFIG_CRYPTO_CAMELLIA Camellia
- Off
- Module
- Built in
Camellia cipher algorithms (ISO/IEC 18033-3)
Camellia is a symmetric key block cipher developed jointly at NTT and Mitsubishi Electric Corporation.
The Camellia specifies three key sizes: 128, 192 and 256 bits.
See https://info.isl.ntt.co.jp/crypt/eng/camellia/ for further information.
- Selects
CRYPTO_ALGAPI if CRYPTO
CONFIG_CRYPTO_CAST_COMMON
- Off
- Module
- Built in
Common parts of the CAST cipher algorithms shared by the generic c and the assembler implementations.
CONFIG_CRYPTO_CAST5 CAST5 (CAST-128)
- Off
- Module
- Built in
CAST5 (CAST-128) cipher algorithm (RFC2144, ISO/IEC 18033-3)
- Selects
CRYPTO_ALGAPI if CRYPTO - Selects
CRYPTO_CAST_COMMON if CRYPTO
CONFIG_CRYPTO_CAST6 CAST6 (CAST-256)
- Off
- Module
- Built in
CAST6 (CAST-256) encryption algorithm (RFC2612)
- Selects
CRYPTO_ALGAPI if CRYPTO - Selects
CRYPTO_CAST_COMMON if CRYPTO
CONFIG_CRYPTO_DES DES and Triple DES EDE
- Off
- Module
- Built in
DES (Data Encryption Standard)(FIPS 46-2, ISO/IEC 18033-3) and Triple DES EDE (Encrypt/Decrypt/Encrypt) (FIPS 46-3, ISO/IEC 18033-3) cipher algorithms
- Selects
CRYPTO_ALGAPI if CRYPTO - Selects
CRYPTO_LIB_DES if CRYPTO
CONFIG_CRYPTO_KHAZAD Khazad
- Off
- Module
- Built in
Khazad cipher algorithm
Khazad was a finalist in the initial NESSIE competition. It is an algorithm optimized for 64-bit processors with good performance on 32-bit processors. Khazad uses an 128 bit key size.
See https://web.archive.org/web/20171011071731/http://www.larc.usp.br/~pbarreto/KhazadPage.html for further information.
- Depends on
CRYPTO && CRYPTO_USER_API_ENABLE_OBSOLETE - Selects
CRYPTO_ALGAPI if CRYPTO && CRYPTO_USER_API_ENABLE_OBSOLETE
CONFIG_CRYPTO_SEED SEED
- Off
- Module
- Built in
SEED cipher algorithm (RFC4269, ISO/IEC 18033-3)
SEED is a 128-bit symmetric key block cipher that has been developed by KISA (Korea Information Security Agency) as a national standard encryption algorithm of the Republic of Korea. It is a 16 round block cipher with the key size of 128 bit.
See https://seed.kisa.or.kr/kisa/algorithm/EgovSeedInfo.do for further information.
- Depends on
CRYPTO && CRYPTO_USER_API_ENABLE_OBSOLETE - Selects
CRYPTO_ALGAPI if CRYPTO && CRYPTO_USER_API_ENABLE_OBSOLETE
CONFIG_CRYPTO_SERPENT Serpent
- Off
- Module
- Built in
Serpent cipher algorithm, by Anderson, Biham & Knudsen
Keys are allowed to be from 0 to 256 bits in length, in steps of 8 bits.
See https://www.cl.cam.ac.uk/~rja14/serpent.html for further information.
- Selects
CRYPTO_ALGAPI if CRYPTO
CONFIG_CRYPTO_SM4
- Off
- Module
- Built in
CONFIG_CRYPTO_SM4_GENERIC SM4 (ShangMi 4)
- Off
- Module
- Built in
SM4 cipher algorithms (OSCCA GB/T 32907-2016, ISO/IEC 18033-3:2010/Amd 1:2021)
SM4 (GBT.32907-2016) is a cryptographic standard issued by the Organization of State Commercial Administration of China (OSCCA) as an authorized cryptographic algorithms for the use within China.
SMS4 was originally created for use in protecting wireless networks, and is mandated in the Chinese National Standard for Wireless LAN WAPI (Wired Authentication and Privacy Infrastructure) (GB.15629.11-2003).
The latest SM4 standard (GBT.32907-2016) was proposed by OSCCA and standardized through TC 260 of the Standardization Administration of the People's Republic of China (SAC).
The input, output, and key of SMS4 are each 128 bits.
See https://eprint.iacr.org/2008/329.pdf for further information.
If unsure, say N.
- Selects
CRYPTO_ALGAPI if CRYPTO - Selects
CRYPTO_SM4 if CRYPTO
CONFIG_CRYPTO_TEA TEA, XTEA and XETA
- Off
- Module
- Built in
TEA (Tiny Encryption Algorithm) cipher algorithms
Tiny Encryption Algorithm is a simple cipher that uses many rounds for security. It is very fast and uses little memory.
Xtendend Tiny Encryption Algorithm is a modification to the TEA algorithm to address a potential key weakness in the TEA algorithm.
Xtendend Encryption Tiny Algorithm is a mis-implementation of the XTEA algorithm for compatibility purposes.
- Depends on
CRYPTO && CRYPTO_USER_API_ENABLE_OBSOLETE - Selects
CRYPTO_ALGAPI if CRYPTO && CRYPTO_USER_API_ENABLE_OBSOLETE
CONFIG_CRYPTO_TWOFISH Twofish
- Off
- Module
- Built in
Twofish cipher algorithm
Twofish was submitted as an AES (Advanced Encryption Standard) candidate cipher by researchers at CounterPane Systems. It is a 16 round block cipher supporting key sizes of 128, 192, and 256 bits.
See https://www.schneier.com/twofish.html for further information.
- Selects
CRYPTO_ALGAPI if CRYPTO - Selects
CRYPTO_TWOFISH_COMMON if CRYPTO
CONFIG_CRYPTO_TWOFISH_COMMON
- Off
- Module
- Built in
Common parts of the Twofish cipher algorithm shared by the generic c and the assembler implementations.
Length-preserving ciphers and modes
CONFIG_CRYPTO_ADIANTUM Adiantum
- Off
- Module
- Built in
Adiantum tweakable, length-preserving encryption mode
Designed for fast and secure disk encryption, especially on CPUs without dedicated crypto instructions. It encrypts each sector using the XChaCha12 stream cipher, two passes of an ε-almost-∆-universal hash function, and an invocation of the AES-256 block cipher on a single 16-byte block. On CPUs without AES instructions, Adiantum is much faster than AES-XTS.
Adiantum's security is provably reducible to that of its underlying stream and block ciphers, subject to a security bound. Unlike XTS, Adiantum is a true wide-block encryption mode, so it actually provides an even stronger notion of security than XTS, subject to the security bound.
If unsure, say N.
- Selects
CRYPTO_CHACHA20 if CRYPTO - Selects
CRYPTO_LIB_NH if CRYPTO - Selects
CRYPTO_LIB_POLY1305 if CRYPTO - Selects
CRYPTO_LIB_POLY1305_GENERIC if CRYPTO - Selects
CRYPTO_MANAGER if CRYPTO
CONFIG_CRYPTO_ARC4 ARC4 (Alleged Rivest Cipher 4)
- Off
- Module
- Built in
ARC4 cipher algorithm
ARC4 is a stream cipher using keys ranging from 8 bits to 2048 bits in length. This algorithm is required for driver-based WEP, but it should not be for other purposes because of the weakness of the algorithm.
- Depends on
CRYPTO && CRYPTO_USER_API_ENABLE_OBSOLETE - Selects
CRYPTO_SKCIPHER if CRYPTO && CRYPTO_USER_API_ENABLE_OBSOLETE - Selects
CRYPTO_LIB_ARC4 if CRYPTO && CRYPTO_USER_API_ENABLE_OBSOLETE
CONFIG_CRYPTO_CHACHA20 ChaCha
- Off
- Module
- Built in
The ChaCha20, XChaCha20, and XChaCha12 stream cipher algorithms
ChaCha20 is a 256-bit high-speed stream cipher designed by Daniel J. Bernstein and further specified in RFC7539 for use in IETF protocols. This is the portable C implementation of ChaCha20. See https://cr.yp.to/chacha/chacha-20080128.pdf for further information.
XChaCha20 is the application of the XSalsa20 construction to ChaCha20 rather than to Salsa20. XChaCha20 extends ChaCha20's nonce length from 64 bits (or 96 bits using the RFC7539 convention) to 192 bits, while provably retaining ChaCha20's security. See https://cr.yp.to/snuffle/xsalsa-20081128.pdf for further information.
XChaCha12 is XChaCha20 reduced to 12 rounds, with correspondingly reduced security margin but increased performance. It can be needed in some performance-sensitive scenarios.
- Selects
CRYPTO_LIB_CHACHA if CRYPTO - Selects
CRYPTO_SKCIPHER if CRYPTO
CONFIG_CRYPTO_CBC CBC (Cipher Block Chaining)
- Off
- Module
- Built in
CBC (Cipher Block Chaining) mode (NIST SP800-38A)
This block cipher mode is required for IPSec ESP (XFRM_ESP).
- Selects
CRYPTO_SKCIPHER if CRYPTO - Selects
CRYPTO_MANAGER if CRYPTO
CONFIG_CRYPTO_CTR CTR (Counter)
- Off
- Module
- Built in
CTR (Counter) mode (NIST SP800-38A)
- Selects
CRYPTO_SKCIPHER if CRYPTO - Selects
CRYPTO_MANAGER if CRYPTO
CONFIG_CRYPTO_CTS CTS (Cipher Text Stealing)
- Off
- Module
- Built in
CBC-CS3 variant of CTS (Cipher Text Stealing) (NIST Addendum to SP800-38A (October 2010))
This mode is required for Kerberos gss mechanism support for AES encryption.
- Selects
CRYPTO_SKCIPHER if CRYPTO - Selects
CRYPTO_MANAGER if CRYPTO
CONFIG_CRYPTO_ECB ECB (Electronic Codebook)
- Off
- Module
- Built in
ECB (Electronic Codebook) mode (NIST SP800-38A)
- Selects
CRYPTO_SKCIPHER2 if CRYPTO - Selects
CRYPTO_MANAGER if CRYPTO
CONFIG_CRYPTO_HCTR2 HCTR2
- Off
- Module
- Built in
HCTR2 length-preserving encryption mode
A mode for storage encryption that is efficient on processors with instructions to accelerate AES and carryless multiplication, e.g. x86 processors with AES-NI and CLMUL, and ARM processors with the ARMv8 crypto extensions.
- Selects
CRYPTO_XCTR if CRYPTO - Selects
CRYPTO_LIB_GF128HASH if CRYPTO - Selects
CRYPTO_MANAGER if CRYPTO
CONFIG_CRYPTO_LRW LRW (Liskov Rivest Wagner)
- Off
- Module
- Built in
LRW (Liskov Rivest Wagner) mode
A tweakable, non malleable, non movable narrow block cipher mode for dm-crypt. Use it with cipher specification string aes-lrw-benbi, the key must be 256, 320 or 384. The first 128, 192 or 256 bits in the key are used for AES and the rest is used to tie each cipher block to its logical position.
- Selects
CRYPTO_LIB_GF128MUL if CRYPTO - Selects
CRYPTO_SKCIPHER if CRYPTO - Selects
CRYPTO_MANAGER if CRYPTO - Selects
CRYPTO_ECB if CRYPTO
CONFIG_CRYPTO_XCTR
- Off
- Module
- Built in
XCTR (XOR Counter) mode for HCTR2
This blockcipher mode is a variant of CTR mode using XORs and little-endian addition rather than big-endian arithmetic.
XCTR mode is used to implement HCTR2.
- Selects
CRYPTO_SKCIPHER if CRYPTO - Selects
CRYPTO_MANAGER if CRYPTO
CONFIG_CRYPTO_XTS XTS (XOR Encrypt XOR with ciphertext stealing)
- Off
- Module
- Built in
XTS (XOR Encrypt XOR with ciphertext stealing) mode (NIST SP800-38E and IEEE 1619)
Use with aes-xts-plain, key size 256, 384 or 512 bits. This implementation currently can't handle a sectorsize which is not a multiple of 16 bytes.
- Selects
CRYPTO_SKCIPHER if CRYPTO - Selects
CRYPTO_MANAGER if CRYPTO - Selects
CRYPTO_ECB if CRYPTO
AEAD (authenticated encryption with associated data) ciphers
CONFIG_CRYPTO_AEGIS128 AEGIS-128
- Off
- Module
- Built in
AEGIS-128 AEAD algorithm
- Selects
CRYPTO_AEAD if CRYPTO - Selects
CRYPTO_LIB_AES if CRYPTO
CONFIG_CRYPTO_AEGIS128_SIMD AEGIS-128 (arm NEON, arm64 NEON)
AEGIS-128 AEAD algorithm
Architecture: arm or arm64 using: - NEON (Advanced SIMD) extension
- Depends on
CRYPTO && CRYPTO_AEGIS128 && (ARM || ARM64) &&
CONFIG_CRYPTO_CHACHA20POLY1305 ChaCha20-Poly1305
- Off
- Module
- Built in
ChaCha20 stream cipher and Poly1305 authenticator combined mode (RFC8439)
- Selects
CRYPTO_CHACHA20 if CRYPTO - Selects
CRYPTO_AEAD if CRYPTO - Selects
CRYPTO_LIB_POLY1305 if CRYPTO - Selects
CRYPTO_MANAGER if CRYPTO
CONFIG_CRYPTO_CCM CCM (Counter with Cipher Block Chaining-MAC)
- Off
- Module
- Built in
CCM (Counter with Cipher Block Chaining-Message Authentication Code) authenticated encryption mode (NIST SP800-38C)
- Selects
CRYPTO_CTR if CRYPTO - Selects
CRYPTO_HASH if CRYPTO - Selects
CRYPTO_AEAD if CRYPTO - Selects
CRYPTO_MANAGER if CRYPTO
CONFIG_CRYPTO_GCM GCM (Galois/Counter Mode) and GMAC (GCM MAC)
- Off
- Module
- Built in
GCM (Galois/Counter Mode) authenticated encryption mode and GMAC (GCM Message Authentication Code) (NIST SP800-38D)
This is required for IPSec ESP (XFRM_ESP).
- Selects
CRYPTO_CTR if CRYPTO - Selects
CRYPTO_AEAD if CRYPTO - Selects
CRYPTO_LIB_GF128HASH if CRYPTO - Selects
CRYPTO_MANAGER if CRYPTO
CONFIG_CRYPTO_GENIV
- Off
- Module
- Built in
- Selects
CRYPTO_AEAD if CRYPTO - Selects
CRYPTO_MANAGER if CRYPTO
CONFIG_CRYPTO_SEQIV Sequence Number IV Generator
- Off
- Module
- Built in
Sequence Number IV generator
This IV generator generates an IV based on a sequence number by xoring it with a salt. This algorithm is mainly useful for CTR.
This is required for IPsec ESP (XFRM_ESP).
- Selects
CRYPTO_GENIV if CRYPTO
CONFIG_CRYPTO_ECHAINIV Encrypted Chain IV Generator
- Off
- Module
- Built in
Encrypted Chain IV generator
This IV generator generates an IV based on the encryption of a sequence number xored with a salt. This is the default algorithm for CBC.
- Selects
CRYPTO_GENIV if CRYPTO
CONFIG_CRYPTO_ESSIV Encrypted Salt-Sector IV Generator
- Off
- Module
- Built in
Encrypted Salt-Sector IV generator
This IV generator is used in some cases by fscrypt and/or dm-crypt. It uses the hash of the block encryption key as the symmetric key for a block encryption pass applied to the input IV, making low entropy IV sources more suitable for block encryption.
This driver implements a crypto API template that can be instantiated either as an skcipher or as an AEAD (depending on the type of the first template argument), and which defers encryption and decryption requests to the encapsulated cipher after applying ESSIV to the input IV. Note that in the AEAD case, it is assumed that the keys are presented in the same format used by the authenc template, and that the IV appears at the end of the authenticated associated data (AAD) region (which is how dm-crypt uses it.)
Note that the use of ESSIV is not recommended for new deployments, and so this only needs to be enabled when interoperability with existing encrypted volumes of filesystems is required, or when building for a particular system that requires it (e.g., when the SoC in question has accelerated CBC but not XTS, making CBC combined with ESSIV the only feasible mode for h/w accelerated block encryption)
- Selects
CRYPTO_AUTHENC if CRYPTO
Hashes, digests, and MACs
CONFIG_CRYPTO_BLAKE2B BLAKE2b
- Off
- Module
- Built in
BLAKE2b cryptographic hash function (RFC 7693)
BLAKE2b is optimized for 64-bit platforms and can produce digests of any size between 1 and 64 bytes. The keyed hash is also implemented.
This module provides the following algorithms: - blake2b-160 - blake2b-256 - blake2b-384 - blake2b-512
See https://blake2.net for further information.
- Selects
CRYPTO_HASH if CRYPTO - Selects
CRYPTO_LIB_BLAKE2B if CRYPTO
CONFIG_CRYPTO_CMAC CMAC (Cipher-based MAC)
- Off
- Module
- Built in
CMAC (Cipher-based Message Authentication Code) authentication mode (NIST SP800-38B and IETF RFC4493)
- Selects
CRYPTO_HASH if CRYPTO - Selects
CRYPTO_MANAGER if CRYPTO
CONFIG_CRYPTO_HMAC HMAC (Keyed-Hash MAC)
- Off
- Module
- Built in
HMAC (Keyed-Hash Message Authentication Code) (FIPS 198 and RFC2104)
This is required for IPsec AH (XFRM_AH) and IPsec ESP (XFRM_ESP).
- Selects
CRYPTO_HASH if CRYPTO - Selects
CRYPTO_MANAGER if CRYPTO
CONFIG_CRYPTO_MD4 MD4
- Off
- Module
- Built in
MD4 message digest algorithm (RFC1320)
- Selects
CRYPTO_HASH if CRYPTO
CONFIG_CRYPTO_MD5 MD5
- Off
- Module
- Built in
MD5 message digest algorithm (RFC1321), including HMAC support.
- Selects
CRYPTO_HASH if CRYPTO - Selects
CRYPTO_LIB_MD5 if CRYPTO
CONFIG_CRYPTO_RMD160 RIPEMD-160
- Off
- Module
- Built in
RIPEMD-160 hash function (ISO/IEC 10118-3)
RIPEMD-160 is a 160-bit cryptographic hash function. It is intended to be used as a secure replacement for the 128-bit hash functions MD4, MD5 and its predecessor RIPEMD (not to be confused with RIPEMD-128).
Its speed is comparable to SHA-1 and there are no known attacks against RIPEMD-160.
Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel. See https://homes.esat.kuleuven.be/~bosselae/ripemd160.html for further information.
- Selects
CRYPTO_HASH if CRYPTO
CONFIG_CRYPTO_SHA1 SHA-1
- Off
- Module
- Built in
SHA-1 secure hash algorithm (FIPS 180, ISO/IEC 10118-3), including HMAC support.
- Selects
CRYPTO_HASH if CRYPTO - Selects
CRYPTO_LIB_SHA1 if CRYPTO
CONFIG_CRYPTO_SHA256 SHA-224 and SHA-256
- Off
- Module
- Built in
SHA-224 and SHA-256 secure hash algorithms (FIPS 180, ISO/IEC 10118-3), including HMAC support.
This is required for IPsec AH (XFRM_AH) and IPsec ESP (XFRM_ESP).
- Selects
CRYPTO_HASH if CRYPTO - Selects
CRYPTO_LIB_SHA256 if CRYPTO
CONFIG_CRYPTO_SHA512 SHA-384 and SHA-512
- Off
- Module
- Built in
SHA-384 and SHA-512 secure hash algorithms (FIPS 180, ISO/IEC 10118-3), including HMAC support.
- Selects
CRYPTO_HASH if CRYPTO - Selects
CRYPTO_LIB_SHA512 if CRYPTO
CONFIG_CRYPTO_SHA3 SHA-3
- Off
- Module
- Built in
SHA-3 secure hash algorithms (FIPS 202, ISO/IEC 10118-3)
- Selects
CRYPTO_HASH if CRYPTO - Selects
CRYPTO_LIB_SHA3 if CRYPTO
CONFIG_CRYPTO_SM3 SM3 (ShangMi 3)
- Off
- Module
- Built in
SM3 (ShangMi 3) secure hash function (OSCCA GM/T 0004-2012, ISO/IEC 10118-3)
This is part of the Chinese Commercial Cryptography suite.
References: http://www.oscca.gov.cn/UpFile/20101222141857786.pdf https://datatracker.ietf.org/doc/html/draft-shen-sm3-hash
- Selects
CRYPTO_HASH if CRYPTO - Selects
CRYPTO_LIB_SM3 if CRYPTO
CONFIG_CRYPTO_STREEBOG Streebog
- Off
- Module
- Built in
Streebog Hash Function (GOST R 34.11-2012, RFC 6986, ISO/IEC 10118-3)
This is one of the Russian cryptographic standard algorithms (called GOST algorithms). This setting enables two hash algorithms with 256 and 512 bits output.
References: https://tc26.ru/upload/iblock/fed/feddbb4d26b685903faa2ba11aea43f6.pdf https://tools.ietf.org/html/rfc6986
- Selects
CRYPTO_HASH if CRYPTO
CONFIG_CRYPTO_WP512 Whirlpool
- Off
- Module
- Built in
Whirlpool hash function (ISO/IEC 10118-3)
512, 384 and 256-bit hashes.
Whirlpool-512 is part of the NESSIE cryptographic primitives.
See https://web.archive.org/web/20171129084214/http://www.larc.usp.br/~pbarreto/WhirlpoolPage.html for further information.
- Selects
CRYPTO_HASH if CRYPTO
CONFIG_CRYPTO_XCBC XCBC-MAC (Extended Cipher Block Chaining MAC)
- Off
- Module
- Built in
XCBC-MAC (Extended Cipher Block Chaining Message Authentication Code) (RFC3566)
- Selects
CRYPTO_HASH if CRYPTO - Selects
CRYPTO_MANAGER if CRYPTO
CONFIG_CRYPTO_XXHASH xxHash
- Off
- Module
- Built in
xxHash non-cryptographic hash algorithm
Extremely fast, working at speeds close to RAM limits.
- Selects
CRYPTO_HASH if CRYPTO - Selects
XXHASH if CRYPTO
CRCs (cyclic redundancy checks)
CONFIG_CRYPTO_CRC32C CRC32c
- Off
- Module
- Built in
CRC32c CRC algorithm with the iSCSI polynomial (RFC 3385 and RFC 3720)
A 32-bit CRC (cyclic redundancy check) with a polynomial defined by G. Castagnoli, S. Braeuer and M. Herrman in "Optimization of Cyclic Redundancy-Check Codes with 24 and 32 Parity Bits", IEEE Transactions on Communications, Vol. 41, No. 6, June 1993, selected for use with iSCSI.
- Selects
CRYPTO_HASH if CRYPTO - Selects
CRC32 if CRYPTO
CONFIG_CRYPTO_CRC32 CRC32
- Off
- Module
- Built in
CRC32 CRC algorithm (IEEE 802.3)
- Selects
CRYPTO_HASH if CRYPTO - Selects
CRC32 if CRYPTO
Compression
CONFIG_CRYPTO_DEFLATE Deflate
- Off
- Module
- Built in
Deflate compression algorithm (RFC1951)
Used by IPSec with the IPCOMP protocol (RFC3173, RFC2394)
- Selects
CRYPTO_ALGAPI if CRYPTO - Selects
CRYPTO_ACOMP2 if CRYPTO - Selects
ZLIB_INFLATE if CRYPTO - Selects
ZLIB_DEFLATE if CRYPTO
CONFIG_CRYPTO_LZO LZO
- Off
- Module
- Built in
LZO compression algorithm
See https://www.oberhumer.com/opensource/lzo/ for further information.
- Selects
CRYPTO_ALGAPI if CRYPTO - Selects
CRYPTO_ACOMP2 if CRYPTO - Selects
LZO_COMPRESS if CRYPTO - Selects
LZO_DECOMPRESS if CRYPTO
CONFIG_CRYPTO_842 842
- Off
- Module
- Built in
842 compression algorithm by IBM
See https://github.com/plauth/lib842 for further information.
- Selects
CRYPTO_ALGAPI if CRYPTO - Selects
CRYPTO_ACOMP2 if CRYPTO - Selects
842_COMPRESS if CRYPTO - Selects
842_DECOMPRESS if CRYPTO
CONFIG_CRYPTO_LZ4 LZ4
- Off
- Module
- Built in
LZ4 compression algorithm
See https://github.com/lz4/lz4 for further information.
- Selects
CRYPTO_ALGAPI if CRYPTO - Selects
CRYPTO_ACOMP2 if CRYPTO - Selects
LZ4_COMPRESS if CRYPTO - Selects
LZ4_DECOMPRESS if CRYPTO
CONFIG_CRYPTO_LZ4HC LZ4HC
- Off
- Module
- Built in
LZ4 high compression mode algorithm
See https://github.com/lz4/lz4 for further information.
- Selects
CRYPTO_ALGAPI if CRYPTO - Selects
CRYPTO_ACOMP2 if CRYPTO - Selects
LZ4HC_COMPRESS if CRYPTO - Selects
LZ4_DECOMPRESS if CRYPTO
CONFIG_CRYPTO_ZSTD Zstd
- Off
- Module
- Built in
zstd compression algorithm
See https://github.com/facebook/zstd for further information.
- Selects
CRYPTO_ALGAPI if CRYPTO - Selects
CRYPTO_ACOMP2 if CRYPTO - Selects
ZSTD_COMPRESS if CRYPTO - Selects
ZSTD_DECOMPRESS if CRYPTO
Random number generation
CONFIG_CRYPTO_DRBG NIST SP800-90A DRBG (Deterministic Random Bit Generator)
- Off
- Module
- Built in
DRBG (Deterministic Random Bit Generator) (NIST SP800-90A)
Enable this only if you need it for a FIPS 140 certification. It's otherwise redundant with the kernel's regular RNG.
- Selects
CRYPTO_JITTERENTROPY if CRYPTO - Selects
CRYPTO_LIB_SHA512 if CRYPTO - Selects
CRYPTO_RNG if CRYPTO
CONFIG_CRYPTO_JITTERENTROPY CPU Jitter Non-Deterministic RNG (Random Number Generator)
- Off
- Module
- Built in
CPU Jitter RNG (Random Number Generator) from the Jitterentropy library
A non-physical non-deterministic ("true") RNG (e.g., an entropy source compliant with NIST SP800-90B) intended to provide a seed to a deterministic RNG (e.g., per NIST SP800-90C). This RNG does not perform any cryptographic whitening of the generated random numbers.
- Selects
CRYPTO_LIB_SHA3 if CRYPTO - Selects
CRYPTO_RNG if CRYPTO
If CRYPTO_JITTERENTROPY
- Depends on
CRYPTO && CRYPTO_JITTERENTROPY
If CRYPTO_FIPS && EXPERT
- Depends on
CRYPTO && CRYPTO_JITTERENTROPY && CRYPTO_FIPS && EXPERT
CPU Jitter RNG Memory Size
The Jitter RNG measures the execution time of memory accesses. Multiple consecutive memory accesses are performed. If the memory size fits into a cache (e.g. L1), only the memory access timing to that cache is measured. The closer the cache is to the CPU the less variations are measured and thus the less entropy is obtained. Thus, if the memory size fits into the L1 cache, the obtained entropy is less than if the memory size fits within L1 + L2, which in turn is less if the memory fits into L1 + L2 + L3. Thus, by selecting a different memory size, the entropy rate produced by the Jitter RNG can be modified.
- Depends on
CRYPTO && CRYPTO_JITTERENTROPY && CRYPTO_FIPS && EXPERT
CONFIG_CRYPTO_JITTERENTROPY_MEMSIZE_2 2048 Bytes (default)
- Depends on
CRYPTO && CRYPTO_JITTERENTROPY && CRYPTO_FIPS && EXPERT
CONFIG_CRYPTO_JITTERENTROPY_MEMSIZE_128 128 kBytes
- Depends on
CRYPTO && CRYPTO_JITTERENTROPY && CRYPTO_FIPS && EXPERT
CONFIG_CRYPTO_JITTERENTROPY_MEMSIZE_1024 1024 kBytes
- Depends on
CRYPTO && CRYPTO_JITTERENTROPY && CRYPTO_FIPS && EXPERT
CONFIG_CRYPTO_JITTERENTROPY_MEMSIZE_8192 8192 kBytes
- Depends on
CRYPTO && CRYPTO_JITTERENTROPY && CRYPTO_FIPS && EXPERT
CONFIG_CRYPTO_JITTERENTROPY_MEMORY_BLOCKS
- Depends on
CRYPTO && CRYPTO_JITTERENTROPY && CRYPTO_FIPS && EXPERT
CONFIG_CRYPTO_JITTERENTROPY_MEMORY_BLOCKSIZE
- Depends on
CRYPTO && CRYPTO_JITTERENTROPY && CRYPTO_FIPS && EXPERT
CONFIG_CRYPTO_JITTERENTROPY_OSR CPU Jitter RNG Oversampling Rate
The Jitter RNG allows the specification of an oversampling rate (OSR). The Jitter RNG operation requires a fixed amount of timing measurements to produce one output block of random numbers. The OSR value is multiplied with the amount of timing measurements to generate one output block. Thus, the timing measurement is oversampled by the OSR factor. The oversampling allows the Jitter RNG to operate on hardware whose timers deliver limited amount of entropy (e.g. the timer is coarse) by setting the OSR to a higher value. The trade-off, however, is that the Jitter RNG now requires more time to generate random numbers.
- Depends on
CRYPTO && CRYPTO_JITTERENTROPY && CRYPTO_FIPS && EXPERT - Range
[1 15] if CRYPTO && CRYPTO_JITTERENTROPY && CRYPTO_FIPS && EXPERT
CONFIG_CRYPTO_JITTERENTROPY_TESTINTERFACE CPU Jitter RNG Test Interface
The test interface allows a privileged process to capture the raw unconditioned high resolution time stamp noise that is collected by the Jitter RNG for statistical analysis. As this data is used at the same time to generate random bits, the Jitter RNG operates in an insecure mode as long as the recording is enabled. This interface therefore is only intended for testing purposes and is not suitable for production systems.
The raw noise data can be obtained using the jent_raw_hires debugfs file. Using the option jitterentropy_testing.boot_raw_hires_test=1 the raw noise of the first 1000 entropy events since boot can be sampled.
If unsure, select N.
- Depends on
CRYPTO && CRYPTO_JITTERENTROPY && CRYPTO_FIPS && EXPERT
If !(CRYPTO_FIPS && EXPERT)
- Depends on
CRYPTO && CRYPTO_JITTERENTROPY && (!CRYPTO_FIPS || !EXPERT)
CONFIG_CRYPTO_JITTERENTROPY_MEMORY_BLOCKS
- Depends on
CRYPTO && CRYPTO_JITTERENTROPY && (!CRYPTO_FIPS || !EXPERT)
CONFIG_CRYPTO_JITTERENTROPY_MEMORY_BLOCKSIZE
- Depends on
CRYPTO && CRYPTO_JITTERENTROPY && (!CRYPTO_FIPS || !EXPERT)
CONFIG_CRYPTO_JITTERENTROPY_OSR
- Depends on
CRYPTO && CRYPTO_JITTERENTROPY && (!CRYPTO_FIPS || !EXPERT)
CONFIG_CRYPTO_JITTERENTROPY_TESTINTERFACE
- Depends on
CRYPTO && CRYPTO_JITTERENTROPY && (!CRYPTO_FIPS || !EXPERT)
CONFIG_CRYPTO_KDF800108_CTR
- Off
- Module
- Built in
- Selects
CRYPTO_HMAC if CRYPTO - Selects
CRYPTO_SHA256 if CRYPTO
Userspace interface (deprecated)
CONFIG_CRYPTO_USER_API
- Off
- Module
- Built in
CONFIG_CRYPTO_USER_API_HASH Hash algorithms (deprecated)
- Off
- Module
- Built in
Enable the AF_ALG userspace interface for hash algorithms. This provides unprivileged userspace programs access to arbitrary hash algorithms implemented in the kernel's privileged execution context.
This interface is deprecated and is supported only for backwards compatibility. It regularly has vulnerabilities, and the capabilities it provides are redundant with userspace crypto libraries.
Enable this only if needed for support for a program that hasn't yet been converted to userspace crypto, for example iwd.
- Depends on
CRYPTO && NET - Selects
CRYPTO_HASH if CRYPTO && NET - Selects
CRYPTO_USER_API if CRYPTO && NET
CONFIG_CRYPTO_USER_API_SKCIPHER Symmetric key cipher algorithms (deprecated)
- Off
- Module
- Built in
Enable the AF_ALG userspace interface for symmetric key algorithms. This provides unprivileged userspace programs access to arbitrary symmetric key algorithms implemented in the kernel's privileged execution context.
This interface is deprecated and is supported only for backwards compatibility. It regularly has vulnerabilities, and the capabilities it provides are redundant with userspace crypto libraries.
Enable this only if needed for support for a program that hasn't yet been converted to userspace crypto, for example iwd, or cryptsetup with certain algorithms.
- Depends on
CRYPTO && NET - Selects
CRYPTO_SKCIPHER if CRYPTO && NET - Selects
CRYPTO_USER_API if CRYPTO && NET
CONFIG_CRYPTO_USER_API_RNG Random number generation algorithms (deprecated)
- Off
- Module
- Built in
Enable the AF_ALG userspace interface for random number generation (RNG) algorithms. This provides unprivileged userspace programs access to arbitrary RNG algorithms implemented in the kernel's privileged execution context.
This interface is deprecated and is supported only for backwards compatibility. It regularly has vulnerabilities, and the capabilities it provides are redundant with userspace crypto libraries as well as the normal kernel RNG (e.g., /dev/urandom and getrandom(2)).
- Depends on
CRYPTO && NET - Selects
CRYPTO_RNG if CRYPTO && NET - Selects
CRYPTO_USER_API if CRYPTO && NET
If CRYPTO_USER_API_RNG
CONFIG_CRYPTO_USER_API_RNG_CAVP Enable CAVP testing of DRBG
Enable extra APIs in the userspace interface for NIST CAVP (Cryptographic Algorithm Validation Program) testing: - resetting DRBG entropy - providing Additional Data
This should only be enabled for CAVP testing. You should say no unless you know what this is.
- Depends on
CRYPTO && CRYPTO_USER_API_RNG && CRYPTO_DRBG
CONFIG_CRYPTO_USER_API_AEAD AEAD cipher algorithms (deprecated)
- Off
- Module
- Built in
Enable the AF_ALG userspace interface for authenticated encryption with associated data (AEAD) algorithms. This provides unprivileged userspace programs access to arbitrary AEAD algorithms implemented in the kernel's privileged execution context.
This interface is deprecated and is supported only for backwards compatibility. It regularly has vulnerabilities, and the capabilities it provides are redundant with userspace crypto libraries.
Enable this only if needed for support for a program that hasn't yet been converted to userspace crypto, for example iwd.
- Depends on
CRYPTO && NET - Selects
CRYPTO_AEAD if CRYPTO && NET - Selects
CRYPTO_SKCIPHER if CRYPTO && NET - Selects
CRYPTO_USER_API if CRYPTO && NET
CONFIG_CRYPTO_USER_API_ENABLE_OBSOLETE Obsolete cryptographic algorithms
Allow obsolete cryptographic algorithms to be selected that have already been phased out from internal use by the kernel, and are only useful for userspace clients that still rely on them.
- Depends on
CRYPTO && CRYPTO_USER_API
If !KMSAN # avoid false positives from assembly
- arch/alpha/Kconfig:465
- arch/arc/Kconfig:167
- arch/arm/Kconfig:910
- arch/arm64/Kconfig:358
- arch/csky/Kconfig:313
- arch/hexagon/Kconfig:104
- arch/loongarch/Kconfig:513
- arch/mips/Kconfig:2700
- arch/openrisc/Kconfig:191
- arch/parisc/Kconfig:314
- arch/powerpc/platforms/Kconfig.cputype:550
- arch/riscv/Kconfig:437
- arch/s390/Kconfig:530
- arch/sh/Kconfig:560
- arch/sparc/Kconfig:158
- arch/um/Kconfig:97
- arch/x86/Kconfig:437
- arch/xtensa/Kconfig:245