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
;
841 uint kernel_power
; // these both are based on their _user counterpart
842 uint kernel_blocks
; // but are modified by autotuner and used inside crack loops
843 uint kernel_power_user
;
844 uint kernel_blocks_user
;
850 uint size_markov_css
;
857 uint (*pw_add
) (struct __hc_device_param
*, const u8
*, const uint
);
859 void (*pw_transpose
) (const pw_t
*, pw_t
*);
866 pw_cache_t
*pw_caches
;
884 u64 speed_cnt
[SPEED_CACHE
];
885 float speed_ms
[SPEED_CACHE
];
886 hc_timer_t speed_rec
[SPEED_CACHE
];
888 hc_timer_t timer_speed
;
890 // device specific attributes starting
893 char *device_name_chksum
;
894 char *device_version
;
895 char *driver_version
;
905 cl_kernel kernel_mp_l
;
906 cl_kernel kernel_mp_r
;
907 cl_kernel kernel_amp
;
910 cl_kernel kernel_weak
;
915 cl_program program_mp
;
916 cl_program program_amp
;
917 cl_program program_weak
;
919 cl_command_queue command_queue
;
922 cl_mem d_pws_amp_buf
;
923 cl_mem d_words_buf_l
;
924 cl_mem d_words_buf_r
;
932 cl_mem d_bitmap_s1_a
;
933 cl_mem d_bitmap_s1_b
;
934 cl_mem d_bitmap_s1_c
;
935 cl_mem d_bitmap_s1_d
;
936 cl_mem d_bitmap_s2_a
;
937 cl_mem d_bitmap_s2_b
;
938 cl_mem d_bitmap_s2_c
;
939 cl_mem d_bitmap_s2_d
;
941 cl_mem d_digests_buf
;
942 cl_mem d_digests_shown
;
945 cl_mem d_bcrypt_bufs
;
949 cl_mem d_scryptV_buf
;
950 cl_mem d_root_css_buf
;
951 cl_mem d_markov_css_buf
;
955 void *kernel_params
[PARAMCNT
];
956 void *kernel_params_mp
[PARAMCNT
];
957 void *kernel_params_mp_r
[PARAMCNT
];
958 void *kernel_params_mp_l
[PARAMCNT
];
959 void *kernel_params_amp
[PARAMCNT
];
960 void *kernel_params_tb
[PARAMCNT
];
961 void *kernel_params_tm
[PARAMCNT
];
963 u32 kernel_params_buf32
[PARAMCNT
];
965 u32 kernel_params_mp_buf32
[PARAMCNT
];
966 u64 kernel_params_mp_buf64
[PARAMCNT
];
968 u32 kernel_params_mp_r_buf32
[PARAMCNT
];
969 u64 kernel_params_mp_r_buf64
[PARAMCNT
];
971 u32 kernel_params_mp_l_buf32
[PARAMCNT
];
972 u64 kernel_params_mp_l_buf64
[PARAMCNT
];
974 u32 kernel_params_amp_buf32
[PARAMCNT
];
977 typedef struct __hc_device_param hc_device_param_t
;
992 // int busid; // used for CL_DEVICE_TOPOLOGY_AMD but broken for dual GPUs
993 // int devid; // used for CL_DEVICE_TOPOLOGY_AMD but broken for dual GPUs
1003 uint devices_status
;
1005 uint devices_active
;
1006 hc_device_param_t
*devices_param
;
1008 uint kernel_blocks_all
;
1016 uint hashlist_format
;
1022 uint kernel_rules_cnt
;
1023 kernel_rule_t
*kernel_rules_buf
;
1034 cs_t
*markov_css_buf
;
1047 hm_attrs_t hm_device
[DEVICES_MAX
];
1058 uint
*digests_shown
;
1059 uint
*digests_shown_tmp
;
1073 uint logfile_disable
;
1082 cpt_t cpt_buf
[CPT_BUF
];
1105 uint outfile_format
;
1106 uint outfile_autohex
;
1107 uint outfile_check_timer
;
1108 char *eff_restore_file
;
1109 char *new_restore_file
;
1110 char *induction_directory
;
1111 char *outfile_check_directory
;
1113 char *loopback_file
;
1116 uint restore_disable
;
1119 uint status_automat
;
1133 float kernel_blocks_div
;
1136 uint powertune_enable
;
1139 char *truecrypt_keyfiles
;
1155 uint gpu_temp_disable
;
1156 uint gpu_temp_abort
;
1157 uint gpu_temp_retain
;
1175 u64 checkpoint_cur_words
; // used for the "stop at next checkpoint" feature
1181 time_t runtime_start
;
1182 time_t runtime_stop
;
1191 u64
*words_progress_done
; // progress number of words done per salt
1192 u64
*words_progress_rejected
; // progress number of words rejected per salt
1193 u64
*words_progress_restored
; // progress number of words restored per salt
1195 hc_timer_t timer_running
; // timer on current dict
1196 hc_timer_t timer_paused
; // timer on current dict
1198 float ms_paused
; // timer on current dict
1201 * hash_info and username
1204 hashinfo_t
**hash_info
;
1207 int (*sort_by_digest
) (const void *, const void *);
1209 int (*parse_func
) (char *, uint
, hash_t
*);
1213 extern hc_global_data_t data
;