Skip to content

Commit 27c5f0e

Browse files
committed
update wolfHSM, add --flags field to add key usage for CI keys
1 parent c303129 commit 27c5f0e

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/test-wolfhsm-simulator.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ jobs:
111111
echo "obj 1 0xFFFF 0x0000 \"cert CA\" ../../../../../test-dummy-ca/root-cert.der" >> $tmpfile
112112
./Build/wh_posix_server.elf --type tcp --nvminit $tmpfile &
113113
else
114-
./Build/wh_posix_server.elf --type tcp --client 12 --id 255 --key ../../../../../wolfboot_signing_private_key_pub.der &
114+
# --flags=0x100 sets the WH_NVM_FLAGS_USAGE_VERIFY flag
115+
./Build/wh_posix_server.elf --type tcp --client 12 --id 255 --key --flags 0x100 ../../../../../wolfboot_signing_private_key_pub.der &
115116
fi
116117
TCP_SERVER_PID=$!
117118
echo "TCP_SERVER_PID=$TCP_SERVER_PID" >> $GITHUB_ENV

lib/wolfHSM

tools/scripts/tc3xx/wolfBoot-wolfHSM-keys.nvminit

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
#
33
# Key format is:
44
# key <clientId> <keyId> <access> <flags> <label> <file>
5-
key 0x1 0xFF 0xFF 0x00 "wolfBoot Pubkey" wolfboot_signing_private_key_pub.der
5+
# flags: WH_NVM_FLAGS_USAGE_VERIFY=0x100
6+
key 0x1 0xFF 0xFF 0x100 "wolfBoot Pubkey" wolfboot_signing_private_key_pub.der

0 commit comments

Comments
 (0)