tests: cipher: Allocate enough space for XTS keys

XTS keys can be double the size, since XTS uses two keys concatenated
together as a key (one for the tweak, one for encryption).
This commit is contained in:
Jaeden Amero 2018-06-08 11:03:16 +01:00
parent 09317083b5
commit d906b818f3

View file

@ -134,7 +134,7 @@ void enc_dec_buf( int cipher_id, char *cipher_string, int key_len,
int length_val, int pad_mode )
{
size_t length = length_val, outlen, total_len, i, block_size;
unsigned char key[32];
unsigned char key[64];
unsigned char iv[16];
unsigned char ad[13];
unsigned char tag[16];