mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-22 22:58:30 +00:00
33 lines
811 B
C
33 lines
811 B
C
/**
|
|
* Author......: See docs/credits.txt
|
|
* License.....: MIT
|
|
*/
|
|
|
|
#ifndef HC_DICTSTAT_H
|
|
#define HC_DICTSTAT_H
|
|
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <unistd.h>
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
|
|
#include <errno.h>
|
|
#include <search.h>
|
|
|
|
#define MAX_DICTSTAT 100000
|
|
|
|
#define DICTSTAT_FILENAME "hashcat.dictstat2"
|
|
#define DICTSTAT_VERSION (0x6863646963743200 | 0x03)
|
|
|
|
int sort_by_dictstat (const void *s1, const void *s2);
|
|
|
|
int dictstat_init (hashcat_ctx_t *hashcat_ctx);
|
|
void dictstat_destroy (hashcat_ctx_t *hashcat_ctx);
|
|
void dictstat_read (hashcat_ctx_t *hashcat_ctx);
|
|
int dictstat_write (hashcat_ctx_t *hashcat_ctx);
|
|
u64 dictstat_find (hashcat_ctx_t *hashcat_ctx, dictstat_t *d);
|
|
void dictstat_append (hashcat_ctx_t *hashcat_ctx, dictstat_t *d);
|
|
|
|
#endif // HC_DICTSTAT_H
|