@@ -13,38 +13,14 @@ jobs:
1313 strategy :
1414 fail-fast : false
1515 matrix :
16- math : [SPMATH=1, SPMATHALL=1, FASTMATH=1]
17- smallstack : [WOLFBOOT_SMALL_STACK=0 WOLFBOOT_HUGE_STACK=1, WOLFBOOT_SMALL_STACK=1]
18- include :
19- - name : ED25519-SHA256
20- keygen : --ed25519
21- sign : --ed25519 --sha256
22- config : SIGN=ED25519 HASH=SHA256
23- - name : ECC256-SHA256
24- keygen : --ecc256
25- sign : --ecc256 --sha256
26- config : SIGN=ECC256 HASH=SHA256
27- - name : ECC384-SHA384
28- keygen : --ecc384
29- sign : --ecc384 --sha384
30- config : SIGN=ECC384 HASH=SHA384
31- - name : ECC521-SHA512
32- keygen : --ecc521
33- sign : --ecc521 --sha3
34- config : SIGN=ECC521 HASH=SHA3
35- - name : RSA2048-SHA256
36- keygen : --rsa2048
37- sign : --rsa2048 --sha256
38- config : SIGN=RSA2048 HASH=SHA256
39- - name : RSA3072-SHA384
40- keygen : --rsa3072
41- sign : --rsa3072 --sha384
42- config : SIGN=RSA3072 HASH=SHA384
43- - name : RSA4096-SHA512
44- keygen : --rsa4096
45- sign : --rsa4096 --sha3
46- config : SIGN=RSA4096 HASH=SHA3
47-
16+ math : [SPMATH=1 WOLFBOOT_SMALL_STACK=0,
17+ SPMATH=1 WOLFBOOT_SMALL_STACK=1,
18+ SPMATHALL=1 WOLFBOOT_SMALL_STACK=0,
19+ SPMATHALL=1 WOLFBOOT_SMALL_STACK=1,
20+ SPMATH=0 SPMATHALL=0 WOLFBOOT_SMALL_STACK=0,
21+ SPMATH=0 SPMATHALL=0 WOLFBOOT_SMALL_STACK=1]
22+ asym : [ed25519, ecc256, ecc384, ecc521, rsa2048, rsa3072, rsa4096, ed448]
23+ hash : [sha256, sha384, sha3]
4824 steps :
4925 - uses : actions/checkout@v4
5026 with :
@@ -55,13 +31,17 @@ jobs:
5531 make keysclean && make -C tools/keytools clean && rm -f include/target.h
5632
5733 - name : Build test-lib
34+ env :
35+ ASYM : ${{ matrix.asym }}
36+ HASH : ${{ matrix.hash }}
5837 run : |
5938 cp config/examples/library.config .config
6039 make keytools
61- ./tools/keytools/keygen ${{ matrix.keygen }} -g wolfboot_signing_private_key.der
40+ ./tools/keytools/keygen -- ${{ matrix.asym }} -g wolfboot_signing_private_key.der
6241 echo "Test" > test.bin
63- ./tools/keytools/sign ${{ matrix.sign }} test.bin wolfboot_signing_private_key.der 1
64- make test-lib ${{ matrix.math }} ${{ matrix.config }} ${{ matrix.smallstack }}
42+ ./tools/keytools/sign --${{ matrix.asym }} --${{ matrix.hash }} test.bin wolfboot_signing_private_key.der 1
43+ # Convert asym and hash to upper case
44+ make test-lib SIGN=${ASYM^^} HASH=${HASH^^}
6545
6646 - name : Run test-lib
6747 run : |
0 commit comments