Skip to content
This repository was archived by the owner on Mar 5, 2024. It is now read-only.

Fix test #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/test_cbc_mode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. "
Expand Down