mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-13 20:00:08 +01:00
@@ -300,6 +300,7 @@ static int crypt_argon2_check(const char *kdf, const char *password,
|
|||||||
} while (ms < ms_atleast || ms > ms_atmost);
|
} while (ms < ms_atleast || ms > ms_atmost);
|
||||||
out:
|
out:
|
||||||
if (key) {
|
if (key) {
|
||||||
|
/* Key can be derived from a real provided password */
|
||||||
crypt_backend_memzero(key, key_length);
|
crypt_backend_memzero(key, key_length);
|
||||||
free(key);
|
free(key);
|
||||||
}
|
}
|
||||||
@@ -381,6 +382,7 @@ static int crypt_pbkdf_check(const char *kdf, const char *hash,
|
|||||||
}
|
}
|
||||||
out:
|
out:
|
||||||
if (key) {
|
if (key) {
|
||||||
|
/* Key can be derived from a real provided password */
|
||||||
crypt_backend_memzero(key, key_length);
|
crypt_backend_memzero(key, key_length);
|
||||||
free(key);
|
free(key);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user