aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples/aes256ctr.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--examples/aes256ctr.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/aes256ctr.cpp b/examples/aes256ctr.cpp
index 3360c76..c27d177 100644
--- a/examples/aes256ctr.cpp
+++ b/examples/aes256ctr.cpp
@@ -28,14 +28,14 @@ int main()
aesni::aes::Block iv;
make_default_iv(iv);
- aesni::aes::RoundKeys256 encryption_schedule;
- aesni_aes256_expand_key(&key, &encryption_schedule);
- dump_encryption_schedule(encryption_schedule);
+ aesni::aes::RoundKeys256 encryption_keys;
+ aesni_aes256_expand_key(&key, &encryption_keys);
+ dump_encryption_keys(encryption_keys);
- const auto ciphertext = aesni_aes256_encrypt_block_ctr(plaintext, &encryption_schedule, iv, 0);
+ const auto ciphertext = aesni_aes256_encrypt_block_ctr(plaintext, &encryption_keys, iv, 0);
dump_ciphertext(ciphertext);
- const auto decrypted = aesni_aes256_decrypt_block_ctr(ciphertext, &encryption_schedule, iv, 0);
+ const auto decrypted = aesni_aes256_decrypt_block_ctr(ciphertext, &encryption_keys, iv, 0);
dump_decrypted(decrypted);
}
catch (const std::exception& e)