3434int _benchSha256 (whClientContext * client , whBenchOpContext * ctx , int id ,
3535 int devId )
3636{
37- (void )client ;
38-
3937 int ret = 0 ;
4038 wc_Sha256 * sha256 = NULL ;
4139 wc_Sha256 sha256Stack ;
@@ -46,6 +44,8 @@ int _benchSha256(whClientContext* client, whBenchOpContext* ctx, int id,
4644 const uint8_t * in ;
4745 size_t inLen ;
4846
47+ (void )client ;
48+
4949 sha256 = & sha256Stack ;
5050 out = outStack ;
5151
@@ -192,8 +192,6 @@ int wh_Bench_Mod_Sha256Dma(whClientContext* client, whBenchOpContext* ctx,
192192int _benchSha224 (whClientContext * client , whBenchOpContext * ctx , int id ,
193193 int devId )
194194{
195- (void )client ;
196-
197195 int ret = 0 ;
198196 wc_Sha224 sha224 [1 ];
199197 uint8_t out [WC_SHA224_DIGEST_SIZE ];
@@ -202,6 +200,8 @@ int _benchSha224(whClientContext* client, whBenchOpContext* ctx, int id,
202200 const uint8_t * in ;
203201 size_t inLen ;
204202
203+ (void )client ;
204+
205205#if defined(WOLFHSM_CFG_DMA )
206206 if (devId == WH_DEV_ID_DMA ) {
207207 in = WH_BENCH_DMA_BUFFER ;
@@ -313,8 +313,6 @@ int wh_Bench_Mod_Sha224Dma(whClientContext* client, whBenchOpContext* ctx,
313313int _benchSha384 (whClientContext * client , whBenchOpContext * ctx , int id ,
314314 int devId )
315315{
316- (void )client ;
317-
318316 int ret = 0 ;
319317 wc_Sha384 sha384 [1 ];
320318 uint8_t out [WC_SHA384_DIGEST_SIZE ];
@@ -323,6 +321,8 @@ int _benchSha384(whClientContext* client, whBenchOpContext* ctx, int id,
323321 const uint8_t * in ;
324322 size_t inLen ;
325323
324+ (void )client ;
325+
326326#if defined(WOLFHSM_CFG_DMA )
327327 if (devId == WH_DEV_ID_DMA ) {
328328 in = WH_BENCH_DMA_BUFFER ;
@@ -433,8 +433,6 @@ int wh_Bench_Mod_Sha384Dma(whClientContext* client, whBenchOpContext* ctx,
433433int _benchSha512 (whClientContext * client , whBenchOpContext * ctx , int id ,
434434 int devId )
435435{
436- (void )client ;
437-
438436 int ret = 0 ;
439437 wc_Sha512 sha512 [1 ];
440438 uint8_t out [WC_SHA512_DIGEST_SIZE ];
@@ -443,6 +441,8 @@ int _benchSha512(whClientContext* client, whBenchOpContext* ctx, int id,
443441 const uint8_t * in ;
444442 size_t inLen ;
445443
444+ (void )client ;
445+
446446#if defined(WOLFHSM_CFG_DMA )
447447 if (devId == WH_DEV_ID_DMA ) {
448448 in = WH_BENCH_DMA_BUFFER ;
0 commit comments