1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-22 08:08:10 +00:00

Remove some unused lines

This commit is contained in:
Jens Steube 2022-06-03 22:55:05 +02:00
parent e94cc0f64e
commit ab8cc31b2d
2 changed files with 0 additions and 8 deletions

View File

@ -93,10 +93,8 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
if (parse_rc == false) return (PARSER_SALT_LENGTH);
memcpy (salt->salt_buf, line_buf, salt_len);
u8 tmp_buf[100] = { 0 };
const int decoded_len = base64_decode (base64url_to_int, hash_pos, hash_len, tmp_buf);
@ -138,7 +136,6 @@ int module_hash_encode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
ptr_plain[27] = 0;
const int line_len = snprintf (line_buf, line_size, "%s.%s", (char *) salt->salt_buf, (char *) ptr_plain);
return line_len;

View File

@ -110,7 +110,6 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
if (rc_tokenizer != PARSER_OK) return (rc_tokenizer);
// user name:
if ((token.len[1] % 2) != 0) return (PARSER_SALT_LENGTH);
@ -132,7 +131,6 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
esalt->user[i] = byte_swap_32 (esalt->user[i]);
}
// salt (for salted SHA1):
if ((token.len[2] % 2) != 0) return (PARSER_SALT_LENGTH);
@ -150,7 +148,6 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
salt->salt_buf[i] = byte_swap_32 (salt->salt_buf[i]);
}
// verifier:
if ((token.len[3] % 2) != 0) return (PARSER_SALT_LENGTH);
@ -170,7 +167,6 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
salt->salt_buf_pc[i] = byte_swap_32 (t2);
}
// digest
// convert our verifier to Montgomery form (s.t. we avoid converting it back on GPU):
@ -184,7 +180,6 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
digest[2] = dgst[2];
digest[3] = dgst[3];
/*
* pre-computed values for BigNum exponentiation:
*/