From d5d451ec21d749f7bc09910f7c426f332c557900 Mon Sep 17 00:00:00 2001 From: Dominik Ermel Date: Thu, 4 May 2023 18:02:41 +0000 Subject: [PATCH] [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 (cherry picked from commit e339e5d69842fa3eab86c2deca8540eacecea41b) --- boot/bootutil/include/bootutil/crypto/ecdsa_p256.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/bootutil/include/bootutil/crypto/ecdsa_p256.h b/boot/bootutil/include/bootutil/crypto/ecdsa_p256.h index ef61a3ea9..0a466b843 100644 --- a/boot/bootutil/include/bootutil/crypto/ecdsa_p256.h +++ b/boot/bootutil/include/bootutil/crypto/ecdsa_p256.h @@ -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 */