Skip to content

Commit

Permalink
Added tests for custom-tlv parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
danielinux committed Feb 29, 2024
1 parent 429474d commit 5109807
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/test-keytools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -237,4 +237,28 @@ jobs:
run: |
./tools/keytools/keygen --id 1,3,5,10,11,13,14 --ecc256 -g wolfboot_signing_private_key.der | grep "mask" | grep "00006c2a"
# Custom TLVs
- name: make clean
run: |
make distclean
- name: Select config
run: |
cp config/examples/sim.config .config && make include/target.h
- name: Build tools
run: |
make -C tools/keytools && make -C tools/bin-assemble
- name: Build wolfboot with ECC256/SHA256
run: |
make SIGN=ECC256 HASH=SHA256
- name: Sign app with custom numeric TLV included
./tools/keytools/sign --ecc256 --sha256 --custom-tlv 0x45 4 0x6f616943 test-app/image.bin wolfboot_signing_private_key.der 2
grep "Ciao" test-app/image_v2_signed.bin

- name: Sign app with custom buffer TLV included
./tools/keytools/sign --ecc256 --sha256 --custom-tlv-buffer 0x46 48656C6C6F20776F726C64 test-app/image.bin wolfboot_signing_private_key.der 3
grep "Hello world" test-app/image_v3_signed.bin

0 comments on commit 5109807

Please sign in to comment.