From 3cf60d0d26131262b1658bc13fd4e54e9237cd80 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Fri, 2 Aug 2024 11:34:45 -0500 Subject: [PATCH] updated build system --- support/3rd_party/src/utils/encryption.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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; }