aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/aes128cbc_decrypt_block.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/aes128cbc_decrypt_block.c')
-rw-r--r--test/aes128cbc_decrypt_block.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/aes128cbc_decrypt_block.c b/test/aes128cbc_decrypt_block.c
index f0d95ee..791110a 100644
--- a/test/aes128cbc_decrypt_block.c
+++ b/test/aes128cbc_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 = aes128cbc_decrypt(cipher, &inverted_schedule, iv);
- iv = cipher;
+ plain = aes128cbc_decrypt(cipher, &inverted_schedule, iv, &iv);
print_aes_block128(&plain);
}