Add support for OPTS_TYPE_LOOP_EXTENDED kernel for special cases like VeraCrypt

This commit is contained in:
Jens Steube
2020-02-20 16:00:21 +01:00
parent b1bb47c1ae
commit d9473358ef
39 changed files with 1505 additions and 1080 deletions
+4 -1
View File
@@ -22,9 +22,11 @@ static const u32 DGST_SIZE = DGST_SIZE_4_8;
static const u32 HASH_CATEGORY = HASH_CATEGORY_FDE;
static const char *HASH_NAME = "VeraCrypt SHA256 + XTS 512 bit";
static const u64 KERN_TYPE = 13751;
static const u32 OPTI_TYPE = OPTI_TYPE_ZERO_BYTE;
static const u32 OPTI_TYPE = OPTI_TYPE_ZERO_BYTE
| OPTI_TYPE_SLOW_HASH_SIMD_LOOP;
static const u64 OPTS_TYPE = OPTS_TYPE_PT_GENERATE_LE
| OPTS_TYPE_BINARY_HASHFILE
| OPTS_TYPE_LOOP_EXTENDED
| OPTS_TYPE_COPY_TMPS;
static const u32 SALT_TYPE = SALT_TYPE_EMBEDDED;
static const char *ST_PASS = "hashcat";
@@ -55,6 +57,7 @@ typedef struct vc_tmp
u32 pim_key[64];
int pim; // marker for cracked
int pim_check; // marker for _extended kernel
} vc_tmp_t;