Skip to content

Commit

Permalink
testing/crypto: add configs of crypto testing cases
Browse files Browse the repository at this point in the history
crypto testing cases managed by respective config

Signed-off-by: makejian <[email protected]>
  • Loading branch information
makejian authored and xiaoxiang781216 committed Aug 9, 2023
1 parent 0c60164 commit 6cd890e
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 2 deletions.
20 changes: 20 additions & 0 deletions testing/crypto/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
27 changes: 25 additions & 2 deletions testing/crypto/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6cd890e

Please sign in to comment.