From 54a3f2e7aac3b8059247a2f90269d5bea1873b0d Mon Sep 17 00:00:00 2001 From: Brett Nicholas <7547222+bigbrett@users.noreply.github.com> Date: Thu, 31 Oct 2024 10:23:26 -0600 Subject: [PATCH] removed unused arg --- src/wh_client_cryptocb.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/wh_client_cryptocb.c b/src/wh_client_cryptocb.c index 114b7fa..bbc7571 100644 --- a/src/wh_client_cryptocb.c +++ b/src/wh_client_cryptocb.c @@ -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 */ @@ -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 */ @@ -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; @@ -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; @@ -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 */