2016-09-11 11:42:19 +02:00
|
|
|
/**
|
2016-09-11 22:20:15 +02:00
|
|
|
* Author......: See docs/credits.txt
|
2016-09-11 11:42:19 +02:00
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
2023-01-30 14:41:12 +00:00
|
|
|
#ifndef HC_HASHES_H
|
|
|
|
#define HC_HASHES_H
|
2016-09-11 11:42:19 +02:00
|
|
|
|
2016-09-30 22:52:44 +02:00
|
|
|
int sort_by_digest_p0p1 (const void *v1, const void *v2, void *v3);
|
2016-09-14 19:50:53 +02:00
|
|
|
int sort_by_salt (const void *v1, const void *v2);
|
2016-09-30 22:52:44 +02: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 19:50:53 +02:00
|
|
|
|
2019-03-31 17:39:00 +02:00
|
|
|
int hash_encode (const hashconfig_t *hashconfig, const hashes_t *hashes, const module_ctx_t *module_ctx, char *out_buf, const int out_size, const u32 salt_pos, const u32 digest_pos);
|
|
|
|
|
2016-10-09 22:41:55 +02:00
|
|
|
int save_hash (hashcat_ctx_t *hashcat_ctx);
|
2016-09-14 16:07:24 +02:00
|
|
|
|
2021-07-27 14:36:48 +03:00
|
|
|
int check_hash (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param, plain_t *plain);
|
2016-09-14 16:07:24 +02:00
|
|
|
|
2020-09-29 15:56:32 +02:00
|
|
|
//int check_cracked (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param, const u32 salt_pos);
|
|
|
|
int check_cracked (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param);
|
2016-09-16 17:01:18 +02:00
|
|
|
|
2019-02-25 11:20:22 +01:00
|
|
|
int hashes_init_filename (hashcat_ctx_t *hashcat_ctx);
|
|
|
|
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);
|
|
|
|
int hashes_init_stage4 (hashcat_ctx_t *hashcat_ctx);
|
2019-01-12 01:59:18 +01:00
|
|
|
int hashes_init_selftest (hashcat_ctx_t *hashcat_ctx);
|
|
|
|
int hashes_init_benchmark (hashcat_ctx_t *hashcat_ctx);
|
2021-04-21 09:22:00 +02:00
|
|
|
int hashes_init_zerohash (hashcat_ctx_t *hashcat_ctx);
|
2017-06-13 19:07:08 +02:00
|
|
|
|
2016-10-06 10:55:14 +02:00
|
|
|
void hashes_destroy (hashcat_ctx_t *hashcat_ctx);
|
2016-09-14 16:07:24 +02:00
|
|
|
|
2016-10-06 10:55:14 +02:00
|
|
|
void hashes_logger (hashcat_ctx_t *hashcat_ctx);
|
2016-09-23 21:41:05 +02:00
|
|
|
|
2023-01-30 14:41:12 +00:00
|
|
|
#endif // HC_HASHES_H
|