Commit 8dd56f3f authored by Marko Kiiskila's avatar Marko Kiiskila Committed by David Brown
Browse files

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: default avatarMarko Kiiskila <marko@runtime.io>
Signed-off-by: default avatarDavid Brown <david.brown@linaro.org>
parent 22a46b2d
Loading
Loading
Loading
Loading
+1 −1
Changes for boot/bootutil/include/bootutil/image.h: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ struct flash_area;
 */
#define IMAGE_TLV_KEYHASH           0x01   /* hash of the public key */
#define IMAGE_TLV_SHA256            0x10   /* SHA256 of image hdr and body */
#define IMAGE_TLV_RSA2048           0x20   /* RSA2048 of hash output */
#define IMAGE_TLV_RSA2048_PSS       0x20   /* RSA2048 of hash output */
#define IMAGE_TLV_ECDSA224          0x21   /* ECDSA of hash output */
#define IMAGE_TLV_ECDSA256          0x22   /* ECDSA of hash output */

+1 −1
Changes for boot/bootutil/src/image_validate.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -94,7 +94,7 @@ bootutil_img_hash(struct image_header *hdr, const struct flash_area *fap,
 * configured for any signature, don't define this macro.
 */
#if defined(MCUBOOT_SIGN_RSA)
#    define EXPECTED_SIG_TLV IMAGE_TLV_RSA2048
#    define EXPECTED_SIG_TLV IMAGE_TLV_RSA2048_PSS
#    define EXPECTED_SIG_LEN(x) ((x) == 256) /* 2048 bits */
#    if defined(MCUBOOT_SIGN_EC) || defined(MCUBOOT_SIGN_EC256)
#        error "Multiple signature types not yet supported"
+1 −1
Changes for doc/design.txt: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -91,7 +91,7 @@ struct image_tlv {
 * Image trailer TLV types.
 */
#define IMAGE_TLV_SHA256            0x10   /* SHA256 of image hdr and body */
#define IMAGE_TLV_RSA2048           0x20   /* RSA2048 of hash output */
#define IMAGE_TLV_RSA2048_PSS       0x20   /* RSA2048 of hash output */
#define IMAGE_TLV_ECDSA224          0x21   /* ECDSA of hash output */
#define IMAGE_TLV_ECDSA256          0x22   /* ECDSA of hash output */