diff options
Diffstat (limited to 'examples/aes128ctr.cpp')
-rw-r--r-- | examples/aes128ctr.cpp | 10 |
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; |