diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2015-06-03 22:46:18 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2015-06-03 22:46:18 +0300 |
commit | 91923133903515c98973543c0e17705537449c22 (patch) | |
tree | 3848b63fe8e6c2d2e5ff7f564bacadfd5652a783 /test/aes192cbc_decrypt_block.c | |
parent | add OFB mode (diff) | |
download | aes-tools-91923133903515c98973543c0e17705537449c22.tar.gz aes-tools-91923133903515c98973543c0e17705537449c22.zip |
init vectors are calculated by API functions
Diffstat (limited to '')
-rw-r--r-- | test/aes192cbc_decrypt_block.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/aes192cbc_decrypt_block.c b/test/aes192cbc_decrypt_block.c index 57786ef..6a953ad 100644 --- a/test/aes192cbc_decrypt_block.c +++ b/test/aes192cbc_decrypt_block.c @@ -48,8 +48,7 @@ int main(int argc, char** argv) fprintf(stderr, "Invalid 128-bit AES block '%s'\n", argv[i]); continue; } - plain = aes192cbc_decrypt(cipher, &inverted_schedule, iv); - iv = cipher; + plain = aes192cbc_decrypt(cipher, &inverted_schedule, iv, &iv); print_aes_block128(&plain); } |