diff --git a/wolfcrypt/src/port/Renesas/renesas_common.c b/wolfcrypt/src/port/Renesas/renesas_common.c index e856af20b..ff3fbe199 100644 --- a/wolfcrypt/src/port/Renesas/renesas_common.c +++ b/wolfcrypt/src/port/Renesas/renesas_common.c @@ -37,8 +37,8 @@ #include #include -extern uint32_t g_CAscm_Idx = (uint32_t)-1; /* index of CM table */ -static int devId = 7890; /* dev Id for Crypt Callback */ +uint32_t g_CAscm_Idx = (uint32_t)-1; /* index of CM table */ +static int devId = 7890; /* dev Id for Crypt Callback */ #ifdef WOLF_CRYPTO_CB diff --git a/wolfcrypt/src/port/Renesas/renesas_sce_util.c b/wolfcrypt/src/port/Renesas/renesas_sce_util.c index f494924a2..655a527ab 100644 --- a/wolfcrypt/src/port/Renesas/renesas_sce_util.c +++ b/wolfcrypt/src/port/Renesas/renesas_sce_util.c @@ -53,7 +53,7 @@ static const byte* ca_cert_sig; static sce_key_data g_user_key_info; static uint32_t g_encrypted_publicCA_key[HW_SCE_SINST_WORD_SIZE]; -uint32_t g_CAscm_Idx; /* index of CM table */ +extern uint32_t g_CAscm_Idx; /* index of CM table */ wolfSSL_Mutex sce_mutex; static int sce_CryptHwMutexInit_ = 0; static uint32_t sce_sess_idx = 0; diff --git a/wolfssl/wolfcrypt/port/Renesas/renesas_cmn.h b/wolfssl/wolfcrypt/port/Renesas/renesas_cmn.h index c049c6345..37a118bb0 100644 --- a/wolfssl/wolfcrypt/port/Renesas/renesas_cmn.h +++ b/wolfssl/wolfcrypt/port/Renesas/renesas_cmn.h @@ -32,7 +32,7 @@ WOLFSSL_LOCAL int Renesas_cmn_RsaEnc(WOLFSSL* ssl, const unsigned char* in, unsigned int inSz, unsigned char* out, word32* outSz, const unsigned char* keyDer, unsigned int keySz, void* ctx); WOLFSSL_LOCAL int Renesas_cmn_VerifyHmac(WOLFSSL *ssl, const byte* message, - word32 messageSz, word32 macSz, word32 content); + word32 messageSz, word32 macSz, word32 content, void* ctx); WOLFSSL_LOCAL int Renesas_cmn_EccVerify(WOLFSSL* ssl, const uint8_t* sig, uint32_t sigSz, const uint8_t* hash, uint32_t hashSz, const uint8_t* key, uint32_t keySz, int* result, void* ctx);