2 * Author......: Jens Steube <jens.steube@gmail.com>
72 uint cry_master_buf
[64];
74 uint public_key_buf
[64];
115 uint userdomain_buf
[64];
134 uint keyfile_buf
[16];
164 uint8_t cipher
[1040];
184 uint encryptedVerifier
[4];
185 uint encryptedVerifierHash
[5];
193 uint encryptedVerifier
[4];
194 uint encryptedVerifierHash
[8];
200 uint encryptedVerifier
[4];
201 uint encryptedVerifierHash
[8];
208 uint encryptedVerifier
[4];
209 uint encryptedVerifierHash
[4];
217 uint encryptedVerifier
[4];
218 uint encryptedVerifierHash
[5];
263 uint64_t l_alt_result
[8];
265 uint64_t l_p_bytes
[2];
266 uint64_t l_s_bytes
[2];
293 } bitcoin_wallet_tmp_t
;
438 uint64_t digest_buf
[8];
504 } pbkdf2_sha256_tmp_t
;
514 } pbkdf2_sha512_tmp_t
;
601 hashinfo_t
*hash_info
;
623 unsigned char mac1
[6];
624 unsigned char mac2
[6];
625 unsigned char nonce1
[32];
626 unsigned char nonce2
[32];
628 unsigned char eapol
[256];
632 unsigned char keymic
[16];
639 uint32_t salt_buf
[8];
641 uint32_t hash_buf
[8];
663 struct __stat64 stat
;
687 uint32_t hi4
[4][ 16];
691 uint32_t hi2
[2][ 32];
692 uint64_t hl2
[2][ 16];
695 uint32_t hi1
[1][ 64];
696 uint64_t hl1
[1][ 32];
700 uint alignment_placeholder_1
;
701 uint alignment_placeholder_2
;
702 uint alignment_placeholder_3
;
736 uint32_t version_bin
;
775 #define CPT_BUF 0x20000
812 #define RULES_MAX 256
815 #define PW_MAX1 (PW_MAX + 1)
816 #define PW_DICTMAX 31
817 #define PW_DICTMAX1 (PW_DICTMAX + 1)
819 struct __hc_device_param
825 uint kernel_exec_timeout
;
827 uint device_processors
;
828 uint device_processor_cores
;
829 uint64_t device_maxmem_alloc
;
833 uint kernel_power
; // these both are based on their _user counterpart
834 uint kernel_blocks
; // but are modified by autotuner and used inside crack loops
835 uint kernel_power_user
;
836 uint kernel_blocks_user
;
842 uint size_markov_css
;
849 uint (*pw_add
) (struct __hc_device_param
*, const uint8_t *, const uint
);
851 void (*pw_transpose
) (const pw_t
*, pw_t
*);
858 pw_cache_t
*pw_caches
;
876 uint64_t speed_cnt
[SPEED_CACHE
];
877 float speed_ms
[SPEED_CACHE
];
878 hc_timer_t speed_rec
[SPEED_CACHE
];
880 hc_timer_t timer_speed
;
882 // device specific attributes starting
885 char *device_name_chksum
;
886 char *device_version
;
887 char *driver_version
;
890 cl_device_type device_type
;
898 cl_kernel kernel_mp_l
;
899 cl_kernel kernel_mp_r
;
900 cl_kernel kernel_amp
;
907 cl_program program_mp
;
908 cl_program program_amp
;
910 cl_command_queue command_queue
;
913 cl_mem d_pws_amp_buf
;
914 cl_mem d_words_buf_l
;
915 cl_mem d_words_buf_r
;
923 cl_mem d_bitmap_s1_a
;
924 cl_mem d_bitmap_s1_b
;
925 cl_mem d_bitmap_s1_c
;
926 cl_mem d_bitmap_s1_d
;
927 cl_mem d_bitmap_s2_a
;
928 cl_mem d_bitmap_s2_b
;
929 cl_mem d_bitmap_s2_c
;
930 cl_mem d_bitmap_s2_d
;
932 cl_mem d_digests_buf
;
933 cl_mem d_digests_shown
;
936 cl_mem d_bcrypt_bufs
;
940 cl_mem d_scryptV_buf
;
941 cl_mem d_root_css_buf
;
942 cl_mem d_markov_css_buf
;
946 void *kernel_params
[PARAMCNT
];
947 void *kernel_params_mp
[PARAMCNT
];
948 void *kernel_params_mp_r
[PARAMCNT
];
949 void *kernel_params_mp_l
[PARAMCNT
];
950 void *kernel_params_amp
[PARAMCNT
];
951 void *kernel_params_tb
[PARAMCNT
];
952 void *kernel_params_tm
[PARAMCNT
];
954 uint32_t kernel_params_buf32
[PARAMCNT
];
956 uint32_t kernel_params_mp_buf32
[PARAMCNT
];
957 uint64_t kernel_params_mp_buf64
[PARAMCNT
];
959 uint32_t kernel_params_mp_r_buf32
[PARAMCNT
];
960 uint64_t kernel_params_mp_r_buf64
[PARAMCNT
];
962 uint32_t kernel_params_mp_l_buf32
[PARAMCNT
];
963 uint64_t kernel_params_mp_l_buf64
[PARAMCNT
];
965 uint32_t kernel_params_amp_buf32
[PARAMCNT
];
969 typedef struct __hc_device_param hc_device_param_t
;
982 // int busid; // used for CL_DEVICE_TOPOLOGY_AMD but broken for dual GPUs
983 // int devid; // used for CL_DEVICE_TOPOLOGY_AMD but broken for dual GPUs
997 hc_device_param_t
*devices_param
;
999 uint kernel_blocks_all
;
1007 uint hashlist_format
;
1013 uint kernel_rules_cnt
;
1014 kernel_rule_t
*kernel_rules_buf
;
1025 cs_t
*markov_css_buf
;
1037 hm_attrs_t hm_device
[DEVICES_MAX
];
1048 uint
*digests_shown
;
1049 uint
*digests_shown_tmp
;
1063 uint logfile_disable
;
1072 cpt_t cpt_buf
[CPT_BUF
];
1095 uint outfile_format
;
1096 uint outfile_autohex
;
1097 uint outfile_check_timer
;
1098 char *eff_restore_file
;
1099 char *new_restore_file
;
1100 char *induction_directory
;
1101 char *outfile_check_directory
;
1103 char *loopback_file
;
1106 uint restore_disable
;
1109 uint status_automat
;
1123 float kernel_blocks_div
;
1126 uint powertune_enable
;
1129 char *truecrypt_keyfiles
;
1145 uint gpu_temp_disable
;
1146 uint gpu_temp_abort
;
1147 uint gpu_temp_retain
;
1165 uint64_t checkpoint_cur_words
; // used for the "stop at next checkpoint" feature
1171 time_t runtime_start
;
1172 time_t runtime_stop
;
1179 uint64_t words_base
;
1181 uint64_t *words_progress_done
; // progress number of words done per salt
1182 uint64_t *words_progress_rejected
; // progress number of words rejected per salt
1183 uint64_t *words_progress_restored
; // progress number of words restored per salt
1185 hc_timer_t timer_running
; // timer on current dict
1186 hc_timer_t timer_paused
; // timer on current dict
1188 float ms_paused
; // timer on current dict
1191 * hash_info and username
1194 hashinfo_t
**hash_info
;
1197 int (*sort_by_digest
) (const void *, const void *);
1199 int (*parse_func
) (char *, uint
, hash_t
*);
1203 extern hc_global_data_t data
;