aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples/aes256ofb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/aes256ofb.cpp')
-rw-r--r--examples/aes256ofb.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/aes256ofb.cpp b/examples/aes256ofb.cpp
index b4f9a1f..3bc7268 100644
--- a/examples/aes256ofb.cpp
+++ b/examples/aes256ofb.cpp
@@ -28,16 +28,16 @@ int main()
aesni::aes::Block iv;
make_default_iv(iv);
- aesni::aes::RoundKeys256 encryption_schedule;
- aesni_aes256_expand_key(&key, &encryption_schedule);
- dump_encryption_schedule(encryption_schedule);
+ aesni::aes::RoundKeys256 encryption_keys;
+ aesni_aes256_expand_key(&key, &encryption_keys);
+ dump_encryption_keys(encryption_keys);
aesni::aes::Block next_iv;
- const auto ciphertext = aesni_aes256_encrypt_block_ofb(plaintext, &encryption_schedule, iv, &next_iv);
+ const auto ciphertext = aesni_aes256_encrypt_block_ofb(plaintext, &encryption_keys, iv, &next_iv);
dump_ciphertext(ciphertext);
dump_next_iv(next_iv);
- const auto decrypted = aesni_aes256_decrypt_block_ofb(ciphertext, &encryption_schedule, iv, &next_iv);
+ const auto decrypted = aesni_aes256_decrypt_block_ofb(ciphertext, &encryption_keys, iv, &next_iv);
dump_decrypted(decrypted);
dump_next_iv(next_iv);