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
|
|
|
|
|
2016-09-14 14:07:24 +00:00
|
|
|
#define USERNAME 0
|
|
|
|
|
2016-09-14 17:50:53 +00:00
|
|
|
int sort_by_digest_p0p1 (const void *v1, const void *v2);
|
|
|
|
int sort_by_salt (const void *v1, const void *v2);
|
|
|
|
int sort_by_hash (const void *v1, const void *v2);
|
|
|
|
int sort_by_hash_no_salt (const void *v1, const void *v2);
|
|
|
|
|
2016-09-14 14:07:24 +00:00
|
|
|
void save_hash ();
|
|
|
|
|
2016-09-15 14:02:52 +00:00
|
|
|
void check_hash (opencl_ctx_t *opencl_ctx, hc_device_param_t *device_param, plain_t *plain);
|
2016-09-14 14:07:24 +00:00
|
|
|
|
2016-09-16 15:01:18 +00:00
|
|
|
int check_cracked (opencl_ctx_t *opencl_ctx, hc_device_param_t *device_param, hashconfig_t *hashconfig, hashes_t *hashes, const uint salt_pos);
|
|
|
|
|
2016-09-18 13:51:47 +00:00
|
|
|
int hashes_init_stage1 (hashes_t *hashes, const hashconfig_t *hashconfig, potfile_ctx_t *potfile_ctx, outfile_ctx_t *outfile_ctx, char *hash_or_file, const uint keyspace, const uint quiet, const uint benchmark, const bool opencl_info, const uint stdout_flag, const uint username, const uint remove, const uint show, const uint left);
|
2016-09-16 15:01:18 +00:00
|
|
|
int hashes_init_stage2 (hashes_t *hashes, const hashconfig_t *hashconfig, opencl_ctx_t *opencl_ctx, const uint username, const uint remove, const uint show);
|
|
|
|
|
|
|
|
void hashes_destroy (hashes_t *hashes);
|
2016-09-14 14:07:24 +00:00
|
|
|
|
2016-09-11 09:42:19 +00:00
|
|
|
#endif // _HASH_MANAGEMENT_H
|