From 379212acecc013a3d471e217b323c16399457c78 Mon Sep 17 00:00:00 2001 From: Ethan Looney Date: Tue, 14 Jul 2020 12:28:43 -0700 Subject: [PATCH] Initialized variable data --- tests/api.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/api.c b/tests/api.c index fe71e7314..9c4a7bfba 100644 --- a/tests/api.c +++ b/tests/api.c @@ -9268,8 +9268,11 @@ static int test_wc_Shake256Hash(void) int ret = 0; #if defined(WOLFSSL_SHAKE256) && !defined(WOLFSSL_NO_SHAKE256) - const byte data[FOURK_BUF]; - word32 len = sizeof(data); + const byte data[] = { /* Hello World */ + 0x48,0x65,0x6c,0x6c,0x6f,0x20,0x57,0x6f, + 0x72,0x6c,0x64 + }; + word32 len = sizeof(data); byte hash[WC_MD5_DIGEST_SIZE]; word32 hashLen = sizeof(hash);