diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-05-19 04:48:59 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-05-19 04:48:59 +0300 |
commit | f0393777befc4ff1024513dab3ab6bad0e7ec45f (patch) | |
tree | 97571103c522ff60f96a8fdde35a0bbee9532837 /utils/encrypt_bmp.cpp | |
parent | rename the project (diff) | |
download | aes-tools-f0393777befc4ff1024513dab3ab6bad0e7ec45f.tar.gz aes-tools-f0393777befc4ff1024513dab3ab6bad0e7ec45f.zip |
'aesni' -> 'aes'
Diffstat (limited to '')
-rw-r--r-- | utils/encrypt_bmp.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/utils/encrypt_bmp.cpp b/utils/encrypt_bmp.cpp index ea498cb..086e14d 100644 --- a/utils/encrypt_bmp.cpp +++ b/utils/encrypt_bmp.cpp @@ -61,7 +61,7 @@ namespace } void encrypt_bmp( - aesni::Box& box, + aes::Box& box, const std::string& plaintext_path, const std::string& ciphertext_path) { @@ -91,23 +91,23 @@ namespace const auto& plaintext_path = settings.get_input_path(); const auto& ciphertext_path = settings.get_output_path(); - aesni::Box::Key key; - aesni::Box::parse_key(key, algorithm, settings.get_key_string()); + aes::Box::Key key; + aes::Box::parse_key(key, algorithm, settings.get_key_string()); - if (aesni::mode_requires_initialization_vector(mode)) + if (aes::mode_requires_initialization_vector(mode)) { - aesni::Box::Block iv; - aesni::Box::parse_block(iv, algorithm, settings.get_iv_string()); + aes::Box::Block iv; + aes::Box::parse_block(iv, algorithm, settings.get_iv_string()); encrypt_bmp( - aesni::Box(algorithm, key, mode, iv), + aes::Box(algorithm, key, mode, iv), plaintext_path, ciphertext_path); } else { encrypt_bmp( - aesni::Box(algorithm, key), + aes::Box(algorithm, key), plaintext_path, ciphertext_path); } @@ -138,7 +138,7 @@ int main(int argc, char** argv) std::cerr << cmd_parser; return 1; } - catch (const aesni::Error& e) + catch (const aes::Error& e) { std::cerr << e; return 1; |