mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
convert outLen type correctly
This commit is contained in:
@ -376,7 +376,7 @@ static int Renesas_cmn_CryptoDevCb(int devIdArg, wc_CryptoInfo* info, void* ctx)
|
|||||||
ret = wc_fspsm_RsaFunction(info->pk.rsa.in,
|
ret = wc_fspsm_RsaFunction(info->pk.rsa.in,
|
||||||
info->pk.rsa.inLen,
|
info->pk.rsa.inLen,
|
||||||
info->pk.rsa.out,
|
info->pk.rsa.out,
|
||||||
(word32*)&info->pk.rsa.outLen,
|
info->pk.rsa.outLen,
|
||||||
info->pk.rsa.type,
|
info->pk.rsa.type,
|
||||||
info->pk.rsa.key,
|
info->pk.rsa.key,
|
||||||
info->pk.rsa.rng);
|
info->pk.rsa.rng);
|
||||||
@ -385,7 +385,7 @@ static int Renesas_cmn_CryptoDevCb(int devIdArg, wc_CryptoInfo* info, void* ctx)
|
|||||||
ret = wc_fspsm_RsaSign(info->pk.rsa.in,
|
ret = wc_fspsm_RsaSign(info->pk.rsa.in,
|
||||||
info->pk.rsa.inLen,
|
info->pk.rsa.inLen,
|
||||||
info->pk.rsa.out,
|
info->pk.rsa.out,
|
||||||
(word32*)&info->pk.rsa.outLen,
|
info->pk.rsa.outLen,
|
||||||
info->pk.rsa.key,
|
info->pk.rsa.key,
|
||||||
(void*)ctx);
|
(void*)ctx);
|
||||||
}
|
}
|
||||||
@ -393,7 +393,7 @@ static int Renesas_cmn_CryptoDevCb(int devIdArg, wc_CryptoInfo* info, void* ctx)
|
|||||||
ret = wc_fspsm_RsaVerify(info->pk.rsa.in,
|
ret = wc_fspsm_RsaVerify(info->pk.rsa.in,
|
||||||
info->pk.rsa.inLen,
|
info->pk.rsa.inLen,
|
||||||
info->pk.rsa.out,
|
info->pk.rsa.out,
|
||||||
(word32*)&info->pk.rsa.outLen,
|
info->pk.rsa.outLen,
|
||||||
info->pk.rsa.key,
|
info->pk.rsa.key,
|
||||||
(void*)ctx);
|
(void*)ctx);
|
||||||
}
|
}
|
||||||
|
@ -3318,7 +3318,7 @@ static int RsaPublicEncryptEx(const byte* in, word32 inLen, byte* out,
|
|||||||
if (key->devId != INVALID_DEVID) {
|
if (key->devId != INVALID_DEVID) {
|
||||||
/* SCE supports 1024 and 2048 bits */
|
/* SCE supports 1024 and 2048 bits */
|
||||||
ret = wc_CryptoCb_Rsa(in, inLen, out,
|
ret = wc_CryptoCb_Rsa(in, inLen, out,
|
||||||
outLen, rsa_type, key, rng);
|
&outLen, rsa_type, key, rng);
|
||||||
if (ret != CRYPTOCB_UNAVAILABLE)
|
if (ret != CRYPTOCB_UNAVAILABLE)
|
||||||
return ret;
|
return ret;
|
||||||
/* fall-through when unavailable */
|
/* fall-through when unavailable */
|
||||||
@ -3475,7 +3475,7 @@ static int RsaPrivateDecryptEx(const byte* in, word32 inLen, byte* out,
|
|||||||
#ifdef WOLF_CRYPTO_CB
|
#ifdef WOLF_CRYPTO_CB
|
||||||
if (key->devId != INVALID_DEVID) {
|
if (key->devId != INVALID_DEVID) {
|
||||||
ret = wc_CryptoCb_Rsa(in, inLen, out,
|
ret = wc_CryptoCb_Rsa(in, inLen, out,
|
||||||
outLen, rsa_type, key, rng);
|
&outLen, rsa_type, key, rng);
|
||||||
if (ret != CRYPTOCB_UNAVAILABLE)
|
if (ret != CRYPTOCB_UNAVAILABLE)
|
||||||
return ret;
|
return ret;
|
||||||
/* fall-through when unavailable */
|
/* fall-through when unavailable */
|
||||||
|
Reference in New Issue
Block a user