From 536cee8cf98ea83d1be2468f02870e1ebf1ab0de Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Mon, 1 Nov 2021 12:35:42 +0100 Subject: target: linux: config: Add kernel crypto user api symbols These are used by cryptsetup. Signed-off-by: Phil Sutter --- target/linux/config/Config.in.crypto | 57 ++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) (limited to 'target') diff --git a/target/linux/config/Config.in.crypto b/target/linux/config/Config.in.crypto index c25c7dc51..949b98312 100644 --- a/target/linux/config/Config.in.crypto +++ b/target/linux/config/Config.in.crypto @@ -556,5 +556,62 @@ config ADK_LINUX_KERNEL_CRYPTO_CRC32C See Castagnoli93. This implementation uses lib/libcrc32c. Module will be crc32c. +endmenu + +menu "User-space interface" + +config ADK_LINUX_KERNEL_CRYPTO_USER_API + tristate + +config ADK_LINUX_KERNEL_CRYPTO_USER_API_HASH + tristate "User-space interface for hash algorithms" + depends on ADK_LINUX_KERNEL_NET + select ADK_LINUX_KERNEL_CRYPTO_HASH + select ADK_LINUX_KERNEL_CRYPTO_USER_API + help + This option enables the user-spaces interface for hash + algorithms. + +config ADK_LINUX_KERNEL_CRYPTO_USER_API_SKCIPHER + tristate "User-space interface for symmetric key cipher algorithms" + depends on ADK_LINUX_KERNEL_NET + select ADK_LINUX_KERNEL_CRYPTO_BLKCIPHER + select ADK_LINUX_KERNEL_CRYPTO_USER_API + help + This option enables the user-spaces interface for symmetric + key cipher algorithms. + +config ADK_LINUX_KERNEL_CRYPTO_USER_API_RNG + tristate "User-space interface for random number generator algorithms" + depends on ADK_LINUX_KERNEL_NET + select ADK_LINUX_KERNEL_CRYPTO_RNG + select ADK_LINUX_KERNEL_CRYPTO_USER_API + help + This option enables the user-spaces interface for random + number generator algorithms. + +config ADK_LINUX_KERNEL_CRYPTO_USER_API_AEAD + tristate "User-space interface for AEAD cipher algorithms" + depends on ADK_LINUX_KERNEL_NET + select ADK_LINUX_KERNEL_CRYPTO_AEAD + select ADK_LINUX_KERNEL_CRYPTO_BLKCIPHER + select ADK_LINUX_KERNEL_CRYPTO_NULL + select ADK_LINUX_KERNEL_CRYPTO_USER_API + help + This option enables the user-spaces interface for AEAD + cipher algorithms. + +config ADK_LINUX_KERNEL_CRYPTO_STATS + bool "Crypto usage statistics for User-space" + depends on ADK_LINUX_KERNEL_CRYPTO_USER + help + This option enables the gathering of crypto stats. + This will collect: + - encrypt/decrypt size and numbers of symmeric operations + - compress/decompress size and numbers of compress operations + - size and numbers of hash operations + - encrypt/decrypt/sign/verify numbers for asymmetric operations + - generate/seed numbers for rng operations + endmenu endmenu -- cgit v1.2.3