Skip to content

Commit c96a71f

Browse files
nordicjmde-nordic
authored andcommitted
[nrf fromtree] 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 <jamie.mccrae@nordicsemi.no> (cherry picked from commit a2ee0a7) Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
1 parent c0e7fed commit c96a71f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

scripts/imgtool/image.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ def tlv_sha_to_sha(tlv):
188188
keys.RSAPublic : ['256'],
189189
# This two are set to 256 for compatibility, the right would be 512
190190
keys.Ed25519 : ['256', '512'],
191+
keys.Ed25519Public : ['256', '512'],
191192
keys.X25519 : ['256', '512']
192193
}
193194

0 commit comments

Comments
 (0)