Changed key to size BLAKE2B_KEYBYTES

This commit is contained in:
Ethan Looney
2020-11-17 14:03:08 -07:00
parent 549c446aaa
commit 3692c760b9

View File

@@ -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. */