mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-11 10:50:01 +01:00
Enable to use system libargon2.
Rename --disable-argon2 to --disable-internal-argon2 option and add --enable-libargon2 flag to allow system libarhgon2.
This commit is contained in:
@@ -363,10 +363,8 @@ int crypt_pbkdf(const char *kdf, const char *hash,
|
||||
if (!strcmp(kdf, "pbkdf2"))
|
||||
return pbkdf2(hash, password, password_length, salt, salt_length,
|
||||
key, key_length, iterations);
|
||||
#if USE_INTERNAL_ARGON2
|
||||
else if (!strncmp(kdf, "argon2", 6))
|
||||
return argon2(kdf, password, password_length, salt, salt_length,
|
||||
key, key_length, iterations, memory, parallel);
|
||||
#endif
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user