aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/aes256cfb_decrypt_block.c
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2015-06-03 22:46:18 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2015-06-03 22:46:18 +0300
commit91923133903515c98973543c0e17705537449c22 (patch)
tree3848b63fe8e6c2d2e5ff7f564bacadfd5652a783 /test/aes256cfb_decrypt_block.c
parentadd OFB mode (diff)
downloadaes-tools-91923133903515c98973543c0e17705537449c22.tar.gz
aes-tools-91923133903515c98973543c0e17705537449c22.zip
init vectors are calculated by API functions
Diffstat (limited to '')
-rw-r--r--test/aes256cfb_decrypt_block.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/aes256cfb_decrypt_block.c b/test/aes256cfb_decrypt_block.c
index f0b7fa0..d3f6075 100644
--- a/test/aes256cfb_decrypt_block.c
+++ b/test/aes256cfb_decrypt_block.c
@@ -47,8 +47,7 @@ int main(int argc, char** argv)
fprintf(stderr, "Invalid 128-bit AES block '%s'\n", argv[i]);
continue;
}
- plain = aes256cfb_decrypt(cipher, &key_schedule, iv);
- iv = cipher;
+ plain = aes256cfb_decrypt(cipher, &key_schedule, iv, &iv);
print_aes_block128(&plain);
}