Argon2: wipe all blocks if the ARGON2_FLAG_CLEAR_MEMORY flag is set

Not ARGON2_FLAG_CLEAR_PASSWORD
This commit is contained in:
Frank Denis
2017-07-28 18:22:51 +02:00
parent dc2c68067b
commit 105f7108d6
@@ -192,7 +192,7 @@ void
free_instance(argon2_instance_t *instance, int flags)
{
/* Clear memory */
clear_memory(instance, flags & ARGON2_FLAG_CLEAR_PASSWORD);
clear_memory(instance, flags & ARGON2_FLAG_CLEAR_MEMORY);
/* Deallocate the memory */
free(instance->pseudo_rands);