Skip to content

Commit a2ee0a7

Browse files
nordicjmde-nordic
authored andcommitted
scripts: imgtool: Fix verification with public ed25519 key file
Fixes an issue whereby ed25519 public keys were not supported for verifying images which would wrongly give an error about the key type not matching the TLV record Signed-off-by: Jamie McCrae <[email protected]>
1 parent 7144c11 commit a2ee0a7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/imgtool/image.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ def tlv_sha_to_sha(tlv):
194194
keys.RSAPublic : ['256'],
195195
# This two are set to 256 for compatibility, the right would be 512
196196
keys.Ed25519 : ['256', '512'],
197+
keys.Ed25519Public : ['256', '512'],
197198
keys.X25519 : ['256', '512']
198199
}
199200

0 commit comments

Comments
 (0)