Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quick fix: remove unused arg #82

Merged
merged 1 commit into from
Nov 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions src/wh_client_cryptocb.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,13 @@


#ifndef NO_SHA256
static int _handleSha256(int devId, wc_CryptoInfo* info, void* inCtx,
whPacket* packet);
static int _handleSha256(wc_CryptoInfo* info, void* inCtx, whPacket* packet);
static int _xferSha256BlockAndUpdateDigest(whClientContext* ctx,
wc_Sha256* sha256,
whPacket* packet,
uint32_t isLastBlock);
#ifdef WOLFHSM_CFG_DMA
static int _handleSha256Dma(int devId, wc_CryptoInfo* info, void* inCtx,
whPacket* packet);
static int _handleSha256Dma(wc_CryptoInfo* info, void* inCtx, whPacket* packet);
#endif /* WOLFHSM_CFG_DMA */
#endif /* ! NO_SHA256 */

Expand Down Expand Up @@ -462,7 +460,7 @@ int wh_Client_CryptoCb(int devId, wc_CryptoInfo* info, void* inCtx)
switch (info->hash.type) {
#ifndef NO_SHA256
case WC_HASH_TYPE_SHA256:
ret = _handleSha256(devId, info, inCtx, packet);
ret = _handleSha256(info, inCtx, packet);
break;
#endif /* !NO_SHA256 */

Expand Down Expand Up @@ -494,8 +492,7 @@ int wh_Client_CryptoCb(int devId, wc_CryptoInfo* info, void* inCtx)
}

#ifndef NO_SHA256
static int _handleSha256(int devId, wc_CryptoInfo* info, void* inCtx,
whPacket* packet)
static int _handleSha256(wc_CryptoInfo* info, void* inCtx, whPacket* packet)
{
int ret = 0;
whClientContext* ctx = inCtx;
Expand Down Expand Up @@ -639,8 +636,7 @@ static int _xferSha256BlockAndUpdateDigest(whClientContext* ctx,

#ifdef WOLFHSM_CFG_DMA

static int _handleSha256Dma(int devId, wc_CryptoInfo* info, void* inCtx,
whPacket* packet)
static int _handleSha256Dma(wc_CryptoInfo* info, void* inCtx, whPacket* packet)
{
int ret = WH_ERROR_OK;
whClientContext* ctx = inCtx;
Expand Down Expand Up @@ -764,7 +760,7 @@ int wh_Client_CryptoCbDma(int devId, wc_CryptoInfo* info, void* inCtx)
switch (info->hash.type) {
#ifndef NO_SHA256
case WC_HASH_TYPE_SHA256:
ret = _handleSha256Dma(devId, info, inCtx, packet);
ret = _handleSha256Dma(info, inCtx, packet);
break;
#endif /* !NO_SHA256 */

Expand Down