2018-09-01 10:31:17 +00:00
|
|
|
/**
|
|
|
|
* Author......: See docs/credits.txt
|
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
2023-01-30 14:41:12 +00:00
|
|
|
#ifndef HC_SLOW_CANDIDATES_H
|
|
|
|
#define HC_SLOW_CANDIDATES_H
|
2018-09-01 10:31:17 +00:00
|
|
|
|
|
|
|
typedef struct extra_info_straight
|
|
|
|
{
|
2018-10-20 16:00:42 +00:00
|
|
|
u64 pos;
|
|
|
|
|
2019-07-02 19:30:35 +00:00
|
|
|
HCFILE fp;
|
2018-09-01 10:31:17 +00:00
|
|
|
|
|
|
|
u64 rule_pos_prev;
|
|
|
|
u64 rule_pos;
|
|
|
|
|
|
|
|
u8 base_buf[256];
|
|
|
|
u32 base_len;
|
|
|
|
|
|
|
|
u8 out_buf[256];
|
|
|
|
u32 out_len;
|
|
|
|
|
|
|
|
} extra_info_straight_t;
|
|
|
|
|
2018-09-01 21:12:56 +00:00
|
|
|
typedef struct extra_info_combi
|
|
|
|
{
|
2018-10-20 16:00:42 +00:00
|
|
|
u64 pos;
|
|
|
|
|
2019-07-02 16:27:36 +00:00
|
|
|
HCFILE base_fp;
|
|
|
|
HCFILE combs_fp;
|
2018-09-01 21:12:56 +00:00
|
|
|
|
|
|
|
u64 comb_pos_prev;
|
|
|
|
u64 comb_pos;
|
|
|
|
|
|
|
|
char *scratch_buf;
|
|
|
|
|
|
|
|
u8 base_buf[256];
|
|
|
|
u32 base_len;
|
|
|
|
|
|
|
|
u8 out_buf[256];
|
|
|
|
u32 out_len;
|
|
|
|
|
|
|
|
} extra_info_combi_t;
|
|
|
|
|
2018-09-01 10:31:17 +00:00
|
|
|
typedef struct extra_info_mask
|
|
|
|
{
|
|
|
|
u64 pos;
|
|
|
|
|
|
|
|
u8 out_buf[256];
|
|
|
|
u32 out_len;
|
|
|
|
|
|
|
|
} extra_info_mask_t;
|
|
|
|
|
|
|
|
void slow_candidates_seek (hashcat_ctx_t *hashcat_ctx, void *extra_info, const u64 cur, const u64 end);
|
|
|
|
void slow_candidates_next (hashcat_ctx_t *hashcat_ctx, void *extra_info);
|
|
|
|
|
2023-01-30 14:41:12 +00:00
|
|
|
#endif // HC_SLOW_CANDIDATES_H
|