aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/utils/decrypt_file.cpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-05-19 04:48:59 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-05-19 04:48:59 +0300
commitf0393777befc4ff1024513dab3ab6bad0e7ec45f (patch)
tree97571103c522ff60f96a8fdde35a0bbee9532837 /utils/decrypt_file.cpp
parentrename the project (diff)
downloadaes-tools-f0393777befc4ff1024513dab3ab6bad0e7ec45f.tar.gz
aes-tools-f0393777befc4ff1024513dab3ab6bad0e7ec45f.zip
'aesni' -> 'aes'
Diffstat (limited to '')
-rw-r--r--utils/decrypt_file.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/utils/decrypt_file.cpp b/utils/decrypt_file.cpp
index ad7e9d0..33083b7 100644
--- a/utils/decrypt_file.cpp
+++ b/utils/decrypt_file.cpp
@@ -58,7 +58,7 @@ namespace
}
void decrypt_file(
- aesni::Box& box,
+ aes::Box& box,
const std::string& ciphertext_path,
const std::string& plaintext_path)
{
@@ -76,23 +76,23 @@ namespace
const auto& ciphertext_path = settings.get_input_path();
const auto& plaintext_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());
decrypt_file(
- aesni::Box(algorithm, key, mode, iv),
+ aes::Box(algorithm, key, mode, iv),
ciphertext_path,
plaintext_path);
}
else
{
decrypt_file(
- aesni::Box(algorithm, key),
+ aes::Box(algorithm, key),
ciphertext_path,
plaintext_path);
}
@@ -123,7 +123,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;