Skip to content

Commit 7ca1fa1

Browse files
committed
bootutil: Add TLV for correct ED25519 usage
The pure ED25519 TLV has stores ED25519 signature over SHA512 of image, rather than signature over SHA512 of SHA256 of image. Signed-off-by: Dominik Ermel <[email protected]>
1 parent f763c5f commit 7ca1fa1

File tree

1 file changed

+1
-0
lines changed
  • boot/bootutil/include/bootutil

1 file changed

+1
-0
lines changed

boot/bootutil/include/bootutil/image.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ struct flash_area;
9494
#define IMAGE_TLV_ECDSA_SIG 0x22 /* ECDSA of hash output */
9595
#define IMAGE_TLV_RSA3072_PSS 0x23 /* RSA3072 of hash output */
9696
#define IMAGE_TLV_ED25519 0x24 /* ed25519 of hash output */
97+
#define IMAGE_TLV_ED25519_PURE 0x25 /* ed25519 over SHA512 of the image */
9798
#define IMAGE_TLV_ENC_RSA2048 0x30 /* Key encrypted with RSA-OAEP-2048 */
9899
#define IMAGE_TLV_ENC_KW 0x31 /* Key encrypted with AES-KW 128 or 256*/
99100
#define IMAGE_TLV_ENC_EC256 0x32 /* Key encrypted with ECIES-EC256 */

0 commit comments

Comments
 (0)