From f1ff925b6e71b12f6170a6a0b35c997e22743564 Mon Sep 17 00:00:00 2001 From: jsteube Date: Tue, 17 Jan 2023 19:25:40 +0000 Subject: [PATCH] Prepare rename macros in header files from _MACRO to MACRO --- OpenCL/inc_amp.h | 6 +++--- OpenCL/inc_bignum_operations.h | 6 +++--- OpenCL/inc_cipher_aes-gcm.h | 6 +++--- OpenCL/inc_cipher_aes.h | 6 +++--- OpenCL/inc_cipher_camellia.h | 6 +++--- OpenCL/inc_cipher_des.h | 6 +++--- OpenCL/inc_cipher_kuznyechik.h | 6 +++--- OpenCL/inc_cipher_rc4.h | 6 +++--- OpenCL/inc_cipher_serpent.h | 6 +++--- OpenCL/inc_cipher_twofish.h | 6 +++--- OpenCL/inc_common.h | 6 +++--- OpenCL/inc_diskcryptor_xts.h | 6 +++--- OpenCL/inc_ecc_secp256k1.h | 6 +++--- OpenCL/inc_hash_base58.h | 6 +++--- OpenCL/inc_hash_blake2b.h | 6 +++--- OpenCL/inc_hash_md4.h | 4 ++-- OpenCL/inc_hash_md5.h | 4 ++-- OpenCL/inc_hash_ripemd160.h | 6 +++--- OpenCL/inc_hash_sha1.h | 4 ++-- OpenCL/inc_hash_sha224.h | 6 +++--- OpenCL/inc_hash_sha256.h | 4 ++-- OpenCL/inc_hash_sha384.h | 6 +++--- OpenCL/inc_hash_sha512.h | 6 +++--- OpenCL/inc_hash_streebog256.h | 6 +++--- OpenCL/inc_hash_streebog512.h | 6 +++--- OpenCL/inc_hash_whirlpool.h | 6 +++--- OpenCL/inc_luks_aes.h | 6 +++--- OpenCL/inc_luks_af.h | 6 +++--- OpenCL/inc_luks_essiv.h | 6 +++--- OpenCL/inc_luks_serpent.h | 6 +++--- OpenCL/inc_luks_twofish.h | 6 +++--- OpenCL/inc_luks_xts.h | 6 +++--- OpenCL/inc_markov.h | 6 +++--- OpenCL/inc_platform.h | 6 +++--- OpenCL/inc_radmin3_constants.h | 6 +++--- OpenCL/inc_rp.h | 6 +++--- OpenCL/inc_rp_optimized.h | 6 +++--- OpenCL/inc_shared.h | 6 +++--- OpenCL/inc_simd.h | 4 ++-- OpenCL/inc_truecrypt_crc32.h | 6 +++--- OpenCL/inc_truecrypt_keyfile.h | 6 +++--- OpenCL/inc_truecrypt_xts.h | 6 +++--- OpenCL/inc_types.h | 4 ++-- OpenCL/inc_vendor.h | 8 ++++---- OpenCL/inc_veracrypt_keyfile.h | 6 +++--- OpenCL/inc_veracrypt_xts.h | 6 +++--- include/affinity.h | 6 +++--- include/autotune.h | 6 +++--- include/backend.h | 6 +++--- include/benchmark.h | 6 +++--- include/bitmap.h | 6 +++--- include/bitops.h | 6 +++--- include/brain.h | 6 +++--- include/combinator.h | 6 +++--- include/common.h | 6 +++--- include/convert.h | 6 +++--- include/cpt.h | 6 +++--- include/cpu_crc32.h | 6 +++--- include/debugfile.h | 6 +++--- include/dictstat.h | 6 +++--- include/dispatch.h | 6 +++--- include/dynloader.h | 4 ++-- include/emu_general.h | 6 +++--- include/emu_inc_bignum_operations.h | 6 +++--- include/emu_inc_cipher_aes.h | 6 +++--- include/emu_inc_cipher_des.h | 6 +++--- include/emu_inc_ecc_secp256k1.h | 6 +++--- include/emu_inc_hash_base58.h | 6 +++--- include/emu_inc_hash_md4.h | 6 +++--- include/emu_inc_hash_md5.h | 6 +++--- include/emu_inc_hash_sha1.h | 6 +++--- include/emu_inc_hash_sha256.h | 6 +++--- include/emu_inc_hash_sha512.h | 6 +++--- include/emu_inc_radmin3_constants.h | 6 +++--- include/emu_inc_rp.h | 6 +++--- include/emu_inc_rp_optimized.h | 6 +++--- include/event.h | 6 +++--- include/ext_ADL.h | 6 +++--- include/ext_OpenCL.h | 6 +++--- include/ext_cuda.h | 6 +++--- include/ext_hip.h | 6 +++--- include/ext_hiprtc.h | 6 +++--- include/ext_iokit.h | 6 +++--- include/ext_lzma.h | 6 +++--- include/ext_metal.h | 6 +++--- include/ext_nvapi.h | 6 +++--- include/ext_nvml.h | 6 +++--- include/ext_nvrtc.h | 6 +++--- include/ext_sysfs_amdgpu.h | 6 +++--- include/ext_sysfs_cpu.h | 6 +++--- include/filehandling.h | 6 +++--- include/folder.h | 6 +++--- include/hashcat.h | 6 +++--- include/hashes.h | 6 +++--- include/hlfmt.h | 6 +++--- include/hwmon.h | 6 +++--- include/induct.h | 6 +++--- include/interface.h | 6 +++--- include/keyboard_layout.h | 6 +++--- include/locking.h | 6 +++--- include/logfile.h | 6 +++--- include/loopback.h | 6 +++--- include/memory.h | 6 +++--- include/modules.h | 6 +++--- include/monitor.h | 6 +++--- include/mpsp.h | 6 +++--- include/outfile.h | 6 +++--- include/outfile_check.h | 6 +++--- include/pidfile.h | 6 +++--- include/potfile.h | 6 +++--- include/restore.h | 6 +++--- include/rp.h | 6 +++--- include/rp_cpu.h | 6 +++--- include/selftest.h | 6 +++--- include/shared.h | 6 +++--- include/slow_candidates.h | 6 +++--- include/status.h | 6 +++--- include/stdout.h | 6 +++--- include/straight.h | 6 +++--- include/terminal.h | 6 +++--- include/thread.h | 6 +++--- include/timer.h | 6 +++--- include/tuningdb.h | 6 +++--- include/types.h | 6 +++--- include/usage.h | 6 +++--- include/user_options.h | 6 +++--- include/wordlist.h | 6 +++--- 127 files changed, 375 insertions(+), 375 deletions(-) diff --git a/OpenCL/inc_amp.h b/OpenCL/inc_amp.h index d0e0d0a30..5db6a21d8 100644 --- a/OpenCL/inc_amp.h +++ b/OpenCL/inc_amp.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_AMP_H -#define _INC_AMP_H +#ifndef INC_AMP_H +#define INC_AMP_H #if defined IS_METAL @@ -31,4 +31,4 @@ #endif // IS_METAL -#endif // _INC_AMP_H +#endif // INC_AMP_H diff --git a/OpenCL/inc_bignum_operations.h b/OpenCL/inc_bignum_operations.h index c9cf64278..964c55114 100644 --- a/OpenCL/inc_bignum_operations.h +++ b/OpenCL/inc_bignum_operations.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_BIGNUM_OPERATIONS_H -#define _INC_BIGNUM_OPERATIONS_H +#ifndef INC_BIGNUM_OPERATIONS_H +#define INC_BIGNUM_OPERATIONS_H DECLSPEC void mod_4096 (PRIVATE_AS u32 *n, PRIVATE_AS const u32 *m); DECLSPEC void mul (PRIVATE_AS u32 *r, PRIVATE_AS const u32 *x, PRIVATE_AS const u32 *y); @@ -19,4 +19,4 @@ DECLSPEC void simple_euclidean_gcd (PRIVATE_AS u32 *u, PRIVATE_AS u32 *v, PRIVAT DECLSPEC void to_montgomery (PRIVATE_AS u32 *r, PRIVATE_AS const u32 *a, PRIVATE_AS const u32 *m); DECLSPEC void from_montgomery (PRIVATE_AS u32 *r, PRIVATE_AS const u32* a, PRIVATE_AS const u32 *m, PRIVATE_AS const u32 *rinv); -#endif // _INC_BIGNUM_OPERATIONS_H +#endif // INC_BIGNUM_OPERATIONS_H diff --git a/OpenCL/inc_cipher_aes-gcm.h b/OpenCL/inc_cipher_aes-gcm.h index e4430bbc4..3c40c20b9 100644 --- a/OpenCL/inc_cipher_aes-gcm.h +++ b/OpenCL/inc_cipher_aes-gcm.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_CIPHER_AES_GCM_H -#define _INC_CIPHER_AES_GCM_H +#ifndef INC_CIPHER_AES_GCM_H +#define INC_CIPHER_AES_GCM_H DECLSPEC void AES_GCM_inc32 (PRIVATE_AS u32 *block); DECLSPEC void AES_GCM_xor_block (PRIVATE_AS u32 *dst, PRIVATE_AS const u32 *src); @@ -18,4 +18,4 @@ DECLSPEC void AES_GCM_GCTR (PRIVATE_AS u32 *key, PRIVATE_AS u32 *J0, PRIVATE_AS DECLSPEC void AES_GCM_GHASH (PRIVATE_AS const u32 *subkey, PRIVATE_AS const u32 *aad_buf, int aad_len, PRIVATE_AS const u32 *enc_buf, int enc_len, PRIVATE_AS u32 *out); DECLSPEC void AES_GCM_GHASH_GLOBAL (PRIVATE_AS const u32 *subkey, PRIVATE_AS const u32 *aad_buf, int aad_len, GLOBAL_AS const u32 *enc_buf, int enc_len, PRIVATE_AS u32 *out); -#endif // _INC_CIPHER_AES_GCM_H +#endif // INC_CIPHER_AES_GCM_H diff --git a/OpenCL/inc_cipher_aes.h b/OpenCL/inc_cipher_aes.h index a2196dbaa..5d42e58f9 100644 --- a/OpenCL/inc_cipher_aes.h +++ b/OpenCL/inc_cipher_aes.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_CIPHER_AES_H -#define _INC_CIPHER_AES_H +#ifndef INC_CIPHER_AES_H +#define INC_CIPHER_AES_H DECLSPEC void aes128_ExpandKey (PRIVATE_AS u32 *ks, PRIVATE_AS const u32 *ukey, SHM_TYPE u32 *s_te0, SHM_TYPE u32 *s_te1, SHM_TYPE u32 *s_te2, SHM_TYPE u32 *s_te3); DECLSPEC void aes128_InvertKey (PRIVATE_AS u32 *ks, SHM_TYPE u32 *s_te1, SHM_TYPE u32 *s_td0, SHM_TYPE u32 *s_td1, SHM_TYPE u32 *s_td2, SHM_TYPE u32 *s_td3); @@ -37,4 +37,4 @@ DECLSPEC void AES256_set_decrypt_key (PRIVATE_AS u32 *ks, PRIVATE_AS const u32 * DECLSPEC void AES256_encrypt (PRIVATE_AS const u32 *ks, PRIVATE_AS const u32 *in, PRIVATE_AS u32 *out, SHM_TYPE u32 *s_te0, SHM_TYPE u32 *s_te1, SHM_TYPE u32 *s_te2, SHM_TYPE u32 *s_te3, SHM_TYPE u32 *s_te4); DECLSPEC void AES256_decrypt (PRIVATE_AS const u32 *ks, PRIVATE_AS const u32 *in, PRIVATE_AS u32 *out, SHM_TYPE u32 *s_td0, SHM_TYPE u32 *s_td1, SHM_TYPE u32 *s_td2, SHM_TYPE u32 *s_td3, SHM_TYPE u32 *s_td4); -#endif // _INC_CIPHER_AES_H +#endif // INC_CIPHER_AES_H diff --git a/OpenCL/inc_cipher_camellia.h b/OpenCL/inc_cipher_camellia.h index fcbb18d44..b150eb0f5 100644 --- a/OpenCL/inc_cipher_camellia.h +++ b/OpenCL/inc_cipher_camellia.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_CIPHER_CAMELLIA_H -#define _INC_CIPHER_CAMELLIA_H +#ifndef INC_CIPHER_CAMELLIA_H +#define INC_CIPHER_CAMELLIA_H DECLSPEC void cam_feistel (PRIVATE_AS const u32 *x, PRIVATE_AS const u32 *k, PRIVATE_AS u32 *y); DECLSPEC void cam_fl (PRIVATE_AS u32 *x, PRIVATE_AS const u32 *kl, PRIVATE_AS const u32 *kr); @@ -12,4 +12,4 @@ DECLSPEC void camellia256_set_key (PRIVATE_AS u32 *ks, PRIVATE_AS const u32 *uke DECLSPEC void camellia256_encrypt (PRIVATE_AS const u32 *ks, PRIVATE_AS const u32 *in, PRIVATE_AS u32 *out); DECLSPEC void camellia256_decrypt (PRIVATE_AS const u32 *ks, PRIVATE_AS const u32 *in, PRIVATE_AS u32 *out); -#endif // _INC_CIPHER_CAMELLIA_H +#endif // INC_CIPHER_CAMELLIA_H diff --git a/OpenCL/inc_cipher_des.h b/OpenCL/inc_cipher_des.h index 693ca8d73..942909ffe 100644 --- a/OpenCL/inc_cipher_des.h +++ b/OpenCL/inc_cipher_des.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_CIPHER_DES_H -#define _INC_CIPHER_DES_H +#ifndef INC_CIPHER_DES_H +#define INC_CIPHER_DES_H // these really should be turned into real function #define PERM_OP(a,b,n,m) \ @@ -109,4 +109,4 @@ DECLSPEC void _des_crypt_encrypt_vect (PRIVATE_AS u32x *out, PRIVATE_AS const u3 DECLSPEC void _des_crypt_decrypt_vect (PRIVATE_AS u32x *out, PRIVATE_AS const u32x *in, PRIVATE_AS const u32x *Kc, PRIVATE_AS const u32x *Kd, SHM_TYPE u32 (*s_SPtrans)[64]); DECLSPEC void _des_crypt_keysetup_vect (u32x c, u32x d, PRIVATE_AS u32x *Kc, PRIVATE_AS u32x *Kd, SHM_TYPE u32 (*s_skb)[64]); -#endif // _INC_CIPHER_DES_H +#endif // INC_CIPHER_DES_H diff --git a/OpenCL/inc_cipher_kuznyechik.h b/OpenCL/inc_cipher_kuznyechik.h index 6e99195af..0a1444e04 100644 --- a/OpenCL/inc_cipher_kuznyechik.h +++ b/OpenCL/inc_cipher_kuznyechik.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_CIPHER_KUZNYECHIK_H -#define _INC_CIPHER_KUZNYECHIK_H +#ifndef INC_CIPHER_KUZNYECHIK_H +#define INC_CIPHER_KUZNYECHIK_H DECLSPEC void kuznyechik_linear (PRIVATE_AS u32 *w); DECLSPEC void kuznyechik_linear_inv (PRIVATE_AS u32 *w); @@ -12,4 +12,4 @@ DECLSPEC void kuznyechik_set_key (PRIVATE_AS u32 *ks, PRIVATE_AS const u32 *ukey DECLSPEC void kuznyechik_encrypt (PRIVATE_AS const u32 *ks, PRIVATE_AS const u32 *in, PRIVATE_AS u32 *out); DECLSPEC void kuznyechik_decrypt (PRIVATE_AS const u32 *ks, PRIVATE_AS const u32 *in, PRIVATE_AS u32 *out); -#endif // _INC_CIPHER_KUZNYECHIK_H +#endif // INC_CIPHER_KUZNYECHIK_H diff --git a/OpenCL/inc_cipher_rc4.h b/OpenCL/inc_cipher_rc4.h index c1fe71c56..d789eb691 100644 --- a/OpenCL/inc_cipher_rc4.h +++ b/OpenCL/inc_cipher_rc4.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_CIPHER_RC4_H -#define _INC_CIPHER_RC4_H +#ifndef INC_CIPHER_RC4_H +#define INC_CIPHER_RC4_H DECLSPEC u8 GET_KEY8 (LOCAL_AS u32 *S, const u8 k, const u64 lid); DECLSPEC void SET_KEY8 (LOCAL_AS u32 *S, const u8 k, const u8 v, const u64 lid); @@ -16,4 +16,4 @@ DECLSPEC void rc4_swap (LOCAL_AS u32 *S, const u8 i, const u8 j, const DECLSPEC u8 rc4_next_16 (LOCAL_AS u32 *S, const u8 i, const u8 j, PRIVATE_AS const u32 *in, PRIVATE_AS u32 *out, const u64 lid); DECLSPEC u8 rc4_next_16_global (LOCAL_AS u32 *S, const u8 i, const u8 j, GLOBAL_AS const u32 *in, PRIVATE_AS u32 *out, const u64 lid); -#endif // _INC_CIPHER_RC4_H +#endif // INC_CIPHER_RC4_H diff --git a/OpenCL/inc_cipher_serpent.h b/OpenCL/inc_cipher_serpent.h index 44a0bb24b..98f429440 100644 --- a/OpenCL/inc_cipher_serpent.h +++ b/OpenCL/inc_cipher_serpent.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_CIPHER_SERPENT_H -#define _INC_CIPHER_SERPENT_H +#ifndef INC_CIPHER_SERPENT_H +#define INC_CIPHER_SERPENT_H DECLSPEC void serpent128_set_key (PRIVATE_AS u32 *ks, PRIVATE_AS const u32 *ukey); DECLSPEC void serpent128_encrypt (PRIVATE_AS const u32 *ks, PRIVATE_AS const u32 *in, PRIVATE_AS u32 *out); @@ -16,4 +16,4 @@ DECLSPEC void serpent256_set_key (PRIVATE_AS u32 *ks, PRIVATE_AS const u32 *ukey DECLSPEC void serpent256_encrypt (PRIVATE_AS const u32 *ks, PRIVATE_AS const u32 *in, PRIVATE_AS u32 *out); DECLSPEC void serpent256_decrypt (PRIVATE_AS const u32 *ks, PRIVATE_AS const u32 *in, PRIVATE_AS u32 *out); -#endif // _INC_CIPHER_SERPENT_H +#endif // INC_CIPHER_SERPENT_H diff --git a/OpenCL/inc_cipher_twofish.h b/OpenCL/inc_cipher_twofish.h index 34c252815..ca10c66e3 100644 --- a/OpenCL/inc_cipher_twofish.h +++ b/OpenCL/inc_cipher_twofish.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_CIPHER_TWOFISH_H -#define _INC_CIPHER_TWOFISH_H +#ifndef INC_CIPHER_TWOFISH_H +#define INC_CIPHER_TWOFISH_H DECLSPEC u32 mds_rem (u32 p0, u32 p1); DECLSPEC u32 h_fun128 (PRIVATE_AS const u32 x, PRIVATE_AS const u32 *key); @@ -20,4 +20,4 @@ DECLSPEC void twofish256_set_key (PRIVATE_AS u32 *sk, PRIVATE_AS u32 *lk, PRIVAT DECLSPEC void twofish256_encrypt (PRIVATE_AS const u32 *sk, PRIVATE_AS const u32 *lk, PRIVATE_AS const u32 *in, PRIVATE_AS u32 *out); DECLSPEC void twofish256_decrypt (PRIVATE_AS const u32 *sk, PRIVATE_AS const u32 *lk, PRIVATE_AS const u32 *in, PRIVATE_AS u32 *out); -#endif // _INC_CIPHER_TWOFISH_H +#endif // INC_CIPHER_TWOFISH_H diff --git a/OpenCL/inc_common.h b/OpenCL/inc_common.h index 016d6240a..6572c1b9e 100644 --- a/OpenCL/inc_common.h +++ b/OpenCL/inc_common.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_COMMON_H -#define _INC_COMMON_H +#ifndef INC_COMMON_H +#define INC_COMMON_H /* * Prototype kernel function that fits all kernel macros @@ -376,4 +376,4 @@ DECLSPEC void append_0x80_2x4_VV (PRIVATE_AS u32x *w0, PRIVATE_AS u32x *w1, cons DECLSPEC void append_0x80_4x4_VV (PRIVATE_AS u32x *w0, PRIVATE_AS u32x *w1, PRIVATE_AS u32x *w2, PRIVATE_AS u32x *w3, const u32x offset); DECLSPEC void append_0x2d_4x4_VV (PRIVATE_AS u32x *w0, PRIVATE_AS u32x *w1, PRIVATE_AS u32x *w2, PRIVATE_AS u32x *w3, const u32x offset); -#endif // _INC_COMMON_H +#endif // INC_COMMON_H diff --git a/OpenCL/inc_diskcryptor_xts.h b/OpenCL/inc_diskcryptor_xts.h index eac08d15d..3a1a1ede0 100644 --- a/OpenCL/inc_diskcryptor_xts.h +++ b/OpenCL/inc_diskcryptor_xts.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_DISKCRYPTOR_XTS_H -#define _INC_DISKCRYPTOR_XTS_H +#ifndef INC_DISKCRYPTOR_XTS_H +#define INC_DISKCRYPTOR_XTS_H DECLSPEC void dcrp_xts_mul2 (PRIVATE_AS u32 *in, PRIVATE_AS u32 *out); DECLSPEC void dcrp_aes256_decrypt_xts (PRIVATE_AS const u32 *ukey1, PRIVATE_AS const u32 *ukey2, PRIVATE_AS const u32 *in, PRIVATE_AS u32 *out, PRIVATE_AS u32 *S, PRIVATE_AS u32 *T, PRIVATE_AS u32 *ks, SHM_TYPE u32 *s_te0, SHM_TYPE u32 *s_te1, SHM_TYPE u32 *s_te2, SHM_TYPE u32 *s_te3, SHM_TYPE u32 *s_te4, SHM_TYPE u32 *s_td0, SHM_TYPE u32 *s_td1, SHM_TYPE u32 *s_td2, SHM_TYPE u32 *s_td3, SHM_TYPE u32 *s_td4); @@ -19,4 +19,4 @@ DECLSPEC int dcrp_verify_header_twofish_serpent (GLOBAL_AS const u32 *data_buf, DECLSPEC int dcrp_verify_header_aes_twofish_serpent (GLOBAL_AS const u32 *data_buf, PRIVATE_AS const u32 *ukey1, PRIVATE_AS const u32 *ukey2, PRIVATE_AS const u32 *ukey3, PRIVATE_AS const u32 *ukey4, PRIVATE_AS const u32 *ukey5, PRIVATE_AS const u32 *ukey6, SHM_TYPE u32 *s_te0, SHM_TYPE u32 *s_te1, SHM_TYPE u32 *s_te2, SHM_TYPE u32 *s_te3, SHM_TYPE u32 *s_te4, SHM_TYPE u32 *s_td0, SHM_TYPE u32 *s_td1, SHM_TYPE u32 *s_td2, SHM_TYPE u32 *s_td3, SHM_TYPE u32 *s_td4); DECLSPEC int dcrp_verify_header_serpent_twofish_aes (GLOBAL_AS const u32 *data_buf, PRIVATE_AS const u32 *ukey1, PRIVATE_AS const u32 *ukey2, PRIVATE_AS const u32 *ukey3, PRIVATE_AS const u32 *ukey4, PRIVATE_AS const u32 *ukey5, PRIVATE_AS const u32 *ukey6, SHM_TYPE u32 *s_te0, SHM_TYPE u32 *s_te1, SHM_TYPE u32 *s_te2, SHM_TYPE u32 *s_te3, SHM_TYPE u32 *s_te4, SHM_TYPE u32 *s_td0, SHM_TYPE u32 *s_td1, SHM_TYPE u32 *s_td2, SHM_TYPE u32 *s_td3, SHM_TYPE u32 *s_td4); -#endif // _INC_DISKCRYPTOR_XTS_H +#endif // INC_DISKCRYPTOR_XTS_H diff --git a/OpenCL/inc_ecc_secp256k1.h b/OpenCL/inc_ecc_secp256k1.h index dfa272fa4..68ae8eebe 100644 --- a/OpenCL/inc_ecc_secp256k1.h +++ b/OpenCL/inc_ecc_secp256k1.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_ECC_SECP256K1_H -#define _INC_ECC_SECP256K1_H +#ifndef INC_ECC_SECP256K1_H +#define INC_ECC_SECP256K1_H // y^2 = x^3 + ax + b with a = 0 and b = 7 => y^2 = x^3 + 7: @@ -227,4 +227,4 @@ DECLSPEC void point_mul (PRIVATE_AS u32 *r, PRIVATE_AS const u32 *k, SECP256K1_T DECLSPEC void set_precomputed_basepoint_g (PRIVATE_AS secp256k1_t *r); -#endif // _INC_ECC_SECP256K1_H +#endif // INC_ECC_SECP256K1_H diff --git a/OpenCL/inc_hash_base58.h b/OpenCL/inc_hash_base58.h index 30e396148..527ffdc51 100644 --- a/OpenCL/inc_hash_base58.h +++ b/OpenCL/inc_hash_base58.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_HASH_BASE58_H -#define _INC_HASH_BASE58_H +#ifndef INC_HASH_BASE58_H +#define INC_HASH_BASE58_H DECLSPEC bool is_valid_base58 (PRIVATE_AS const u32 *data, PRIVATE_AS const u32 offset, PRIVATE_AS const u32 len); @@ -21,4 +21,4 @@ DECLSPEC bool b58check_38 (PRIVATE_AS const u32 *bin); DECLSPEC bool b58enc (PRIVATE_AS u8 *b58, PRIVATE_AS u32 *b58sz, PRIVATE_AS const u8 *data, PRIVATE_AS const u32 binsz); DECLSPEC bool b58check_enc (PRIVATE_AS u8 *b58c, PRIVATE_AS u32 *b58c_sz, PRIVATE_AS const u8 ver, PRIVATE_AS const u8 *data, PRIVATE_AS u32 datasz); -#endif // _INC_HASH_BASE58_H +#endif // INC_HASH_BASE58_H diff --git a/OpenCL/inc_hash_blake2b.h b/OpenCL/inc_hash_blake2b.h index ed0ac923c..425404a3d 100644 --- a/OpenCL/inc_hash_blake2b.h +++ b/OpenCL/inc_hash_blake2b.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_HASH_BLAKE2B_H -#define _INC_HASH_BLAKE2B_H +#ifndef INC_HASH_BLAKE2B_H +#define INC_HASH_BLAKE2B_H #define BLAKE2B_UPDATE 0 #define BLAKE2B_FINAL -1 @@ -96,4 +96,4 @@ DECLSPEC void blake2b_init_vector_from_scalar (PRIVATE_AS blake2b_ctx_vector_t * DECLSPEC void blake2b_update_vector (PRIVATE_AS blake2b_ctx_vector_t *ctx, PRIVATE_AS const u32x *w, const int len); DECLSPEC void blake2b_final_vector (PRIVATE_AS blake2b_ctx_vector_t *ctx); -#endif // _INC_HASH_BLAKE2B_H +#endif // INC_HASH_BLAKE2B_H diff --git a/OpenCL/inc_hash_md4.h b/OpenCL/inc_hash_md4.h index 31f607e8f..49df10c8b 100644 --- a/OpenCL/inc_hash_md4.h +++ b/OpenCL/inc_hash_md4.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_HASH_MD4_H -#define _INC_HASH_MD4_H +#ifndef INC_HASH_MD4_H +#define INC_HASH_MD4_H #define MD4_F_S(x,y,z) (((x) & (y)) | ((~(x)) & (z))) #define MD4_G_S(x,y,z) (((x) & (y)) | ((x) & (z)) | ((y) & (z))) diff --git a/OpenCL/inc_hash_md5.h b/OpenCL/inc_hash_md5.h index bb9fff32f..da6357dce 100644 --- a/OpenCL/inc_hash_md5.h +++ b/OpenCL/inc_hash_md5.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_HASH_MD5_H -#define _INC_HASH_MD5_H +#ifndef INC_HASH_MD5_H +#define INC_HASH_MD5_H #define MD5_F_S(x,y,z) ((z) ^ ((x) & ((y) ^ (z)))) #define MD5_G_S(x,y,z) ((y) ^ ((z) & ((x) ^ (y)))) diff --git a/OpenCL/inc_hash_ripemd160.h b/OpenCL/inc_hash_ripemd160.h index 7450c8cc5..35cab77d7 100644 --- a/OpenCL/inc_hash_ripemd160.h +++ b/OpenCL/inc_hash_ripemd160.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_HASH_RIPEMD160_H -#define _INC_HASH_RIPEMD160_H +#ifndef INC_HASH_RIPEMD160_H +#define INC_HASH_RIPEMD160_H #define RIPEMD160_F(x,y,z) ((x) ^ (y) ^ (z)) #define RIPEMD160_G(x,y,z) ((z) ^ ((x) & ((y) ^ (z)))) /* x ? y : z */ @@ -144,4 +144,4 @@ DECLSPEC void ripemd160_hmac_update_vector_64 (PRIVATE_AS ripemd160_hmac_ctx_vec DECLSPEC void ripemd160_hmac_update_vector (PRIVATE_AS ripemd160_hmac_ctx_vector_t *ctx, PRIVATE_AS const u32x *w, const int len); DECLSPEC void ripemd160_hmac_final_vector (PRIVATE_AS ripemd160_hmac_ctx_vector_t *ctx); -#endif // _INC_HASH_RIPEMD160_H +#endif // INC_HASH_RIPEMD160_H diff --git a/OpenCL/inc_hash_sha1.h b/OpenCL/inc_hash_sha1.h index 35bcd0dbc..c86692b5b 100644 --- a/OpenCL/inc_hash_sha1.h +++ b/OpenCL/inc_hash_sha1.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_HASH_SHA1_H -#define _INC_HASH_SHA1_H +#ifndef INC_HASH_SHA1_H +#define INC_HASH_SHA1_H #define SHA1_F0(x,y,z) ((z) ^ ((x) & ((y) ^ (z)))) #define SHA1_F1(x,y,z) ((x) ^ (y) ^ (z)) diff --git a/OpenCL/inc_hash_sha224.h b/OpenCL/inc_hash_sha224.h index 71aa8d443..1a999601b 100644 --- a/OpenCL/inc_hash_sha224.h +++ b/OpenCL/inc_hash_sha224.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_HASH_SHA224_H -#define _INC_HASH_SHA224_H +#ifndef INC_HASH_SHA224_H +#define INC_HASH_SHA224_H #define SHIFT_RIGHT_32(x,n) ((x) >> (n)) @@ -132,4 +132,4 @@ DECLSPEC void sha224_hmac_update_vector_64 (PRIVATE_AS sha224_hmac_ctx_vector_t DECLSPEC void sha224_hmac_update_vector (PRIVATE_AS sha224_hmac_ctx_vector_t *ctx, PRIVATE_AS const u32x *w, const int len); DECLSPEC void sha224_hmac_final_vector (PRIVATE_AS sha224_hmac_ctx_vector_t *ctx); -#endif // _INC_HASH_SHA224_H +#endif // INC_HASH_SHA224_H diff --git a/OpenCL/inc_hash_sha256.h b/OpenCL/inc_hash_sha256.h index e1104121d..bfafa2f69 100644 --- a/OpenCL/inc_hash_sha256.h +++ b/OpenCL/inc_hash_sha256.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_HASH_SHA256_H -#define _INC_HASH_SHA256_H +#ifndef INC_HASH_SHA256_H +#define INC_HASH_SHA256_H #define SHIFT_RIGHT_32(x,n) ((x) >> (n)) diff --git a/OpenCL/inc_hash_sha384.h b/OpenCL/inc_hash_sha384.h index d285eb9aa..3231febf4 100644 --- a/OpenCL/inc_hash_sha384.h +++ b/OpenCL/inc_hash_sha384.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_HASH_SHA384_H -#define _INC_HASH_SHA384_H +#ifndef INC_HASH_SHA384_H +#define INC_HASH_SHA384_H #define SHA384_SHR_64(x,n) ((x) >> (n)) @@ -146,4 +146,4 @@ DECLSPEC void sha384_hmac_update_vector_128 (PRIVATE_AS sha384_hmac_ctx_vector_t DECLSPEC void sha384_hmac_update_vector (PRIVATE_AS sha384_hmac_ctx_vector_t *ctx, PRIVATE_AS const u32x *w, const int len); DECLSPEC void sha384_hmac_final_vector (PRIVATE_AS sha384_hmac_ctx_vector_t *ctx); -#endif // _INC_HASH_SHA384_H +#endif // INC_HASH_SHA384_H diff --git a/OpenCL/inc_hash_sha512.h b/OpenCL/inc_hash_sha512.h index e920cc444..2319ee8b4 100644 --- a/OpenCL/inc_hash_sha512.h +++ b/OpenCL/inc_hash_sha512.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_HASH_SHA512_H -#define _INC_HASH_SHA512_H +#ifndef INC_HASH_SHA512_H +#define INC_HASH_SHA512_H #define SHA512_SHR_64(x,n) ((x) >> (n)) @@ -147,4 +147,4 @@ DECLSPEC void sha512_hmac_update_vector_128 (PRIVATE_AS sha512_hmac_ctx_vector_t DECLSPEC void sha512_hmac_update_vector (PRIVATE_AS sha512_hmac_ctx_vector_t *ctx, PRIVATE_AS const u32x *w, const int len); DECLSPEC void sha512_hmac_final_vector (PRIVATE_AS sha512_hmac_ctx_vector_t *ctx); -#endif // _INC_HASH_SHA512_H +#endif // INC_HASH_SHA512_H diff --git a/OpenCL/inc_hash_streebog256.h b/OpenCL/inc_hash_streebog256.h index 46fc09563..d50864b53 100644 --- a/OpenCL/inc_hash_streebog256.h +++ b/OpenCL/inc_hash_streebog256.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_HASH_STREEBOG256_H -#define _INC_HASH_STREEBOG256_H +#ifndef INC_HASH_STREEBOG256_H +#define INC_HASH_STREEBOG256_H #if VECT_SIZE == 1 #define BOX(S,n,i) ((S)[(n)][(i)]) @@ -118,4 +118,4 @@ DECLSPEC void streebog256_hmac_update_vector (PRIVATE_AS streebog256_hmac_ctx_ve DECLSPEC void streebog256_hmac_update_vector_swap (PRIVATE_AS streebog256_hmac_ctx_vector_t *ctx, PRIVATE_AS const u32x *w, const int len); DECLSPEC void streebog256_hmac_final_vector (PRIVATE_AS streebog256_hmac_ctx_vector_t *ctx); -#endif // _INC_HASH_STREEBOG256_H +#endif // INC_HASH_STREEBOG256_H diff --git a/OpenCL/inc_hash_streebog512.h b/OpenCL/inc_hash_streebog512.h index dae421738..b8eac5e15 100644 --- a/OpenCL/inc_hash_streebog512.h +++ b/OpenCL/inc_hash_streebog512.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_HASH_STREEBOG512_H -#define _INC_HASH_STREEBOG512_H +#ifndef INC_HASH_STREEBOG512_H +#define INC_HASH_STREEBOG512_H #define BOX_S(S,n,i) ((S)[(n)][(i)]) @@ -130,4 +130,4 @@ DECLSPEC void streebog512_hmac_update_vector (PRIVATE_AS streebog512_hmac_ctx_ve DECLSPEC void streebog512_hmac_update_vector_swap (PRIVATE_AS streebog512_hmac_ctx_vector_t *ctx, PRIVATE_AS const u32x *w, const int len); DECLSPEC void streebog512_hmac_final_vector (PRIVATE_AS streebog512_hmac_ctx_vector_t *ctx); -#endif // _INC_HASH_STREEBOG512_H +#endif // INC_HASH_STREEBOG512_H diff --git a/OpenCL/inc_hash_whirlpool.h b/OpenCL/inc_hash_whirlpool.h index 2cc65e7f9..02fc4e350 100644 --- a/OpenCL/inc_hash_whirlpool.h +++ b/OpenCL/inc_hash_whirlpool.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_HASH_WHIRLPOOL_H -#define _INC_HASH_WHIRLPOOL_H +#ifndef INC_HASH_WHIRLPOOL_H +#define INC_HASH_WHIRLPOOL_H #if VECT_SIZE == 1 #define BOX(S,i) (S)[(i)] @@ -126,4 +126,4 @@ DECLSPEC void whirlpool_hmac_update_vector_64 (PRIVATE_AS whirlpool_hmac_ctx_vec DECLSPEC void whirlpool_hmac_update_vector (PRIVATE_AS whirlpool_hmac_ctx_vector_t *ctx, PRIVATE_AS const u32x *w, const int len); DECLSPEC void whirlpool_hmac_final_vector (PRIVATE_AS whirlpool_hmac_ctx_vector_t *ctx); -#endif // _INC_HASH_WHIRLPOOL_H +#endif // INC_HASH_WHIRLPOOL_H diff --git a/OpenCL/inc_luks_aes.h b/OpenCL/inc_luks_aes.h index 29de5bd0c..418359189 100644 --- a/OpenCL/inc_luks_aes.h +++ b/OpenCL/inc_luks_aes.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_LUKS_AES_H -#define _INC_LUKS_AES_H +#ifndef INC_LUKS_AES_H +#define INC_LUKS_AES_H DECLSPEC void aes128_decrypt_cbc (PRIVATE_AS const u32 *ks1, PRIVATE_AS const u32 *in, PRIVATE_AS u32 *out, PRIVATE_AS u32 *essiv, SHM_TYPE u32 *s_td0, SHM_TYPE u32 *s_td1, SHM_TYPE u32 *s_td2, SHM_TYPE u32 *s_td3, SHM_TYPE u32 *s_td4); DECLSPEC void aes256_decrypt_cbc (PRIVATE_AS const u32 *ks1, PRIVATE_AS const u32 *in, PRIVATE_AS u32 *out, PRIVATE_AS u32 *essiv, SHM_TYPE u32 *s_td0, SHM_TYPE u32 *s_td1, SHM_TYPE u32 *s_td2, SHM_TYPE u32 *s_td3, SHM_TYPE u32 *s_td4); @@ -70,4 +70,4 @@ DECLSPEC void luks_af_sha256_then_aes_decrypt (GLOBAL_AS const luks_t *luks_bufs DECLSPEC void luks_af_sha512_then_aes_decrypt (GLOBAL_AS const luks_t *luks_bufs, GLOBAL_AS luks_tmp_t *tmps, PRIVATE_AS u32 *pt_buf, SHM_TYPE u32 *s_te0, SHM_TYPE u32 *s_te1, SHM_TYPE u32 *s_te2, SHM_TYPE u32 *s_te3, SHM_TYPE u32 *s_te4, SHM_TYPE u32 *s_td0, SHM_TYPE u32 *s_td1, SHM_TYPE u32 *s_td2, SHM_TYPE u32 *s_td3, SHM_TYPE u32 *s_td4); DECLSPEC void luks_af_ripemd160_then_aes_decrypt (GLOBAL_AS const luks_t *luks_bufs, GLOBAL_AS luks_tmp_t *tmps, PRIVATE_AS u32 *pt_buf, SHM_TYPE u32 *s_te0, SHM_TYPE u32 *s_te1, SHM_TYPE u32 *s_te2, SHM_TYPE u32 *s_te3, SHM_TYPE u32 *s_te4, SHM_TYPE u32 *s_td0, SHM_TYPE u32 *s_td1, SHM_TYPE u32 *s_td2, SHM_TYPE u32 *s_td3, SHM_TYPE u32 *s_td4); -#endif // _INC_LUKS_AES_H +#endif // INC_LUKS_AES_H diff --git a/OpenCL/inc_luks_af.h b/OpenCL/inc_luks_af.h index 76b4d6a30..542628f25 100644 --- a/OpenCL/inc_luks_af.h +++ b/OpenCL/inc_luks_af.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_LUKS_AF_H -#define _INC_LUKS_AF_H +#ifndef INC_LUKS_AF_H +#define INC_LUKS_AF_H DECLSPEC void AF_sha1_diffuse16 (PRIVATE_AS u32 *out); DECLSPEC void AF_sha1_diffuse32 (PRIVATE_AS u32 *out); @@ -19,4 +19,4 @@ DECLSPEC void AF_ripemd160_diffuse16 (PRIVATE_AS u32 *out); DECLSPEC void AF_ripemd160_diffuse32 (PRIVATE_AS u32 *out); DECLSPEC void AF_ripemd160_diffuse64 (PRIVATE_AS u32 *out); -#endif // _INC_LUKS_AF_H +#endif // INC_LUKS_AF_H diff --git a/OpenCL/inc_luks_essiv.h b/OpenCL/inc_luks_essiv.h index e7e2fce16..7af5dc9b8 100644 --- a/OpenCL/inc_luks_essiv.h +++ b/OpenCL/inc_luks_essiv.h @@ -3,11 +3,11 @@ * License.....: MIT */ -#ifndef _INC_LUKS_ESSIV_H -#define _INC_LUKS_ESSIV_H +#ifndef INC_LUKS_ESSIV_H +#define INC_LUKS_ESSIV_H DECLSPEC void ESSIV_sha256_transform_S (PRIVATE_AS const u32 *w0, PRIVATE_AS const u32 *w1, PRIVATE_AS const u32 *w2, PRIVATE_AS const u32 *w3, PRIVATE_AS u32 *digest); DECLSPEC void ESSIV_sha256_init128 (PRIVATE_AS u32 *key, PRIVATE_AS u32 *essivhash); DECLSPEC void ESSIV_sha256_init256 (PRIVATE_AS u32 *key, PRIVATE_AS u32 *essivhash); -#endif // _INC_LUKS_ESSIV_H +#endif // INC_LUKS_ESSIV_H diff --git a/OpenCL/inc_luks_serpent.h b/OpenCL/inc_luks_serpent.h index d6fff7543..57b9cbf0d 100644 --- a/OpenCL/inc_luks_serpent.h +++ b/OpenCL/inc_luks_serpent.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_LUKS_SERPENT_H -#define _INC_LUKS_SERPENT_H +#ifndef INC_LUKS_SERPENT_H +#define INC_LUKS_SERPENT_H DECLSPEC void serpent128_decrypt_cbc (PRIVATE_AS const u32 *ks1, PRIVATE_AS const u32 *in, PRIVATE_AS u32 *out, PRIVATE_AS u32 *essiv); DECLSPEC void serpent256_decrypt_cbc (PRIVATE_AS const u32 *ks1, PRIVATE_AS const u32 *in, PRIVATE_AS u32 *out, PRIVATE_AS u32 *essiv); @@ -70,4 +70,4 @@ DECLSPEC void luks_af_sha256_then_serpent_decrypt (GLOBAL_AS const luks_t *luks_ DECLSPEC void luks_af_sha512_then_serpent_decrypt (GLOBAL_AS const luks_t *luks_bufs, GLOBAL_AS luks_tmp_t *tmps, PRIVATE_AS u32 *pt_buf); DECLSPEC void luks_af_ripemd160_then_serpent_decrypt (GLOBAL_AS const luks_t *luks_bufs, GLOBAL_AS luks_tmp_t *tmps, PRIVATE_AS u32 *pt_buf); -#endif // _INC_LUKS_SERPENT_H +#endif // INC_LUKS_SERPENT_H diff --git a/OpenCL/inc_luks_twofish.h b/OpenCL/inc_luks_twofish.h index 45a67c6ed..44649c606 100644 --- a/OpenCL/inc_luks_twofish.h +++ b/OpenCL/inc_luks_twofish.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_LUKS_TWOFISH_H -#define _INC_LUKS_TWOFISH_H +#ifndef INC_LUKS_TWOFISH_H +#define INC_LUKS_TWOFISH_H DECLSPEC void twofish128_decrypt_cbc (PRIVATE_AS const u32 *sk1, PRIVATE_AS const u32 *lk1, PRIVATE_AS const u32 *in, PRIVATE_AS u32 *out, PRIVATE_AS u32 *essiv); DECLSPEC void twofish256_decrypt_cbc (PRIVATE_AS const u32 *sk1, PRIVATE_AS const u32 *lk1, PRIVATE_AS const u32 *in, PRIVATE_AS u32 *out, PRIVATE_AS u32 *essiv); @@ -70,4 +70,4 @@ DECLSPEC void luks_af_sha256_then_twofish_decrypt (GLOBAL_AS const luks_t *luks_ DECLSPEC void luks_af_sha512_then_twofish_decrypt (GLOBAL_AS const luks_t *luks_bufs, GLOBAL_AS luks_tmp_t *tmps, PRIVATE_AS u32 *pt_buf); DECLSPEC void luks_af_ripemd160_then_twofish_decrypt (GLOBAL_AS const luks_t *luks_bufs, GLOBAL_AS luks_tmp_t *tmps, PRIVATE_AS u32 *pt_buf); -#endif // _INC_LUKS_TWOFISH_H +#endif // INC_LUKS_TWOFISH_H diff --git a/OpenCL/inc_luks_xts.h b/OpenCL/inc_luks_xts.h index 20dfbfa88..d12d4fa19 100644 --- a/OpenCL/inc_luks_xts.h +++ b/OpenCL/inc_luks_xts.h @@ -3,9 +3,9 @@ * License.....: MIT */ -#ifndef _INC_LUKS_XTS_H -#define _INC_LUKS_XTS_H +#ifndef INC_LUKS_XTS_H +#define INC_LUKS_XTS_H DECLSPEC void xts_mul2 (PRIVATE_AS u32 *in, PRIVATE_AS u32 *out); -#endif // _INC_LUKS_XTS_H +#endif // INC_LUKS_XTS_H diff --git a/OpenCL/inc_markov.h b/OpenCL/inc_markov.h index 9d8b73d90..3aae8f7fc 100644 --- a/OpenCL/inc_markov.h +++ b/OpenCL/inc_markov.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_MARKOV_H -#define _INC_MARKOV_H +#ifndef INC_MARKOV_H +#define INC_MARKOV_H #ifdef IS_METAL @@ -83,5 +83,5 @@ #endif // IS_METAL -#endif // _INC_MARKOV_H +#endif // INC_MARKOV_H diff --git a/OpenCL/inc_platform.h b/OpenCL/inc_platform.h index fef30a15a..1e7805290 100644 --- a/OpenCL/inc_platform.h +++ b/OpenCL/inc_platform.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_PLATFORM_H -#define _INC_PLATFORM_H +#ifndef INC_PLATFORM_H +#define INC_PLATFORM_H DECLSPEC u32 hc_atomic_dec (volatile GLOBAL_AS u32 *p); DECLSPEC u32 hc_atomic_inc (volatile GLOBAL_AS u32 *p); @@ -87,4 +87,4 @@ DECLSPEC u64 rotr64_S (const u64 a, const int n); #define bitselect(a,b,c) ((a) ^ ((c) & ((b) ^ (a)))) #endif // IS_METAL -#endif // _INC_PLATFORM_H +#endif // INC_PLATFORM_H diff --git a/OpenCL/inc_radmin3_constants.h b/OpenCL/inc_radmin3_constants.h index 3c70b5541..425532f16 100644 --- a/OpenCL/inc_radmin3_constants.h +++ b/OpenCL/inc_radmin3_constants.h @@ -8,8 +8,8 @@ * https://www.synacktiv.com/publications/cracking-radmin-server-3-passwords.html */ -#ifndef _INC_RADMIN3_CONSTANTS_H -#define _INC_RADMIN3_CONSTANTS_H +#ifndef INC_RADMIN3_CONSTANTS_H +#define INC_RADMIN3_CONSTANTS_H #define PRECOMP_BITS 10 #define PRECOMP_VECLEN 160 // SHA1 hash (in bits, 20 bytes) @@ -75,4 +75,4 @@ CONSTANT_VK u32 RADMIN3_FACT[64] = 0x0312ac4d, 0x73aa4ff4, 0x39ad3b1f, 0xfad6fce6, }; -#endif // _INC_RADMIN3_CONSTANTS_H +#endif // INC_RADMIN3_CONSTANTS_H diff --git a/OpenCL/inc_rp.h b/OpenCL/inc_rp.h index cf804f387..cf376819e 100644 --- a/OpenCL/inc_rp.h +++ b/OpenCL/inc_rp.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_RP_H -#define _INC_RP_H +#ifndef INC_RP_H +#define INC_RP_H #ifndef DECLSPEC #define DECLSPEC @@ -121,4 +121,4 @@ DECLSPEC int mangle_title_sep (MAYBE_UNUSED const u8 p0, MAYBE_UNUSED const u8 p DECLSPEC int apply_rule (const u32 name, MAYBE_UNUSED const u8 p0, MAYBE_UNUSED const u8 p1, PRIVATE_AS u32 *buf, const int in_len); DECLSPEC int apply_rules (CONSTANT_AS const u32 *cmds, PRIVATE_AS u32 *buf, const int in_len); -#endif // _INC_RP_H +#endif // INC_RP_H diff --git a/OpenCL/inc_rp_optimized.h b/OpenCL/inc_rp_optimized.h index 15ec9cc3f..4caad7220 100644 --- a/OpenCL/inc_rp_optimized.h +++ b/OpenCL/inc_rp_optimized.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_RP_OPTIMIZED_H -#define _INC_RP_OPTIMIZED_H +#ifndef INC_RP_OPTIMIZED_H +#define INC_RP_OPTIMIZED_H #ifndef DECLSPEC #define DECLSPEC @@ -133,4 +133,4 @@ DECLSPEC u32 apply_rule_optimized (const u32 name, const u32 p0, const u32 p1, P DECLSPEC u32 apply_rules_optimized (CONSTANT_AS const u32 *cmds, PRIVATE_AS u32 *buf0, PRIVATE_AS u32 *buf1, const u32 len); DECLSPEC u32x apply_rules_vect_optimized (PRIVATE_AS const u32 *pw_buf0, PRIVATE_AS const u32 *pw_buf1, const u32 pw_len, CONSTANT_AS const kernel_rule_t *kernel_rules, const u32 il_pos, PRIVATE_AS u32x *buf0, PRIVATE_AS u32x *buf1); -#endif // _INC_RP_OPTIMIZED_H +#endif // INC_RP_OPTIMIZED_H diff --git a/OpenCL/inc_shared.h b/OpenCL/inc_shared.h index e8cd826ed..16f2e2c4c 100644 --- a/OpenCL/inc_shared.h +++ b/OpenCL/inc_shared.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_SHARED_H -#define _INC_SHARED_H +#ifndef INC_SHARED_H +#define INC_SHARED_H #ifdef IS_METAL @@ -63,4 +63,4 @@ #endif // IS_METAL -#endif // _INC_SHARED_H +#endif // INC_SHARED_H diff --git a/OpenCL/inc_simd.h b/OpenCL/inc_simd.h index 91d4084bd..a567de3f2 100644 --- a/OpenCL/inc_simd.h +++ b/OpenCL/inc_simd.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_SIMD_H -#define _INC_SIMD_H +#ifndef INC_SIMD_H +#define INC_SIMD_H // vliw1 diff --git a/OpenCL/inc_truecrypt_crc32.h b/OpenCL/inc_truecrypt_crc32.h index b247b0009..071a51e3a 100644 --- a/OpenCL/inc_truecrypt_crc32.h +++ b/OpenCL/inc_truecrypt_crc32.h @@ -3,10 +3,10 @@ * License.....: MIT */ -#ifndef _INC_TRUECRYPT_CRC32_H -#define _INC_TRUECRYPT_CRC32_H +#ifndef INC_TRUECRYPT_CRC32_H +#define INC_TRUECRYPT_CRC32_H DECLSPEC u32 round_crc32 (u32 a, const u32 v); DECLSPEC u32 round_crc32_4 (const u32 w, const u32 iv); -#endif // _INC_TRUECRYPT_CRC32_H +#endif // INC_TRUECRYPT_CRC32_H diff --git a/OpenCL/inc_truecrypt_keyfile.h b/OpenCL/inc_truecrypt_keyfile.h index 93aaa04d8..2706c2169 100644 --- a/OpenCL/inc_truecrypt_keyfile.h +++ b/OpenCL/inc_truecrypt_keyfile.h @@ -3,10 +3,10 @@ * License.....: MIT */ -#ifndef _INC_TRUECRYPT_KEYFILE_H -#define _INC_TRUECRYPT_KEYFILE_H +#ifndef INC_TRUECRYPT_KEYFILE_H +#define INC_TRUECRYPT_KEYFILE_H DECLSPEC u32 u8add (const u32 a, const u32 b); DECLSPEC u32 hc_apply_keyfile_tc (PRIVATE_AS u32 *w, const int pw_len, const GLOBAL_AS tc_t *tc); -#endif // _INC_TRUECRYPT_KEYFILE_H +#endif // INC_TRUECRYPT_KEYFILE_H diff --git a/OpenCL/inc_truecrypt_xts.h b/OpenCL/inc_truecrypt_xts.h index 8938dba4e..9ce43ab1e 100644 --- a/OpenCL/inc_truecrypt_xts.h +++ b/OpenCL/inc_truecrypt_xts.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_TRUECRYPT_XTS_H -#define _INC_TRUECRYPT_XTS_H +#ifndef INC_TRUECRYPT_XTS_H +#define INC_TRUECRYPT_XTS_H DECLSPEC void xts_mul2 (PRIVATE_AS u32 *in, PRIVATE_AS u32 *out); DECLSPEC void aes256_decrypt_xts_first (PRIVATE_AS const u32 *ukey1, PRIVATE_AS const u32 *ukey2, PRIVATE_AS const u32 *in, PRIVATE_AS u32 *out, PRIVATE_AS u32 *S, PRIVATE_AS u32 *T, PRIVATE_AS u32 *ks, SHM_TYPE u32 *s_te0, SHM_TYPE u32 *s_te1, SHM_TYPE u32 *s_te2, SHM_TYPE u32 *s_te3, SHM_TYPE u32 *s_te4, SHM_TYPE u32 *s_td0, SHM_TYPE u32 *s_td1, SHM_TYPE u32 *s_td2, SHM_TYPE u32 *s_td3, SHM_TYPE u32 *s_td4); @@ -22,4 +22,4 @@ DECLSPEC int verify_header_twofish_serpent (GLOBAL_AS const u32 *data_buf, const DECLSPEC int verify_header_aes_twofish_serpent (GLOBAL_AS const u32 *data_buf, const u32 signature, PRIVATE_AS const u32 *ukey1, PRIVATE_AS const u32 *ukey2, PRIVATE_AS const u32 *ukey3, PRIVATE_AS const u32 *ukey4, PRIVATE_AS const u32 *ukey5, PRIVATE_AS const u32 *ukey6, SHM_TYPE u32 *s_te0, SHM_TYPE u32 *s_te1, SHM_TYPE u32 *s_te2, SHM_TYPE u32 *s_te3, SHM_TYPE u32 *s_te4, SHM_TYPE u32 *s_td0, SHM_TYPE u32 *s_td1, SHM_TYPE u32 *s_td2, SHM_TYPE u32 *s_td3, SHM_TYPE u32 *s_td4); DECLSPEC int verify_header_serpent_twofish_aes (GLOBAL_AS const u32 *data_buf, const u32 signature, PRIVATE_AS const u32 *ukey1, PRIVATE_AS const u32 *ukey2, PRIVATE_AS const u32 *ukey3, PRIVATE_AS const u32 *ukey4, PRIVATE_AS const u32 *ukey5, PRIVATE_AS const u32 *ukey6, SHM_TYPE u32 *s_te0, SHM_TYPE u32 *s_te1, SHM_TYPE u32 *s_te2, SHM_TYPE u32 *s_te3, SHM_TYPE u32 *s_te4, SHM_TYPE u32 *s_td0, SHM_TYPE u32 *s_td1, SHM_TYPE u32 *s_td2, SHM_TYPE u32 *s_td3, SHM_TYPE u32 *s_td4); -#endif // _INC_TRUECRYPT_XTS_H +#endif // INC_TRUECRYPT_XTS_H diff --git a/OpenCL/inc_types.h b/OpenCL/inc_types.h index 2c7ae1f9d..0adcbc5df 100644 --- a/OpenCL/inc_types.h +++ b/OpenCL/inc_types.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_TYPES_H -#define _INC_TYPES_H +#ifndef INC_TYPES_H +#define INC_TYPES_H #if ATTACK_MODE == 9 #define BITMAP_MASK kernel_param->bitmap_mask diff --git a/OpenCL/inc_vendor.h b/OpenCL/inc_vendor.h index 245f537fd..b15fa050a 100644 --- a/OpenCL/inc_vendor.h +++ b/OpenCL/inc_vendor.h @@ -3,10 +3,10 @@ * License.....: MIT */ -#ifndef _INC_VENDOR_H -#define _INC_VENDOR_H +#ifndef INC_VENDOR_H +#define INC_VENDOR_H -#if defined _CPU_OPENCL_EMU_H +#if defined CPU_OPENCL_EMU_H #define IS_NATIVE #elif defined __CUDACC__ #define IS_CUDA @@ -210,4 +210,4 @@ using namespace metal; #define s3 w #endif -#endif // _INC_VENDOR_H +#endif // INC_VENDOR_H diff --git a/OpenCL/inc_veracrypt_keyfile.h b/OpenCL/inc_veracrypt_keyfile.h index 69197726f..ee4da6082 100644 --- a/OpenCL/inc_veracrypt_keyfile.h +++ b/OpenCL/inc_veracrypt_keyfile.h @@ -3,10 +3,10 @@ * License.....: MIT */ -#ifndef _INC_VERACRYPT_KEYFILE_H -#define _INC_VERACRYPT_KEYFILE_H +#ifndef INC_VERACRYPT_KEYFILE_H +#define INC_VERACRYPT_KEYFILE_H DECLSPEC u32 u8add (const u32 a, const u32 b); DECLSPEC u32 hc_apply_keyfile_vc (PRIVATE_AS u32 *w, const int pw_len, const GLOBAL_AS vc_t *vc); -#endif // _INC_VERACRYPT_KEYFILE_H +#endif // INC_VERACRYPT_KEYFILE_H diff --git a/OpenCL/inc_veracrypt_xts.h b/OpenCL/inc_veracrypt_xts.h index 16f554efe..0815eb477 100644 --- a/OpenCL/inc_veracrypt_xts.h +++ b/OpenCL/inc_veracrypt_xts.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INC_HASH_VERACRYPT_XTS_H -#define _INC_HASH_VERACRYPT_XTS_H +#ifndef INC_HASH_VERACRYPT_XTS_H +#define INC_HASH_VERACRYPT_XTS_H DECLSPEC void camellia256_decrypt_xts_first (PRIVATE_AS const u32 *ukey1, PRIVATE_AS const u32 *ukey2, PRIVATE_AS const u32 *in, PRIVATE_AS u32 *out, PRIVATE_AS u32 *S, PRIVATE_AS u32 *T, PRIVATE_AS u32 *ks); DECLSPEC void camellia256_decrypt_xts_next (PRIVATE_AS const u32 *in, PRIVATE_AS u32 *out, PRIVATE_AS u32 *T, PRIVATE_AS u32 *ks); @@ -18,4 +18,4 @@ DECLSPEC int verify_header_kuznyechik_aes (GLOBAL_AS const u32 *data_buf, const DECLSPEC int verify_header_kuznyechik_twofish (GLOBAL_AS const u32 *data_buf, const u32 signature, PRIVATE_AS const u32 *ukey1, PRIVATE_AS const u32 *ukey2, PRIVATE_AS const u32 *ukey3, PRIVATE_AS const u32 *ukey4); DECLSPEC int verify_header_kuznyechik_serpent_camellia (GLOBAL_AS const u32 *data_buf, const u32 signature, PRIVATE_AS const u32 *ukey1, PRIVATE_AS const u32 *ukey2, PRIVATE_AS const u32 *ukey3, PRIVATE_AS const u32 *ukey4, PRIVATE_AS const u32 *ukey5, PRIVATE_AS const u32 *ukey6); -#endif // _INC_HASH_VERACRYPT_XTS_H +#endif // INC_HASH_VERACRYPT_XTS_H diff --git a/include/affinity.h b/include/affinity.h index 9ba0d6e1b..191cc8575 100644 --- a/include/affinity.h +++ b/include/affinity.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _AFFINITY_H -#define _AFFINITY_H +#ifndef AFFINITY_H +#define AFFINITY_H #include #include @@ -25,4 +25,4 @@ int set_cpu_affinity (hashcat_ctx_t *hashcat_ctx); -#endif // _AFFINITY_H +#endif // AFFINITY_H diff --git a/include/autotune.h b/include/autotune.h index 0bc7aa183..0121de45e 100644 --- a/include/autotune.h +++ b/include/autotune.h @@ -3,9 +3,9 @@ * License.....: MIT */ -#ifndef _AUTOTUNE_H -#define _AUTOTUNE_H +#ifndef AUTOTUNE_H +#define AUTOTUNE_H HC_API_CALL void *thread_autotune (void *p); -#endif // _AUTOTUNE_H +#endif // AUTOTUNE_H diff --git a/include/backend.h b/include/backend.h index 7bc499e44..bf0dff097 100644 --- a/include/backend.h +++ b/include/backend.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _BACKEND_H -#define _BACKEND_H +#ifndef BACKEND_H +#define 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 // BACKEND_H diff --git a/include/benchmark.h b/include/benchmark.h index 0080eea0a..abae223e8 100644 --- a/include/benchmark.h +++ b/include/benchmark.h @@ -3,9 +3,9 @@ * License.....: MIT */ -#ifndef _BENCHMARK_H -#define _BENCHMARK_H +#ifndef BENCHMARK_H +#define BENCHMARK_H int benchmark_next (hashcat_ctx_t *hashcat_ctx); -#endif // _BENCHMARK_H +#endif // BENCHMARK_H diff --git a/include/bitmap.h b/include/bitmap.h index c12b6889a..b60ecbaa1 100644 --- a/include/bitmap.h +++ b/include/bitmap.h @@ -3,12 +3,12 @@ * License.....: MIT */ -#ifndef _BITMAP_H -#define _BITMAP_H +#ifndef BITMAP_H +#define 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 // BITMAP_H diff --git a/include/bitops.h b/include/bitops.h index 8eb14528f..bc81764e8 100644 --- a/include/bitops.h +++ b/include/bitops.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _BITOPS_H -#define _BITOPS_H +#ifndef BITOPS_H +#define 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 // BITOPS_H diff --git a/include/brain.h b/include/brain.h index d6dc7ec7a..b3797121f 100644 --- a/include/brain.h +++ b/include/brain.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _BRAIN_H -#define _BRAIN_H +#ifndef BRAIN_H +#define 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 // BRAIN_H diff --git a/include/combinator.h b/include/combinator.h index 5177e22c8..8a64eef29 100644 --- a/include/combinator.h +++ b/include/combinator.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _COMBINATOR_H -#define _COMBINATOR_H +#ifndef COMBINATOR_H +#define 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 // COMBINATOR_H diff --git a/include/common.h b/include/common.h index c53de63fc..7a6c9fe62 100644 --- a/include/common.h +++ b/include/common.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _COMMON_H -#define _COMMON_H +#ifndef COMMON_H +#define 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 // COMMON_H diff --git a/include/convert.h b/include/convert.h index bef197589..25f7b3f36 100644 --- a/include/convert.h +++ b/include/convert.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _CONVERT_H -#define _CONVERT_H +#ifndef CONVERT_H +#define 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 // CONVERT_H diff --git a/include/cpt.h b/include/cpt.h index bdc22a24e..5b63e6713 100644 --- a/include/cpt.h +++ b/include/cpt.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _CPT_H -#define _CPT_H +#ifndef CPT_H +#define 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 // CPT_H diff --git a/include/cpu_crc32.h b/include/cpu_crc32.h index bf0e5da94..6dcb040d8 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 CPU_CRC32_H +#define 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 // CPU_CRC32_H diff --git a/include/debugfile.h b/include/debugfile.h index 487b69a40..27893f1b5 100644 --- a/include/debugfile.h +++ b/include/debugfile.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _DEBUGFILE_H -#define _DEBUGFILE_H +#ifndef DEBUGFILE_H +#define 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 // DEBUGFILE_H diff --git a/include/dictstat.h b/include/dictstat.h index bfe8fe7b0..1762d5f67 100644 --- a/include/dictstat.h +++ b/include/dictstat.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _DICTSTAT_H -#define _DICTSTAT_H +#ifndef DICTSTAT_H +#define 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 // DICTSTAT_H diff --git a/include/dispatch.h b/include/dispatch.h index e16a30650..341d7dc17 100644 --- a/include/dispatch.h +++ b/include/dispatch.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _DISPATCH_H -#define _DISPATCH_H +#ifndef DISPATCH_H +#define 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 // DISPATCH_H diff --git a/include/dynloader.h b/include/dynloader.h index bc871abd1..9d016c5f1 100644 --- a/include/dynloader.h +++ b/include/dynloader.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _DYNLOADER_H -#define _DYNLOADER_H +#ifndef DYNLOADER_H +#define DYNLOADER_H #include diff --git a/include/emu_general.h b/include/emu_general.h index 59be84578..71fd9e51d 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 CPU_OPENCL_EMU_H +#define 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 // CPU_OPENCL_EMU_H diff --git a/include/emu_inc_bignum_operations.h b/include/emu_inc_bignum_operations.h index 56f086195..db3a7e44d 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 EMU_INC_BIGNUM_OPERATIONS_H +#define 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 // EMU_INC_BIGNUM_OPERATIONS_H diff --git a/include/emu_inc_cipher_aes.h b/include/emu_inc_cipher_aes.h index 17692e6e8..8b1a65597 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 EMU_INC_CIPHER_AES_H +#define 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 // EMU_INC_CIPHER_AES_H diff --git a/include/emu_inc_cipher_des.h b/include/emu_inc_cipher_des.h index a7caf8102..995c2c733 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 EMU_INC_CIPHER_DES_H +#define 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 // EMU_INC_CIPHER_DES_H diff --git a/include/emu_inc_ecc_secp256k1.h b/include/emu_inc_ecc_secp256k1.h index a411dafd1..279a59c7f 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 EMU_INC_ECC_SECP256K1_H +#define 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 // EMU_INC_ECC_SECP256K1_H diff --git a/include/emu_inc_hash_base58.h b/include/emu_inc_hash_base58.h index 88ff3cf82..e1af23cfa 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 EMU_INC_HASH_BASE58_H +#define 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 // EMU_INC_HASH_BASE58_H diff --git a/include/emu_inc_hash_md4.h b/include/emu_inc_hash_md4.h index 9b4fb7a0d..bf3be4c01 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 EMU_INC_HASH_MD4_H +#define 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 // EMU_INC_HASH_MD4_H diff --git a/include/emu_inc_hash_md5.h b/include/emu_inc_hash_md5.h index caeaf08b3..bcf4945c1 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 EMU_INC_HASH_MD5_H +#define 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 // EMU_INC_HASH_MD5_H diff --git a/include/emu_inc_hash_sha1.h b/include/emu_inc_hash_sha1.h index 0c73efd5d..2df1060c8 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 EMU_INC_HASH_SHA1_H +#define 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 // EMU_INC_HASH_SHA1_H diff --git a/include/emu_inc_hash_sha256.h b/include/emu_inc_hash_sha256.h index 156f617a8..5238a45a2 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 EMU_INC_HASH_SHA256_H +#define 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 // EMU_INC_HASH_SHA256_H diff --git a/include/emu_inc_hash_sha512.h b/include/emu_inc_hash_sha512.h index 633f85412..5346de7a8 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 EMU_INC_HASH_SHA512_H +#define 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 // EMU_INC_HASH_SHA512_H diff --git a/include/emu_inc_radmin3_constants.h b/include/emu_inc_radmin3_constants.h index 262a5fc88..b1e3fd618 100644 --- a/include/emu_inc_radmin3_constants.h +++ b/include/emu_inc_radmin3_constants.h @@ -8,8 +8,8 @@ * https://www.synacktiv.com/publications/cracking-radmin-server-3-passwords.html */ -#ifndef _EMU_INC_RADMIN3_CONSTANTS_H -#define _EMU_INC_RADMIN3_CONSTANTS_H +#ifndef EMU_INC_RADMIN3_CONSTANTS_H +#define EMU_INC_RADMIN3_CONSTANTS_H #include "emu_general.h" @@ -174616,4 +174616,4 @@ const u32 RADMIN3_PRE[1047552] = 0xd3281f90, 0x4e206568, 0x220b74cc, 0xca4c1a47, 0x962ffc24, 0x1fe67f61, }; -#endif // _EMU_INC_RADMIN3_CONSTANTS_H +#endif // EMU_INC_RADMIN3_CONSTANTS_H diff --git a/include/emu_inc_rp.h b/include/emu_inc_rp.h index ba17c4c04..4dbcc86e4 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 EMU_INC_RP_H +#define EMU_INC_RP_H #include "emu_general.h" #include "inc_vendor.h" #include "inc_rp.h" -#endif // _EMU_INC_RP_H +#endif // EMU_INC_RP_H diff --git a/include/emu_inc_rp_optimized.h b/include/emu_inc_rp_optimized.h index 73e8dbf15..be8eabfd1 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 EMU_INC_RP_OPTIMIZED_H +#define 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 // EMU_INC_RP_OPTIMIZED_H diff --git a/include/event.h b/include/event.h index b30fb0b55..335cea940 100644 --- a/include/event.h +++ b/include/event.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _EVENT_H -#define _EVENT_H +#ifndef EVENT_H +#define EVENT_H #include #include @@ -27,4 +27,4 @@ __attribute__ ((format (printf, 2, 3))) size_t event_log_error (hashcat_ctx int event_ctx_init (hashcat_ctx_t *hashcat_ctx); void event_ctx_destroy (hashcat_ctx_t *hashcat_ctx); -#endif // _EVENT_H +#endif // EVENT_H diff --git a/include/ext_ADL.h b/include/ext_ADL.h index 11d5b14f5..45955520d 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 EXT_ADL_H +#define 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 // EXT_ADL_H diff --git a/include/ext_OpenCL.h b/include/ext_OpenCL.h index 589b8de23..7b4203adc 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 EXT_OPENCL_H +#define 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 // EXT_OPENCL_H diff --git a/include/ext_cuda.h b/include/ext_cuda.h index a2d1736f0..f5b699ebd 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 EXT_CUDA_H +#define 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 // EXT_CUDA_H diff --git a/include/ext_hip.h b/include/ext_hip.h index beac57187..bf0b6e4ba 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 EXT_HIP_H +#define 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 // EXT_HIP_H diff --git a/include/ext_hiprtc.h b/include/ext_hiprtc.h index 7fb783c4a..284bc4db5 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 EXT_HIPRTC_H +#define 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 // EXT_HIPRTC_H diff --git a/include/ext_iokit.h b/include/ext_iokit.h index b45327924..7e678d6cf 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 EXT_IOKIT_H +#define 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 // EXT_IOKIT_H diff --git a/include/ext_lzma.h b/include/ext_lzma.h index 8dbade7dc..48796cb5c 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 EXT_LZMA_H +#define 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 // EXT_LZMA_H diff --git a/include/ext_metal.h b/include/ext_metal.h index 1bb1425f8..9e68cab1b 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 EXT_METAL_H +#define 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 // EXT_METAL_H diff --git a/include/ext_nvapi.h b/include/ext_nvapi.h index b72cd357c..6b5c19a76 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 EXT_NVAPI_H +#define 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 // EXT_NVAPI_H diff --git a/include/ext_nvml.h b/include/ext_nvml.h index 74396810d..88dd318cb 100644 --- a/include/ext_nvml.h +++ b/include/ext_nvml.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _NVML_H -#define _NVML_H +#ifndef NVML_H +#define 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 // NVML_H diff --git a/include/ext_nvrtc.h b/include/ext_nvrtc.h index ee46fc35c..66258d9c1 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 EXT_NVRTC_H +#define 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 // EXT_NVRTC_H diff --git a/include/ext_sysfs_amdgpu.h b/include/ext_sysfs_amdgpu.h index ef8be1791..51c6668d1 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 EXT_SYSFS_AMDGPU_H +#define 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 // EXT_SYSFS_AMDGPU_H diff --git a/include/ext_sysfs_cpu.h b/include/ext_sysfs_cpu.h index ca15f83f9..d9ab93abb 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 EXT_SYSFS_CPU_H +#define 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 // EXT_SYSFS_CPU_H diff --git a/include/filehandling.h b/include/filehandling.h index 5eea01080..ddf484316 100644 --- a/include/filehandling.h +++ b/include/filehandling.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _FILEHANDLING_H -#define _FILEHANDLING_H +#ifndef FILEHANDLING_H +#define 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 // FILEHANDLING_H diff --git a/include/folder.h b/include/folder.h index 484eff168..ff55aed1c 100644 --- a/include/folder.h +++ b/include/folder.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _FOLDER_H -#define _FOLDER_H +#ifndef FOLDER_H +#define 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 // FOLDER_H diff --git a/include/hashcat.h b/include/hashcat.h index 49cfc91df..600143b34 100644 --- a/include/hashcat.h +++ b/include/hashcat.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _HASHCAT_H -#define _HASHCAT_H +#ifndef HASHCAT_H +#define 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 // HASHCAT_H diff --git a/include/hashes.h b/include/hashes.h index 1e043aad4..7354cbacd 100644 --- a/include/hashes.h +++ b/include/hashes.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _HASHES_H -#define _HASHES_H +#ifndef HASHES_H +#define 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 // HASHES_H diff --git a/include/hlfmt.h b/include/hlfmt.h index ddd8e88b3..edc6cf9ce 100644 --- a/include/hlfmt.h +++ b/include/hlfmt.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _HLFMT_H -#define _HLFMT_H +#ifndef HLFMT_H +#define 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 // HLFMT_H diff --git a/include/hwmon.h b/include/hwmon.h index c758c60ba..783356f82 100644 --- a/include/hwmon.h +++ b/include/hwmon.h @@ -8,8 +8,8 @@ #include #endif -#ifndef _HWMON_H -#define _HWMON_H +#ifndef HWMON_H +#define 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 // HWMON_H diff --git a/include/induct.h b/include/induct.h index b121d70dd..cdb1408f4 100644 --- a/include/induct.h +++ b/include/induct.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INDUCT_H -#define _INDUCT_H +#ifndef INDUCT_H +#define 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 // INDUCT_H diff --git a/include/interface.h b/include/interface.h index aef0e8d94..06d3f0f65 100644 --- a/include/interface.h +++ b/include/interface.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _INTERFACE_H -#define _INTERFACE_H +#ifndef INTERFACE_H +#define 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 // INTERFACE_H diff --git a/include/keyboard_layout.h b/include/keyboard_layout.h index a097e629a..494315a9c 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 KEYBOARD_LAYOUT_H +#define 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 // KEYBOARD_LAYOUT_H diff --git a/include/locking.h b/include/locking.h index 44bb19abc..2d5dbce4a 100644 --- a/include/locking.h +++ b/include/locking.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _LOCKING_H -#define _LOCKING_H +#ifndef LOCKING_H +#define LOCKING_H #include #include @@ -16,4 +16,4 @@ int hc_lockfile (HCFILE *fp); int hc_unlockfile (HCFILE *fp); -#endif // _LOCKING_H +#endif // LOCKING_H diff --git a/include/logfile.h b/include/logfile.h index 5d184deba..2f79b82ef 100644 --- a/include/logfile.h +++ b/include/logfile.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _LOGFILE_H -#define _LOGFILE_H +#ifndef LOGFILE_H +#define 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 // LOGFILE_H diff --git a/include/loopback.h b/include/loopback.h index 9a4a1b96c..70da5780b 100644 --- a/include/loopback.h +++ b/include/loopback.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _LOOPBACK_H -#define _LOOPBACK_H +#ifndef LOOPBACK_H +#define 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 // LOOPBACK_H diff --git a/include/memory.h b/include/memory.h index ba2bd6a94..2a7b1d27b 100644 --- a/include/memory.h +++ b/include/memory.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _MEMORY_H -#define _MEMORY_H +#ifndef MEMORY_H +#define 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 // MEMORY_H diff --git a/include/modules.h b/include/modules.h index c92768c08..bc5611b09 100644 --- a/include/modules.h +++ b/include/modules.h @@ -1,6 +1,6 @@ -#ifndef _MODULES_H -#define _MODULES_H +#ifndef MODULES_H +#define 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 // MODULES_H diff --git a/include/monitor.h b/include/monitor.h index 87b793e81..25ebc2c4c 100644 --- a/include/monitor.h +++ b/include/monitor.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _MONITOR_H -#define _MONITOR_H +#ifndef MONITOR_H +#define 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 // MONITOR_H diff --git a/include/mpsp.h b/include/mpsp.h index da0e6dfc7..8a8caee09 100644 --- a/include/mpsp.h +++ b/include/mpsp.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _MPSP_H -#define _MPSP_H +#ifndef MPSP_H +#define 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 // MPSP_H diff --git a/include/outfile.h b/include/outfile.h index 953f68a71..267eeab58 100644 --- a/include/outfile.h +++ b/include/outfile.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _OUTFILE_H -#define _OUTFILE_H +#ifndef OUTFILE_H +#define 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 // OUTFILE_H diff --git a/include/outfile_check.h b/include/outfile_check.h index 3ecbcad13..2ae418824 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 OUTFILE_CHECK_H +#define 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 // OUTFILE_CHECK_H diff --git a/include/pidfile.h b/include/pidfile.h index e609a5e2b..8336f985a 100644 --- a/include/pidfile.h +++ b/include/pidfile.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _PIDFILE_H -#define _PIDFILE_H +#ifndef PIDFILE_H +#define 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 // PIDFILE_H diff --git a/include/potfile.h b/include/potfile.h index de97a312a..e7d680b87 100644 --- a/include/potfile.h +++ b/include/potfile.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _POTFILE_H -#define _POTFILE_H +#ifndef POTFILE_H +#define 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 // POTFILE_H diff --git a/include/restore.h b/include/restore.h index f050b8058..8ee165000 100644 --- a/include/restore.h +++ b/include/restore.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _RESTORE_H -#define _RESTORE_H +#ifndef RESTORE_H +#define 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 // RESTORE_H diff --git a/include/rp.h b/include/rp.h index c44239f1a..20ddbab46 100644 --- a/include/rp.h +++ b/include/rp.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _RP_H -#define _RP_H +#ifndef RP_H +#define 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 // RP_H diff --git a/include/rp_cpu.h b/include/rp_cpu.h index 5d07efb9b..6650a8010 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 RP_CPU_H +#define 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 // RP_CPU_H diff --git a/include/selftest.h b/include/selftest.h index 6b2770f21..fa56e7d76 100644 --- a/include/selftest.h +++ b/include/selftest.h @@ -3,9 +3,9 @@ * License.....: MIT */ -#ifndef _SELFTEST_H -#define _SELFTEST_H +#ifndef SELFTEST_H +#define SELFTEST_H HC_API_CALL void *thread_selftest (void *p); -#endif // _SELFTEST_H +#endif // SELFTEST_H diff --git a/include/shared.h b/include/shared.h index d70da47f7..95c89cb9f 100644 --- a/include/shared.h +++ b/include/shared.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _SHARED_H -#define _SHARED_H +#ifndef SHARED_H +#define SHARED_H #include #include @@ -109,4 +109,4 @@ bool is_apple_silicon (void); char *file_to_buffer (const char *filename); -#endif // _SHARED_H +#endif // SHARED_H diff --git a/include/slow_candidates.h b/include/slow_candidates.h index c3d16d4b8..189602459 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 SLOW_CANDIDATES_H +#define 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 // SLOW_CANDIDATES_H diff --git a/include/status.h b/include/status.h index fa4cc7815..34ee9e6f1 100644 --- a/include/status.h +++ b/include/status.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _STATUS_H -#define _STATUS_H +#ifndef STATUS_H +#define 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 // STATUS_H diff --git a/include/stdout.h b/include/stdout.h index 48c1958cb..9d009ea16 100644 --- a/include/stdout.h +++ b/include/stdout.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _STDOUT_H -#define _STDOUT_H +#ifndef STDOUT_H +#define 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 // STDOUT_H diff --git a/include/straight.h b/include/straight.h index 6fd04b15c..b29ad5bce 100644 --- a/include/straight.h +++ b/include/straight.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _STRAIGHT_H -#define _STRAIGHT_H +#ifndef STRAIGHT_H +#define 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 // STRAIGHT_H diff --git a/include/terminal.h b/include/terminal.h index 1790b1e91..6e88e4178 100644 --- a/include/terminal.h +++ b/include/terminal.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _TERMINAL_H -#define _TERMINAL_H +#ifndef TERMINAL_H +#define 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 // TERMINAL_H diff --git a/include/thread.h b/include/thread.h index fcd7e1e6c..c05661fb9 100644 --- a/include/thread.h +++ b/include/thread.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _THREAD_H -#define _THREAD_H +#ifndef THREAD_H +#define 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 // THREAD_H diff --git a/include/timer.h b/include/timer.h index e46a40feb..bcf36ff7d 100644 --- a/include/timer.h +++ b/include/timer.h @@ -3,10 +3,10 @@ * License.....: MIT */ -#ifndef _TIMER_H -#define _TIMER_H +#ifndef TIMER_H +#define TIMER_H void hc_timer_set (hc_timer_t *a); double hc_timer_get (hc_timer_t a); -#endif // _TIMER_H +#endif // TIMER_H diff --git a/include/tuningdb.h b/include/tuningdb.h index 6ca4355f3..9251f11c1 100644 --- a/include/tuningdb.h +++ b/include/tuningdb.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _TUNINGDB_H -#define _TUNINGDB_H +#ifndef TUNINGDB_H +#define 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 // TUNINGDB_H diff --git a/include/types.h b/include/types.h index ce5270c6b..c2f3bcd71 100644 --- a/include/types.h +++ b/include/types.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _TYPES_H -#define _TYPES_H +#ifndef TYPES_H +#define TYPES_H #include "common.h" @@ -3060,4 +3060,4 @@ typedef enum hash_category typedef aes_ctx AES_KEY; -#endif // _TYPES_H +#endif // TYPES_H diff --git a/include/usage.h b/include/usage.h index e3ffbca8b..32eac579d 100644 --- a/include/usage.h +++ b/include/usage.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _USAGE_H -#define _USAGE_H +#ifndef USAGE_H +#define 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 // USAGE_H diff --git a/include/user_options.h b/include/user_options.h index d20f6ad2d..3ee7fb0d9 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 USER_OPTIONS_H +#define 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 // USER_OPTIONS_H diff --git a/include/wordlist.h b/include/wordlist.h index 987e8bb67..4fc0c03df 100644 --- a/include/wordlist.h +++ b/include/wordlist.h @@ -3,8 +3,8 @@ * License.....: MIT */ -#ifndef _WORDLIST_H -#define _WORDLIST_H +#ifndef WORDLIST_H +#define 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 // WORDLIST_H