Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

# SPDX-License-Identifier: GPL-2.0

menuconfig CONFIG_ARM64_CRYPTO
	bool "ARM64 Accelerated Cryptographic Algorithms"
	depends on CONFIG_ARM64
	help
	  Say Y here to choose from a selection of cryptographic algorithms
	  implemented using CONFIG_ARM64 specific CPU features or instructions.

if CONFIG_ARM64_CRYPTO

config CONFIG_CRYPTO_SHA256_ARM64
	tristate "SHA-224/SHA-256 digest algorithm for arm64"
	select CONFIG_CRYPTO_HASH

config CONFIG_CRYPTO_SHA512_ARM64
	tristate "SHA-384/SHA-512 digest algorithm for arm64"
	select CONFIG_CRYPTO_HASH

config CONFIG_CRYPTO_SHA1_ARM64_CE
	tristate "SHA-1 digest algorithm (ARMv8 Crypto Extensions)"
	depends on CONFIG_KERNEL_MODE_NEON
	select CONFIG_CRYPTO_HASH
	select CONFIG_CRYPTO_SHA1

config CONFIG_CRYPTO_SHA2_ARM64_CE
	tristate "SHA-224/SHA-256 digest algorithm (ARMv8 Crypto Extensions)"
	depends on CONFIG_KERNEL_MODE_NEON
	select CONFIG_CRYPTO_HASH
	select CONFIG_CRYPTO_SHA256_ARM64

config CONFIG_CRYPTO_SHA512_ARM64_CE
	tristate "SHA-384/SHA-512 digest algorithm (ARMv8 Crypto Extensions)"
	depends on CONFIG_KERNEL_MODE_NEON
	select CONFIG_CRYPTO_HASH
	select CONFIG_CRYPTO_SHA512_ARM64

config CONFIG_CRYPTO_SHA3_ARM64
	tristate "SHA3 digest algorithm (ARMv8.2 Crypto Extensions)"
	depends on CONFIG_KERNEL_MODE_NEON
	select CONFIG_CRYPTO_HASH
	select CONFIG_CRYPTO_SHA3

config CONFIG_CRYPTO_SM3_ARM64_CE
	tristate "SM3 digest algorithm (ARMv8.2 Crypto Extensions)"
	depends on CONFIG_KERNEL_MODE_NEON
	select CONFIG_CRYPTO_HASH
	select CONFIG_CRYPTO_SM3

config CONFIG_CRYPTO_SM4_ARM64_CE
	tristate "SM4 symmetric cipher (ARMv8.2 Crypto Extensions)"
	depends on CONFIG_KERNEL_MODE_NEON
	select CONFIG_CRYPTO_ALGAPI
	select CONFIG_CRYPTO_SM4

config CONFIG_CRYPTO_GHASH_ARM64_CE
	tristate "GHASH/AES-GCM using ARMv8 Crypto Extensions"
	depends on CONFIG_KERNEL_MODE_NEON
	select CONFIG_CRYPTO_HASH
	select CONFIG_CRYPTO_GF128MUL
	select CONFIG_CRYPTO_LIB_AES

config CONFIG_CRYPTO_CRCT10DIF_ARM64_CE
	tristate "CRCT10DIF digest algorithm using PMULL instructions"
	depends on CONFIG_KERNEL_MODE_NEON && CONFIG_CRC_T10DIF
	select CONFIG_CRYPTO_HASH

config CONFIG_CRYPTO_AES_ARM64
	tristate "AES core cipher using scalar instructions"
	select CONFIG_CRYPTO_AES

config CONFIG_CRYPTO_AES_ARM64_CE
	tristate "AES core cipher using ARMv8 Crypto Extensions"
	depends on CONFIG_ARM64 && CONFIG_KERNEL_MODE_NEON
	select CONFIG_CRYPTO_ALGAPI
	select CONFIG_CRYPTO_LIB_AES

config CONFIG_CRYPTO_AES_ARM64_CE_CCM
	tristate "AES in CCM mode using ARMv8 Crypto Extensions"
	depends on CONFIG_ARM64 && CONFIG_KERNEL_MODE_NEON
	select CONFIG_CRYPTO_ALGAPI
	select CONFIG_CRYPTO_AES_ARM64_CE
	select CONFIG_CRYPTO_AEAD
	select CONFIG_CRYPTO_LIB_AES

config CONFIG_CRYPTO_AES_ARM64_CE_BLK
	tristate "AES in ECB/CBC/CTR/XTS modes using ARMv8 Crypto Extensions"
	depends on CONFIG_KERNEL_MODE_NEON
	select CONFIG_CRYPTO_BLKCIPHER
	select CONFIG_CRYPTO_AES_ARM64_CE
	select CONFIG_CRYPTO_AES_ARM64
	select CONFIG_CRYPTO_SIMD

config CONFIG_CRYPTO_AES_ARM64_NEON_BLK
	tristate "AES in ECB/CBC/CTR/XTS modes using NEON instructions"
	depends on CONFIG_KERNEL_MODE_NEON
	select CONFIG_CRYPTO_BLKCIPHER
	select CONFIG_CRYPTO_AES_ARM64
	select CONFIG_CRYPTO_LIB_AES
	select CONFIG_CRYPTO_SIMD

config CONFIG_CRYPTO_CHACHA20_NEON
	tristate "ChaCha20, XChaCha20, and XChaCha12 stream ciphers using NEON instructions"
	depends on CONFIG_KERNEL_MODE_NEON
	select CONFIG_CRYPTO_BLKCIPHER
	select CONFIG_CRYPTO_CHACHA20

config CONFIG_CRYPTO_NHPOLY1305_NEON
	tristate "NHPoly1305 hash function using NEON instructions (for Adiantum)"
	depends on CONFIG_KERNEL_MODE_NEON
	select CONFIG_CRYPTO_NHPOLY1305

config CONFIG_CRYPTO_AES_ARM64_BS
	tristate "AES in ECB/CBC/CTR/XTS modes using bit-sliced NEON algorithm"
	depends on CONFIG_KERNEL_MODE_NEON
	select CONFIG_CRYPTO_BLKCIPHER
	select CONFIG_CRYPTO_AES_ARM64_NEON_BLK
	select CONFIG_CRYPTO_AES_ARM64
	select CONFIG_CRYPTO_LIB_AES
	select CONFIG_CRYPTO_SIMD

endif