From d906b818f3395ee840fabe8dfd01d52b93431e92 Mon Sep 17 00:00:00 2001 From: Jaeden Amero Date: Fri, 8 Jun 2018 11:03:16 +0100 Subject: [PATCH] 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). --- tests/suites/test_suite_cipher.function | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/suites/test_suite_cipher.function b/tests/suites/test_suite_cipher.function index 8f1109ee84..9899289f00 100644 --- a/tests/suites/test_suite_cipher.function +++ b/tests/suites/test_suite_cipher.function @@ -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];