Skip to content

Commit ee9b72b

Browse files
committed
remove size shenannigans
1 parent f89daa9 commit ee9b72b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/image.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,11 @@ static void wolfBoot_verify_signature_rsa(uint8_t key_slot,
417417
int ret;
418418
uint8_t output[RSA_IMAGE_SIGNATURE_SIZE];
419419
uint8_t* digest_out = NULL;
420+
word32 inOutIdx = 0;
420421
struct RsaKey rsa;
421422

423+
(void)inOutIdx;
424+
422425
#if (!defined(WOLFBOOT_ENABLE_WOLFHSM_CLIENT) && \
423426
!defined(WOLFBOOT_ENABLE_WOLFHSM_SERVER)) || \
424427
(defined(WOLFBOOT_ENABLE_WOLFHSM_CLIENT) && \
@@ -519,7 +522,6 @@ static void wolfBoot_verify_signature_rsa(uint8_t key_slot,
519522
/* wolfCrypt software RSA verify */
520523
ret = wc_InitRsaKey(&rsa, NULL);
521524
if (ret == 0) {
522-
word32 inOutIdx = 0;
523525
/* Import public key */
524526
ret = wc_RsaPublicKeyDecode((byte*)pubkey, &inOutIdx, &rsa, pubkey_sz);
525527
if (ret >= 0) {

tools/test.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ test-size-all:
969969
make clean
970970
make test-size SIGN=ECC256 NO_ASM=1 LIMIT=13700 NO_ARM_ASM=1
971971
make keysclean
972-
make test-size SIGN=RSA2048 LIMIT=11400 NO_ARM_ASM=1
972+
make test-size SIGN=RSA2048 LIMIT=11396 NO_ARM_ASM=1
973973
make clean
974974
make test-size SIGN=RSA2048 NO_ASM=1 LIMIT=11976 NO_ARM_ASM=1
975975
make keysclean

0 commit comments

Comments
 (0)