1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-07-09 08:08:15 +00:00
hashcat/include/tuningdb.h
Jens Steube ed6e967425 Add experimental SCRYPT N-parameter auto-discovery
Remove existing tuningdb entries due to salsa_r() core
refactor. Update tuningdb engine to prefer file entries,
when available, over automatic discovery.

Improve memory-free detection per device, default
--backend-device-keepfree is now set to 0.

Old brute-force OpenCL behavior can be restored using
--backend-device-keepfree 100.
2025-06-08 07:32:32 +02:00

24 lines
725 B
C

/**
* Author......: See docs/credits.txt
* License.....: MIT
*/
#ifndef HC_TUNINGDB_H
#define HC_TUNINGDB_H
#include <stdio.h>
#include <errno.h>
#define TUNING_DB_SUFFIX "hctune"
int sort_by_tuning_db_alias (const void *v1, const void *v2);
int sort_by_tuning_db_entry (const void *v1, const void *v2);
int tuning_db_init (hashcat_ctx_t *hashcat_ctx);
void tuning_db_destroy (hashcat_ctx_t *hashcat_ctx);
bool tuning_db_process_line (hashcat_ctx_t *hashcat_ctx, const char *line_buf, const int line_num, const int source);
tuning_db_entry_t *tuning_db_search (hashcat_ctx_t *hashcat_ctx, const char *device_name, const cl_device_type device_type, int attack_mode, const int hash_mode);
#endif // HC_TUNINGDB_H