From 809efb03ca173ba9744a714aef182992d2e0875f Mon Sep 17 00:00:00 2001 From: Robert Brown Date: Mon, 4 Sep 2017 09:10:08 -0600 Subject: [PATCH] Fix test The test was using the larger buffer size (80) when it should have been using the smaller size (64). The source code remains unchanged. --- tests/test_cbc_mode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_cbc_mode.c b/tests/test_cbc_mode.c index 2e9f325..8591798 100644 --- a/tests/test_cbc_mode.c +++ b/tests/test_cbc_mode.c @@ -132,7 +132,7 @@ int test_1_and_2(void) (void)tc_aes128_set_decrypt_key(&a, key); p = &encrypted[TC_AES_BLOCK_SIZE]; - length = ((unsigned int) sizeof(encrypted)); + length = ((unsigned int) sizeof(decrypted)); if (tc_cbc_mode_decrypt(decrypted, length, p, length, encrypted, &a) == 0) { TC_ERROR("CBC test #2 (decryption SP 800-38a tests) failed in. "