From e8b8d01782375cf43367fd2de65946a08adf81f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Tue, 6 May 2014 18:19:06 +0200 Subject: [PATCH] Use tighter buffers in CCM test suite --- tests/suites/test_suite_ccm.function | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/suites/test_suite_ccm.function b/tests/suites/test_suite_ccm.function index b259edf0a..9a7f42d89 100644 --- a/tests/suites/test_suite_ccm.function +++ b/tests/suites/test_suite_ccm.function @@ -74,12 +74,12 @@ void ccm_encrypt_and_tag( int cipher_id, char *iv_hex, char *add_hex, char *result_hex ) { - unsigned char key[128]; - unsigned char msg[128]; - unsigned char iv[128]; - unsigned char add[128]; - unsigned char output[144]; - unsigned char result[144]; + unsigned char key[32]; + unsigned char msg[50]; + unsigned char iv[13]; + unsigned char add[32]; + unsigned char output[50]; + unsigned char result[50]; ccm_context ctx; size_t key_len, msg_len, iv_len, add_len, tag_len, result_len; @@ -117,12 +117,12 @@ void ccm_auth_decrypt( int cipher_id, char *iv_hex, char *add_hex, int tag_len, char *result_hex ) { - unsigned char key[128]; - unsigned char msg[128]; - unsigned char iv[128]; - unsigned char add[128]; - unsigned char output[144]; - unsigned char result[144]; + unsigned char key[32]; + unsigned char msg[50]; + unsigned char iv[13]; + unsigned char add[32]; + unsigned char output[50]; + unsigned char result[50]; ccm_context ctx; size_t key_len, msg_len, iv_len, add_len, result_len; int ret;