File: slow_candidates.h

package info (click to toggle)
hashcat 7.1.2%2Bds1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 75,920 kB
  • sloc: lisp: 627,107; ansic: 431,312; perl: 30,157; cpp: 11,400; sh: 5,250; python: 2,504; makefile: 1,188
file content (58 lines) | stat: -rw-r--r-- 882 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/**
 * Author......: See docs/credits.txt
 * License.....: MIT
 */

#ifndef HC_SLOW_CANDIDATES_H
#define HC_SLOW_CANDIDATES_H

typedef struct extra_info_straight
{
  u64 pos;

  HCFILE fp;

  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;

typedef struct extra_info_combi
{
  u64 pos;

  HCFILE base_fp;
  HCFILE combs_fp;

  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;

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

#endif // HC_SLOW_CANDIDATES_H