arch/riscv/crypto/Kconfig

Source file repositories/reference/linux-study-clean/arch/riscv/crypto/Kconfig

File Facts

System
Linux kernel
Corpus path
arch/riscv/crypto/Kconfig
Extension
[no extension]
Size
1190 bytes
Lines
39
Domain
Architecture Layer
Bucket
arch/riscv
Inferred role
Architecture Layer: build/configuration rule
Status
atlas-only

Why This File Exists

CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.

Dependency Surface

Detected Declarations

Annotated Snippet

# SPDX-License-Identifier: GPL-2.0

menu "Accelerated Cryptographic Algorithms for CPU (riscv)"

config CRYPTO_AES_RISCV64
	tristate "Ciphers: AES, modes: ECB, CBC, CTS, CTR, XTS"
	depends on 64BIT && TOOLCHAIN_HAS_VECTOR_CRYPTO && \
		   RISCV_EFFICIENT_VECTOR_UNALIGNED_ACCESS
	select CRYPTO_LIB_AES
	select CRYPTO_SKCIPHER
	help
	  Length-preserving ciphers: AES with ECB, CBC, CTS, CTR, XTS

	  Architecture: riscv64 using:
	  - Zvkned vector crypto extension
	  - Zvbb vector extension (XTS)
	  - Zvkb vector crypto extension (CTR)
	  - Zvkg vector crypto extension (XTS)

config CRYPTO_SM4_RISCV64
	tristate "Ciphers: SM4 (ShangMi 4)"
	depends on 64BIT && TOOLCHAIN_HAS_VECTOR_CRYPTO && \
		   RISCV_EFFICIENT_VECTOR_UNALIGNED_ACCESS
	select CRYPTO_ALGAPI
	select CRYPTO_SM4
	help
	  SM4 block cipher algorithm (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 algorithm for use within China.

	  Architecture: riscv64 using:
	  - Zvksed vector crypto extension
	  - Zvkb vector crypto extension

endmenu

Annotation

Implementation Notes