Skip to content

Commit e339e5d

Browse files
committed
[nrf noup] boot: bootutil: Fix bl_secp256r1_validate call
The bl_secp256r1_validate call in bootutil_ecdsa_p256_verify has been given incorrect pointer to signature. Signed-off-by: Dominik Ermel <[email protected]>
1 parent 29b544f commit e339e5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boot/bootutil/include/bootutil/crypto/ecdsa_p256.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ static inline int bootutil_ecdsa_p256_verify(bootutil_ecdsa_p256_context *ctx,
419419
pk++;
420420

421421
return bl_secp256r1_validate(hash, BOOTUTIL_CRYPTO_ECDSA_P256_HASH_SIZE,
422-
pk, sig);
422+
pk, dsig);
423423
}
424424
#endif /* MCUBOOT_USE_NRF_EXTERNAL_CRYPTO */
425425

0 commit comments

Comments
 (0)