2016-09-06 11:52:26 +00:00
|
|
|
/**
|
2016-09-11 20:20:15 +00:00
|
|
|
* Author......: See docs/credits.txt
|
2016-09-06 11:52:26 +00:00
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
2016-09-06 16:44:05 +00:00
|
|
|
#ifndef _MPSP_H
|
|
|
|
#define _MPSP_H
|
2016-09-06 11:52:26 +00:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <errno.h>
|
2016-09-06 12:11:03 +00:00
|
|
|
#include <ctype.h>
|
2016-09-06 11:52:26 +00:00
|
|
|
|
|
|
|
#define CHARSIZ 0x100
|
|
|
|
|
2017-06-23 10:13:51 +00:00
|
|
|
#define SP_HCSTAT "hashcat.hcstat2"
|
|
|
|
#define SP_VERSION (0x6863737461740000 | 0x0002)
|
2016-09-06 11:52:26 +00:00
|
|
|
#define SP_PW_MIN 2
|
2017-06-23 10:13:51 +00:00
|
|
|
#define SP_PW_MAX 256
|
2016-09-06 11:52:26 +00:00
|
|
|
#define SP_ROOT_CNT (SP_PW_MAX * CHARSIZ)
|
|
|
|
#define SP_MARKOV_CNT (SP_PW_MAX * CHARSIZ * CHARSIZ)
|
2017-06-23 12:43:43 +00:00
|
|
|
#define SP_FILESZ (sizeof (u64) + sizeof (u64) + (sizeof (u64) * SP_ROOT_CNT) + (sizeof (u64) * SP_MARKOV_CNT))
|
2016-09-06 11:52:26 +00:00
|
|
|
|
2016-09-20 14:04:22 +00:00
|
|
|
#define INCR_MASKS 1000
|
2016-09-11 08:28:59 +00:00
|
|
|
|
2019-10-09 17:18:18 +00:00
|
|
|
u32 mp_get_length (const char *mask, const u32 opts_type);
|
2016-10-29 20:44:01 +00:00
|
|
|
|
2016-10-04 04:35:49 +00:00
|
|
|
void sp_exec (u64 ctx, char *pw_buf, cs_t *root_css_buf, cs_t *markov_css_buf, u32 start, u32 stop);
|
2016-09-06 16:44:05 +00:00
|
|
|
|
2016-10-06 20:00:02 +00:00
|
|
|
int mask_ctx_update_loop (hashcat_ctx_t *hashcat_ctx);
|
2016-10-06 08:14:19 +00:00
|
|
|
int mask_ctx_init (hashcat_ctx_t *hashcat_ctx);
|
|
|
|
void mask_ctx_destroy (hashcat_ctx_t *hashcat_ctx);
|
|
|
|
int mask_ctx_parse_maskfile (hashcat_ctx_t *hashcat_ctx);
|
2016-09-27 16:32:09 +00:00
|
|
|
|
2016-09-06 16:44:05 +00:00
|
|
|
#endif // _MPSP_H
|