aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples/aes128ctr.cpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2015-06-18 19:46:46 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2015-06-18 19:46:46 +0300
commitc61bfd12a935bea47526f360b3e6dc3c4550f94d (patch)
tree2e1d9be1fb12c0eecbf84fc016e5418f83dd1485 /examples/aes128ctr.cpp
parentcxx: implement more stuff (diff)
downloadaes-tools-c61bfd12a935bea47526f360b3e6dc3c4550f94d.tar.gz
aes-tools-c61bfd12a935bea47526f360b3e6dc3c4550f94d.zip
code style
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 3f64173..671a5f3 100644
--- a/examples/aes128ctr.cpp
+++ b/examples/aes128ctr.cpp
@@ -28,14 +28,14 @@ int main()
aesni::aes::Block iv;
make_default_iv(iv);
- aesni::aes::RoundKeys128 encryption_schedule;
- aesni_aes128_expand_key(&key, &encryption_schedule);
- dump_encryption_schedule(encryption_schedule);
+ aesni::aes::RoundKeys128 encryption_keys;
+ aesni_aes128_expand_key(&key, &encryption_keys);
+ dump_encryption_keys(encryption_keys);
- const auto ciphertext = aesni_aes128_encrypt_block_ctr(plaintext, &encryption_schedule, iv, 0);
+ const auto ciphertext = aesni_aes128_encrypt_block_ctr(plaintext, &encryption_keys, iv, 0);
dump_ciphertext(ciphertext);
- const auto decrypted = aesni_aes128_decrypt_block_ctr(ciphertext, &encryption_schedule, iv, 0);
+ const auto decrypted = aesni_aes128_decrypt_block_ctr(ciphertext, &encryption_keys, iv, 0);
dump_decrypted(decrypted);
return 0;