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 <geo.cgv@gmail.com>
  • Loading branch information
GeorgeCGV committed Oct 29, 2024
1 parent 439930a commit e85e98b
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 e85e98b

Please sign in to comment.