Prepare rename macros in header files from _MACRO to MACRO

pull/3583/head
jsteube 1 year ago
parent 19cefb36d1
commit f1ff925b6e

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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)))

@ -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))))

@ -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

@ -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))

@ -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

@ -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))

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef _INC_SIMD_H
#define _INC_SIMD_H
#ifndef INC_SIMD_H
#define INC_SIMD_H
// vliw1

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

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

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

@ -3,12 +3,12 @@
* License.....: MIT
*/
#ifndef _BITMAP_H
#define _BITMAP_H
#ifndef BITMAP_H
#define BITMAP_H
#include <string.h>
int bitmap_ctx_init (hashcat_ctx_t *hashcat_ctx);
void bitmap_ctx_destroy (hashcat_ctx_t *hashcat_ctx);
#endif // _BITMAP_H
#endif // BITMAP_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

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

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

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

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

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

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

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

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef _DYNLOADER_H
#define _DYNLOADER_H
#ifndef DYNLOADER_H
#define DYNLOADER_H
#include <stdlib.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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -3,8 +3,8 @@
* License.....: MIT
*/
#ifndef _EVENT_H
#define _EVENT_H
#ifndef EVENT_H
#define EVENT_H
#include <stdio.h>
#include <stdarg.h>
@ -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

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

@ -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

@ -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

@ -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

@ -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 <IOKit/IOKitLib.h>
@ -126,4 +126,4 @@ bool iokit_init (void *hashcat_ctx);
bool iokit_close (void *hashcat_ctx);
#endif // __APPLE__
#endif // _EXT_IOKIT_H
#endif // EXT_IOKIT_H

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

@ -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

@ -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

@ -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

@ -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 <stdbool.h>
@ -35,4 +35,4 @@ int hm_SYSFS_AMDGPU_get_pp_dpm_mclk (void *hashcat_ctx, const int backend_device
int hm_SYSFS_AMDGPU_get_pp_dpm_pcie (void *hashcat_ctx, const int backend_device_idx, int *val);
int hm_SYSFS_AMDGPU_get_gpu_busy_percent (void *hashcat_ctx, const int backend_device_idx, int *val);
#endif // _EXT_SYSFS_AMDGPU_H
#endif // EXT_SYSFS_AMDGPU_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 <stdbool.h>
@ -54,4 +54,4 @@ int hm_SYSFS_CPU_get_temperature_current (void *hashcat_ctx, int *val);
bool read_proc_stat (void *hashcat_ctx, proc_stat_t *proc_stat);
int hm_SYSFS_CPU_get_utilization_current (void *hashcat_ctx, int *val);
#endif // _EXT_SYSFS_CPU_H
#endif // EXT_SYSFS_CPU_H

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

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

@ -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

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

@ -8,8 +8,8 @@
#include <sys/cygwin.h>
#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

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

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

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

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save