Refactored internal use of esalt from sync with number of salts to sync with number of digests

This enables a true N esalts per salt feature which is required for WPA/WPA2 handling
In case we need that for a future algorithm, just make sure to have a unique value in digest in hash parser.
Fixes https://github.com/hashcat/hashcat/issues/1158
This commit is contained in:
jsteube
2017-03-07 09:44:58 +01:00
parent 5cf92de55f
commit 33a043ec63
92 changed files with 2695 additions and 2786 deletions
+2 -3
View File
@@ -187,6 +187,8 @@ typedef struct wpa
int essid_reuse;
u8 essid_len;
u8 essid[32];
u32 keymic[4];
u32 hash[4];
} wpa_t;
@@ -1744,9 +1746,6 @@ char *strparser (const u32 parser_status);
int check_old_hccap (const char *hashfile);
void to_hccapx_t (hashcat_ctx_t *hashcat_ctx, hccapx_t *hccapx, const u32 salt_pos, const u32 digest_pos);
void wpa_essid_reuse (hashcat_ctx_t *hashcat_ctx);
void wpa_essid_reuse_next (hashcat_ctx_t *hashcat_ctx, const u32 salt_idx_cracked);
int ascii_digest (hashcat_ctx_t *hashcat_ctx, char *out_buf, const size_t out_len, const u32 salt_pos, const u32 digest_pos);
int hashconfig_init (hashcat_ctx_t *hashcat_ctx);