Skip to content

Commit

Permalink
imgtool: fix signing for fix-sig-pubkey public rsa
Browse files Browse the repository at this point in the history
Add keys.RSAPublic to allowed key SHA dictionary.
  • Loading branch information
GeorgeCGV committed Oct 28, 2024
1 parent 439930a commit 95e06c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/imgtool/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ def tlv_sha_to_sha(tlv):
keys.ECDSA384P1Public : ['384'],
keys.ECDSA256P1 : ['256'],
keys.RSA : ['256'],
keys.RSAPublic : ['256'],
# This two are set to 256 for compatibility, the right would be 512
keys.Ed25519 : ['256', '512'],
keys.X25519 : ['256', '512']
Expand Down

0 comments on commit 95e06c5

Please sign in to comment.