mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-22 16:18:09 +00:00
Allow bitcoin master key length not be exactly 96 byte a multiple of 16
This commit is contained in:
parent
68bff94980
commit
ce9b56e06c
@ -5,6 +5,7 @@
|
||||
##
|
||||
|
||||
- Workaround some AMD OpenCL runtime segmentation faults
|
||||
- Allow bitcoin master key length not be exactly 96 byte a multiple of 16
|
||||
|
||||
##
|
||||
## Bugs
|
||||
|
@ -12401,8 +12401,8 @@ int bitcoin_wallet_parse_hash (u8 *input_buf, u32 input_len, hash_t *hash_buf, M
|
||||
| TOKEN_ATTR_VERIFY_DIGIT;
|
||||
|
||||
token.sep[2] = '$';
|
||||
token.len_min[2] = 96;
|
||||
token.len_max[2] = 96;
|
||||
token.len_min[2] = 16;
|
||||
token.len_max[2] = 256;
|
||||
token.attr[2] = TOKEN_ATTR_VERIFY_LENGTH
|
||||
| TOKEN_ATTR_VERIFY_HEX;
|
||||
|
||||
@ -12479,6 +12479,8 @@ int bitcoin_wallet_parse_hash (u8 *input_buf, u32 input_len, hash_t *hash_buf, M
|
||||
if (ckey_buf_len != ckey_len) return (PARSER_SALT_VALUE);
|
||||
if (public_key_buf_len != public_key_len) return (PARSER_SALT_VALUE);
|
||||
|
||||
if (cry_master_len % 16) return (PARSER_SALT_VALUE);
|
||||
|
||||
// esalt
|
||||
|
||||
for (int i = 0, j = 0; j < cry_master_len; i += 1, j += 8)
|
||||
|
Loading…
Reference in New Issue
Block a user