Skip to content

Commit ed2f0fa

Browse files
committed
bootutil: Add SIG_PURE TLV
The commit adds SIG_PURE TLV that should be used as TLV indicating that the signature attached to image has been calculated over entire image, rather than digest of image. This is generic flag as the "pure" usage may be applied to, potentially, any signature algorithm. Signed-off-by: Dominik Ermel <[email protected]>
1 parent 52e2afc commit ed2f0fa

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

boot/bootutil/include/bootutil/image.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ struct flash_area;
101101
#define IMAGE_TLV_ECDSA_SIG 0x22 /* ECDSA of hash output */
102102
#define IMAGE_TLV_RSA3072_PSS 0x23 /* RSA3072 of hash output */
103103
#define IMAGE_TLV_ED25519 0x24 /* ed25519 of hash output */
104+
#define IMAGE_TLV_SIG_PURE 0x25 /* PureEdDSA ed25519 over image */
104105
#define IMAGE_TLV_ENC_RSA2048 0x30 /* Key encrypted with RSA-OAEP-2048 */
105106
#define IMAGE_TLV_ENC_KW 0x31 /* Key encrypted with AES-KW 128 or 256*/
106107
#define IMAGE_TLV_ENC_EC256 0x32 /* Key encrypted with ECIES-EC256 */

scripts/imgtool/image.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
'ECDSASIG': 0x22,
7070
'RSA3072': 0x23,
7171
'ED25519': 0x24,
72+
'SIG_PURE': 0x25,
7273
'ENCRSA2048': 0x30,
7374
'ENCKW': 0x31,
7475
'ENCEC256': 0x32,

0 commit comments

Comments
 (0)