diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2015-06-17 18:29:40 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2015-06-17 18:29:40 +0300 |
commit | 0651133db30c0932877780c2f98901e4ca1072e1 (patch) | |
tree | 2b87823b4b9f4b5a75affa4b1606abb06a598c97 /examples/aes192ctr.cpp | |
parent | factor out 128-bit XORing (diff) | |
download | aes-tools-0651133db30c0932877780c2f98901e4ca1072e1.tar.gz aes-tools-0651133db30c0932877780c2f98901e4ca1072e1.zip |
refactoring
Diffstat (limited to 'examples/aes192ctr.cpp')
-rw-r--r-- | examples/aes192ctr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/aes192ctr.cpp b/examples/aes192ctr.cpp index f7278cf..ef4dde6 100644 --- a/examples/aes192ctr.cpp +++ b/examples/aes192ctr.cpp @@ -29,13 +29,13 @@ int main() make_default_iv(iv); aesni::KeySchedule192 encryption_schedule; - aesni_expand_key_schedule192(&key, &encryption_schedule); + aesni_aes192_expand_key(&key, &encryption_schedule); dump_encryption_schedule(encryption_schedule); - const auto ciphertext = aesni_encrypt_block_ctr192(plaintext, &encryption_schedule, iv, 0); + const auto ciphertext = aesni_aes192_encrypt_block_ctr(plaintext, &encryption_schedule, iv, 0); dump_ciphertext(ciphertext); - const auto decrypted = aesni_decrypt_block_ctr192(ciphertext, &encryption_schedule, iv, 0); + const auto decrypted = aesni_aes192_decrypt_block_ctr(ciphertext, &encryption_schedule, iv, 0); dump_decrypted(decrypted); } catch (const std::exception& e) |