aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples/aes256cfb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/aes256cfb.cpp')
-rw-r--r--examples/aes256cfb.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/aes256cfb.cpp b/examples/aes256cfb.cpp
index 8a23146..a6e8ba7 100644
--- a/examples/aes256cfb.cpp
+++ b/examples/aes256cfb.cpp
@@ -19,20 +19,20 @@ int main()
{
try
{
- aesni::Block128 plaintext;
+ aesni::aes::Block plaintext;
make_default_plaintext(plaintext);
- aesni::Block256 key;
+ aesni::aes::Key256 key;
make_default_key(key);
- aesni::Block128 iv;
+ aesni::aes::Block iv;
make_default_iv(iv);
- aesni::KeySchedule256 encryption_schedule;
+ aesni::aes::RoundKeys256 encryption_schedule;
aesni_aes256_expand_key(&key, &encryption_schedule);
dump_encryption_schedule(encryption_schedule);
- aesni::Block128 next_iv;
+ aesni::aes::Block next_iv;
const auto ciphertext = aesni_aes256_encrypt_block_cfb(plaintext, &encryption_schedule, iv, &next_iv);
dump_ciphertext(ciphertext);
dump_next_iv(next_iv);