mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-28 00:02:20 +01:00
Fix for building with BENCH_EMBEDDED. Fix for building without OPENSSL_EXTRA where wolfSSL_OPENSSL_malloc assumes size_t is defined. Improvements to the GCC-ARM IDE example.
This commit is contained in:
@@ -3138,10 +3138,11 @@ static void bench_hmac(int doAsync, int type, int digestSz,
|
||||
int ret = 0, i, count = 0, times, pending = 0;
|
||||
#if defined(BENCH_EMBEDDED)
|
||||
DECLARE_ARRAY(digest, byte, BENCH_MAX_PENDING, MAX_DIGEST_SIZE, HEAP_HINT);
|
||||
(void)digestSz;
|
||||
#else
|
||||
DECLARE_ARRAY(digest, byte, BENCH_MAX_PENDING, digestSz, HEAP_HINT);
|
||||
#endif
|
||||
|
||||
|
||||
/* clear for done cleanup */
|
||||
XMEMSET(hmac, 0, sizeof(hmac));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user