1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-30 11:58:15 +00:00
hashcat/include/restore.h

43 lines
1.0 KiB
C
Raw Normal View History

/**
* Author......: See docs/credits.txt
* License.....: MIT
*/
#ifndef _RESTORE_H
#define _RESTORE_H
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#if defined (_POSIX)
#include <sys/types.h>
#include <sys/stat.h>
#endif // _POSIX
#if defined (_WIN)
#include <windows.h>
2016-09-07 20:04:04 +00:00
#include <psapi.h>
#endif // _WIN
#define RESTORE_VERSION_MIN 320
#define RESTORE_VERSION_CUR 320
2016-09-24 23:02:44 +00:00
u64 get_lowest_words_done (const restore_ctx_t *restore_ctx, const opencl_ctx_t *opencl_ctx);
2016-09-24 23:02:44 +00:00
void init_restore (restore_ctx_t *restore_ctx);
2016-09-24 23:02:44 +00:00
void read_restore (restore_ctx_t *restore_ctx);
2016-09-24 23:02:44 +00:00
void write_restore (restore_ctx_t *restore_ctx, opencl_ctx_t *opencl_ctx);
2016-09-24 23:02:44 +00:00
void cycle_restore (restore_ctx_t *restore_ctx, opencl_ctx_t *opencl_ctx);
2016-09-24 23:02:44 +00:00
void stop_at_checkpoint (restore_ctx_t *restore_ctx, opencl_ctx_t *opencl_ctx);
int restore_ctx_init (restore_ctx_t *restore_ctx, user_options_t *user_options, const folder_config_t *folder_config, int argc, char **argv);
void restore_ctx_destroy (restore_ctx_t *restore_ctx);
#endif // _RESTORE_H