Skip to content

Commit f74b77c

Browse files
GeorgeCGVnordicjm
authored andcommitted
imgtool: fix signing for fix-sig-pubkey public rsa
Add keys.RSAPublic to allowed key SHA dictionary. Signed-off-by: Georgij Cernysiov <[email protected]>
1 parent 41c6586 commit f74b77c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/imgtool/image.py

+1
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ def tlv_sha_to_sha(tlv):
184184
keys.ECDSA384P1Public : ['384'],
185185
keys.ECDSA256P1 : ['256'],
186186
keys.RSA : ['256'],
187+
keys.RSAPublic : ['256'],
187188
# This two are set to 256 for compatibility, the right would be 512
188189
keys.Ed25519 : ['256', '512'],
189190
keys.X25519 : ['256', '512']

0 commit comments

Comments
 (0)