aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/encrypt_block_aes.cpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2015-06-17 20:07:32 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2015-06-17 20:07:32 +0300
commit522a5b906d7620bcebddb5a8f476b022c140ab27 (patch)
tree8b02e4f5b5948da91e4117c6892d850eeeac8445 /test/encrypt_block_aes.cpp
parentrefactoring (diff)
downloadaes-tools-522a5b906d7620bcebddb5a8f476b022c140ab27.tar.gz
aes-tools-522a5b906d7620bcebddb5a8f476b022c140ab27.zip
factoring out AES-specific stuff
Diffstat (limited to 'test/encrypt_block_aes.cpp')
-rw-r--r--test/encrypt_block_aes.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/encrypt_block_aes.cpp b/test/encrypt_block_aes.cpp
index 9db6e32..f15ddda 100644
--- a/test/encrypt_block_aes.cpp
+++ b/test/encrypt_block_aes.cpp
@@ -34,10 +34,10 @@ int main(int argc, char** argv)
if (argc < 2)
exit_with_usage();
- AesNI_AlgorithmParams algorithm_params;
+ AesNI_BoxAlgorithmParams algorithm_params;
aesni::from_string(algorithm_params.aes128_key, argv[0]);
- AesNI_State iv;
+ AesNI_BoxBlock iv;
aesni::from_string(iv.aes_block, argv[1]);
AesNI_Box box;
@@ -54,10 +54,10 @@ int main(int argc, char** argv)
if (std::strcmp("--", argv[0]) == 0)
break;
- AesNI_State plaintext;
+ AesNI_BoxBlock plaintext;
aesni::from_string(plaintext.aes_block, argv[0]);
- AesNI_State ciphertext;
+ AesNI_BoxBlock ciphertext;
aesni_box_encrypt(
&box,
&plaintext,