lib/crypto/Kconfig

Source file repositories/reference/linux-study-clean/lib/crypto/Kconfig

File Facts

System
Linux kernel
Corpus path
lib/crypto/Kconfig
Extension
[no extension]
Size
7187 bytes
Lines
277
Domain
Kernel Services
Bucket
lib
Inferred role
Kernel Services: build/configuration rule
Status
atlas-only

Why This File Exists

Shared kernel service surface used by multiple subsystems, including helpers, cryptography, virtualization support, and async I/O infrastructure.

Dependency Surface

Detected Declarations

Annotated Snippet

# SPDX-License-Identifier: GPL-2.0

config CRYPTO_HASH_INFO
	bool

config CRYPTO_LIB_UTILS
	tristate

config CRYPTO_LIB_AES
	tristate
	# Select dependencies of modes that are part of libaes.
	select CRYPTO_LIB_UTILS if CRYPTO_LIB_AES_CBC_MACS

config CRYPTO_LIB_AES_ARCH
	bool
	depends on CRYPTO_LIB_AES && !UML && !KMSAN
	default y if ARM
	default y if ARM64
	default y if PPC && (SPE || (PPC64 && VSX))
	default y if RISCV && 64BIT && TOOLCHAIN_HAS_VECTOR_CRYPTO && \
		     RISCV_EFFICIENT_VECTOR_UNALIGNED_ACCESS
	default y if S390
	default y if SPARC64
	default y if X86

config CRYPTO_LIB_AESCFB
	tristate
	select CRYPTO_LIB_AES
	select CRYPTO_LIB_UTILS

config CRYPTO_LIB_AES_CBC_MACS
	tristate
	select CRYPTO_LIB_AES
	help
	  The AES-CMAC, AES-XCBC-MAC, and AES-CBC-MAC library functions.  Select
	  this if your module uses any of the functions from
	  <crypto/aes-cbc-macs.h>.

config CRYPTO_LIB_AESGCM
	tristate
	select CRYPTO_LIB_AES
	select CRYPTO_LIB_GF128HASH
	select CRYPTO_LIB_UTILS

config CRYPTO_LIB_ARC4
	tristate

config CRYPTO_LIB_GF128MUL
	tristate

config CRYPTO_LIB_BLAKE2B
	tristate
	help
	  The BLAKE2b library functions.  Select this if your module uses any of
	  the functions from <crypto/blake2b.h>.

config CRYPTO_LIB_BLAKE2B_ARCH
	bool
	depends on CRYPTO_LIB_BLAKE2B && !UML
	default y if ARM && KERNEL_MODE_NEON

# BLAKE2s support is always built-in, so there's no CRYPTO_LIB_BLAKE2S option.

config CRYPTO_LIB_BLAKE2S_ARCH
	bool
	depends on !UML
	default y if ARM
	default y if X86_64

config CRYPTO_LIB_CHACHA

Annotation

Implementation Notes