From 45e98727148d43263fd16719aa5c15b5ea3831f5 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Wed, 15 Sep 2021 22:22:17 -0500 Subject: [PATCH] wolfcrypt/benchmark: fix output buffer size in bench_eccEncrypt(). --- wolfcrypt/benchmark/benchmark.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/benchmark/benchmark.c b/wolfcrypt/benchmark/benchmark.c index 8fcac8f36..07935e26d 100644 --- a/wolfcrypt/benchmark/benchmark.c +++ b/wolfcrypt/benchmark/benchmark.c @@ -5770,7 +5770,7 @@ void bench_eccEncrypt(int curveId) ecc_key userA, userB; int keySize; byte msg[48]; - byte out[80]; + byte out[sizeof(msg) + WC_SHA256_DIGEST_SIZE + (MAX_ECC_BITS+3)/4 + 2]; word32 outSz = sizeof(out); word32 bench_plainSz = BENCH_SIZE; int ret, i, count;