From 6cd890e843bd29bf0282a0fee36f623262b91a8f Mon Sep 17 00:00:00 2001 From: makejian Date: Tue, 27 Jun 2023 15:52:55 +0800 Subject: [PATCH] testing/crypto: add configs of crypto testing cases crypto testing cases managed by respective config Signed-off-by: makejian --- testing/crypto/Kconfig | 20 ++++++++++++++++++++ testing/crypto/Makefile | 27 +++++++++++++++++++++++++-- 2 files changed, 45 insertions(+), 2 deletions(-) diff --git a/testing/crypto/Kconfig b/testing/crypto/Kconfig index d951f9ea5..ce0ed64ed 100644 --- a/testing/crypto/Kconfig +++ b/testing/crypto/Kconfig @@ -6,6 +6,26 @@ config TESTING_CRYPTO if TESTING_CRYPTO +config TESTING_CRYPTO_3DES_CBC + bool "3des-cbc crypto test" + default y + +config TESTING_CRYPTO_AES_CBC + bool "aes-cbc crypto test" + default y + +config TESTING_CRYPTO_AES_CTR + bool "aes-ctr crypto test" + default y + +config TESTING_CRYPTO_AES_XTS + bool "aes-xts crypto test" + default y + +config TESTING_CRYPTO_HMAC + bool "hmac crypto test" + default y + config TESTING_CRYPTO_PRIORITY int "crypto test task priority" default 100 diff --git a/testing/crypto/Makefile b/testing/crypto/Makefile index 7f1c44515..25a0caefc 100644 --- a/testing/crypto/Makefile +++ b/testing/crypto/Makefile @@ -21,8 +21,31 @@ include $(APPDIR)/Make.defs # Generic file system stress test application info -PROGNAME = des3cbc aesxts aesctr hmac aescbc -MAINSRC = 3descbc.c aesxts.c aesctr.c hmac.c aescbc.c +ifeq ($(CONFIG_TESTING_CRYPTO_3DES_CBC),y) +PROGNAME += des3cbc +MAINSRC += 3descbc.c +endif + +ifeq ($(CONFIG_TESTING_CRYPTO_AES_XTS),y) +PROGNAME += aesxts +MAINSRC += aesxts.c +endif + +ifeq ($(CONFIG_TESTING_CRYPTO_AES_CTR),y) +PROGNAME += aesctr +MAINSRC += aesctr.c +endif + +ifeq ($(CONFIG_TESTING_CRYPTO_AES_CBC),y) +PROGNAME += aescbc +MAINSRC += aescbc.c +endif + +ifeq ($(CONFIG_TESTING_CRYPTO_HMAC),y) +PROGNAME += hmac +MAINSRC += hmac.c +endif + PRIORITY = $(CONFIG_TESTING_CRYPTO_PRIORITY) STACKSIZE = $(CONFIG_TESTING_CRYPTO_STACKSIZE) MODULE = $(CONFIG_TESTING_CRYPTO)