aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples/aes256ecb.c
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2015-06-10 03:56:20 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2015-06-10 03:56:20 +0300
commit7468cbc7c4e69bbd2593c71c8a22953f41536963 (patch)
treebbc0b0ebb62ceb7385a418701897cb5577f035f9 /examples/aes256ecb.c
parentutils: usage message update (diff)
downloadaes-tools-7468cbc7c4e69bbd2593c71c8a22953f41536963.tar.gz
aes-tools-7468cbc7c4e69bbd2593c71c8a22953f41536963.zip
refactoring
Diffstat (limited to '')
-rw-r--r--examples/aes256ecb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/aes256ecb.c b/examples/aes256ecb.c
index 1f265da..f96a368 100644
--- a/examples/aes256ecb.c
+++ b/examples/aes256ecb.c
@@ -33,7 +33,7 @@ int main()
for (int i = 0; i < 15; ++i)
printf("\t[%d]: %s\n", i, format_aes_block128(&key_schedule.keys[i]).str);
- cipher = aes256ecb_encrypt(plain, &key_schedule);
+ cipher = aes256ecb_encrypt_block(plain, &key_schedule);
printf("\n");
printf("Cipher: %s\n", format_aes_block128(&cipher).str);
print_aes_block128_as_matrix(&cipher);
@@ -45,7 +45,7 @@ int main()
for (int i = 0; i < 15; ++i)
printf("\t[%d]: %s\n", i, format_aes_block128(&inverted_schedule.keys[i]).str);
- decrypted = aes256ecb_decrypt(cipher, &inverted_schedule);
+ decrypted = aes256ecb_decrypt_block(cipher, &inverted_schedule);
printf("\n");
printf("Decrypted: %s\n", format_aes_block128(&decrypted).str);
print_aes_block128_as_matrix(&decrypted);