@@ -192,7 +192,7 @@ int wc_fspsm_GenerateRandBlock(byte* output, word32 sz)
192192{
193193 /* Generate PRNG based on NIST SP800-90A AES CTR-DRBG */
194194 int ret = 0 ;
195- word32 fspbuf [RANDGEN_WORDS ];
195+ uint32_t fspbuf [RANDGEN_WORDS ];
196196
197197 while (sz > 0 ) {
198198 word32 len = sizeof (buffer );
@@ -201,8 +201,8 @@ int wc_fspsm_GenerateRandBlock(byte* output, word32 sz)
201201 len = sz ;
202202 }
203203 /* return 4 words random number*/
204- ret = R_RANDOM_GEN (( uint32_t * ) fspbuf );
205- if (ret == FSP_SUCCESS ) {
204+ ret = R_RANDOM_GEN (fspbuf );
205+ if (ret == FSP_SUCCESS ) {
206206 XMEMCPY (output , & fspbuf , len );
207207 output += len ;
208208 sz -= len ;
@@ -404,7 +404,7 @@ int fspsm_EccSharedSecret(WOLFSSL* ssl, ecc_key* otherKey,
404404
405405 /* sanity check */
406406 if (ssl == NULL || pubKeyDer == NULL || pubKeySz == NULL ||
407- out == NULL || outlen == NULL || cbInfo == NULL ||
407+ out == NULL || outlen == NULL || cbInfo == NULL ||
408408 cbInfo -> internal == NULL )
409409 return WOLFSSL_FAILURE ;
410410
@@ -1251,6 +1251,7 @@ int wc_fspsm_TlsCleanup(WOLFSSL* ssl)
12511251 /* zero clear */
12521252 ForceZero (tuc , sizeof (FSPSM_ST ));
12531253 ssl -> RenesasUserCtx = NULL ;
1254+
12541255 return ret ;
12551256}
12561257/* Set callback contexts needed for sce TLS api handling */
0 commit comments