boot: Restore and extend the usage of 0x22 TLV (ECDSA256)
The IMAGE_TLV_ECDSA256 TLV has been put out of use by
commit 63d2346da428398077e3cf711d80ba8c0e6ff298.
This commit reverts this part of that patch and at the
same time it extends the usage of this TLV to cover all types
of curves (replacing the newly introduced 0x25 TLV type)
while retaining its value (0x22) for backward compatibility.
Rename IMAGE_TLV_ECDSA256 to IMAGE_TLV_ECDSA_SIG.
Change-Id: I904f292db775c38f26a5e9a87c5f414165efc173
Signed-off-by: David Vincze <david.vincze@arm.com>
diff --git a/scripts/imgtool/image.py b/scripts/imgtool/image.py
index de8352a..d722efd 100644
--- a/scripts/imgtool/image.py
+++ b/scripts/imgtool/image.py
@@ -64,10 +64,9 @@
'SHA256': 0x10,
'SHA384': 0x11,
'RSA2048': 0x20,
- 'ECDSA256': 0x22,
+ 'ECDSASIG': 0x22,
'RSA3072': 0x23,
'ED25519': 0x24,
- 'ECDSASIG': 0x25,
'ENCRSA2048': 0x30,
'ENCKW': 0x31,
'ENCEC256': 0x32,