Skip to content

Commit 398c660

Browse files
committed
External key test: cleanup keystore.c before importing
1 parent b59f11b commit 398c660

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/test-keytools.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ jobs:
3333
run: |
3434
make SIGN=ECC256 HASH=SHA256
3535
36+
- name: Remove default keystore
37+
run: |
38+
rm -f src/keystore.c
39+
3640
- name: Generate external key
3741
run: |
3842
openssl ecparam -name prime256v1 -genkey -noout -outform DER -out private-key.der
@@ -75,6 +79,10 @@ jobs:
7579
run: |
7680
make SIGN=ED25519 HASH=SHA256
7781
82+
- name: Remove default keystore
83+
run: |
84+
rm -f src/keystore.c
85+
7886
- name: Generate external key
7987
run: |
8088
openssl genpkey -algorithm ed25519 -out private-key.der -outform DER
@@ -117,6 +125,10 @@ jobs:
117125
run: |
118126
make SIGN=RSA2048 HASH=SHA256
119127
128+
- name: Remove default keystore
129+
run: |
130+
rm -f src/keystore.c
131+
120132
- name: Generate external key
121133
run: |
122134
openssl genrsa -out private-key.pem 2048
@@ -258,7 +270,7 @@ jobs:
258270
run: |
259271
./tools/keytools/sign --ecc256 --sha256 --custom-tlv 0x45 4 0x6f616943 test-app/image.elf wolfboot_signing_private_key.der 2
260272
grep "Ciao" test-app/image_v2_signed.bin
261-
273+
262274
- name: Sign app with custom buffer TLV included
263275
run: |
264276
./tools/keytools/sign --ecc256 --sha256 --custom-tlv-buffer 0x46 48656C6C6F20776F726C64 test-app/image.elf wolfboot_signing_private_key.der 3
@@ -268,5 +280,5 @@ jobs:
268280
run: |
269281
./tools/keytools/sign --ecc256 --sha256 --custom-tlv-string 0x46 "Hello world" test-app/image.elf wolfboot_signing_private_key.der 3
270282
grep "Hello world" test-app/image_v3_signed.bin
271-
283+
272284

0 commit comments

Comments
 (0)