Skip to content

Commit 0996e0f

Browse files
committed
Added tests for custom-tlv parameters
1 parent df3ccc5 commit 0996e0f

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/test-keytools.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,4 +237,30 @@ jobs:
237237
run: |
238238
./tools/keytools/keygen --id 1,3,5,10,11,13,14 --ecc256 -g wolfboot_signing_private_key.der | grep "mask" | grep "00006c2a"
239239
240+
# Custom TLVs
241+
- name: make clean
242+
run: |
243+
make distclean
244+
245+
- name: Select config
246+
run: |
247+
cp config/examples/sim.config .config && make include/target.h
248+
249+
- name: Build tools
250+
run: |
251+
make -C tools/keytools && make -C tools/bin-assemble
252+
253+
- name: Build wolfboot with ECC256/SHA256
254+
run: |
255+
make SIGN=ECC256 HASH=SHA256
256+
257+
- name: Sign app with custom numeric TLV included
258+
run: |
259+
./tools/keytools/sign --ecc256 --sha256 --custom-tlv 0x45 4 0x6f616943 test-app/image.elf wolfboot_signing_private_key.der 2
260+
grep "Ciao" test-app/image_v2_signed.bin
261+
262+
- name: Sign app with custom buffer TLV included
263+
run: |
264+
./tools/keytools/sign --ecc256 --sha256 --custom-tlv-buffer 0x46 48656C6C6F20776F726C64 test-app/image.elf wolfboot_signing_private_key.der 3
265+
grep "Hello world" test-app/image_v3_signed.bin
240266

0 commit comments

Comments
 (0)