From 888bd2b304f1192e035bb21f99b2b3cc9eb6691b Mon Sep 17 00:00:00 2001 From: Hayden Roche Date: Thu, 20 Jan 2022 19:22:25 -0800 Subject: [PATCH] Fix AES-SIV test with g++. The string initializers for the AES-SIV test vector fields needed an extra byte for the null terminator expected by g++. --- wolfcrypt/test/test.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index 14b251e17..602e60cba 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -38869,16 +38869,16 @@ WOLFSSL_TEST_SUBROUTINE int time_test(void) #ifdef WOLFSSL_AES_SIV typedef struct { - const byte key[32]; + const byte key[33]; word32 keySz; - const byte nonce[48]; + const byte nonce[49]; word32 nonceSz; - const byte assoc[80]; + const byte assoc[81]; word32 assocSz; - const byte plaintext[82]; + const byte plaintext[83]; word32 plaintextSz; - const byte siv[AES_BLOCK_SIZE]; - const byte ciphertext[82]; + const byte siv[AES_BLOCK_SIZE+1]; + const byte ciphertext[83]; word32 ciphertextSz; } AesSivTestVector;