You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hashcat/include/common.h

44 lines
787 B

9 years ago
/**
* Authors.....: Jens Steube <jens.steube@gmail.com>
* magnum <john.magnum@hushmail.com>
*
9 years ago
* License.....: MIT
*/
#ifndef _COMMON_H
#define _COMMON_H
9 years ago
#define _GNU_SOURCE
#define _FILE_OFFSET_BITS 64
#define EXEC_CACHE 128
#define SPEED_CACHE 128
#define SPEED_MAXAGE 4096
9 years ago
#define HCBUFSIZ 0x50000 // general large space buffer size in case the size is unknown at compile-time
9 years ago
#define BLOCK_SIZE 64
#define EXPECTED_ITERATIONS 10000
#define MIN(a,b) (((a) < (b)) ? (a) : (b))
#define MAX(a,b) (((a) > (b)) ? (a) : (b))
#define DEVICES_MAX 128
#define PARAMCNT 64
#define CEIL(a) ((a - (int) (a)) > 0 ? a + 1 : a)
#ifdef __APPLE__
#define __stdcall
#endif
#ifdef _WIN
#define WIN32_LEAN_AND_MEAN
#endif
#endif // _COMMON_H