diff options
Diffstat (limited to 'aesxx/utils/encrypt_bmp.cpp')
| -rw-r--r-- | aesxx/utils/encrypt_bmp.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/aesxx/utils/encrypt_bmp.cpp b/aesxx/utils/encrypt_bmp.cpp index 858755c..e140d70 100644 --- a/aesxx/utils/encrypt_bmp.cpp +++ b/aesxx/utils/encrypt_bmp.cpp @@ -31,9 +31,7 @@ void encrypt_bmp( void encrypt_bmp(const FileSettings& settings) { const auto algorithm = settings.get_algorithm(); const auto mode = settings.get_mode(); - - aes::Box::Key key; - aes::Box::parse_key(key, algorithm, settings.get_key()); + const auto key = aes::Key::parse(settings.get_key(), algorithm); aes::Box box{algorithm, key, mode, settings.get_iv()}; encrypt_bmp(box, settings.get_input_path(), settings.get_output_path()); |
