Prefix more macros to avoid collisions in other existing libraries

pull/3603/head
jsteube 1 year ago
parent e50e165208
commit 6ee2658104

@ -872,12 +872,12 @@ DECLSPEC u64x hl32_to_64 (const u32x a, const u32x b)
// bit rotates
//
// For CPU_OPENCL_EMU_H we dont need to care about vector functions
// For HC_CPU_OPENCL_EMU_H we dont need to care about vector functions
// The VECT_SIZE is guaranteed to be set to 1 from cpu_opencl_emu.h
DECLSPEC u32x hc_rotl32 (const u32x a, const int n)
{
#if defined CPU_OPENCL_EMU_H
#if defined HC_CPU_OPENCL_EMU_H
return rotl32 (a, n);
#elif defined IS_CUDA || defined IS_HIP
return rotl32 (a, n);
@ -892,7 +892,7 @@ DECLSPEC u32x hc_rotl32 (const u32x a, const int n)
DECLSPEC u32x hc_rotr32 (const u32x a, const int n)
{
#if defined CPU_OPENCL_EMU_H
#if defined HC_CPU_OPENCL_EMU_H
return rotr32 (a, n);
#elif defined IS_CUDA || defined IS_HIP
return rotr32 (a, n);
@ -907,7 +907,7 @@ DECLSPEC u32x hc_rotr32 (const u32x a, const int n)
DECLSPEC u32 hc_rotl32_S (const u32 a, const int n)
{
#if defined CPU_OPENCL_EMU_H
#if defined HC_CPU_OPENCL_EMU_H
return rotl32 (a, n);
#elif defined IS_CUDA || defined IS_HIP
return rotl32_S (a, n);
@ -922,7 +922,7 @@ DECLSPEC u32 hc_rotl32_S (const u32 a, const int n)
DECLSPEC u32 hc_rotr32_S (const u32 a, const int n)
{
#if defined CPU_OPENCL_EMU_H
#if defined HC_CPU_OPENCL_EMU_H
return rotr32 (a, n);
#elif defined IS_CUDA || defined IS_HIP
return rotr32_S (a, n);
@ -937,7 +937,7 @@ DECLSPEC u32 hc_rotr32_S (const u32 a, const int n)
DECLSPEC u64x hc_rotl64 (const u64x a, const int n)
{
#if defined CPU_OPENCL_EMU_H
#if defined HC_CPU_OPENCL_EMU_H
return rotl64 (a, n);
#elif defined IS_CUDA
return rotl64 (a, n);
@ -954,7 +954,7 @@ DECLSPEC u64x hc_rotl64 (const u64x a, const int n)
DECLSPEC u64x hc_rotr64 (const u64x a, const int n)
{
#if defined CPU_OPENCL_EMU_H
#if defined HC_CPU_OPENCL_EMU_H
return rotr64 (a, n);
#elif defined IS_CUDA
return rotr64 (a, n);
@ -971,7 +971,7 @@ DECLSPEC u64x hc_rotr64 (const u64x a, const int n)
DECLSPEC u64 hc_rotl64_S (const u64 a, const int n)
{
#if defined CPU_OPENCL_EMU_H
#if defined HC_CPU_OPENCL_EMU_H
return rotl64 (a, n);
#elif defined IS_CUDA
return rotl64_S (a, n);
@ -988,7 +988,7 @@ DECLSPEC u64 hc_rotl64_S (const u64 a, const int n)
DECLSPEC u64 hc_rotr64_S (const u64 a, const int n)
{
#if defined CPU_OPENCL_EMU_H
#if defined HC_CPU_OPENCL_EMU_H
return rotr64 (a, n);
#elif defined IS_CUDA
return rotr64_S (a, n);
@ -1009,7 +1009,7 @@ DECLSPEC u32x hc_swap32 (const u32x v)
{
u32x r;
#ifdef CPU_OPENCL_EMU_H
#ifdef HC_CPU_OPENCL_EMU_H
r = byte_swap_32 (v);
#else
#if (defined IS_AMD || defined IS_HIP) && HAS_VPERM == 1
@ -1106,7 +1106,7 @@ DECLSPEC u32 hc_swap32_S (const u32 v)
{
u32 r;
#ifdef CPU_OPENCL_EMU_H
#ifdef HC_CPU_OPENCL_EMU_H
r = byte_swap_32 (v);
#else
#if (defined IS_AMD || defined IS_HIP) && HAS_VPERM == 1
@ -1132,7 +1132,7 @@ DECLSPEC u64x hc_swap64 (const u64x v)
{
u64x r;
#ifdef CPU_OPENCL_EMU_H
#ifdef HC_CPU_OPENCL_EMU_H
r = byte_swap_64 (v);
#else
#if (defined IS_AMD || defined IS_HIP) && HAS_VPERM == 1
@ -1351,7 +1351,7 @@ DECLSPEC u64 hc_swap64_S (const u64 v)
{
u64 r;
#ifdef CPU_OPENCL_EMU_H
#ifdef HC_CPU_OPENCL_EMU_H
r = byte_swap_64 (v);
#else
#if (defined IS_AMD || defined IS_HIP) && HAS_VPERM == 1

@ -6,7 +6,7 @@
#ifndef INC_VENDOR_H
#define INC_VENDOR_H
#if defined CPU_OPENCL_EMU_H
#if defined HC_CPU_OPENCL_EMU_H
#define IS_NATIVE
#elif defined __CUDACC__
#define IS_CUDA

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef AFFINITY_H
#define AFFINITY_H
#ifndef HC_AFFINITY_H
#define HC_AFFINITY_H
#include <stdlib.h>
#include <stdarg.h>
@ -25,4 +25,4 @@
int set_cpu_affinity (hashcat_ctx_t *hashcat_ctx);
#endif // AFFINITY_H
#endif // HC_AFFINITY_H

@ -3,9 +3,9 @@
* License.....: MIT
*/
#ifndef AUTOTUNE_H
#define AUTOTUNE_H
#ifndef HC_AUTOTUNE_H
#define HC_AUTOTUNE_H
HC_API_CALL void *thread_autotune (void *p);
#endif // AUTOTUNE_H
#endif // HC_AUTOTUNE_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef BACKEND_H
#define BACKEND_H
#ifndef HC_BACKEND_H
#define HC_BACKEND_H
#include <stdio.h>
#include <errno.h>
@ -92,4 +92,4 @@ int run_cracker (hashcat_ctx_t *hashcat_ctx, hc_devi
void *hook12_thread (void *p);
void *hook23_thread (void *p);
#endif // BACKEND_H
#endif // HC_BACKEND_H

@ -3,9 +3,9 @@
* License.....: MIT
*/
#ifndef BENCHMARK_H
#define BENCHMARK_H
#ifndef HC_BENCHMARK_H
#define HC_BENCHMARK_H
int benchmark_next (hashcat_ctx_t *hashcat_ctx);
#endif // BENCHMARK_H
#endif // HC_BENCHMARK_H

@ -3,12 +3,12 @@
* License.....: MIT
*/
#ifndef BITMAP_H
#define BITMAP_H
#ifndef HC_BITMAP_H
#define HC_BITMAP_H
#include <string.h>
int bitmap_ctx_init (hashcat_ctx_t *hashcat_ctx);
void bitmap_ctx_destroy (hashcat_ctx_t *hashcat_ctx);
#endif // BITMAP_H
#endif // HC_BITMAP_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef BITOPS_H
#define BITOPS_H
#ifndef HC_BITOPS_H
#define HC_BITOPS_H
u32 rotl32 (const u32 a, const int n);
u32 rotr32 (const u32 a, const int n);
@ -15,4 +15,4 @@ u16 byte_swap_16 (const u16 n);
u32 byte_swap_32 (const u32 n);
u64 byte_swap_64 (const u64 n);
#endif // BITOPS_H
#endif // HC_BITOPS_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef BRAIN_H
#define BRAIN_H
#ifndef HC_BRAIN_H
#define HC_BRAIN_H
#include <stdio.h>
#include <stdint.h>
@ -252,4 +252,4 @@ void brain_server_db_attack_free (brain_server_db_attack_t *brain_server_
int brain_ctx_init (hashcat_ctx_t *hashcat_ctx);
void brain_ctx_destroy (hashcat_ctx_t *hashcat_ctx);
#endif // BRAIN_H
#endif // HC_BRAIN_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef COMBINATOR_H
#define COMBINATOR_H
#ifndef HC_COMBINATOR_H
#define HC_COMBINATOR_H
#include <stdio.h>
#include <errno.h>
@ -12,4 +12,4 @@
int combinator_ctx_init (hashcat_ctx_t *hashcat_ctx);
void combinator_ctx_destroy (hashcat_ctx_t *hashcat_ctx);
#endif // COMBINATOR_H
#endif // HC_COMBINATOR_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef COMMON_H
#define COMMON_H
#ifndef HC_COMMON_H
#define HC_COMMON_H
#define PROGNAME "hashcat"
@ -143,5 +143,5 @@ but this is nededed for VS compiler which doesn't have inline keyword but has __
#define EOL "\n"
#endif
#endif // COMMON_H
#endif // HC_COMMON_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef CONVERT_H
#define CONVERT_H
#ifndef HC_CONVERT_H
#define HC_CONVERT_H
#include <ctype.h>
@ -82,4 +82,4 @@ u64 v64_from_v32ab (const u32 v32a, const u32 v32b);
int hex_decode (const u8 *in_buf, const int in_len, u8 *out_buf);
int hex_encode (const u8 *in_buf, const int in_len, u8 *out_buf);
#endif // CONVERT_H
#endif // HC_CONVERT_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef CPT_H
#define CPT_H
#ifndef HC_CPT_H
#define HC_CPT_H
#include <stdio.h>
#include <errno.h>
@ -14,4 +14,4 @@ int cpt_ctx_init (hashcat_ctx_t *hashcat_ctx);
void cpt_ctx_destroy (hashcat_ctx_t *hashcat_ctx);
void cpt_ctx_reset (hashcat_ctx_t *hashcat_ctx);
#endif // CPT_H
#endif // HC_CPT_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef CPU_CRC32_H
#define CPU_CRC32_H
#ifndef HC_CPU_CRC32_H
#define HC_CPU_CRC32_H
#include <stdio.h>
#include <errno.h>
@ -12,4 +12,4 @@
int cpu_crc32 (const char *filename, u8 *keytab, const size_t keytabsz);
u32 cpu_crc32_buffer (const u8 *buf, const size_t length);
#endif // CPU_CRC32_H
#endif // HC_CPU_CRC32_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef DEBUGFILE_H
#define DEBUGFILE_H
#ifndef HC_DEBUGFILE_H
#define HC_DEBUGFILE_H
#include <stdio.h>
@ -12,4 +12,4 @@ int debugfile_init (hashcat_ctx_t *hashcat_ctx);
void debugfile_destroy (hashcat_ctx_t *hashcat_ctx);
void debugfile_write_append (hashcat_ctx_t *hashcat_ctx, const u8 *rule_buf, const u32 rule_len, const u8 *mod_plain_ptr, const u32 mod_plain_len, const u8 *orig_plain_ptr, const u32 orig_plain_len);
#endif // DEBUGFILE_H
#endif // HC_DEBUGFILE_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef DICTSTAT_H
#define DICTSTAT_H
#ifndef HC_DICTSTAT_H
#define HC_DICTSTAT_H
#include <stdio.h>
#include <string.h>
@ -29,4 +29,4 @@ int dictstat_write (hashcat_ctx_t *hashcat_ctx);
u64 dictstat_find (hashcat_ctx_t *hashcat_ctx, dictstat_t *d);
void dictstat_append (hashcat_ctx_t *hashcat_ctx, dictstat_t *d);
#endif // DICTSTAT_H
#endif // HC_DICTSTAT_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef DISPATCH_H
#define DISPATCH_H
#ifndef HC_DISPATCH_H
#define HC_DISPATCH_H
#ifdef WITH_BRAIN
#if defined (_WIN)
@ -25,4 +25,4 @@
HC_API_CALL void *thread_calc_stdin (void *p);
HC_API_CALL void *thread_calc (void *p);
#endif // DISPATCH_H
#endif // HC_DISPATCH_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef DYNLOADER_H
#define DYNLOADER_H
#ifndef HC_DYNLOADER_H
#define HC_DYNLOADER_H
#include <stdlib.h>
@ -76,4 +76,4 @@ hc_dynfunc_t hc_dlsym (hc_dynlib_t handle, const char *symbol);
} \
} while (0)
#endif // _DYNALOADER_H
#endif // HC__DYNALOADER_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef CPU_OPENCL_EMU_H
#define CPU_OPENCL_EMU_H
#ifndef HC_CPU_OPENCL_EMU_H
#define HC_CPU_OPENCL_EMU_H
#define DEVICE_TYPE -1
#define VENDOR_ID -1
@ -27,4 +27,4 @@ size_t get_global_id (u32 dimindx __attribute__((unused)));
size_t get_local_id (u32 dimindx __attribute__((unused)));
size_t get_local_size (u32 dimindx __attribute__((unused)));
#endif // CPU_OPENCL_EMU_H
#endif // HC_CPU_OPENCL_EMU_H

@ -3,12 +3,12 @@
* License.....: MIT
*/
#ifndef EMU_INC_BIGNUM_OPERATIONS_H
#define EMU_INC_BIGNUM_OPERATIONS_H
#ifndef HC_EMU_INC_BIGNUM_OPERATIONS_H
#define HC_EMU_INC_BIGNUM_OPERATIONS_H
#include "emu_general.h"
#include "inc_vendor.h"
#include "inc_bignum_operations.h"
#endif // EMU_INC_BIGNUM_OPERATIONS_H
#endif // HC_EMU_INC_BIGNUM_OPERATIONS_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef EMU_INC_CIPHER_AES_H
#define EMU_INC_CIPHER_AES_H
#ifndef HC_EMU_INC_CIPHER_AES_H
#define HC_EMU_INC_CIPHER_AES_H
#include "emu_general.h"
@ -23,4 +23,4 @@ extern u32a td2[256];
extern u32a td3[256];
extern u32a td4[256];
#endif // EMU_INC_CIPHER_AES_H
#endif // HC_EMU_INC_CIPHER_AES_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef EMU_INC_CIPHER_DES_H
#define EMU_INC_CIPHER_DES_H
#ifndef HC_EMU_INC_CIPHER_DES_H
#define HC_EMU_INC_CIPHER_DES_H
#include "emu_general.h"
@ -14,4 +14,4 @@
extern u32a c_SPtrans[8][64];
extern u32a c_skb[8][64];
#endif // EMU_INC_CIPHER_DES_H
#endif // HC_EMU_INC_CIPHER_DES_H

@ -3,12 +3,12 @@
* License.....: MIT
*/
#ifndef EMU_INC_ECC_SECP256K1_H
#define EMU_INC_ECC_SECP256K1_H
#ifndef HC_EMU_INC_ECC_SECP256K1_H
#define HC_EMU_INC_ECC_SECP256K1_H
#include "emu_general.h"
#include "inc_vendor.h"
#include "inc_ecc_secp256k1.h"
#endif // EMU_INC_ECC_SECP256K1_H
#endif // HC_EMU_INC_ECC_SECP256K1_H

@ -3,12 +3,12 @@
* License.....: MIT
*/
#ifndef EMU_INC_HASH_BASE58_H
#define EMU_INC_HASH_BASE58_H
#ifndef HC_EMU_INC_HASH_BASE58_H
#define HC_EMU_INC_HASH_BASE58_H
#include "emu_general.h"
#include "inc_vendor.h"
#include "inc_hash_base58.h"
#endif // EMU_INC_HASH_BASE58_H
#endif // HC_EMU_INC_HASH_BASE58_H

@ -3,12 +3,12 @@
* License.....: MIT
*/
#ifndef EMU_INC_HASH_MD4_H
#define EMU_INC_HASH_MD4_H
#ifndef HC_EMU_INC_HASH_MD4_H
#define HC_EMU_INC_HASH_MD4_H
#include "emu_general.h"
#include "inc_vendor.h"
#include "inc_hash_md4.h"
#endif // EMU_INC_HASH_MD4_H
#endif // HC_EMU_INC_HASH_MD4_H

@ -3,12 +3,12 @@
* License.....: MIT
*/
#ifndef EMU_INC_HASH_MD5_H
#define EMU_INC_HASH_MD5_H
#ifndef HC_EMU_INC_HASH_MD5_H
#define HC_EMU_INC_HASH_MD5_H
#include "emu_general.h"
#include "inc_vendor.h"
#include "inc_hash_md5.h"
#endif // EMU_INC_HASH_MD5_H
#endif // HC_EMU_INC_HASH_MD5_H

@ -3,12 +3,12 @@
* License.....: MIT
*/
#ifndef EMU_INC_HASH_SHA1_H
#define EMU_INC_HASH_SHA1_H
#ifndef HC_EMU_INC_HASH_SHA1_H
#define HC_EMU_INC_HASH_SHA1_H
#include "emu_general.h"
#include "inc_vendor.h"
#include "inc_hash_sha1.h"
#endif // EMU_INC_HASH_SHA1_H
#endif // HC_EMU_INC_HASH_SHA1_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef EMU_INC_HASH_SHA256_H
#define EMU_INC_HASH_SHA256_H
#ifndef HC_EMU_INC_HASH_SHA256_H
#define HC_EMU_INC_HASH_SHA256_H
#include "emu_general.h"
@ -13,4 +13,4 @@
extern u32a k_sha256[64];
#endif // EMU_INC_HASH_SHA256_H
#endif // HC_EMU_INC_HASH_SHA256_H

@ -3,12 +3,12 @@
* License.....: MIT
*/
#ifndef EMU_INC_HASH_SHA512_H
#define EMU_INC_HASH_SHA512_H
#ifndef HC_EMU_INC_HASH_SHA512_H
#define HC_EMU_INC_HASH_SHA512_H
#include "emu_general.h"
#include "inc_vendor.h"
#include "inc_hash_sha512.h"
#endif // EMU_INC_HASH_SHA512_H
#endif // HC_EMU_INC_HASH_SHA512_H

@ -3,12 +3,12 @@
* License.....: MIT
*/
#ifndef EMU_INC_RP_H
#define EMU_INC_RP_H
#ifndef HC_EMU_INC_RP_H
#define HC_EMU_INC_RP_H
#include "emu_general.h"
#include "inc_vendor.h"
#include "inc_rp.h"
#endif // EMU_INC_RP_H
#endif // HC_EMU_INC_RP_H

@ -3,12 +3,12 @@
* License.....: MIT
*/
#ifndef EMU_INC_RP_OPTIMIZED_H
#define EMU_INC_RP_OPTIMIZED_H
#ifndef HC_EMU_INC_RP_OPTIMIZED_H
#define HC_EMU_INC_RP_OPTIMIZED_H
#include "emu_general.h"
#include "inc_vendor.h"
#include "inc_rp_optimized.h"
#endif // EMU_INC_RP_OPTIMIZED_H
#endif // HC_EMU_INC_RP_OPTIMIZED_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef EXT_ADL_H
#define EXT_ADL_H
#ifndef HC_EXT_ADL_H
#define HC_EXT_ADL_H
#include <string.h>
#include <stdlib.h>
@ -659,4 +659,4 @@ int hm_ADL_Overdrive_Caps (void *hashcat_ctx, int iAdapterIndex, int *od_support
int hm_ADL2_Overdrive_Caps (void *hashcat_ctx, int iAdapterIndex, int *od_supported, int *od_enabled, int *od_version);
int hm_ADL2_New_QueryPMLogData_Get (void *hashcat_ctx, int iAdapterIndex, ADLPMLogDataOutput *lpDataOutput);
#endif // EXT_ADL_H
#endif // HC_EXT_ADL_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef EXT_OPENCL_H
#define EXT_OPENCL_H
#ifndef HC_EXT_OPENCL_H
#define HC_EXT_OPENCL_H
#define CL_TARGET_OPENCL_VERSION 120
@ -163,4 +163,4 @@ int hc_clGetEventProfilingInfo (void *hashcat_ctx, cl_event event, cl_profilin
int hc_clReleaseEvent (void *hashcat_ctx, cl_event event);
//int hc_clUnloadPlatformCompiler (void *hashcat_ctx, cl_platform_id platform);
#endif // EXT_OPENCL_H
#endif // HC_EXT_OPENCL_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef EXT_CUDA_H
#define EXT_CUDA_H
#ifndef HC_EXT_CUDA_H
#define HC_EXT_CUDA_H
/**
* from cuda.h (/usr/local/cuda-10.1/targets/x86_64-linux/include/cuda.h)
@ -1182,4 +1182,4 @@ int hc_cuLinkAddData (void *hashcat_ctx, CUlinkState state, CUjitInput
int hc_cuLinkDestroy (void *hashcat_ctx, CUlinkState state);
int hc_cuLinkComplete (void *hashcat_ctx, CUlinkState state, void **cubinOut, size_t *sizeOut);
#endif // EXT_CUDA_H
#endif // HC_EXT_CUDA_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef EXT_HIP_H
#define EXT_HIP_H
#ifndef HC_EXT_HIP_H
#define HC_EXT_HIP_H
// The general Idea with HIP is to use it for AMD GPU since we use CUDA for NV
// Therefore, we need to take certain items, such as hipDeviceptr_t from driver specific paths like amd_driver_types.h
@ -499,4 +499,4 @@ int hc_hipStreamCreate (void *hashcat_ctx, hipStream_t *phStream, unsign
int hc_hipStreamDestroy (void *hashcat_ctx, hipStream_t hStream);
int hc_hipStreamSynchronize (void *hashcat_ctx, hipStream_t hStream);
#endif // EXT_HIP_H
#endif // HC_EXT_HIP_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef EXT_HIPRTC_H
#define EXT_HIPRTC_H
#ifndef HC_EXT_HIPRTC_H
#define HC_EXT_HIPRTC_H
// start: hiprtc.h
@ -75,4 +75,4 @@ int hc_hiprtcGetProgramLog (void *hashcat_ctx, hiprtcProgram prog, char *l
int hc_hiprtcGetCodeSize (void *hashcat_ctx, hiprtcProgram prog, size_t *codeSizeRet);
int hc_hiprtcGetCode (void *hashcat_ctx, hiprtcProgram prog, char *code);
#endif // EXT_HIPRTC_H
#endif // HC_EXT_HIPRTC_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef EXT_IOKIT_H
#define EXT_IOKIT_H
#ifndef HC_EXT_IOKIT_H
#define HC_EXT_IOKIT_H
#if defined(__APPLE__)
#include <IOKit/IOKitLib.h>
@ -126,4 +126,4 @@ bool iokit_init (void *hashcat_ctx);
bool iokit_close (void *hashcat_ctx);
#endif // __APPLE__
#endif // EXT_IOKIT_H
#endif // HC_EXT_IOKIT_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef EXT_LZMA_H
#define EXT_LZMA_H
#ifndef HC_EXT_LZMA_H
#define HC_EXT_LZMA_H
#include <LzmaDec.h>
#include <Lzma2Dec.h>
@ -17,4 +17,4 @@ int hc_lzma2_decompress (const unsigned char *in, SizeT *in_len, unsigned char *
void *hc_lzma_alloc (MAYBE_UNUSED ISzAllocPtr p, size_t size);
void hc_lzma_free (MAYBE_UNUSED ISzAllocPtr p, void *address);
#endif // EXT_LZMA_H
#endif // HC_EXT_LZMA_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef EXT_METAL_H
#define EXT_METAL_H
#ifndef HC_EXT_METAL_H
#define HC_EXT_METAL_H
#if defined (__APPLE__)
@ -115,4 +115,4 @@ int hc_mtlEncodeComputeCommand (void *hashcat_ctx, mtl_command_encoder meta
#endif // __APPLE__
#endif // EXT_METAL_H
#endif // HC_EXT_METAL_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef EXT_NVAPI_H
#define EXT_NVAPI_H
#ifndef HC_EXT_NVAPI_H
#define HC_EXT_NVAPI_H
/**
* Declarations from nvapi.h and subheaders
@ -250,4 +250,4 @@ int hm_NvAPI_GPU_GetPerfPoliciesStatus (void *hashcat_ctx, NvPhysicalGpuHandle h
int hm_NvAPI_GPU_GetBusId (void *hashcat_ctx, NvPhysicalGpuHandle hPhysicalGpu, NvU32 *pBusId);
int hm_NvAPI_GPU_GetBusSlotId (void *hashcat_ctx, NvPhysicalGpuHandle hPhysicalGpu, NvU32 *pBusSlotId);
#endif // EXT_NVAPI_H
#endif // HC_EXT_NVAPI_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef NVML_H
#define NVML_H
#ifndef HC_NVML_H
#define HC_NVML_H
/**
* Declarations from nvml.h
@ -233,4 +233,4 @@ int hm_NVML_nvmlDeviceGetTemperatureThreshold (void *hashcat_ctx, nvmlDevice_t d
int hm_NVML_nvmlDeviceGetCurrPcieLinkWidth (void *hashcat_ctx, nvmlDevice_t device, unsigned int *currLinkWidth);
int hm_NVML_nvmlDeviceGetPciInfo (void *hashcat_ctx, nvmlDevice_t device, nvmlPciInfo_t *pci);
#endif // NVML_H
#endif // HC_NVML_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef EXT_NVRTC_H
#define EXT_NVRTC_H
#ifndef HC_EXT_NVRTC_H
#define HC_EXT_NVRTC_H
/**
* from cuda.h (/usr/local/cuda-10.1/targets/x86_64-linux/include/nvrtc.h)
@ -96,4 +96,4 @@ int hc_nvrtcGetPTXSize (void *hashcat_ctx, nvrtcProgram prog, size_t *pt
int hc_nvrtcGetPTX (void *hashcat_ctx, nvrtcProgram prog, char *ptx);
int hc_nvrtcVersion (void *hashcat_ctx, int *major, int *minor);
#endif // EXT_NVRTC_H
#endif // HC_EXT_NVRTC_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef EXT_SYSFS_AMDGPU_H
#define EXT_SYSFS_AMDGPU_H
#ifndef HC_EXT_SYSFS_AMDGPU_H
#define HC_EXT_SYSFS_AMDGPU_H
#include <stdbool.h>
@ -35,4 +35,4 @@ int hm_SYSFS_AMDGPU_get_pp_dpm_mclk (void *hashcat_ctx, const int backend_device
int hm_SYSFS_AMDGPU_get_pp_dpm_pcie (void *hashcat_ctx, const int backend_device_idx, int *val);
int hm_SYSFS_AMDGPU_get_gpu_busy_percent (void *hashcat_ctx, const int backend_device_idx, int *val);
#endif // EXT_SYSFS_AMDGPU_H
#endif // HC_EXT_SYSFS_AMDGPU_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef EXT_SYSFS_CPU_H
#define EXT_SYSFS_CPU_H
#ifndef HC_EXT_SYSFS_CPU_H
#define HC_EXT_SYSFS_CPU_H
#include <stdbool.h>
@ -54,4 +54,4 @@ int hm_SYSFS_CPU_get_temperature_current (void *hashcat_ctx, int *val);
bool read_proc_stat (void *hashcat_ctx, proc_stat_t *proc_stat);
int hm_SYSFS_CPU_get_utilization_current (void *hashcat_ctx, int *val);
#endif // EXT_SYSFS_CPU_H
#endif // HC_EXT_SYSFS_CPU_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef FILEHANDLING_H
#define FILEHANDLING_H
#ifndef HC_FILEHANDLING_H
#define HC_FILEHANDLING_H
#include <stdio.h>
#include <string.h>
@ -40,4 +40,4 @@ size_t in_superchop (char *buf);
size_t superchop_with_length (char *buf, const size_t len);
#endif // FILEHANDLING_H
#endif // HC_FILEHANDLING_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef FOLDER_H
#define FOLDER_H
#ifndef HC_FOLDER_H
#define HC_FOLDER_H
#include <stdio.h>
#include <stdlib.h>
@ -39,4 +39,4 @@ void folder_config_destroy (hashcat_ctx_t *hashcat_ctx);
int hc_mkdir (const char *name, MAYBE_UNUSED const int mode);
int hc_mkdir_rec (const char *path, MAYBE_UNUSED const int mode);
#endif // FOLDER_H
#endif // HC_FOLDER_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef HASHCAT_H
#define HASHCAT_H
#ifndef HC_HASHCAT_H
#define HC_HASHCAT_H
int hashcat_init (hashcat_ctx_t *hashcat_ctx, void (*event) (const u32, struct hashcat_ctx *, const void *, const size_t));
void hashcat_destroy (hashcat_ctx_t *hashcat_ctx);
@ -22,4 +22,4 @@ int hashcat_session_destroy (hashcat_ctx_t *hashcat_ctx);
char *hashcat_get_log (hashcat_ctx_t *hashcat_ctx);
int hashcat_get_status (hashcat_ctx_t *hashcat_ctx, hashcat_status_t *hashcat_status);
#endif // HASHCAT_H
#endif // HC_HASHCAT_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef HASHES_H
#define HASHES_H
#ifndef HC_HASHES_H
#define HC_HASHES_H
int sort_by_digest_p0p1 (const void *v1, const void *v2, void *v3);
int sort_by_salt (const void *v1, const void *v2);
@ -33,4 +33,4 @@ void hashes_destroy (hashcat_ctx_t *hashcat_ctx);
void hashes_logger (hashcat_ctx_t *hashcat_ctx);
#endif // HASHES_H
#endif // HC_HASHES_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef HLFMT_H
#define HLFMT_H
#ifndef HC_HLFMT_H
#define HC_HLFMT_H
#include <stdio.h>
@ -17,4 +17,4 @@ void hlfmt_user (hashcat_ctx_t *hashcat_ctx, u32 hashfile_format, char *line_buf
u32 hlfmt_detect (hashcat_ctx_t *hashcat_ctx, HCFILE *fp, u32 max_check);
#endif // HLFMT_H
#endif // HC_HLFMT_H

@ -8,8 +8,8 @@
#include <sys/cygwin.h>
#endif
#ifndef HWMON_H
#define HWMON_H
#ifndef HC_HWMON_H
#define HC_HWMON_H
int hm_get_threshold_slowdown_with_devices_idx (hashcat_ctx_t *hashcat_ctx, const int backend_device_idx);
int hm_get_threshold_shutdown_with_devices_idx (hashcat_ctx_t *hashcat_ctx, const int backend_device_idx);
@ -28,4 +28,4 @@ int hm_get_throttle_with_devices_idx (hashcat_ctx_t *hashcat_ctx, cons
int hwmon_ctx_init (hashcat_ctx_t *hashcat_ctx);
void hwmon_ctx_destroy (hashcat_ctx_t *hashcat_ctx);
#endif // HWMON_H
#endif // HC_HWMON_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef INDUCT_H
#define INDUCT_H
#ifndef HC_INDUCT_H
#define HC_INDUCT_H
#include <sys/types.h>
#include <sys/stat.h>
@ -16,4 +16,4 @@ int induct_ctx_init (hashcat_ctx_t *hashcat_ctx);
void induct_ctx_scan (hashcat_ctx_t *hashcat_ctx);
void induct_ctx_destroy (hashcat_ctx_t *hashcat_ctx);
#endif // INDUCT_H
#endif // HC_INDUCT_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef INTERFACE_H
#define INTERFACE_H
#ifndef HC_INTERFACE_H
#define HC_INTERFACE_H
#include <stdio.h>
#include <stdlib.h>
@ -58,4 +58,4 @@ char default_separator (MAYBE_UNUSED const hashconfig_t *ha
u64 default_tmp_size (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra);
bool default_warmup_disable (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra);
#endif // INTERFACE_H
#endif // HC_INTERFACE_H

@ -3,11 +3,11 @@
* License.....: MIT
*/
#ifndef KEYBOARD_LAYOUT_H
#define KEYBOARD_LAYOUT_H
#ifndef HC_KEYBOARD_LAYOUT_H
#define HC_KEYBOARD_LAYOUT_H
bool initialize_keyboard_layout_mapping (const char *filename, keyboard_layout_mapping_t *keyboard_layout_mapping, int *keyboard_layout_mapping_cnt);
int find_keyboard_layout_map (const u32 search, const int search_len, const keyboard_layout_mapping_t *s_keyboard_layout_mapping, const int keyboard_layout_mapping_cnt);
int execute_keyboard_layout_mapping (u32 plain_buf[64], const int plain_len, const keyboard_layout_mapping_t *s_keyboard_layout_mapping, const int keyboard_layout_mapping_cnt);
#endif // KEYBOARD_LAYOUT_H
#endif // HC_KEYBOARD_LAYOUT_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef LOCKING_H
#define LOCKING_H
#ifndef HC_LOCKING_H
#define HC_LOCKING_H
#include <stdio.h>
#include <string.h>
@ -16,4 +16,4 @@
int hc_lockfile (HCFILE *fp);
int hc_unlockfile (HCFILE *fp);
#endif // LOCKING_H
#endif // HC_LOCKING_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef LOGFILE_H
#define LOGFILE_H
#ifndef HC_LOGFILE_H
#define HC_LOGFILE_H
#include <stdio.h>
#include <stdlib.h>
@ -40,4 +40,4 @@ void logfile_append (hashcat_ctx_t *hashcat_ctx, const char *fmt, ...) _
int logfile_init (hashcat_ctx_t *hashcat_ctx);
void logfile_destroy (hashcat_ctx_t *hashcat_ctx);
#endif // LOGFILE_H
#endif // HC_LOGFILE_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef LOOPBACK_H
#define LOOPBACK_H
#ifndef HC_LOOPBACK_H
#define HC_LOOPBACK_H
#include <stdio.h>
#include <unistd.h>
@ -20,4 +20,4 @@ void loopback_write_close (hashcat_ctx_t *hashcat_ctx);
void loopback_write_append (hashcat_ctx_t *hashcat_ctx, const u8 *plain_ptr, const unsigned int plain_len);
void loopback_write_unlink (hashcat_ctx_t *hashcat_ctx);
#endif // LOOPBACK_H
#endif // HC_LOOPBACK_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef MEMORY_H
#define MEMORY_H
#ifndef HC_MEMORY_H
#define HC_MEMORY_H
#include <stdio.h>
#include <string.h>
@ -18,4 +18,4 @@ void *hcrealloc (void *ptr, const size_t oldsz, const size_t addsz);
char *hcstrdup (const char *s);
void hcfree (void *ptr);
#endif // MEMORY_H
#endif // HC_MEMORY_H

@ -1,6 +1,6 @@
#ifndef MODULES_H
#define MODULES_H
#ifndef HC_MODULES_H
#define HC_MODULES_H
static const size_t MODULE_CONTEXT_SIZE_CURRENT = sizeof (module_ctx_t);
@ -88,4 +88,4 @@ bool module_unstable_warning (MAYBE_UNUSED const hashconfig_t *ha
bool module_potfile_custom_check (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const hash_t *db, MAYBE_UNUSED const hash_t *entry_hash, MAYBE_UNUSED const void *entry_tmps);
#endif // MODULES_H
#endif // HC_MODULES_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef MONITOR_H
#define MONITOR_H
#ifndef HC_MONITOR_H
#define HC_MONITOR_H
#define STDIN_TIMEOUT_WARN 20 // warn if no input from stdin for x seconds
@ -12,4 +12,4 @@ int get_runtime_left (const hashcat_ctx_t *hashcat_ctx);
HC_API_CALL void *thread_monitor (void *p);
#endif // MONITOR_H
#endif // HC_MONITOR_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef MPSP_H
#define MPSP_H
#ifndef HC_MPSP_H
#define HC_MPSP_H
#include <stdio.h>
#include <errno.h>
@ -31,4 +31,4 @@ int mask_ctx_init (hashcat_ctx_t *hashcat_ctx);
void mask_ctx_destroy (hashcat_ctx_t *hashcat_ctx);
int mask_ctx_parse_maskfile (hashcat_ctx_t *hashcat_ctx);
#endif // MPSP_H
#endif // HC_MPSP_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef OUTFILE_H
#define OUTFILE_H
#ifndef HC_OUTFILE_H
#define HC_OUTFILE_H
#include <stdio.h>
#include <time.h>
@ -22,4 +22,4 @@ int outfile_write_open (hashcat_ctx_t *hashcat_ctx);
void outfile_write_close (hashcat_ctx_t *hashcat_ctx);
int outfile_write (hashcat_ctx_t *hashcat_ctx, const char *out_buf, const int out_len, const unsigned char *plain_ptr, const u32 plain_len, const u64 crackpos, const unsigned char *username, const u32 user_len, const bool print_eol, char *tmp_buf);
#endif // OUTFILE_H
#endif // HC_OUTFILE_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef OUTFILE_CHECK_H
#define OUTFILE_CHECK_H
#ifndef HC_OUTFILE_CHECK_H
#define HC_OUTFILE_CHECK_H
#include <unistd.h>
#include <errno.h>
@ -16,4 +16,4 @@ HC_API_CALL void *thread_outfile_remove (void *p);
int outcheck_ctx_init (hashcat_ctx_t *hashcat_ctx);
void outcheck_ctx_destroy (hashcat_ctx_t *hashcat_ctx);
#endif // OUTFILE_CHECK_H
#endif // HC_OUTFILE_CHECK_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef PIDFILE_H
#define PIDFILE_H
#ifndef HC_PIDFILE_H
#define HC_PIDFILE_H
#include <stdio.h>
#include <unistd.h>
@ -19,4 +19,4 @@ int pidfile_ctx_init (hashcat_ctx_t *hashcat_ctx);
void pidfile_ctx_destroy (hashcat_ctx_t *hashcat_ctx);
#endif // PIDFILE_H
#endif // HC_PIDFILE_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef POTFILE_H
#define POTFILE_H
#ifndef HC_POTFILE_H
#define HC_POTFILE_H
#include <stdio.h>
#include <stddef.h>
@ -32,4 +32,4 @@ void pot_tree_destroy (pot_tree_entry_t *tree);
int sort_pot_tree_by_hash (const void *v1, const void *v2);
int sort_pot_orig_line (const void *v1, const void *v2);
#endif // POTFILE_H
#endif // HC_POTFILE_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef RESTORE_H
#define RESTORE_H
#ifndef HC_RESTORE_H
#define HC_RESTORE_H
#include <stdio.h>
#include <unistd.h>
@ -26,4 +26,4 @@ int restore_ctx_init (hashcat_ctx_t *hashcat_ctx, int argc, char **argv);
void restore_ctx_destroy (hashcat_ctx_t *hashcat_ctx);
#endif // RESTORE_H
#endif // HC_RESTORE_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef RP_H
#define RP_H
#ifndef HC_RP_H
#define HC_RP_H
#include <string.h>
@ -63,4 +63,4 @@ bool kernel_rules_has_noop (const kernel_rule_t *kernel_rules_buf, const u32 ker
int kernel_rules_load (hashcat_ctx_t *hashcat_ctx, kernel_rule_t **out_buf, u32 *out_cnt);
int kernel_rules_generate (hashcat_ctx_t *hashcat_ctx, kernel_rule_t **out_buf, u32 *out_cnt, const char *rp_gen_func_selection);
#endif // RP_H
#endif // HC_RP_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef RP_CPU_H
#define RP_CPU_H
#ifndef HC_RP_CPU_H
#define HC_RP_CPU_H
#include <string.h>
@ -15,4 +15,4 @@ int _old_apply_rule (const char *rule, int rule_len, char in[RP_PASSWORD_SIZE],
int run_rule_engine (const int rule_len, const char *rule_buf);
#endif // RP_CPU_H
#endif // HC_RP_CPU_H

@ -3,9 +3,9 @@
* License.....: MIT
*/
#ifndef SELFTEST_H
#define SELFTEST_H
#ifndef HC_SELFTEST_H
#define HC_SELFTEST_H
HC_API_CALL void *thread_selftest (void *p);
#endif // SELFTEST_H
#endif // HC_SELFTEST_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef SHARED_H
#define SHARED_H
#ifndef HC_SHARED_H
#define HC_SHARED_H
#include <stdarg.h>
#include <stdlib.h>
@ -110,4 +110,4 @@ bool is_apple_silicon (void);
char *file_to_buffer (const char *filename);
#endif // SHARED_H
#endif // HC_SHARED_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef SLOW_CANDIDATES_H
#define SLOW_CANDIDATES_H
#ifndef HC_SLOW_CANDIDATES_H
#define HC_SLOW_CANDIDATES_H
typedef struct extra_info_straight
{
@ -55,4 +55,4 @@ typedef struct extra_info_mask
void slow_candidates_seek (hashcat_ctx_t *hashcat_ctx, void *extra_info, const u64 cur, const u64 end);
void slow_candidates_next (hashcat_ctx_t *hashcat_ctx, void *extra_info);
#endif // SLOW_CANDIDATES_H
#endif // HC_SLOW_CANDIDATES_H

@ -1,6 +1,6 @@
/* Isaac Turner 29 April 2014 Public Domain */
#ifndef SORT_R_H_
#define SORT_R_H_
#ifndef HC_SORT_R_H
#define HC_SORT_R_H
#include <stdlib.h>
#include <string.h>
@ -231,4 +231,4 @@ static _SORT_R_INLINE void sort_r_simple(void *base, size_t nel, size_t w,
#undef _SORT_R_LINUX
#undef _SORT_R_BSD
#endif /* SORT_R_H_ */
#endif /* HC_SORT_R_H */

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef STATUS_H
#define STATUS_H
#ifndef HC_STATUS_H
#define HC_STATUS_H
#include <stdio.h>
#include <time.h>
@ -126,4 +126,4 @@ void status_ctx_destroy (hashcat_ctx_t *hashcat_ct
void status_status_destroy (hashcat_ctx_t *hashcat_ctx, hashcat_status_t *hashcat_status);
#endif // STATUS_H
#endif // HC_STATUS_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef STDOUT_H
#define STDOUT_H
#ifndef HC_STDOUT_H
#define HC_STDOUT_H
#include <stdio.h>
#include <string.h>
@ -22,4 +22,4 @@
int process_stdout (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param, const u64 pws_cnt);
#endif // STDOUT_H
#endif // HC_STDOUT_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef STRAIGHT_H
#define STRAIGHT_H
#ifndef HC_STRAIGHT_H
#define HC_STRAIGHT_H
#include <string.h>
@ -14,4 +14,4 @@ int straight_ctx_update_loop (hashcat_ctx_t *hashcat_ctx);
int straight_ctx_init (hashcat_ctx_t *hashcat_ctx);
void straight_ctx_destroy (hashcat_ctx_t *hashcat_ctx);
#endif // STRAIGHT_H
#endif // HC_STRAIGHT_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef TERMINAL_H
#define TERMINAL_H
#ifndef HC_TERMINAL_H
#define HC_TERMINAL_H
#include <stdio.h>
#include <string.h>
@ -64,4 +64,4 @@ void status_display (hashcat_ctx_t *hashcat_ctx);
void status_benchmark_machine_readable (hashcat_ctx_t *hashcat_ctx);
void status_benchmark (hashcat_ctx_t *hashcat_ctx);
#endif // TERMINAL_H
#endif // HC_TERMINAL_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef THREAD_H
#define THREAD_H
#ifndef HC_THREAD_H
#define HC_THREAD_H
#include <signal.h>
@ -86,4 +86,4 @@ int ResumeThreads (hashcat_ctx_t *hashcat_ctx);
int stop_at_checkpoint (hashcat_ctx_t *hashcat_ctx);
int finish_after_attack (hashcat_ctx_t *hashcat_ctx);
#endif // THREAD_H
#endif // HC_THREAD_H

@ -3,10 +3,10 @@
* License.....: MIT
*/
#ifndef TIMER_H
#define TIMER_H
#ifndef HC_TIMER_H
#define HC_TIMER_H
void hc_timer_set (hc_timer_t *a);
double hc_timer_get (hc_timer_t a);
#endif // TIMER_H
#endif // HC_TIMER_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef TUNINGDB_H
#define TUNINGDB_H
#ifndef HC_TUNINGDB_H
#define HC_TUNINGDB_H
#include <stdio.h>
#include <errno.h>
@ -20,4 +20,4 @@ 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);
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 // TUNINGDB_H
#endif // HC_TUNINGDB_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef TYPES_H
#define TYPES_H
#ifndef HC_TYPES_H
#define HC_TYPES_H
#include "common.h"
@ -3060,4 +3060,4 @@ typedef enum hash_category
typedef aes_ctx AES_KEY;
#endif // TYPES_H
#endif // HC_TYPES_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef USAGE_H
#define USAGE_H
#ifndef HC_USAGE_H
#define HC_USAGE_H
#include <stdio.h>
#include <string.h>
@ -26,4 +26,4 @@ void usage_mini_print (const char *progname);
void usage_big_print (hashcat_ctx_t *hashcat_ctx);
int sort_by_usage (const void *p1, const void *p2);
#endif // USAGE_H
#endif // HC_USAGE_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef USER_OPTIONS_H
#define USER_OPTIONS_H
#ifndef HC_USER_OPTIONS_H
#define HC_USER_OPTIONS_H
#include <getopt.h>
@ -34,4 +34,4 @@ int user_options_check_files (hashcat_ctx_t *hashcat_ctx);
void user_options_info (hashcat_ctx_t *hashcat_ctx);
#endif // USER_OPTIONS_H
#endif // HC_USER_OPTIONS_H

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef WORDLIST_H
#define WORDLIST_H
#ifndef HC_WORDLIST_H
#define HC_WORDLIST_H
#include <time.h>
#include <inttypes.h>
@ -26,4 +26,4 @@ int count_words (hashcat_ctx_t *hashcat_ctx, HCFILE *fp, const char *dictfi
int wl_data_init (hashcat_ctx_t *hashcat_ctx);
void wl_data_destroy (hashcat_ctx_t *hashcat_ctx);
#endif // WORDLIST_H
#endif // HC_WORDLIST_H

Loading…
Cancel
Save