2016-09-11 09:42:19 +00:00
|
|
|
/**
|
2016-09-11 20:20:15 +00:00
|
|
|
* Author......: See docs/credits.txt
|
2016-09-11 09:42:19 +00:00
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _HASH_MANAGEMENT_H
|
|
|
|
#define _HASH_MANAGEMENT_H
|
|
|
|
|
2018-10-20 16:00:42 +00:00
|
|
|
int sort_by_string (const void *v1, const void *v2);
|
2016-09-30 20:52:44 +00:00
|
|
|
int sort_by_digest_p0p1 (const void *v1, const void *v2, void *v3);
|
2016-09-14 17:50:53 +00:00
|
|
|
int sort_by_salt (const void *v1, const void *v2);
|
2018-08-31 10:55:05 +00:00
|
|
|
int sort_by_salt_buf (const void *v1, const void *v2, MAYBE_UNUSED void * v3);
|
2016-09-30 20:52:44 +00:00
|
|
|
int sort_by_hash (const void *v1, const void *v2, void *v3);
|
|
|
|
int sort_by_hash_no_salt (const void *v1, const void *v2, void *v3);
|
2016-09-14 17:50:53 +00:00
|
|
|
|
2016-10-09 20:41:55 +00:00
|
|
|
int save_hash (hashcat_ctx_t *hashcat_ctx);
|
2016-09-14 14:07:24 +00:00
|
|
|
|
2016-09-30 20:52:44 +00:00
|
|
|
void check_hash (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param, plain_t *plain);
|
2016-09-14 14:07:24 +00:00
|
|
|
|
2016-10-04 04:35:49 +00:00
|
|
|
int check_cracked (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param, const u32 salt_pos);
|
2016-09-16 15:01:18 +00:00
|
|
|
|
2017-12-06 15:12:34 +00:00
|
|
|
void hashes_init_filename (hashcat_ctx_t *hashcat_ctx);
|
|
|
|
|
2016-10-06 08:55:14 +00:00
|
|
|
int hashes_init_stage1 (hashcat_ctx_t *hashcat_ctx);
|
|
|
|
int hashes_init_stage2 (hashcat_ctx_t *hashcat_ctx);
|
|
|
|
int hashes_init_stage3 (hashcat_ctx_t *hashcat_ctx);
|
2016-10-18 18:42:34 +00:00
|
|
|
int hashes_init_stage4 (hashcat_ctx_t *hashcat_ctx);
|
2016-09-16 15:01:18 +00:00
|
|
|
|
2019-01-12 00:59:18 +00:00
|
|
|
int hashes_init_selftest (hashcat_ctx_t *hashcat_ctx);
|
|
|
|
int hashes_init_benchmark (hashcat_ctx_t *hashcat_ctx);
|
2017-06-13 17:07:08 +00:00
|
|
|
|
2016-10-06 08:55:14 +00:00
|
|
|
void hashes_destroy (hashcat_ctx_t *hashcat_ctx);
|
2016-09-14 14:07:24 +00:00
|
|
|
|
2016-10-06 08:55:14 +00:00
|
|
|
void hashes_logger (hashcat_ctx_t *hashcat_ctx);
|
2016-09-23 19:41:05 +00:00
|
|
|
|
2016-09-11 09:42:19 +00:00
|
|
|
#endif // _HASH_MANAGEMENT_H
|