Skip to content

Commit

Permalink
[nrf noup] boot: bootutil: Fix bl_secp256r1_validate call
Browse files Browse the repository at this point in the history
The bl_secp256r1_validate call in bootutil_ecdsa_p256_verify
has been given incorrect pointer to signature.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
(cherry picked from commit e339e5d)
  • Loading branch information
de-nordic committed May 26, 2023
1 parent 4921745 commit d5d451e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boot/bootutil/include/bootutil/crypto/ecdsa_p256.h
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ static inline int bootutil_ecdsa_p256_verify(bootutil_ecdsa_p256_context *ctx,
pk++;

return bl_secp256r1_validate(hash, BOOTUTIL_CRYPTO_ECDSA_P256_HASH_SIZE,
pk, sig);
pk, dsig);
}
#endif /* MCUBOOT_USE_NRF_EXTERNAL_CRYPTO */

Expand Down

0 comments on commit d5d451e

Please sign in to comment.