From 6b070da3e039d2ca7accae8489d8bc4a44ba652a Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 3 Jun 2015 20:55:09 +0300 Subject: implement CBC wrappers in C --- test/aes128cbc_decrypt_block.c | 2 +- test/aes128cbc_encrypt_block.c | 2 +- test/aes192cbc_decrypt_block.c | 2 +- test/aes192cbc_encrypt_block.c | 2 +- test/aes256cbc_decrypt_block.c | 2 +- test/aes256cbc_encrypt_block.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) (limited to 'test') diff --git a/test/aes128cbc_decrypt_block.c b/test/aes128cbc_decrypt_block.c index 82a1b61..f0d95ee 100644 --- a/test/aes128cbc_decrypt_block.c +++ b/test/aes128cbc_decrypt_block.c @@ -47,7 +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); + plain = aes128cbc_decrypt(cipher, &inverted_schedule, iv); iv = cipher; print_aes_block128(&plain); } diff --git a/test/aes128cbc_encrypt_block.c b/test/aes128cbc_encrypt_block.c index 38faf1a..14e7df7 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); + iv = cipher = aes128cbc_encrypt(plain, &key_schedule, iv); print_aes_block128(&cipher); } diff --git a/test/aes192cbc_decrypt_block.c b/test/aes192cbc_decrypt_block.c index 79eb692..57786ef 100644 --- a/test/aes192cbc_decrypt_block.c +++ b/test/aes192cbc_decrypt_block.c @@ -48,7 +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); + plain = aes192cbc_decrypt(cipher, &inverted_schedule, iv); iv = cipher; print_aes_block128(&plain); } diff --git a/test/aes192cbc_encrypt_block.c b/test/aes192cbc_encrypt_block.c index 45f469b..8a5a9b8 100644 --- a/test/aes192cbc_encrypt_block.c +++ b/test/aes192cbc_encrypt_block.c @@ -47,7 +47,7 @@ int main(int argc, char** argv) fprintf(stderr, "Invalid 128-bit AES block '%s'\n", argv[i]); continue; } - iv = cipher = aes192cbc_encrypt(plain, &key_schedule, &iv); + iv = cipher = aes192cbc_encrypt(plain, &key_schedule, iv); print_aes_block128(&cipher); } diff --git a/test/aes256cbc_decrypt_block.c b/test/aes256cbc_decrypt_block.c index 43b8091..f7c5fbc 100644 --- a/test/aes256cbc_decrypt_block.c +++ b/test/aes256cbc_decrypt_block.c @@ -48,7 +48,7 @@ int main(int argc, char** argv) fprintf(stderr, "Invalid 128-bit AES block '%s'\n", argv[i]); continue; } - plain = aes256cbc_decrypt(cipher, &inverted_schedule, &iv); + plain = aes256cbc_decrypt(cipher, &inverted_schedule, iv); iv = cipher; print_aes_block128(&plain); } diff --git a/test/aes256cbc_encrypt_block.c b/test/aes256cbc_encrypt_block.c index 2877d31..9e1ada7 100644 --- a/test/aes256cbc_encrypt_block.c +++ b/test/aes256cbc_encrypt_block.c @@ -47,7 +47,7 @@ int main(int argc, char** argv) fprintf(stderr, "Invalid 128-bit AES block '%s'\n", argv[i]); continue; } - iv = cipher = aes256cbc_encrypt(plain, &key_schedule, &iv); + iv = cipher = aes256cbc_encrypt(plain, &key_schedule, iv); print_aes_block128(&cipher); } -- cgit v1.2.3