diff options
Diffstat (limited to 'utils/decrypt_file.cpp')
-rw-r--r-- | utils/decrypt_file.cpp | 18 |
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; |