summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/config
diff options
context:
space:
mode:
authorVadim Fedorenko <vadfed@meta.com>2024-04-23 01:50:23 +0300
committerMartin KaFai Lau <martin.lau@kernel.org>2024-04-25 02:01:10 +0300
commit91541ab192fc7f573e6c711ba9c2ae22a299c408 (patch)
tree229a0f6d70ca1af847a13a6e29f737dbfeb19685 /tools/testing/selftests/bpf/config
parentfda4f71282b21a8cf230b656781efb0a41371fd4 (diff)
downloadlinux-91541ab192fc7f573e6c711ba9c2ae22a299c408.tar.xz
selftests: bpf: crypto skcipher algo selftests
Add simple tc hook selftests to show the way to work with new crypto BPF API. Some tricky dynptr initialization is used to provide empty iv dynptr. Simple AES-ECB algo is used to demonstrate encryption and decryption of fixed size buffers. Signed-off-by: Vadim Fedorenko <vadfed@meta.com> Link: https://lore.kernel.org/r/20240422225024.2847039-4-vadfed@meta.com Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/config')
-rw-r--r--tools/testing/selftests/bpf/config5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/config b/tools/testing/selftests/bpf/config
index afd675b1bf80..eeabd798bc3a 100644
--- a/tools/testing/selftests/bpf/config
+++ b/tools/testing/selftests/bpf/config
@@ -13,7 +13,12 @@ CONFIG_BPF_SYSCALL=y
CONFIG_CGROUP_BPF=y
CONFIG_CRYPTO_HMAC=y
CONFIG_CRYPTO_SHA256=y
+CONFIG_CRYPTO_USER_API=y
CONFIG_CRYPTO_USER_API_HASH=y
+CONFIG_CRYPTO_USER_API_SKCIPHER=y
+CONFIG_CRYPTO_SKCIPHER=y
+CONFIG_CRYPTO_ECB=y
+CONFIG_CRYPTO_AES=y
CONFIG_DEBUG_INFO=y
CONFIG_DEBUG_INFO_BTF=y
CONFIG_DEBUG_INFO_DWARF4=y