2 * Author......: Jens Steube <jens.steube@gmail.com>
66 uint cry_master_buf
[64];
68 uint public_key_buf
[64];
109 uint userdomain_buf
[64];
128 uint keyfile_buf
[16];
158 uint8_t cipher
[1040];
178 uint encryptedVerifier
[4];
179 uint encryptedVerifierHash
[5];
187 uint encryptedVerifier
[4];
188 uint encryptedVerifierHash
[8];
194 uint encryptedVerifier
[4];
195 uint encryptedVerifierHash
[8];
202 uint encryptedVerifier
[4];
203 uint encryptedVerifierHash
[4];
211 uint encryptedVerifier
[4];
212 uint encryptedVerifierHash
[5];
257 uint64_t l_alt_result
[8];
259 uint64_t l_p_bytes
[2];
260 uint64_t l_s_bytes
[2];
287 } bitcoin_wallet_tmp_t
;
432 uint64_t digest_buf
[8];
498 } pbkdf2_sha256_tmp_t
;
508 } pbkdf2_sha512_tmp_t
;
595 hashinfo_t
*hash_info
;
617 unsigned char mac1
[6];
618 unsigned char mac2
[6];
619 unsigned char nonce1
[32];
620 unsigned char nonce2
[32];
622 unsigned char eapol
[256];
626 unsigned char keymic
[16];
633 uint32_t salt_buf
[8];
635 uint32_t hash_buf
[8];
657 struct __stat64 stat
;
681 uint32_t hi4
[4][ 16];
685 uint32_t hi2
[2][ 32];
686 uint64_t hl2
[2][ 16];
689 uint32_t hi1
[1][ 64];
690 uint64_t hl1
[1][ 32];
694 uint alignment_placeholder_1
;
695 uint alignment_placeholder_2
;
696 uint alignment_placeholder_3
;
730 uint32_t version_bin
;
769 #define CPT_BUF 0x20000
809 #define PW_MAX1 (PW_MAX + 1)
810 #define PW_DICTMAX 31
811 #define PW_DICTMAX1 (PW_DICTMAX + 1)
813 struct __hc_device_param
823 uint64_t gpu_maxmem_alloc
;
824 uint gpu_power
; // these both are based on their _user counterpart
825 uint gpu_blocks
; // but are modified by autotuner and used inside crack loops
827 uint gpu_blocks_user
;
833 uint size_markov_css
;
840 uint (*pw_add
) (struct __hc_device_param
*, const uint8_t *, const uint
);
842 void (*pw_transpose
) (const pw_t
*, pw_t
*);
849 pw_cache_t
*pw_caches
;
867 uint64_t speed_cnt
[SPEED_CACHE
];
868 float speed_ms
[SPEED_CACHE
];
869 hc_timer_t speed_rec
[SPEED_CACHE
];
871 hc_timer_t timer_speed
;
873 // device specific attributes starting
876 char *device_version
;
877 char *driver_version
;
887 cl_kernel kernel_mp_l
;
888 cl_kernel kernel_mp_r
;
889 cl_kernel kernel_amp
;
896 cl_program program_mp
;
897 cl_program program_amp
;
899 cl_command_queue command_queue
;
902 cl_mem d_pws_amp_buf
;
903 cl_mem d_words_buf_l
;
904 cl_mem d_words_buf_r
;
912 cl_mem d_bitmap_s1_a
;
913 cl_mem d_bitmap_s1_b
;
914 cl_mem d_bitmap_s1_c
;
915 cl_mem d_bitmap_s1_d
;
916 cl_mem d_bitmap_s2_a
;
917 cl_mem d_bitmap_s2_b
;
918 cl_mem d_bitmap_s2_c
;
919 cl_mem d_bitmap_s2_d
;
921 cl_mem d_digests_buf
;
922 cl_mem d_digests_shown
;
925 cl_mem d_bcrypt_bufs
;
929 cl_mem d_scryptV_buf
;
930 cl_mem d_root_css_buf
;
931 cl_mem d_markov_css_buf
;
935 void *kernel_params
[PARAMCNT
];
936 void *kernel_params_mp
[PARAMCNT
];
937 void *kernel_params_mp_r
[PARAMCNT
];
938 void *kernel_params_mp_l
[PARAMCNT
];
939 void *kernel_params_amp
[PARAMCNT
];
940 void *kernel_params_tb
[PARAMCNT
];
941 void *kernel_params_tm
[PARAMCNT
];
943 uint32_t kernel_params_buf32
[PARAMCNT
];
945 uint32_t kernel_params_mp_buf32
[PARAMCNT
];
946 uint64_t kernel_params_mp_buf64
[PARAMCNT
];
948 uint32_t kernel_params_mp_r_buf32
[PARAMCNT
];
949 uint64_t kernel_params_mp_r_buf64
[PARAMCNT
];
951 uint32_t kernel_params_mp_l_buf32
[PARAMCNT
];
952 uint64_t kernel_params_mp_l_buf64
[PARAMCNT
];
954 uint32_t kernel_params_amp_buf32
[PARAMCNT
];
958 typedef struct __hc_device_param hc_device_param_t
;
971 // int busid; // used for CL_DEVICE_TOPOLOGY_AMD but broken for dual GPUs
972 // int devid; // used for CL_DEVICE_TOPOLOGY_AMD but broken for dual GPUs
986 hc_device_param_t
*devices_param
;
996 uint hashlist_format
;
1003 gpu_rule_t
*gpu_rules_buf
;
1014 cs_t
*markov_css_buf
;
1026 hm_attrs_t hm_device
[DEVICES_MAX
];
1037 uint
*digests_shown
;
1038 uint
*digests_shown_tmp
;
1052 uint logfile_disable
;
1061 cpt_t cpt_buf
[CPT_BUF
];
1083 uint outfile_format
;
1084 uint outfile_autohex
;
1085 uint outfile_check_timer
;
1086 char *eff_restore_file
;
1087 char *new_restore_file
;
1088 char *induction_directory
;
1089 char *outfile_check_directory
;
1091 char *loopback_file
;
1094 uint restore_disable
;
1097 uint status_automat
;
1111 float gpu_blocks_div
;
1114 uint powertune_enable
;
1117 char *truecrypt_keyfiles
;
1133 uint gpu_temp_disable
;
1134 uint gpu_temp_abort
;
1135 uint gpu_temp_retain
;
1153 uint64_t checkpoint_cur_words
; // used for the "stop at next checkpoint" feature
1159 time_t runtime_start
;
1160 time_t runtime_stop
;
1167 uint64_t words_base
;
1169 uint64_t *words_progress_done
; // progress number of words done per salt
1170 uint64_t *words_progress_rejected
; // progress number of words rejected per salt
1171 uint64_t *words_progress_restored
; // progress number of words restored per salt
1173 hc_timer_t timer_running
; // timer on current dict
1174 hc_timer_t timer_paused
; // timer on current dict
1176 float ms_paused
; // timer on current dict
1179 * hash_info and username
1182 hashinfo_t
**hash_info
;
1185 int (*sort_by_digest
) (const void *, const void *);
1187 int (*parse_func
) (char *, uint
, hash_t
*);
1191 extern hc_global_data_t data
;