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++.
This commit is contained in:
Hayden Roche
2022-01-20 19:22:25 -08:00
parent d1a23a3285
commit 888bd2b304

View File

@ -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;