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.

Signed-off-by: Georgij Cernysiov <[email protected]>
  • Loading branch information
GeorgeCGV authored and nordicjm committed Oct 30, 2024
1 parent 41c6586 commit f74b77c
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 f74b77c

Please sign in to comment.