diff options
Diffstat (limited to 'examples/aes256cbc.cpp')
-rw-r--r-- | examples/aes256cbc.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/aes256cbc.cpp b/examples/aes256cbc.cpp index 66f7c38..9123c9b 100644 --- a/examples/aes256cbc.cpp +++ b/examples/aes256cbc.cpp @@ -19,25 +19,25 @@ 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_cbc(plaintext, &encryption_schedule, iv, &next_iv); dump_ciphertext(ciphertext); dump_next_iv(next_iv); - aesni::KeySchedule256 decryption_schedule; + aesni::aes::RoundKeys256 decryption_schedule; aesni_aes256_derive_decryption_keys(&encryption_schedule, &decryption_schedule); dump_decryption_schedule(decryption_schedule); |