diff --git a/support/3rd_party/src/utils/encryption.cpp b/support/3rd_party/src/utils/encryption.cpp index 0a0d547c..7fc27638 100644 --- a/support/3rd_party/src/utils/encryption.cpp +++ b/support/3rd_party/src/utils/encryption.cpp @@ -66,11 +66,8 @@ auto encrypt_data(std::string_view data, std::string_view password, hasher.has_value() ? (*hasher)(password) : create_hash_256(password); data_buffer buf{}; - if (not encrypt_data(key, - reinterpret_cast(data.data()), - data.size(), buf)) { - throw std::runtime_error("encryption failed"); - } + encrypt_data(key, reinterpret_cast(data.data()), + data.size(), buf); return buf; }