diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2015-05-30 05:27:56 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2015-05-30 05:27:56 +0300 |
commit | 76923761ea90641cde3bd44dfa98e199bf839acc (patch) | |
tree | 73ee71882069c28c182d45fcd11b775d6ebf4d44 /test/aes128cbc_encrypt_block.c | |
parent | detach key expansion routines (diff) | |
download | aes-tools-76923761ea90641cde3bd44dfa98e199bf839acc.tar.gz aes-tools-76923761ea90641cde3bd44dfa98e199bf839acc.zip |
test: actually chain when in cbc mode
Diffstat (limited to '')
-rw-r--r-- | test/aes128cbc_encrypt_block.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/aes128cbc_encrypt_block.c b/test/aes128cbc_encrypt_block.c index e35a1bf..38faf1a 100644 --- a/test/aes128cbc_encrypt_block.c +++ b/test/aes128cbc_encrypt_block.c @@ -46,7 +46,7 @@ int main(int argc, char** argv) fprintf(stderr, "Invalid 128-bit AES block '%s'\n", argv[i]); continue; } - cipher = aes128cbc_encrypt(plain, &key_schedule, &iv); + iv = cipher = aes128cbc_encrypt(plain, &key_schedule, &iv); print_aes_block128(&cipher); } |