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/aes128cbc_encrypt_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 'test/aes128cbc_encrypt_block.c')
-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 14e7df7..a4a1675 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; } - iv = cipher = aes128cbc_encrypt(plain, &key_schedule, iv); + cipher = aes128cbc_encrypt(plain, &key_schedule, iv, &iv); print_aes_block128(&cipher); } |