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
806 #define RULES_MAX 256
809 #define PW_MAX1 (PW_MAX + 1)
810 #define PW_DICTMAX 31
811 #define PW_DICTMAX1 (PW_DICTMAX + 1)
813 struct __hc_device_param
819 uint kernel_exec_timeout
;
822 uint gpu_processor_cores
;
825 uint64_t gpu_maxmem_alloc
;
826 uint gpu_power
; // these both are based on their _user counterpart
827 uint gpu_blocks
; // but are modified by autotuner and used inside crack loops
829 uint gpu_blocks_user
;
835 uint size_markov_css
;
842 uint (*pw_add
) (struct __hc_device_param
*, const uint8_t *, const uint
);
844 void (*pw_transpose
) (const pw_t
*, pw_t
*);
851 pw_cache_t
*pw_caches
;
869 uint64_t speed_cnt
[SPEED_CACHE
];
870 float speed_ms
[SPEED_CACHE
];
871 hc_timer_t speed_rec
[SPEED_CACHE
];
873 hc_timer_t timer_speed
;
875 // device specific attributes starting
878 char *device_name_chksum
;
879 char *device_version
;
880 char *driver_version
;
883 cl_device_type device_type
;
891 cl_kernel kernel_mp_l
;
892 cl_kernel kernel_mp_r
;
893 cl_kernel kernel_amp
;
900 cl_program program_mp
;
901 cl_program program_amp
;
903 cl_command_queue command_queue
;
906 cl_mem d_pws_amp_buf
;
907 cl_mem d_words_buf_l
;
908 cl_mem d_words_buf_r
;
916 cl_mem d_bitmap_s1_a
;
917 cl_mem d_bitmap_s1_b
;
918 cl_mem d_bitmap_s1_c
;
919 cl_mem d_bitmap_s1_d
;
920 cl_mem d_bitmap_s2_a
;
921 cl_mem d_bitmap_s2_b
;
922 cl_mem d_bitmap_s2_c
;
923 cl_mem d_bitmap_s2_d
;
925 cl_mem d_digests_buf
;
926 cl_mem d_digests_shown
;
929 cl_mem d_bcrypt_bufs
;
933 cl_mem d_scryptV_buf
;
934 cl_mem d_root_css_buf
;
935 cl_mem d_markov_css_buf
;
939 void *kernel_params
[PARAMCNT
];
940 void *kernel_params_mp
[PARAMCNT
];
941 void *kernel_params_mp_r
[PARAMCNT
];
942 void *kernel_params_mp_l
[PARAMCNT
];
943 void *kernel_params_amp
[PARAMCNT
];
944 void *kernel_params_tb
[PARAMCNT
];
945 void *kernel_params_tm
[PARAMCNT
];
947 uint32_t kernel_params_buf32
[PARAMCNT
];
949 uint32_t kernel_params_mp_buf32
[PARAMCNT
];
950 uint64_t kernel_params_mp_buf64
[PARAMCNT
];
952 uint32_t kernel_params_mp_r_buf32
[PARAMCNT
];
953 uint64_t kernel_params_mp_r_buf64
[PARAMCNT
];
955 uint32_t kernel_params_mp_l_buf32
[PARAMCNT
];
956 uint64_t kernel_params_mp_l_buf64
[PARAMCNT
];
958 uint32_t kernel_params_amp_buf32
[PARAMCNT
];
962 typedef struct __hc_device_param hc_device_param_t
;
975 // int busid; // used for CL_DEVICE_TOPOLOGY_AMD but broken for dual GPUs
976 // int devid; // used for CL_DEVICE_TOPOLOGY_AMD but broken for dual GPUs
990 hc_device_param_t
*devices_param
;
1000 uint hashlist_format
;
1007 gpu_rule_t
*gpu_rules_buf
;
1018 cs_t
*markov_css_buf
;
1030 hm_attrs_t hm_device
[DEVICES_MAX
];
1041 uint
*digests_shown
;
1042 uint
*digests_shown_tmp
;
1056 uint logfile_disable
;
1065 cpt_t cpt_buf
[CPT_BUF
];
1088 uint outfile_format
;
1089 uint outfile_autohex
;
1090 uint outfile_check_timer
;
1091 char *eff_restore_file
;
1092 char *new_restore_file
;
1093 char *induction_directory
;
1094 char *outfile_check_directory
;
1096 char *loopback_file
;
1099 uint restore_disable
;
1102 uint status_automat
;
1116 float gpu_blocks_div
;
1119 uint powertune_enable
;
1122 char *truecrypt_keyfiles
;
1138 uint gpu_temp_disable
;
1139 uint gpu_temp_abort
;
1140 uint gpu_temp_retain
;
1158 uint64_t checkpoint_cur_words
; // used for the "stop at next checkpoint" feature
1164 time_t runtime_start
;
1165 time_t runtime_stop
;
1172 uint64_t words_base
;
1174 uint64_t *words_progress_done
; // progress number of words done per salt
1175 uint64_t *words_progress_rejected
; // progress number of words rejected per salt
1176 uint64_t *words_progress_restored
; // progress number of words restored per salt
1178 hc_timer_t timer_running
; // timer on current dict
1179 hc_timer_t timer_paused
; // timer on current dict
1181 float ms_paused
; // timer on current dict
1184 * hash_info and username
1187 hashinfo_t
**hash_info
;
1190 int (*sort_by_digest
) (const void *, const void *);
1192 int (*parse_func
) (char *, uint
, hash_t
*);
1196 extern hc_global_data_t data
;