aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples/aes192cfb.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/aes192cfb.cpp
parentcxx: implement more stuff (diff)
downloadaes-tools-c61bfd12a935bea47526f360b3e6dc3c4550f94d.tar.gz
aes-tools-c61bfd12a935bea47526f360b3e6dc3c4550f94d.zip
code style
Diffstat (limited to 'examples/aes192cfb.cpp')
-rw-r--r--examples/aes192cfb.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/aes192cfb.cpp b/examples/aes192cfb.cpp
index 4deaf1c..b84700e 100644
--- a/examples/aes192cfb.cpp
+++ b/examples/aes192cfb.cpp
@@ -28,16 +28,16 @@ int main()
aesni::aes::Block iv;
make_default_iv(iv);
- aesni::aes::RoundKeys192 encryption_schedule;
- aesni_aes192_expand_key(&key, &encryption_schedule);
- dump_encryption_schedule(encryption_schedule);
+ aesni::aes::RoundKeys192 encryption_keys;
+ aesni_aes192_expand_key(&key, &encryption_keys);
+ dump_encryption_keys(encryption_keys);
aesni::aes::Block next_iv;
- const auto ciphertext = aesni_aes192_encrypt_block_cfb(plaintext, &encryption_schedule, iv, &next_iv);
+ const auto ciphertext = aesni_aes192_encrypt_block_cfb(plaintext, &encryption_keys, iv, &next_iv);
dump_ciphertext(ciphertext);
dump_next_iv(next_iv);
- const auto decrypted = aesni_aes192_decrypt_block_cfb(ciphertext, &encryption_schedule, iv, &next_iv);
+ const auto decrypted = aesni_aes192_decrypt_block_cfb(ciphertext, &encryption_keys, iv, &next_iv);
dump_decrypted(decrypted);
dump_next_iv(next_iv);