aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples/aes128ecb.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--examples/aes128ecb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/aes128ecb.c b/examples/aes128ecb.c
index 5b2d2a0..e36cd66 100644
--- a/examples/aes128ecb.c
+++ b/examples/aes128ecb.c
@@ -32,7 +32,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 = aes128ecb_encrypt(plain, &key_schedule);
+ cipher = aes128ecb_encrypt_block(plain, &key_schedule);
printf("\n");
printf("Cipher: %s\n", format_aes_block128(&cipher).str);
print_aes_block128_as_matrix(&cipher);
@@ -44,7 +44,7 @@ int main()
for (int i = 0; i < 11; ++i)
printf("\t[%d]: %s\n", i, format_aes_block128(&inverted_schedule.keys[i]).str);
- decrypted = aes128ecb_decrypt(cipher, &inverted_schedule);
+ decrypted = aes128ecb_decrypt_block(cipher, &inverted_schedule);
printf("\n");
printf("Decrypted: %s\n", format_aes_block128(&decrypted).str);
print_aes_block128_as_matrix(&decrypted);