diff --git a/OpenCL/inc_common.cl b/OpenCL/inc_common.cl index 6dab6179a..9e16a36e6 100644 --- a/OpenCL/inc_common.cl +++ b/OpenCL/inc_common.cl @@ -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 diff --git a/OpenCL/inc_vendor.h b/OpenCL/inc_vendor.h index b15fa050a..52ef8188d 100644 --- a/OpenCL/inc_vendor.h +++ b/OpenCL/inc_vendor.h @@ -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 diff --git a/include/affinity.h b/include/affinity.h index 191cc8575..2feb85ebf 100644 --- a/include/affinity.h +++ b/include/affinity.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef AFFINITY_H -#define AFFINITY_H +#ifndef HC_AFFINITY_H +#define HC_AFFINITY_H #include #include @@ -25,4 +25,4 @@ int set_cpu_affinity (hashcat_ctx_t *hashcat_ctx); -#endif // AFFINITY_H +#endif // HC_AFFINITY_H diff --git a/include/autotune.h b/include/autotune.h index 0121de45e..09d297d04 100644 --- a/include/autotune.h +++ b/include/autotune.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 diff --git a/include/backend.h b/include/backend.h index bf0dff097..3ab906e94 100644 --- a/include/backend.h +++ b/include/backend.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef BACKEND_H -#define BACKEND_H +#ifndef HC_BACKEND_H +#define HC_BACKEND_H #include #include @@ -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 diff --git a/include/benchmark.h b/include/benchmark.h index abae223e8..a699ebcea 100644 --- a/include/benchmark.h +++ b/include/benchmark.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 diff --git a/include/bitmap.h b/include/bitmap.h index b60ecbaa1..dea68aa09 100644 --- a/include/bitmap.h +++ b/include/bitmap.h @@ -3,12 +3,12 @@ * License.....: MIT */ -#ifndef BITMAP_H -#define BITMAP_H +#ifndef HC_BITMAP_H +#define HC_BITMAP_H #include 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 diff --git a/include/bitops.h b/include/bitops.h index bc81764e8..17811091c 100644 --- a/include/bitops.h +++ b/include/bitops.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 diff --git a/include/brain.h b/include/brain.h index b3797121f..9ad0b5c1a 100644 --- a/include/brain.h +++ b/include/brain.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef BRAIN_H -#define BRAIN_H +#ifndef HC_BRAIN_H +#define HC_BRAIN_H #include #include @@ -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 diff --git a/include/combinator.h b/include/combinator.h index 8a64eef29..7d40b8ffc 100644 --- a/include/combinator.h +++ b/include/combinator.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef COMBINATOR_H -#define COMBINATOR_H +#ifndef HC_COMBINATOR_H +#define HC_COMBINATOR_H #include #include @@ -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 diff --git a/include/common.h b/include/common.h index 7a6c9fe62..a91f46e37 100644 --- a/include/common.h +++ b/include/common.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 diff --git a/include/convert.h b/include/convert.h index 25f7b3f36..ea5e223f3 100644 --- a/include/convert.h +++ b/include/convert.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef CONVERT_H -#define CONVERT_H +#ifndef HC_CONVERT_H +#define HC_CONVERT_H #include @@ -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 diff --git a/include/cpt.h b/include/cpt.h index 5b63e6713..3f87f555a 100644 --- a/include/cpt.h +++ b/include/cpt.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef CPT_H -#define CPT_H +#ifndef HC_CPT_H +#define HC_CPT_H #include #include @@ -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 diff --git a/include/cpu_crc32.h b/include/cpu_crc32.h index 6dcb040d8..3eda4374a 100644 --- a/include/cpu_crc32.h +++ b/include/cpu_crc32.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 #include @@ -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 diff --git a/include/debugfile.h b/include/debugfile.h index 27893f1b5..230c6ef75 100644 --- a/include/debugfile.h +++ b/include/debugfile.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef DEBUGFILE_H -#define DEBUGFILE_H +#ifndef HC_DEBUGFILE_H +#define HC_DEBUGFILE_H #include @@ -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 diff --git a/include/dictstat.h b/include/dictstat.h index 1762d5f67..a60b3ffe9 100644 --- a/include/dictstat.h +++ b/include/dictstat.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef DICTSTAT_H -#define DICTSTAT_H +#ifndef HC_DICTSTAT_H +#define HC_DICTSTAT_H #include #include @@ -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 diff --git a/include/dispatch.h b/include/dispatch.h index 341d7dc17..dccdf3436 100644 --- a/include/dispatch.h +++ b/include/dispatch.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 diff --git a/include/dynloader.h b/include/dynloader.h index 9d016c5f1..f8217bb4e 100644 --- a/include/dynloader.h +++ b/include/dynloader.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef DYNLOADER_H -#define DYNLOADER_H +#ifndef HC_DYNLOADER_H +#define HC_DYNLOADER_H #include @@ -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 diff --git a/include/emu_general.h b/include/emu_general.h index 71fd9e51d..3fc992c07 100644 --- a/include/emu_general.h +++ b/include/emu_general.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 diff --git a/include/emu_inc_bignum_operations.h b/include/emu_inc_bignum_operations.h index db3a7e44d..dd1d05310 100644 --- a/include/emu_inc_bignum_operations.h +++ b/include/emu_inc_bignum_operations.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 diff --git a/include/emu_inc_cipher_aes.h b/include/emu_inc_cipher_aes.h index 8b1a65597..5a546273d 100644 --- a/include/emu_inc_cipher_aes.h +++ b/include/emu_inc_cipher_aes.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 diff --git a/include/emu_inc_cipher_des.h b/include/emu_inc_cipher_des.h index 995c2c733..eb524717d 100644 --- a/include/emu_inc_cipher_des.h +++ b/include/emu_inc_cipher_des.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 diff --git a/include/emu_inc_ecc_secp256k1.h b/include/emu_inc_ecc_secp256k1.h index 279a59c7f..b68d466ba 100644 --- a/include/emu_inc_ecc_secp256k1.h +++ b/include/emu_inc_ecc_secp256k1.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 diff --git a/include/emu_inc_hash_base58.h b/include/emu_inc_hash_base58.h index e1af23cfa..99dbc8da3 100644 --- a/include/emu_inc_hash_base58.h +++ b/include/emu_inc_hash_base58.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 diff --git a/include/emu_inc_hash_md4.h b/include/emu_inc_hash_md4.h index bf3be4c01..621113c32 100644 --- a/include/emu_inc_hash_md4.h +++ b/include/emu_inc_hash_md4.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 diff --git a/include/emu_inc_hash_md5.h b/include/emu_inc_hash_md5.h index bcf4945c1..1821705c3 100644 --- a/include/emu_inc_hash_md5.h +++ b/include/emu_inc_hash_md5.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 diff --git a/include/emu_inc_hash_sha1.h b/include/emu_inc_hash_sha1.h index 2df1060c8..f05a54f0b 100644 --- a/include/emu_inc_hash_sha1.h +++ b/include/emu_inc_hash_sha1.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 diff --git a/include/emu_inc_hash_sha256.h b/include/emu_inc_hash_sha256.h index 5238a45a2..77cb87dd3 100644 --- a/include/emu_inc_hash_sha256.h +++ b/include/emu_inc_hash_sha256.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 diff --git a/include/emu_inc_hash_sha512.h b/include/emu_inc_hash_sha512.h index 5346de7a8..1c9a3bb72 100644 --- a/include/emu_inc_hash_sha512.h +++ b/include/emu_inc_hash_sha512.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 diff --git a/include/emu_inc_rp.h b/include/emu_inc_rp.h index 4dbcc86e4..7202b7b21 100644 --- a/include/emu_inc_rp.h +++ b/include/emu_inc_rp.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 diff --git a/include/emu_inc_rp_optimized.h b/include/emu_inc_rp_optimized.h index be8eabfd1..7fb68536d 100644 --- a/include/emu_inc_rp_optimized.h +++ b/include/emu_inc_rp_optimized.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 diff --git a/include/ext_ADL.h b/include/ext_ADL.h index 45955520d..232aa3714 100644 --- a/include/ext_ADL.h +++ b/include/ext_ADL.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 #include @@ -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 diff --git a/include/ext_OpenCL.h b/include/ext_OpenCL.h index 7b4203adc..d49f82c79 100644 --- a/include/ext_OpenCL.h +++ b/include/ext_OpenCL.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 diff --git a/include/ext_cuda.h b/include/ext_cuda.h index f5b699ebd..f809a1ae3 100644 --- a/include/ext_cuda.h +++ b/include/ext_cuda.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 diff --git a/include/ext_hip.h b/include/ext_hip.h index bf0b6e4ba..950b100c0 100644 --- a/include/ext_hip.h +++ b/include/ext_hip.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 diff --git a/include/ext_hiprtc.h b/include/ext_hiprtc.h index 284bc4db5..a3c5743ef 100644 --- a/include/ext_hiprtc.h +++ b/include/ext_hiprtc.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 diff --git a/include/ext_iokit.h b/include/ext_iokit.h index 7e678d6cf..180be3ef9 100644 --- a/include/ext_iokit.h +++ b/include/ext_iokit.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 @@ -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 diff --git a/include/ext_lzma.h b/include/ext_lzma.h index 48796cb5c..06428a9b5 100644 --- a/include/ext_lzma.h +++ b/include/ext_lzma.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 #include @@ -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 diff --git a/include/ext_metal.h b/include/ext_metal.h index 9e68cab1b..a7a7d37a9 100644 --- a/include/ext_metal.h +++ b/include/ext_metal.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 diff --git a/include/ext_nvapi.h b/include/ext_nvapi.h index 6b5c19a76..417a2a543 100644 --- a/include/ext_nvapi.h +++ b/include/ext_nvapi.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 diff --git a/include/ext_nvml.h b/include/ext_nvml.h index 88dd318cb..02c5d490c 100644 --- a/include/ext_nvml.h +++ b/include/ext_nvml.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 diff --git a/include/ext_nvrtc.h b/include/ext_nvrtc.h index 66258d9c1..de3d969c5 100644 --- a/include/ext_nvrtc.h +++ b/include/ext_nvrtc.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 diff --git a/include/ext_sysfs_amdgpu.h b/include/ext_sysfs_amdgpu.h index 51c6668d1..50c0dc569 100644 --- a/include/ext_sysfs_amdgpu.h +++ b/include/ext_sysfs_amdgpu.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 @@ -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 diff --git a/include/ext_sysfs_cpu.h b/include/ext_sysfs_cpu.h index d9ab93abb..d81608d3a 100644 --- a/include/ext_sysfs_cpu.h +++ b/include/ext_sysfs_cpu.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 @@ -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 diff --git a/include/filehandling.h b/include/filehandling.h index ddf484316..7fe7d824d 100644 --- a/include/filehandling.h +++ b/include/filehandling.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef FILEHANDLING_H -#define FILEHANDLING_H +#ifndef HC_FILEHANDLING_H +#define HC_FILEHANDLING_H #include #include @@ -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 diff --git a/include/folder.h b/include/folder.h index ff55aed1c..095234be2 100644 --- a/include/folder.h +++ b/include/folder.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef FOLDER_H -#define FOLDER_H +#ifndef HC_FOLDER_H +#define HC_FOLDER_H #include #include @@ -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 diff --git a/include/hashcat.h b/include/hashcat.h index 600143b34..bc1addf71 100644 --- a/include/hashcat.h +++ b/include/hashcat.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 diff --git a/include/hashes.h b/include/hashes.h index 7354cbacd..9daa87583 100644 --- a/include/hashes.h +++ b/include/hashes.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 diff --git a/include/hlfmt.h b/include/hlfmt.h index edc6cf9ce..eafcf440a 100644 --- a/include/hlfmt.h +++ b/include/hlfmt.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef HLFMT_H -#define HLFMT_H +#ifndef HC_HLFMT_H +#define HC_HLFMT_H #include @@ -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 diff --git a/include/hwmon.h b/include/hwmon.h index 783356f82..545e22b2d 100644 --- a/include/hwmon.h +++ b/include/hwmon.h @@ -8,8 +8,8 @@ #include #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 diff --git a/include/induct.h b/include/induct.h index cdb1408f4..caa558cee 100644 --- a/include/induct.h +++ b/include/induct.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef INDUCT_H -#define INDUCT_H +#ifndef HC_INDUCT_H +#define HC_INDUCT_H #include #include @@ -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 diff --git a/include/interface.h b/include/interface.h index 06d3f0f65..5432ab35e 100644 --- a/include/interface.h +++ b/include/interface.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef INTERFACE_H -#define INTERFACE_H +#ifndef HC_INTERFACE_H +#define HC_INTERFACE_H #include #include @@ -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 diff --git a/include/keyboard_layout.h b/include/keyboard_layout.h index 494315a9c..68bbd27d5 100644 --- a/include/keyboard_layout.h +++ b/include/keyboard_layout.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 diff --git a/include/locking.h b/include/locking.h index 2d5dbce4a..1600e5f04 100644 --- a/include/locking.h +++ b/include/locking.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef LOCKING_H -#define LOCKING_H +#ifndef HC_LOCKING_H +#define HC_LOCKING_H #include #include @@ -16,4 +16,4 @@ int hc_lockfile (HCFILE *fp); int hc_unlockfile (HCFILE *fp); -#endif // LOCKING_H +#endif // HC_LOCKING_H diff --git a/include/logfile.h b/include/logfile.h index 2f79b82ef..b3f3fb8d1 100644 --- a/include/logfile.h +++ b/include/logfile.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef LOGFILE_H -#define LOGFILE_H +#ifndef HC_LOGFILE_H +#define HC_LOGFILE_H #include #include @@ -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 diff --git a/include/loopback.h b/include/loopback.h index 70da5780b..2becdac9d 100644 --- a/include/loopback.h +++ b/include/loopback.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef LOOPBACK_H -#define LOOPBACK_H +#ifndef HC_LOOPBACK_H +#define HC_LOOPBACK_H #include #include @@ -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 diff --git a/include/memory.h b/include/memory.h index 2a7b1d27b..92252d3db 100644 --- a/include/memory.h +++ b/include/memory.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef MEMORY_H -#define MEMORY_H +#ifndef HC_MEMORY_H +#define HC_MEMORY_H #include #include @@ -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 diff --git a/include/modules.h b/include/modules.h index bc5611b09..9768c11de 100644 --- a/include/modules.h +++ b/include/modules.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 diff --git a/include/monitor.h b/include/monitor.h index 25ebc2c4c..3e3f8b9a5 100644 --- a/include/monitor.h +++ b/include/monitor.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 diff --git a/include/mpsp.h b/include/mpsp.h index 8a8caee09..e48a8d252 100644 --- a/include/mpsp.h +++ b/include/mpsp.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef MPSP_H -#define MPSP_H +#ifndef HC_MPSP_H +#define HC_MPSP_H #include #include @@ -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 diff --git a/include/outfile.h b/include/outfile.h index 267eeab58..d03e091c5 100644 --- a/include/outfile.h +++ b/include/outfile.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef OUTFILE_H -#define OUTFILE_H +#ifndef HC_OUTFILE_H +#define HC_OUTFILE_H #include #include @@ -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 diff --git a/include/outfile_check.h b/include/outfile_check.h index 2ae418824..8e060900e 100644 --- a/include/outfile_check.h +++ b/include/outfile_check.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 #include @@ -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 diff --git a/include/pidfile.h b/include/pidfile.h index 8336f985a..fd00ac159 100644 --- a/include/pidfile.h +++ b/include/pidfile.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef PIDFILE_H -#define PIDFILE_H +#ifndef HC_PIDFILE_H +#define HC_PIDFILE_H #include #include @@ -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 diff --git a/include/potfile.h b/include/potfile.h index e7d680b87..6ba047718 100644 --- a/include/potfile.h +++ b/include/potfile.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef POTFILE_H -#define POTFILE_H +#ifndef HC_POTFILE_H +#define HC_POTFILE_H #include #include @@ -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 diff --git a/include/restore.h b/include/restore.h index 8ee165000..e5e16e889 100644 --- a/include/restore.h +++ b/include/restore.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef RESTORE_H -#define RESTORE_H +#ifndef HC_RESTORE_H +#define HC_RESTORE_H #include #include @@ -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 diff --git a/include/rp.h b/include/rp.h index 20ddbab46..c5b367276 100644 --- a/include/rp.h +++ b/include/rp.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef RP_H -#define RP_H +#ifndef HC_RP_H +#define HC_RP_H #include @@ -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 diff --git a/include/rp_cpu.h b/include/rp_cpu.h index 6650a8010..4ac2b3c9e 100644 --- a/include/rp_cpu.h +++ b/include/rp_cpu.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 @@ -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 diff --git a/include/selftest.h b/include/selftest.h index fa56e7d76..a2d8f9d13 100644 --- a/include/selftest.h +++ b/include/selftest.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 diff --git a/include/shared.h b/include/shared.h index 0538ebf24..46d7a8e27 100644 --- a/include/shared.h +++ b/include/shared.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef SHARED_H -#define SHARED_H +#ifndef HC_SHARED_H +#define HC_SHARED_H #include #include @@ -110,4 +110,4 @@ bool is_apple_silicon (void); char *file_to_buffer (const char *filename); -#endif // SHARED_H +#endif // HC_SHARED_H diff --git a/include/slow_candidates.h b/include/slow_candidates.h index 189602459..de1e4df91 100644 --- a/include/slow_candidates.h +++ b/include/slow_candidates.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 diff --git a/include/sort_r.h b/include/sort_r.h index ebc344fe4..28e523aeb 100644 --- a/include/sort_r.h +++ b/include/sort_r.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 #include @@ -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 */ diff --git a/include/status.h b/include/status.h index 34ee9e6f1..66e5d50c9 100644 --- a/include/status.h +++ b/include/status.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef STATUS_H -#define STATUS_H +#ifndef HC_STATUS_H +#define HC_STATUS_H #include #include @@ -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 diff --git a/include/stdout.h b/include/stdout.h index 9d009ea16..352d6b532 100644 --- a/include/stdout.h +++ b/include/stdout.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef STDOUT_H -#define STDOUT_H +#ifndef HC_STDOUT_H +#define HC_STDOUT_H #include #include @@ -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 diff --git a/include/straight.h b/include/straight.h index b29ad5bce..7241853a9 100644 --- a/include/straight.h +++ b/include/straight.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef STRAIGHT_H -#define STRAIGHT_H +#ifndef HC_STRAIGHT_H +#define HC_STRAIGHT_H #include @@ -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 diff --git a/include/terminal.h b/include/terminal.h index 6e88e4178..1946e0c6e 100644 --- a/include/terminal.h +++ b/include/terminal.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef TERMINAL_H -#define TERMINAL_H +#ifndef HC_TERMINAL_H +#define HC_TERMINAL_H #include #include @@ -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 diff --git a/include/thread.h b/include/thread.h index c05661fb9..9cde6bf34 100644 --- a/include/thread.h +++ b/include/thread.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef THREAD_H -#define THREAD_H +#ifndef HC_THREAD_H +#define HC_THREAD_H #include @@ -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 diff --git a/include/timer.h b/include/timer.h index bcf36ff7d..4e27f0b5e 100644 --- a/include/timer.h +++ b/include/timer.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 diff --git a/include/tuningdb.h b/include/tuningdb.h index 9251f11c1..b2cafff67 100644 --- a/include/tuningdb.h +++ b/include/tuningdb.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef TUNINGDB_H -#define TUNINGDB_H +#ifndef HC_TUNINGDB_H +#define HC_TUNINGDB_H #include #include @@ -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 diff --git a/include/types.h b/include/types.h index c2f3bcd71..4064c6176 100644 --- a/include/types.h +++ b/include/types.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 diff --git a/include/usage.h b/include/usage.h index 32eac579d..67df07152 100644 --- a/include/usage.h +++ b/include/usage.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef USAGE_H -#define USAGE_H +#ifndef HC_USAGE_H +#define HC_USAGE_H #include #include @@ -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 diff --git a/include/user_options.h b/include/user_options.h index 3ee7fb0d9..a0e176944 100644 --- a/include/user_options.h +++ b/include/user_options.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 @@ -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 diff --git a/include/wordlist.h b/include/wordlist.h index 4fc0c03df..75eaf761d 100644 --- a/include/wordlist.h +++ b/include/wordlist.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef WORDLIST_H -#define WORDLIST_H +#ifndef HC_WORDLIST_H +#define HC_WORDLIST_H #include #include @@ -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