mirror of
https://github.com/hashcat/hashcat.git
synced 2025-02-26 22:33:00 +00:00
Fix includes for kernel2cpu_rule_test
This commit is contained in:
parent
a496ab7be5
commit
9f45ceb128
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
GCC := gcc
|
GCC := gcc
|
||||||
ROOT := ../..
|
ROOT := ../..
|
||||||
CFLAGS := -O2 -s -pipe -W -Wall -std=c99 -I$(ROOT)/include/
|
CFLAGS := -O2 -s -pipe -W -Wall -std=c99 -I$(ROOT)/include/ -I$(ROOT)/OpenCL/
|
||||||
LIBS :=
|
LIBS :=
|
||||||
TARGET := kernel2cpu_rule_test
|
TARGET := kernel2cpu_rule_test
|
||||||
INCLUDE := $(ROOT)/src/rp_kernel_on_cpu.c cpu_rules.c
|
INCLUDE := $(ROOT)/src/rp_kernel_on_cpu.c cpu_rules.c
|
||||||
|
@ -6,7 +6,8 @@
|
|||||||
#ifndef CPU_RULES_H
|
#ifndef CPU_RULES_H
|
||||||
#define CPU_RULES_H
|
#define CPU_RULES_H
|
||||||
|
|
||||||
#include <common.h>
|
#include "common.h"
|
||||||
|
#include "inc_rp.h"
|
||||||
#include "rp_cpu.h"
|
#include "rp_cpu.h"
|
||||||
|
|
||||||
#define BLOCK_SIZE 64
|
#define BLOCK_SIZE 64
|
||||||
|
@ -3,15 +3,13 @@
|
|||||||
* License.....: MIT
|
* License.....: MIT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
#define RULES_PER_PLAIN_MIN 1
|
||||||
|
|
||||||
#define RULES_PER_PLAIN_MIN 1
|
|
||||||
#define RULES_PER_PLAIN_MAX 99
|
#define RULES_PER_PLAIN_MAX 99
|
||||||
#define RP_GEN_FUNC_MIN 1
|
#define RP_GEN_FUNC_MIN 1
|
||||||
#define RP_GEN_FUNC_MAX 4
|
#define RP_GEN_FUNC_MAX 4
|
||||||
#define PW_MAX 32
|
#define PW_MAX 32
|
||||||
#define LINE_SIG_LEN RP_GEN_FUNC_MAX * 2 + 1
|
#define LINE_SIG_LEN RP_GEN_FUNC_MAX * 2 + 1
|
||||||
3
|
|
||||||
int max_len = 0;
|
int max_len = 0;
|
||||||
|
|
||||||
#include "cpu_rules.h"
|
#include "cpu_rules.h"
|
||||||
@ -61,7 +59,7 @@ int main (int argc, char **argv)
|
|||||||
|
|
||||||
char *rule_buf = (char *) malloc (HCBUFSIZ);
|
char *rule_buf = (char *) malloc (HCBUFSIZ);
|
||||||
|
|
||||||
char *line_buf = (char *) mymalloc (HCBUFSIZ);
|
char *line_buf = (char *) malloc (HCBUFSIZ);
|
||||||
|
|
||||||
int rp_gen_func_min = RP_GEN_FUNC_MIN;
|
int rp_gen_func_min = RP_GEN_FUNC_MIN;
|
||||||
int rp_gen_func_max = RP_GEN_FUNC_MAX;
|
int rp_gen_func_max = RP_GEN_FUNC_MAX;
|
||||||
|
Loading…
Reference in New Issue
Block a user