From ec67b0890fffc9612cc9a02f222606084063b453 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 11 Dec 2017 23:36:38 +0100 Subject: [PATCH] Do not wipe the workspace after argon2 completes The overhead can be really prohibitive on servers. --- src/libsodium/crypto_pwhash/argon2/argon2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsodium/crypto_pwhash/argon2/argon2.h b/src/libsodium/crypto_pwhash/argon2/argon2.h index 4bd7f82e..85ca4dd3 100644 --- a/src/libsodium/crypto_pwhash/argon2/argon2.h +++ b/src/libsodium/crypto_pwhash/argon2/argon2.h @@ -69,7 +69,7 @@ #define ARGON2_FLAG_CLEAR_PASSWORD (UINT32_C(1) << 0) #define ARGON2_FLAG_CLEAR_SECRET (UINT32_C(1) << 1) #define ARGON2_FLAG_CLEAR_MEMORY (UINT32_C(1) << 2) -#define ARGON2_DEFAULT_FLAGS (ARGON2_FLAG_CLEAR_MEMORY) +#define ARGON2_DEFAULT_FLAGS (UINT32_C(0)) /* Error codes */ typedef enum Argon2_ErrorCodes {