aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples/aes128cbc.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--examples/aes128cbc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/aes128cbc.c b/examples/aes128cbc.c
index 92c1f32..986be2e 100644
--- a/examples/aes128cbc.c
+++ b/examples/aes128cbc.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 = aes128cbc_encrypt(plain, &key_schedule, iv, &next_iv);
+ cipher = aes128cbc_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);
@@ -53,7 +53,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 = aes128cbc_decrypt(cipher, &inverted_schedule, iv, &next_iv);
+ decrypted = aes128cbc_decrypt_block(cipher, &inverted_schedule, iv, &next_iv);
printf("\n");
printf("Decrypted: %s\n", format_aes_block128(&decrypted).str);
print_aes_block128_as_matrix(&decrypted);