Skip to content

Commit f203bf1

Browse files
de-nordicnvlsianpu
authored andcommitted
[nrf fromlist] bootutil: Fix ed25519 pure signature verification
Accidentally added check for size of blen against hash length, in bootutil_verify, was doubling check done in bootutli_verify_sig and prevented pure signature from working. Upstream PR #: 2237 Signed-off-by: Dominik Ermel <[email protected]>
1 parent 04c71e3 commit f203bf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boot/bootutil/src/image_ed25519.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ bootutil_verify(uint8_t *buf, uint32_t blen,
9090
uint8_t *pubkey;
9191
uint8_t *end;
9292

93-
if (blen != IMAGE_HASH_SIZE || slen != EDDSA_SIGNATURE_LENGTH) {
93+
if (slen != EDDSA_SIGNATURE_LENGTH) {
9494
FIH_SET(fih_rc, FIH_FAILURE);
9595
goto out;
9696
}

0 commit comments

Comments
 (0)