mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
fix compile error with EWARM
This commit is contained in:
@@ -2769,7 +2769,11 @@ static void bench_hmac(int doAsync, int type, int digestSz,
|
|||||||
Hmac hmac[BENCH_MAX_PENDING];
|
Hmac hmac[BENCH_MAX_PENDING];
|
||||||
double start;
|
double start;
|
||||||
int ret, i, count = 0, times, pending = 0;
|
int ret, i, count = 0, times, pending = 0;
|
||||||
|
#if defined(BENCH_EMBEDDED)
|
||||||
|
DECLARE_ARRAY(digest, byte, BENCH_MAX_PENDING, MAX_DIGEST_SIZE, HEAP_HINT);
|
||||||
|
#else
|
||||||
DECLARE_ARRAY(digest, byte, BENCH_MAX_PENDING, digestSz, HEAP_HINT);
|
DECLARE_ARRAY(digest, byte, BENCH_MAX_PENDING, digestSz, HEAP_HINT);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* clear for done cleanup */
|
/* clear for done cleanup */
|
||||||
XMEMSET(hmac, 0, sizeof(hmac));
|
XMEMSET(hmac, 0, sizeof(hmac));
|
||||||
|
Reference in New Issue
Block a user