From e84528205eb7a3ce44ff02e51892dbefe6261de0 Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Tue, 17 Jan 2017 13:39:26 -0700 Subject: [PATCH] chacha20_poly1305 function expects a key size of 32 bytes --- wolfssl/test.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wolfssl/test.h b/wolfssl/test.h index 3e278161c..e0b03c3b3 100644 --- a/wolfssl/test.h +++ b/wolfssl/test.h @@ -1979,8 +1979,8 @@ static INLINE const char* mymktemp(char *tempfn, int len, int num) #include typedef struct key_ctx { - byte name[WOLFSSL_TICKET_NAME_SZ]; /* name for this context */ - byte key[16]; /* cipher key */ + byte name[WOLFSSL_TICKET_NAME_SZ]; /* name for this context */ + byte key[CHACHA20_POLY1305_AEAD_KEYSIZE]; /* cipher key */ } key_ctx; static key_ctx myKey_ctx;