updated build system

This commit is contained in:
Scott E. Graves 2024-08-02 11:34:45 -05:00
parent 7d33ee80d0
commit 3cf60d0d26

View File

@ -66,11 +66,8 @@ auto encrypt_data(std::string_view data, std::string_view password,
hasher.has_value() ? (*hasher)(password) : create_hash_256(password); hasher.has_value() ? (*hasher)(password) : create_hash_256(password);
data_buffer buf{}; data_buffer buf{};
if (not encrypt_data(key, encrypt_data(key, reinterpret_cast<const unsigned char *>(data.data()),
reinterpret_cast<const unsigned char *>(data.data()), data.size(), buf);
data.size(), buf)) {
throw std::runtime_error("encryption failed");
}
return buf; return buf;
} }