From 7468cbc7c4e69bbd2593c71c8a22953f41536963 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 10 Jun 2015 03:56:20 +0300 Subject: refactoring --- examples/aes128cfb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/aes128cfb.c') diff --git a/examples/aes128cfb.c b/examples/aes128cfb.c index 91e1c73..2d209ca 100644 --- a/examples/aes128cfb.c +++ b/examples/aes128cfb.c @@ -37,7 +37,7 @@ int main() for (int i = 0; i < 11; ++i) printf("\t[%d]: %s\n", i, format_aes_block128(&key_schedule.keys[i]).str); - cipher = aes128cfb_encrypt(plain, &key_schedule, iv, &next_iv); + cipher = aes128cfb_encrypt_block(plain, &key_schedule, iv, &next_iv); printf("\n"); printf("Cipher: %s\n", format_aes_block128(&cipher).str); print_aes_block128_as_matrix(&cipher); @@ -46,7 +46,7 @@ int main() printf("Next initialization vector: %s\n", format_aes_block128(&next_iv).str); print_aes_block128_as_matrix(&next_iv); - decrypted = aes128cfb_decrypt(cipher, &key_schedule, iv, &next_iv); + decrypted = aes128cfb_decrypt_block(cipher, &key_schedule, iv, &next_iv); printf("\n"); printf("Decrypted: %s\n", format_aes_block128(&decrypted).str); print_aes_block128_as_matrix(&decrypted); -- cgit v1.2.3