diff options
Diffstat (limited to 'examples/aes256cbc.cpp')
-rw-r--r-- | examples/aes256cbc.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/aes256cbc.cpp b/examples/aes256cbc.cpp index 0253adb..66f7c38 100644 --- a/examples/aes256cbc.cpp +++ b/examples/aes256cbc.cpp @@ -29,19 +29,19 @@ int main() make_default_iv(iv); aesni::KeySchedule256 encryption_schedule; - aesni_expand_key_schedule256(&key, &encryption_schedule); + aesni_aes256_expand_key(&key, &encryption_schedule); dump_encryption_schedule(encryption_schedule); aesni::Block128 next_iv; - const auto ciphertext = aesni_encrypt_block_cbc256(plaintext, &encryption_schedule, iv, &next_iv); + const auto ciphertext = aesni_aes256_encrypt_block_cbc(plaintext, &encryption_schedule, iv, &next_iv); dump_ciphertext(ciphertext); dump_next_iv(next_iv); aesni::KeySchedule256 decryption_schedule; - aesni_invert_key_schedule256(&encryption_schedule, &decryption_schedule); + aesni_aes256_derive_decryption_keys(&encryption_schedule, &decryption_schedule); dump_decryption_schedule(decryption_schedule); - const auto decrypted = aesni_decrypt_block_cbc256(ciphertext, &decryption_schedule, iv, &next_iv); + const auto decrypted = aesni_aes256_decrypt_block_cbc(ciphertext, &decryption_schedule, iv, &next_iv); dump_decrypted(decrypted); dump_next_iv(next_iv); |