Added hugepages support for Argon2.
This commit is contained in:
parent
77eb474b29
commit
b1db0803cf
4 changed files with 41 additions and 7 deletions
2
src/3rdparty/argon2/lib/core.c
vendored
2
src/3rdparty/argon2/lib/core.c
vendored
|
@ -139,7 +139,7 @@ void NOT_OPTIMIZED secure_wipe_memory(void *v, size_t n) {
|
|||
}
|
||||
|
||||
/* Memory clear flag defaults to true. */
|
||||
int FLAG_clear_internal_memory = 1;
|
||||
int FLAG_clear_internal_memory = 0;
|
||||
void clear_internal_memory(void *v, size_t n) {
|
||||
if (FLAG_clear_internal_memory && v) {
|
||||
secure_wipe_memory(v, n);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue