From d87ca700486fb6c52a8c4ab85b77a5d9be9549a5 Mon Sep 17 00:00:00 2001 From: Andrew Hutchings Date: Sat, 18 Oct 2025 06:18:29 +0100 Subject: [PATCH] Fix mixed declaration / code --- wolfcrypt/benchmark/benchmark.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/benchmark/benchmark.c b/wolfcrypt/benchmark/benchmark.c index 8fd7896cae..1ff1787379 100644 --- a/wolfcrypt/benchmark/benchmark.c +++ b/wolfcrypt/benchmark/benchmark.c @@ -5754,8 +5754,6 @@ void bench_aesxts(void) int i, count, ret; DECLARE_MULTI_VALUE_STATS_VARS() - bench_stats_prepare(); - static const unsigned char k1[] = { 0xa1, 0xb9, 0x0c, 0xba, 0x3f, 0x06, 0xac, 0x35, 0x3b, 0x2c, 0x34, 0x38, 0x76, 0x08, 0x17, 0x62, @@ -5768,6 +5766,8 @@ void bench_aesxts(void) 0x6e, 0x4b, 0x92, 0x01, 0x3e, 0x76, 0x8a, 0xd5 }; + bench_stats_prepare(); + WC_ALLOC_VAR(aes, XtsAes, 1, HEAP_HINT); ret = wc_AesXtsSetKey(aes, k1, sizeof(k1), AES_ENCRYPTION,