mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-12 02:38:56 +00:00
49 lines
939 B
C
49 lines
939 B
C
/**
|
|
* Author......: Jens Steube <jens.steube@gmail.com>
|
|
* License.....: MIT
|
|
*/
|
|
|
|
#ifndef _TUNINGDB_H
|
|
#define _TUNINGDB_H
|
|
|
|
#include <stdio.h>
|
|
#include <errno.h>
|
|
|
|
#define TUNING_DB_FILE "hashcat.hctune"
|
|
|
|
typedef struct
|
|
{
|
|
char *device_name;
|
|
char *alias_name;
|
|
|
|
} tuning_db_alias_t;
|
|
|
|
typedef struct
|
|
{
|
|
char *device_name;
|
|
int attack_mode;
|
|
int hash_type;
|
|
int workload_profile;
|
|
int vector_width;
|
|
int kernel_accel;
|
|
int kernel_loops;
|
|
|
|
} tuning_db_entry_t;
|
|
|
|
typedef struct
|
|
{
|
|
tuning_db_alias_t *alias_buf;
|
|
int alias_cnt;
|
|
|
|
tuning_db_entry_t *entry_buf;
|
|
int entry_cnt;
|
|
|
|
} tuning_db_t;
|
|
|
|
void tuning_db_destroy (tuning_db_t *tuning_db);
|
|
tuning_db_t *tuning_db_alloc (FILE *fp);
|
|
tuning_db_t *tuning_db_init (const char *tuning_db_file);
|
|
tuning_db_entry_t *tuning_db_search (tuning_db_t *tuning_db, hc_device_param_t *device_param, int attack_mode, int hash_type);
|
|
|
|
#endif // _TUNINGDB_H
|