diff options
Diffstat (limited to 'examples/aes128cfb.cpp')
-rw-r--r-- | examples/aes128cfb.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/aes128cfb.cpp b/examples/aes128cfb.cpp index 472b0c3..a8bbb03 100644 --- a/examples/aes128cfb.cpp +++ b/examples/aes128cfb.cpp @@ -28,16 +28,16 @@ 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); aesni::aes::Block next_iv; - const auto ciphertext = aesni_aes128_encrypt_block_cfb(plaintext, &encryption_schedule, iv, &next_iv); + const auto ciphertext = aesni_aes128_encrypt_block_cfb(plaintext, &encryption_keys, iv, &next_iv); dump_ciphertext(ciphertext); dump_next_iv(next_iv); - const auto decrypted = aesni_aes128_decrypt_block_cfb(ciphertext, &encryption_schedule, iv, &next_iv); + const auto decrypted = aesni_aes128_decrypt_block_cfb(ciphertext, &encryption_keys, iv, &next_iv); dump_decrypted(decrypted); dump_next_iv(next_iv); |