VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/Crypto.h
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2024-08-24 11:26:55 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2024-08-24 11:26:55 +0200
commit4dfe046390d467dd8572b9b4876a8e823098d3e2 (patch)
treefe5527fd172282684263a335e3f9d032f5ca5186 /src/Common/Crypto.h
parent25c88fe3d30c4df4aa8bf7c64b165f92886965b9 (diff)
downloadVeraCrypt-4dfe046390d467dd8572b9b4876a8e823098d3e2.tar.gz
VeraCrypt-4dfe046390d467dd8572b9b4876a8e823098d3e2.zip
Windows: Implement foundations for Argon2 support as a KDF in addition to PBKDF2
Diffstat (limited to 'src/Common/Crypto.h')
-rw-r--r--src/Common/Crypto.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Common/Crypto.h b/src/Common/Crypto.h
index 89d22f0e..bb66e307 100644
--- a/src/Common/Crypto.h
+++ b/src/Common/Crypto.h
@@ -55,6 +55,7 @@ enum
SHA256,
BLAKE2S,
STREEBOG,
+ ARGON2,
HASH_ENUM_END_ID
};
@@ -226,6 +227,7 @@ typedef struct
typedef struct keyInfo_t
{
int noIterations; /* Number of times to iterate (PKCS-5) */
+ int memoryCost; /* Memory cost factor (PKCS-5) */
int keyLength; /* Length of the key */
uint64 dummy; /* Dummy field to ensure 16-byte alignment of this structure */
__int8 salt[PKCS5_SALT_SIZE]; /* PKCS-5 salt */
@@ -257,6 +259,7 @@ typedef struct CRYPTO_INFO_t
#endif
int noIterations;
+ int memoryCost;
int volumePim;
BOOL bProtectHiddenVolume; // Indicates whether the volume contains a hidden volume to be protected against overwriting