Skip to content

Commit d4b265e

Browse files
committed
convert outLen type correctly
1 parent 6b1e6e3 commit d4b265e

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

wolfcrypt/src/port/Renesas/renesas_common.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ static int Renesas_cmn_CryptoDevCb(int devIdArg, wc_CryptoInfo* info, void* ctx)
376376
ret = wc_fspsm_RsaFunction(info->pk.rsa.in,
377377
info->pk.rsa.inLen,
378378
info->pk.rsa.out,
379-
(word32*)&info->pk.rsa.outLen,
379+
info->pk.rsa.outLen,
380380
info->pk.rsa.type,
381381
info->pk.rsa.key,
382382
info->pk.rsa.rng);
@@ -385,15 +385,15 @@ static int Renesas_cmn_CryptoDevCb(int devIdArg, wc_CryptoInfo* info, void* ctx)
385385
ret = wc_fspsm_RsaSign(info->pk.rsa.in,
386386
info->pk.rsa.inLen,
387387
info->pk.rsa.out,
388-
(word32*)&info->pk.rsa.outLen,
388+
info->pk.rsa.outLen,
389389
info->pk.rsa.key,
390390
(void*)ctx);
391391
}
392392
else if (info->pk.rsa.type == RSA_PUBLIC_DECRYPT /* verify */) {
393393
ret = wc_fspsm_RsaVerify(info->pk.rsa.in,
394394
info->pk.rsa.inLen,
395395
info->pk.rsa.out,
396-
(word32*)&info->pk.rsa.outLen,
396+
info->pk.rsa.outLen,
397397
info->pk.rsa.key,
398398
(void*)ctx);
399399
}

wolfcrypt/src/rsa.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3318,7 +3318,7 @@ static int RsaPublicEncryptEx(const byte* in, word32 inLen, byte* out,
33183318
if (key->devId != INVALID_DEVID) {
33193319
/* SCE supports 1024 and 2048 bits */
33203320
ret = wc_CryptoCb_Rsa(in, inLen, out,
3321-
outLen, rsa_type, key, rng);
3321+
&outLen, rsa_type, key, rng);
33223322
if (ret != CRYPTOCB_UNAVAILABLE)
33233323
return ret;
33243324
/* fall-through when unavailable */
@@ -3475,7 +3475,7 @@ static int RsaPrivateDecryptEx(const byte* in, word32 inLen, byte* out,
34753475
#ifdef WOLF_CRYPTO_CB
34763476
if (key->devId != INVALID_DEVID) {
34773477
ret = wc_CryptoCb_Rsa(in, inLen, out,
3478-
outLen, rsa_type, key, rng);
3478+
&outLen, rsa_type, key, rng);
34793479
if (ret != CRYPTOCB_UNAVAILABLE)
34803480
return ret;
34813481
/* fall-through when unavailable */

0 commit comments

Comments
 (0)