ARGON2 -> PBKDF2

ARGON2 requires OpenSSL 3.2, not available in Ubuntu 24.04
This commit is contained in:
Guillaume Meunier
2024-11-26 23:59:35 +01:00
committed by Patrick Nicolas
parent 2778f7dd7e
commit 8a48f8ff7b
3 changed files with 4 additions and 16 deletions
+1 -1
View File
@@ -24,7 +24,7 @@
secrets::secrets(crypto::key & my_key, crypto::key & peer_key, const std::string & pin)
{
std::vector<uint8_t> dh = crypto::key::diffie_hellman(my_key, peer_key);
std::vector<uint8_t> secret = crypto::argon2(pin, "saltsalt", dh, sizeof(*this));
std::vector<uint8_t> secret = crypto::pbkdf2(pin, "saltsalt", dh, sizeof(*this));
static_assert(std::is_standard_layout_v<secrets>);
static_assert(std::has_unique_object_representations_v<secrets>);