Skip to content

Commit 8dd56f3

Browse files
Marko Kiiskilad3zd3z
authored andcommitted
Change IMAGE_TLV_RSA2048 -> IMAGE_TLV_RSA2048_PSS
Clarify the name of the TLV field to more fully describe the signature type. Signed-off-by: Marko Kiiskila <marko@runtime.io> Signed-off-by: David Brown <david.brown@linaro.org>
1 parent 22a46b2 commit 8dd56f3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

boot/bootutil/include/bootutil/image.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ struct flash_area;
5858
*/
5959
#define IMAGE_TLV_KEYHASH 0x01 /* hash of the public key */
6060
#define IMAGE_TLV_SHA256 0x10 /* SHA256 of image hdr and body */
61-
#define IMAGE_TLV_RSA2048 0x20 /* RSA2048 of hash output */
61+
#define IMAGE_TLV_RSA2048_PSS 0x20 /* RSA2048 of hash output */
6262
#define IMAGE_TLV_ECDSA224 0x21 /* ECDSA of hash output */
6363
#define IMAGE_TLV_ECDSA256 0x22 /* ECDSA of hash output */
6464

boot/bootutil/src/image_validate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ bootutil_img_hash(struct image_header *hdr, const struct flash_area *fap,
9494
* configured for any signature, don't define this macro.
9595
*/
9696
#if defined(MCUBOOT_SIGN_RSA)
97-
# define EXPECTED_SIG_TLV IMAGE_TLV_RSA2048
97+
# define EXPECTED_SIG_TLV IMAGE_TLV_RSA2048_PSS
9898
# define EXPECTED_SIG_LEN(x) ((x) == 256) /* 2048 bits */
9999
# if defined(MCUBOOT_SIGN_EC) || defined(MCUBOOT_SIGN_EC256)
100100
# error "Multiple signature types not yet supported"

doc/design.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ struct image_tlv {
9191
* Image trailer TLV types.
9292
*/
9393
#define IMAGE_TLV_SHA256 0x10 /* SHA256 of image hdr and body */
94-
#define IMAGE_TLV_RSA2048 0x20 /* RSA2048 of hash output */
94+
#define IMAGE_TLV_RSA2048_PSS 0x20 /* RSA2048 of hash output */
9595
#define IMAGE_TLV_ECDSA224 0x21 /* ECDSA of hash output */
9696
#define IMAGE_TLV_ECDSA256 0x22 /* ECDSA of hash output */
9797

0 commit comments

Comments
 (0)