diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-22 17:57:37 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-22 17:57:37 +0200 |
| commit | 05691f614baa782801c4b22efa2ee9a73de4b3b3 (patch) | |
| tree | 99a1af51ac882a2b1bb7db3e95c5d462b7879118 /aesxx/utils/decrypt_file.cpp | |
| parent | Merge pull request #7 from egor-tensin/dependabot/github_actions/actions/chec... (diff) | |
| download | aes-tools-05691f614baa782801c4b22efa2ee9a73de4b3b3.tar.gz aes-tools-05691f614baa782801c4b22efa2ee9a73de4b3b3.zip | |
aesxx/utils: refactoring
Diffstat (limited to 'aesxx/utils/decrypt_file.cpp')
| -rw-r--r-- | aesxx/utils/decrypt_file.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/aesxx/utils/decrypt_file.cpp b/aesxx/utils/decrypt_file.cpp index 892d07b..85476a9 100644 --- a/aesxx/utils/decrypt_file.cpp +++ b/aesxx/utils/decrypt_file.cpp @@ -23,9 +23,9 @@ void decrypt_file( const std::string& ciphertext_path, const std::string& plaintext_path ) { - const auto ciphertext_buf = file::read_file(ciphertext_path); + const auto ciphertext_buf = file::read(ciphertext_path); const auto plaintext_buf = box.decrypt_buffer(ciphertext_buf.data(), ciphertext_buf.size()); - file::write_file(plaintext_path, plaintext_buf); + file::write(plaintext_path, plaintext_buf); } void decrypt_file(const FileSettings& settings) { |
