From e7c8a1c64b39facc6e065923fcbb856542d5e176 Mon Sep 17 00:00:00 2001 From: Salamist <31216142+Salamist@users.noreply.github.com> Date: Wed, 4 Dec 2024 22:32:35 +0000 Subject: [PATCH] Add allowed hash for ECDSA256P1Public key --- scripts/imgtool/image.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/imgtool/image.py b/scripts/imgtool/image.py index 5fec3c1b7..4be9be7e8 100644 --- a/scripts/imgtool/image.py +++ b/scripts/imgtool/image.py @@ -183,6 +183,7 @@ def tlv_sha_to_sha(tlv): keys.ECDSA384P1 : ['384'], keys.ECDSA384P1Public : ['384'], keys.ECDSA256P1 : ['256'], + keys.ECDSA256P1Public : ['256'], keys.RSA : ['256'], keys.RSAPublic : ['256'], # This two are set to 256 for compatibility, the right would be 512