diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2015-06-18 19:46:46 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2015-06-18 19:46:46 +0300 |
commit | c61bfd12a935bea47526f360b3e6dc3c4550f94d (patch) | |
tree | 2e1d9be1fb12c0eecbf84fc016e5418f83dd1485 /examples/aes192ecb.cpp | |
parent | cxx: implement more stuff (diff) | |
download | aes-tools-c61bfd12a935bea47526f360b3e6dc3c4550f94d.tar.gz aes-tools-c61bfd12a935bea47526f360b3e6dc3c4550f94d.zip |
code style
Diffstat (limited to 'examples/aes192ecb.cpp')
-rw-r--r-- | examples/aes192ecb.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/aes192ecb.cpp b/examples/aes192ecb.cpp index 6de3e16..7a7cb92 100644 --- a/examples/aes192ecb.cpp +++ b/examples/aes192ecb.cpp @@ -25,18 +25,18 @@ int main() aesni::aes::Key192 key; make_default_key(key); - 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); - const auto ciphertext = aesni_aes192_encrypt_block_ecb(plaintext, &encryption_schedule); + const auto ciphertext = aesni_aes192_encrypt_block_ecb(plaintext, &encryption_keys); dump_ciphertext(ciphertext); - aesni::aes::RoundKeys192 decryption_schedule; - aesni_aes192_derive_decryption_keys(&encryption_schedule, &decryption_schedule); - dump_decryption_schedule(decryption_schedule); + aesni::aes::RoundKeys192 decryption_keys; + aesni_aes192_derive_decryption_keys(&encryption_keys, &decryption_keys); + dump_decryption_keys(decryption_keys); - const auto decrypted = aesni_aes192_decrypt_block_ecb(ciphertext, &decryption_schedule); + const auto decrypted = aesni_aes192_decrypt_block_ecb(ciphertext, &decryption_keys); dump_decrypted(decrypted); return 0; |