aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples/aes128ctr.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/aes128ctr.c')
-rw-r--r--examples/aes128ctr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/aes128ctr.c b/examples/aes128ctr.c
index 2cabdc1..c645da7 100644
--- a/examples/aes128ctr.c
+++ b/examples/aes128ctr.c
@@ -37,12 +37,12 @@ int main()
for (int i = 0; i < 11; ++i)
printf("\t[%d]: %s\n", i, format_aes_block128(&key_schedule.keys[i]).str);
- cipher = aes128ctr_encrypt(plain, &key_schedule, iv, 0);
+ cipher = aes128ctr_encrypt_block(plain, &key_schedule, iv, 0);
printf("\n");
printf("Cipher: %s\n", format_aes_block128(&cipher).str);
print_aes_block128_as_matrix(&cipher);
- decrypted = aes128ctr_decrypt(cipher, &key_schedule, iv, 0);
+ decrypted = aes128ctr_decrypt_block(cipher, &key_schedule, iv, 0);
printf("\n");
printf("Decrypted: %s\n", format_aes_block128(&decrypted).str);
print_aes_block128_as_matrix(&decrypted);