fix
This commit is contained in:
parent
07eaad7226
commit
4011ab8080
@ -35,6 +35,8 @@ inline constexpr const std::uint32_t encryption_header_size{
|
|||||||
crypto_aead_xchacha20poly1305_IETF_ABYTES,
|
crypto_aead_xchacha20poly1305_IETF_ABYTES,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
[[nodiscard]] auto generate_key(std::string_view encryption_token) -> key_type;
|
||||||
|
|
||||||
#if defined(PROJECT_ENABLE_BOOST)
|
#if defined(PROJECT_ENABLE_BOOST)
|
||||||
[[nodiscard]] auto decrypt_data(
|
[[nodiscard]] auto decrypt_data(
|
||||||
std::string_view data, std::string_view password,
|
std::string_view data, std::string_view password,
|
||||||
@ -152,8 +154,6 @@ encrypt_data(const std::array<unsigned char,
|
|||||||
buf.size(), res);
|
buf.size(), res);
|
||||||
}
|
}
|
||||||
#endif // defined(PROJECT_ENABLE_BOOST)
|
#endif // defined(PROJECT_ENABLE_BOOST)
|
||||||
|
|
||||||
[[nodiscard]] auto generate_key(std::string_view encryption_token) -> key_type;
|
|
||||||
} // namespace repertory::utils::encryption
|
} // namespace repertory::utils::encryption
|
||||||
|
|
||||||
#endif // defined(PROJECT_ENABLE_LIBSODIUM)
|
#endif // defined(PROJECT_ENABLE_LIBSODIUM)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user