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

Allow bitcoin master key length not be exactly 96 byte a multiple of 16

This commit is contained in:
Jens Steube 2018-08-14 15:39:39 +02:00
parent 68bff94980
commit ce9b56e06c
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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)