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 ();
|
|
|
|
|
|
|
|
void check_hash (hc_device_param_t *device_param, plain_t *plain);
|
|
|
|
|
|
|
|
int check_cracked (hc_device_param_t *device_param, const uint salt_pos, hashconfig_t *hashconfig);
|
|
|
|
|
2016-09-11 09:42:19 +00:00
|
|
|
#endif // _HASH_MANAGEMENT_H
|