Skip to content

Commit 6f8cf9c

Browse files
dgarskedanielinux
authored andcommitted
Add matrix for all math and sign/hash types.
1 parent 83ee7bb commit 6f8cf9c

File tree

1 file changed

+37
-3
lines changed

1 file changed

+37
-3
lines changed

.github/workflows/test-library.yml

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,40 @@ jobs:
1010
test-lib:
1111
runs-on: ubuntu-latest
1212

13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
math: [SPMATH=1, SPMATHALL=1, FASTMATH=1]
17+
include:
18+
- name: ED25519-SHA256
19+
keygen: --ed25519
20+
sign: --ed25519 --sha256
21+
config: SIGN=ED25519 HASH=SHA256
22+
- name: ECC256-SHA256
23+
keygen: --ecc256
24+
sign: --ecc256 --sha256
25+
config: SIGN=ECC256 HASH=SHA256
26+
- name: ECC384-SHA384
27+
keygen: --ecc384
28+
sign: --ecc384 --sha384
29+
config: SIGN=ECC384 HASH=SHA384
30+
- name: ECC521-SHA512
31+
keygen: --ecc521
32+
sign: --ecc521 --sha3
33+
config: SIGN=ECC521 HASH=SHA3
34+
- name: RSA2048-SHA256
35+
keygen: --rsa2048
36+
sign: --rsa2048 --sha256
37+
config: SIGN=RSA2048 HASH=SHA256
38+
- name: RSA3072-SHA384
39+
keygen: --rsa3072
40+
sign: --rsa3072 --sha384
41+
config: SIGN=RSA3072 HASH=SHA384
42+
- name: RSA4096-SHA512
43+
keygen: --rsa4096
44+
sign: --rsa4096 --sha3
45+
config: SIGN=RSA4096 HASH=SHA3
46+
1347
steps:
1448
- uses: actions/checkout@v4
1549
with:
@@ -23,10 +57,10 @@ jobs:
2357
run: |
2458
cp config/examples/library.config .config
2559
make keytools
26-
./tools/keytools/keygen --ed25519 -g wolfboot_signing_private_key.der
60+
./tools/keytools/keygen ${{ matrix.keygen }} -g wolfboot_signing_private_key.der
2761
echo "Test" > test.bin
28-
./tools/keytools/sign --ed25519 --sha256 test.bin wolfboot_signing_private_key.der 1
29-
make test-lib
62+
./tools/keytools/sign ${{ matrix.sign }} test.bin wolfboot_signing_private_key.der 1
63+
make test-lib ${{ matrix.math }} ${{ matrix.config }}
3064
3165
- name: Run test-lib
3266
run: |

0 commit comments

Comments
 (0)