ARGON2 -> PBKDF2
ARGON2 requires OpenSSL 3.2, not available in Ubuntu 24.04
This commit is contained in:
committed by
Patrick Nicolas
parent
2778f7dd7e
commit
8a48f8ff7b
+1
-1
@@ -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>);
|
||||
|
||||
Reference in New Issue
Block a user