2016-09-08 16:32:24 +02:00
|
|
|
/**
|
2016-09-11 22:20:15 +02:00
|
|
|
* Author......: See docs/credits.txt
|
2016-09-08 16:32:24 +02:00
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _WORDLIST_H
|
|
|
|
#define _WORDLIST_H
|
|
|
|
|
2016-09-28 22:52:42 +02:00
|
|
|
#include <time.h>
|
|
|
|
#include <inttypes.h>
|
|
|
|
|
2016-10-06 16:16:56 +02:00
|
|
|
u32 convert_from_hex (hashcat_ctx_t *hashcat_ctx, char *line_buf, const u32 line_len);
|
2016-09-08 16:32:24 +02:00
|
|
|
|
2016-10-06 16:16:56 +02:00
|
|
|
void pw_add (hc_device_param_t *device_param, const u8 *pw_buf, const int pw_len);
|
2016-09-08 16:32:24 +02:00
|
|
|
|
2016-09-30 16:43:59 +02:00
|
|
|
void get_next_word_lm (char *buf, u64 sz, u64 *len, u64 *off);
|
|
|
|
void get_next_word_uc (char *buf, u64 sz, u64 *len, u64 *off);
|
|
|
|
void get_next_word_std (char *buf, u64 sz, u64 *len, u64 *off);
|
2016-09-08 16:32:24 +02:00
|
|
|
|
2016-10-06 16:16:56 +02:00
|
|
|
void get_next_word (hashcat_ctx_t *hashcat_ctx, FILE *fd, char **out_buf, u32 *out_len);
|
2016-10-13 10:07:04 +02:00
|
|
|
int load_segment (hashcat_ctx_t *hashcat_ctx, FILE *fd);
|
2016-10-06 16:16:56 +02:00
|
|
|
u64 count_words (hashcat_ctx_t *hashcat_ctx, FILE *fd, const char *dictfile);
|
2016-10-13 10:07:04 +02:00
|
|
|
int wl_data_init (hashcat_ctx_t *hashcat_ctx);
|
2016-10-06 16:16:56 +02:00
|
|
|
void wl_data_destroy (hashcat_ctx_t *hashcat_ctx);
|
2016-09-22 11:35:08 +02:00
|
|
|
|
2016-09-08 16:32:24 +02:00
|
|
|
#endif // _WORDLIST_H
|