Skip to content

Commit 7cd9919

Browse files
ThePassionatexiaoxiang781216
authored andcommitted
testing/crypto: add rsa testcase
Signed-off-by: makejian <[email protected]>
1 parent b1f2e63 commit 7cd9919

File tree

4 files changed

+425
-0
lines changed

4 files changed

+425
-0
lines changed

testing/crypto/CMakeLists.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,4 +159,18 @@ if(CONFIG_TESTING_CRYPTO)
159159
dhm.c)
160160
endif()
161161

162+
if(CONFIG_TESTING_CRYPTO_RSA)
163+
nuttx_add_application(
164+
NAME
165+
rsa
166+
PRIORITY
167+
${CONFIG_TESTING_CRYPTO_PRIORITY}
168+
STACKSIZE
169+
${CONFIG_TESTING_CRYPTO_STACKSIZE}
170+
MODULE
171+
${CONFIG_TESTING_CRYPTO}
172+
SRCS
173+
rsa.c)
174+
endif()
175+
162176
endif()

testing/crypto/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ config TESTING_CRYPTO_ECDH
4646
bool "ecdh crypto test"
4747
default n
4848

49+
config TESTING_CRYPTO_RSA
50+
bool "rsa crypto test"
51+
default n
52+
4953
config TESTING_CRYPTO_PRIORITY
5054
int "crypto test task priority"
5155
default 100

testing/crypto/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ PROGNAME += dhm
7171
MAINSRC += dhm.c
7272
endif
7373

74+
ifeq ($(CONFIG_TESTING_CRYPTO_RSA),y)
75+
PROGNAME += rsa
76+
MAINSRC += rsa.c
77+
endif
78+
7479
PRIORITY = $(CONFIG_TESTING_CRYPTO_PRIORITY)
7580
STACKSIZE = $(CONFIG_TESTING_CRYPTO_STACKSIZE)
7681
MODULE = $(CONFIG_TESTING_CRYPTO)

0 commit comments

Comments
 (0)