From 3692c760b99bd46fefaa512e9149c5b5d72a8684 Mon Sep 17 00:00:00 2001 From: Ethan Looney Date: Tue, 17 Nov 2020 14:03:08 -0700 Subject: [PATCH] Changed key to size BLAKE2B_KEYBYTES --- tests/api.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/api.c b/tests/api.c index 02371ae63..dcd81fd13 100644 --- a/tests/api.c +++ b/tests/api.c @@ -5886,9 +5886,11 @@ static int test_wc_InitBlake2b_WithKey (void) #ifdef HAVE_BLAKE2 Blake2b blake2; word32 digestSz = BLAKE2B_KEYBYTES; - byte *key = (byte*)"01234567890123456789012345678901"; + byte key[BLAKE2B_KEYBYTES]; word32 keylen = BLAKE2B_KEYBYTES; + + printf(testingFmt, "wc_InitBlake2b_WithKey()"); /* Test good arg. */