Skip to content

Commit 2d681da

Browse files
committed
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. Signed-off-by: Dominik Ermel <[email protected]>
1 parent c8470fb commit 2d681da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boot/bootutil/src/image_ed25519.c

+1-1
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)