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];
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];
293 } bitcoin_wallet_tmp_t
;
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];
663 struct __stat64 stat
;
700 uint alignment_placeholder_1
;
701 uint alignment_placeholder_2
;
702 uint alignment_placeholder_3
;
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
822 cl_device_type device_type
;
825 uint platform_devices_id
; // for mapping with hms devices
831 uint kernel_exec_timeout
;
833 uint device_processors
;
834 uint device_processor_cores
;
835 u64 device_maxmem_alloc
;
836 u64 device_global_mem
;
837 u32 device_maxclock_frequency
;
843 uint kernel_power
; // these both are based on their _user counterpart
844 uint kernel_blocks
; // but are modified by autotuner and used inside crack loops
845 uint kernel_power_user
;
846 uint kernel_blocks_user
;
852 uint size_markov_css
;
859 uint (*pw_add
) (struct __hc_device_param
*, const u8
*, const uint
);
861 void (*pw_transpose
) (const pw_t
*, pw_t
*);
868 pw_cache_t
*pw_caches
;
886 u64 speed_cnt
[SPEED_CACHE
];
887 float speed_ms
[SPEED_CACHE
];
888 hc_timer_t speed_rec
[SPEED_CACHE
];
890 hc_timer_t timer_speed
;
892 // device specific attributes starting
895 char *device_name_chksum
;
896 char *device_version
;
897 char *driver_version
;
907 cl_kernel kernel_mp_l
;
908 cl_kernel kernel_mp_r
;
909 cl_kernel kernel_amp
;
912 cl_kernel kernel_weak
;
917 cl_program program_mp
;
918 cl_program program_amp
;
919 cl_program program_weak
;
921 cl_command_queue command_queue
;
924 cl_mem d_pws_amp_buf
;
925 cl_mem d_words_buf_l
;
926 cl_mem d_words_buf_r
;
934 cl_mem d_bitmap_s1_a
;
935 cl_mem d_bitmap_s1_b
;
936 cl_mem d_bitmap_s1_c
;
937 cl_mem d_bitmap_s1_d
;
938 cl_mem d_bitmap_s2_a
;
939 cl_mem d_bitmap_s2_b
;
940 cl_mem d_bitmap_s2_c
;
941 cl_mem d_bitmap_s2_d
;
943 cl_mem d_digests_buf
;
944 cl_mem d_digests_shown
;
947 cl_mem d_bcrypt_bufs
;
951 cl_mem d_scryptV_buf
;
952 cl_mem d_root_css_buf
;
953 cl_mem d_markov_css_buf
;
957 void *kernel_params
[PARAMCNT
];
958 void *kernel_params_mp
[PARAMCNT
];
959 void *kernel_params_mp_r
[PARAMCNT
];
960 void *kernel_params_mp_l
[PARAMCNT
];
961 void *kernel_params_amp
[PARAMCNT
];
962 void *kernel_params_tb
[PARAMCNT
];
963 void *kernel_params_tm
[PARAMCNT
];
965 u32 kernel_params_buf32
[PARAMCNT
];
967 u32 kernel_params_mp_buf32
[PARAMCNT
];
968 u64 kernel_params_mp_buf64
[PARAMCNT
];
970 u32 kernel_params_mp_r_buf32
[PARAMCNT
];
971 u64 kernel_params_mp_r_buf64
[PARAMCNT
];
973 u32 kernel_params_mp_l_buf32
[PARAMCNT
];
974 u64 kernel_params_mp_l_buf64
[PARAMCNT
];
976 u32 kernel_params_amp_buf32
[PARAMCNT
];
979 typedef struct __hc_device_param hc_device_param_t
;
990 #if defined(HAVE_NVML) || defined(HAVE_NVAPI)
1000 // int busid; // used for CL_DEVICE_TOPOLOGY_AMD but broken for dual GPUs
1001 // int devid; // used for CL_DEVICE_TOPOLOGY_AMD but broken for dual GPUs
1004 #endif // HAVE_HWMON
1012 uint devices_status
;
1014 uint devices_active
;
1015 hc_device_param_t
*devices_param
;
1017 uint kernel_blocks_all
;
1025 uint hashlist_format
;
1031 uint kernel_rules_cnt
;
1032 kernel_rule_t
*kernel_rules_buf
;
1043 cs_t
*markov_css_buf
;
1057 hm_attrs_t hm_device
[DEVICES_MAX
];
1069 uint
*digests_shown
;
1070 uint
*digests_shown_tmp
;
1084 uint logfile_disable
;
1093 cpt_t cpt_buf
[CPT_BUF
];
1116 uint outfile_format
;
1117 uint outfile_autohex
;
1118 uint outfile_check_timer
;
1119 char *eff_restore_file
;
1120 char *new_restore_file
;
1121 char *induction_directory
;
1122 char *outfile_check_directory
;
1124 char *loopback_file
;
1127 uint restore_disable
;
1130 uint status_automat
;
1144 float kernel_blocks_div
;
1147 uint powertune_enable
;
1150 char *truecrypt_keyfiles
;
1167 uint gpu_temp_disable
;
1168 uint gpu_temp_abort
;
1169 uint gpu_temp_retain
;
1188 u64 checkpoint_cur_words
; // used for the "stop at next checkpoint" feature
1194 time_t runtime_start
;
1195 time_t runtime_stop
;
1204 u64
*words_progress_done
; // progress number of words done per salt
1205 u64
*words_progress_rejected
; // progress number of words rejected per salt
1206 u64
*words_progress_restored
; // progress number of words restored per salt
1208 hc_timer_t timer_running
; // timer on current dict
1209 hc_timer_t timer_paused
; // timer on current dict
1211 float ms_paused
; // timer on current dict
1214 * hash_info and username
1217 hashinfo_t
**hash_info
;
1220 int (*sort_by_digest
) (const void *, const void *);
1222 int (*parse_func
) (char *, uint
, hash_t
*);
1226 extern hc_global_data_t data
;