This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 6cd890e84 testing/crypto: add configs of crypto testing cases
6cd890e84 is described below
commit 6cd890e843bd29bf0282a0fee36f623262b91a8f
Author: makejian <[email protected]>
AuthorDate: Tue Jun 27 15:52:55 2023 +0800
testing/crypto: add configs of crypto testing cases
crypto testing cases managed by respective config
Signed-off-by: makejian <[email protected]>
---
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)