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];
132 uint account_info
[512];
143 uint keyfile_buf
[16];
193 uint encryptedVerifier
[4];
194 uint encryptedVerifierHash
[5];
202 uint encryptedVerifier
[4];
203 uint encryptedVerifierHash
[8];
209 uint encryptedVerifier
[4];
210 uint encryptedVerifierHash
[8];
217 uint encryptedVerifier
[4];
218 uint encryptedVerifierHash
[4];
226 uint encryptedVerifier
[4];
227 uint encryptedVerifierHash
[5];
302 } bitcoin_wallet_tmp_t
;
513 } pbkdf2_sha256_tmp_t
;
523 } pbkdf2_sha512_tmp_t
;
594 u32 salt
[5]; // unused, but makes better valid check
595 u32 iv
[2]; // unused, but makes better valid check
619 hashinfo_t
*hash_info
;
681 struct __stat64 stat
;
718 uint alignment_placeholder_1
;
719 uint alignment_placeholder_2
;
720 uint alignment_placeholder_3
;
793 #define CPT_BUF 0x20000
842 int workload_profile
;
851 tuning_db_alias_t
*alias_buf
;
854 tuning_db_entry_t
*entry_buf
;
859 #define RULES_MAX 256
862 #define PW_MAX1 (PW_MAX + 1)
863 #define PW_DICTMAX 31
864 #define PW_DICTMAX1 (PW_DICTMAX + 1)
867 struct __hc_device_param
870 cl_device_type device_type
;
873 uint platform_devices_id
; // for mapping with hms devices
879 uint kernel_exec_timeout
;
881 uint device_processors
;
882 uint device_processor_cores
;
883 u64 device_maxmem_alloc
;
884 u64 device_global_mem
;
885 u32 device_maxclock_frequency
;
892 uint kernel_loops_min
;
893 uint kernel_loops_max
;
894 uint kernel_accel_min
;
895 uint kernel_accel_max
;
897 uint kernel_power_user
;
903 uint size_markov_css
;
910 uint (*pw_add
) (struct __hc_device_param
*, const u8
*, const uint
);
912 void (*pw_transpose
) (const pw_t
*, pw_t
*);
919 pw_cache_t
*pw_caches
;
937 double exec_ms
[EXEC_CACHE
];
940 u64 speed_cnt
[SPEED_CACHE
];
941 float speed_ms
[SPEED_CACHE
];
943 hc_timer_t speed_rec
[SPEED_CACHE
];
945 hc_timer_t timer_speed
;
947 // device specific attributes starting
950 char *device_name_chksum
;
951 char *device_version
;
952 char *driver_version
;
964 cl_kernel kernel_mp_l
;
965 cl_kernel kernel_mp_r
;
966 cl_kernel kernel_amp
;
969 cl_kernel kernel_weak
;
974 cl_program program_mp
;
975 cl_program program_amp
;
976 cl_program program_weak
;
978 cl_command_queue command_queue
;
981 cl_mem d_pws_amp_buf
;
982 cl_mem d_words_buf_l
;
983 cl_mem d_words_buf_r
;
991 cl_mem d_bitmap_s1_a
;
992 cl_mem d_bitmap_s1_b
;
993 cl_mem d_bitmap_s1_c
;
994 cl_mem d_bitmap_s1_d
;
995 cl_mem d_bitmap_s2_a
;
996 cl_mem d_bitmap_s2_b
;
997 cl_mem d_bitmap_s2_c
;
998 cl_mem d_bitmap_s2_d
;
1000 cl_mem d_digests_buf
;
1001 cl_mem d_digests_shown
;
1003 cl_mem d_esalt_bufs
;
1004 cl_mem d_bcrypt_bufs
;
1008 cl_mem d_scryptV_buf
;
1009 cl_mem d_root_css_buf
;
1010 cl_mem d_markov_css_buf
;
1012 void *kernel_params
[PARAMCNT
];
1013 void *kernel_params_mp
[PARAMCNT
];
1014 void *kernel_params_mp_r
[PARAMCNT
];
1015 void *kernel_params_mp_l
[PARAMCNT
];
1016 void *kernel_params_amp
[PARAMCNT
];
1017 void *kernel_params_tb
[PARAMCNT
];
1018 void *kernel_params_tm
[PARAMCNT
];
1020 u32 kernel_params_buf32
[PARAMCNT
];
1022 u32 kernel_params_mp_buf32
[PARAMCNT
];
1023 u64 kernel_params_mp_buf64
[PARAMCNT
];
1025 u32 kernel_params_mp_r_buf32
[PARAMCNT
];
1026 u64 kernel_params_mp_r_buf64
[PARAMCNT
];
1028 u32 kernel_params_mp_l_buf32
[PARAMCNT
];
1029 u64 kernel_params_mp_l_buf64
[PARAMCNT
];
1031 u32 kernel_params_amp_buf32
[PARAMCNT
];
1034 typedef struct __hc_device_param hc_device_param_t
;
1045 #if defined(HAVE_NVML) || defined(HAVE_NVAPI)
1054 // int busid; // used for CL_DEVICE_TOPOLOGY_AMD but broken for dual GPUs
1055 // int devid; // used for CL_DEVICE_TOPOLOGY_AMD but broken for dual GPUs
1058 #endif // HAVE_HWMON
1066 uint devices_status
;
1068 uint devices_active
;
1070 hc_device_param_t
*devices_param
;
1076 uint kernel_power_all
;
1077 float kernel_power_div
;
1085 uint hashlist_format
;
1091 uint kernel_rules_cnt
;
1093 kernel_rule_t
*kernel_rules_buf
;
1104 cs_t
*markov_css_buf
;
1112 * opencl library stuff
1124 hm_attrs_t hm_device
[DEVICES_MAX
];
1136 uint
*digests_shown
;
1137 uint
*digests_shown_tmp
;
1151 uint logfile_disable
;
1160 cpt_t cpt_buf
[CPT_BUF
];
1183 uint outfile_format
;
1184 uint outfile_autohex
;
1185 uint outfile_check_timer
;
1186 char *eff_restore_file
;
1187 char *new_restore_file
;
1188 char *induction_directory
;
1189 char *outfile_check_directory
;
1191 char *loopback_file
;
1194 uint restore_disable
;
1197 uint status_automat
;
1201 uint benchmark_repeats
;
1212 uint powertune_enable
;
1215 char *truecrypt_keyfiles
;
1216 uint workload_profile
;
1233 uint gpu_temp_disable
;
1234 uint gpu_temp_abort
;
1235 uint gpu_temp_retain
;
1254 u64 checkpoint_cur_words
; // used for the "stop at next checkpoint" feature
1260 time_t runtime_start
;
1261 time_t runtime_stop
;
1270 u64
*words_progress_done
; // progress number of words done per salt
1271 u64
*words_progress_rejected
; // progress number of words rejected per salt
1272 u64
*words_progress_restored
; // progress number of words restored per salt
1274 hc_timer_t timer_running
; // timer on current dict
1275 hc_timer_t timer_paused
; // timer on current dict
1277 float ms_paused
; // timer on current dict
1280 * hash_info and username
1283 hashinfo_t
**hash_info
;
1286 int (*sort_by_digest
) (const void *, const void *);
1288 int (*parse_func
) (char *, uint
, hash_t
*);
1292 extern hc_global_data_t data
;