aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples/aes128ctr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/aes128ctr.cpp')
-rw-r--r--examples/aes128ctr.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/aes128ctr.cpp b/examples/aes128ctr.cpp
index 0515336..3f64173 100644
--- a/examples/aes128ctr.cpp
+++ b/examples/aes128ctr.cpp
@@ -19,17 +19,17 @@ int main()
{
try
{
- aesni::Block128 plaintext;
+ aesni::aes::Block plaintext;
make_default_plaintext(plaintext);
- aesni::Block128 key;
+ aesni::aes::Key128 key;
make_default_key(key);
- aesni::Block128 iv;
+ aesni::aes::Block iv;
make_default_iv(iv);
- aesni::KeySchedule128 encryption_schedule;
- aesni_aes128_expand_key(key, &encryption_schedule);
+ aesni::aes::RoundKeys128 encryption_schedule;
+ aesni_aes128_expand_key(&key, &encryption_schedule);
dump_encryption_schedule(encryption_schedule);
const auto ciphertext = aesni_aes128_encrypt_block_ctr(plaintext, &encryption_schedule, iv, 0);