Skip to content

Commit 6029ddb

Browse files
philljjdanielinux
authored andcommitted
Update renode tests for LMS, XMSS, ext_LMS, ext_XMSS.
1 parent e50ff6e commit 6029ddb

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

.github/workflows/test-renode-nrf52.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,29 @@ jobs:
5858
- name: Renode Tests RSA4096
5959
run: ./tools/renode/docker-test.sh "SIGN=RSA4096"
6060

61+
#
62+
# LMS and ext_LMS tests
63+
#
6164
# LMS TEST
65+
- name: Renode Tests LMS-8-5-5
66+
run: ./tools/renode/docker-test.sh "SIGN=LMS LMS_LEVELS=2 LMS_HEIGHT=5 LMS_WINTERNITZ=8 WOLFBOOT_SMALL_STACK=0 IMAGE_SIGNATURE_SIZE=2644 IMAGE_HEADER_SIZE=5288"
67+
68+
# ext_LMS TEST
6269
- name: Renode Tests LMS-8-5-5
6370
run: ./tools/renode/docker-test.sh "SIGN=ext_LMS LMS_LEVELS=2 LMS_HEIGHT=5 LMS_WINTERNITZ=8 WOLFBOOT_SMALL_STACK=0 IMAGE_SIGNATURE_SIZE=2644 IMAGE_HEADER_SIZE=5288"
6471

72+
#
73+
# XMSS and ext_XMSS tests
74+
#
6575
# XMSS TEST
76+
- name: Renode Tests XMSS-SHA2_10_256
77+
run: ./tools/renode/docker-test.sh "SIGN=XMSS XMSS_PARAMS='XMSS-SHA2_10_256' WOLFBOOT_SMALL_STACK=0 IMAGE_SIGNATURE_SIZE=2500 IMAGE_HEADER_SIZE=5000"
78+
79+
# ext_XMSS TEST
6680
- name: Renode Tests XMSS-SHA2_10_256
6781
run: ./tools/renode/docker-test.sh "SIGN=ext_XMSS XMSS_PARAMS='XMSS-SHA2_10_256' WOLFBOOT_SMALL_STACK=0 IMAGE_SIGNATURE_SIZE=2500 IMAGE_HEADER_SIZE=5000"
6882

83+
6984
- name: Upload Output Dir
7085
uses: actions/upload-artifact@v2
7186
with:

tools/scripts/renode-test-update.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ quit_renode() {
2020

2121
rm -f $RENODE_UART
2222

23+
#
24+
# LMS and ext_LMS
25+
#
2326
if (echo $TEST_OPTIONS | grep "LMS" &>/dev/null); then
2427
# Need git.
2528
apt install -y git
@@ -28,7 +31,10 @@ if (echo $TEST_OPTIONS | grep "LMS" &>/dev/null); then
2831
# add the wolfssl module as a safe directory so docker can use it.
2932
git config --global --add safe.directory /workspace/lib/wolfssl || exit 2
3033
cd lib/wolfssl && git checkout master && git pull && cd ../.. || exit 2
34+
fi
3135

36+
if (echo $TEST_OPTIONS | grep "ext_LMS" &>/dev/null); then
37+
# Extra steps needed for external LMS support.
3238
# Need to clone the hash-sigs repo, and patch it for wolfBoot build.
3339
mkdir -p lib/hash-sigs/lib || exit 2
3440
git clone https://github.com/cisco/hash-sigs.git lib/hash-sigs/src || exit 2
@@ -37,6 +43,9 @@ if (echo $TEST_OPTIONS | grep "LMS" &>/dev/null); then
3743
cd ../../.. || exit 2
3844
fi
3945

46+
#
47+
# XMSS and ext_XMSS
48+
#
4049
if (echo $TEST_OPTIONS | grep "XMSS" &>/dev/null); then
4150
# Need git.
4251
apt install -y git
@@ -45,8 +54,10 @@ if (echo $TEST_OPTIONS | grep "XMSS" &>/dev/null); then
4554
# add the wolfssl module as a safe directory so docker can use it.
4655
git config --global --add safe.directory /workspace/lib/wolfssl || exit 2
4756
cd lib/wolfssl && git checkout master && git pull && cd ../.. || exit 2
57+
fi
4858

49-
59+
if (echo $TEST_OPTIONS | grep "ext_XMSS" &>/dev/null); then
60+
# Extra steps needed for external XMSS support.
5061
# Need to clone the hash-sigs repo, and patch it for wolfBoot build.
5162
cd lib || exit 2
5263
git clone https://github.com/XMSS/xmss-reference.git xmss || exit 2

0 commit comments

Comments
 (0)