We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99805c6 commit 6697e50Copy full SHA for 6697e50
src/image.c
@@ -417,7 +417,6 @@ static void wolfBoot_verify_signature_rsa(uint8_t key_slot,
417
int ret;
418
uint8_t output[RSA_IMAGE_SIGNATURE_SIZE];
419
uint8_t* digest_out = NULL;
420
- word32 inOutIdx = 0;
421
struct RsaKey rsa;
422
423
#if (!defined(WOLFBOOT_ENABLE_WOLFHSM_CLIENT) && \
@@ -519,6 +518,7 @@ static void wolfBoot_verify_signature_rsa(uint8_t key_slot,
519
518
/* wolfCrypt software RSA verify */
520
ret = wc_InitRsaKey(&rsa, NULL);
521
if (ret == 0) {
+ word32 inOutIdx = 0;
522
/* Import public key */
523
ret = wc_RsaPublicKeyDecode((byte*)pubkey, &inOutIdx, &rsa, pubkey_sz);
524
if (ret >= 0) {
0 commit comments