mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-23 15:18:16 +00:00
Merge pull request #1086 from philsmd/master
dead code: in office parse functions
This commit is contained in:
commit
255bb8db74
@ -8670,9 +8670,9 @@ int oldoffice01_parse_hash (u8 *input_buf, u32 input_len, hash_t *hash_buf, MAYB
|
||||
|
||||
encryptedVerifierHash_pos++;
|
||||
|
||||
u32 encryptedVerifierHash_len = input_len - 11 - version_len - 1 - osalt_len - 1 - encryptedVerifier_len - 1;
|
||||
|
||||
if (encryptedVerifierHash_len != 32) return (PARSER_SALT_LENGTH);
|
||||
// The following check is implied (and therefore not needed aka dead code):
|
||||
// u32 encryptedVerifierHash_len = input_len - 11 - version_len - 1 - osalt_len - 1 - encryptedVerifier_len - 1;
|
||||
// if (encryptedVerifierHash_len != 32) return (PARSER_SALT_LENGTH);
|
||||
|
||||
const u32 version = *version_pos - 0x30;
|
||||
|
||||
@ -8927,9 +8927,9 @@ int oldoffice34_parse_hash (u8 *input_buf, u32 input_len, hash_t *hash_buf, MAYB
|
||||
|
||||
encryptedVerifierHash_pos++;
|
||||
|
||||
u32 encryptedVerifierHash_len = input_len - 11 - version_len - 1 - osalt_len - 1 - encryptedVerifier_len - 1;
|
||||
|
||||
if (encryptedVerifierHash_len != 40) return (PARSER_SALT_LENGTH);
|
||||
// The following check is implied (and therefore not needed aka dead code):
|
||||
// u32 encryptedVerifierHash_len = input_len - 11 - version_len - 1 - osalt_len - 1 - encryptedVerifier_len - 1;
|
||||
// if (encryptedVerifierHash_len != 40) return (PARSER_SALT_LENGTH);
|
||||
|
||||
const u32 version = *version_pos - 0x30;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user