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
;
585 u32 salt
[5]; // unused, but makes better valid check
586 u32 iv
[2]; // unused, but makes better valid check
610 hashinfo_t
*hash_info
;
672 struct __stat64 stat
;
709 uint alignment_placeholder_1
;
710 uint alignment_placeholder_2
;
711 uint alignment_placeholder_3
;
784 #define CPT_BUF 0x20000
833 int workload_profile
;
842 tuning_db_alias_t
*alias_buf
;
845 tuning_db_entry_t
*entry_buf
;
850 #define RULES_MAX 256
853 #define PW_MAX1 (PW_MAX + 1)
854 #define PW_DICTMAX 31
855 #define PW_DICTMAX1 (PW_DICTMAX + 1)
858 struct __hc_device_param
861 cl_device_type device_type
;
866 uint platform_devices_id
; // for mapping with hms devices
872 uint kernel_exec_timeout
;
874 uint device_processors
;
875 uint device_processor_cores
;
876 u64 device_maxmem_alloc
;
877 u64 device_global_mem
;
878 u32 device_maxclock_frequency
;
885 uint kernel_power
; // these both are based on their _user counterpart
886 uint kernel_blocks
; // but are modified by autotuner and used inside crack loops
887 uint kernel_power_user
;
888 uint kernel_blocks_user
;
894 uint size_markov_css
;
901 uint (*pw_add
) (struct __hc_device_param
*, const u8
*, const uint
);
903 void (*pw_transpose
) (const pw_t
*, pw_t
*);
910 pw_cache_t
*pw_caches
;
928 u64 speed_cnt
[SPEED_CACHE
];
929 float speed_ms
[SPEED_CACHE
];
931 hc_timer_t speed_rec
[SPEED_CACHE
];
933 hc_timer_t timer_speed
;
935 // device specific attributes starting
938 char *device_name_chksum
;
939 char *device_version
;
940 char *driver_version
;
952 cl_kernel kernel_mp_l
;
953 cl_kernel kernel_mp_r
;
954 cl_kernel kernel_amp
;
957 cl_kernel kernel_weak
;
962 cl_program program_mp
;
963 cl_program program_amp
;
964 cl_program program_weak
;
966 cl_command_queue command_queue
;
969 cl_mem d_pws_amp_buf
;
970 cl_mem d_words_buf_l
;
971 cl_mem d_words_buf_r
;
979 cl_mem d_bitmap_s1_a
;
980 cl_mem d_bitmap_s1_b
;
981 cl_mem d_bitmap_s1_c
;
982 cl_mem d_bitmap_s1_d
;
983 cl_mem d_bitmap_s2_a
;
984 cl_mem d_bitmap_s2_b
;
985 cl_mem d_bitmap_s2_c
;
986 cl_mem d_bitmap_s2_d
;
988 cl_mem d_digests_buf
;
989 cl_mem d_digests_shown
;
992 cl_mem d_bcrypt_bufs
;
996 cl_mem d_scryptV_buf
;
997 cl_mem d_root_css_buf
;
998 cl_mem d_markov_css_buf
;
1000 void *kernel_params
[PARAMCNT
];
1001 void *kernel_params_mp
[PARAMCNT
];
1002 void *kernel_params_mp_r
[PARAMCNT
];
1003 void *kernel_params_mp_l
[PARAMCNT
];
1004 void *kernel_params_amp
[PARAMCNT
];
1005 void *kernel_params_tb
[PARAMCNT
];
1006 void *kernel_params_tm
[PARAMCNT
];
1008 u32 kernel_params_buf32
[PARAMCNT
];
1010 u32 kernel_params_mp_buf32
[PARAMCNT
];
1011 u64 kernel_params_mp_buf64
[PARAMCNT
];
1013 u32 kernel_params_mp_r_buf32
[PARAMCNT
];
1014 u64 kernel_params_mp_r_buf64
[PARAMCNT
];
1016 u32 kernel_params_mp_l_buf32
[PARAMCNT
];
1017 u64 kernel_params_mp_l_buf64
[PARAMCNT
];
1019 u32 kernel_params_amp_buf32
[PARAMCNT
];
1022 typedef struct __hc_device_param hc_device_param_t
;
1033 #if defined(HAVE_NVML) || defined(HAVE_NVAPI)
1042 // int busid; // used for CL_DEVICE_TOPOLOGY_AMD but broken for dual GPUs
1043 // int devid; // used for CL_DEVICE_TOPOLOGY_AMD but broken for dual GPUs
1046 #endif // HAVE_HWMON
1054 uint devices_status
;
1056 uint devices_active
;
1058 hc_device_param_t
*devices_param
;
1060 uint kernel_blocks_all
;
1068 uint hashlist_format
;
1074 uint kernel_rules_cnt
;
1076 kernel_rule_t
*kernel_rules_buf
;
1087 cs_t
*markov_css_buf
;
1095 * opencl library stuff
1107 hm_attrs_t hm_device
[DEVICES_MAX
];
1119 uint
*digests_shown
;
1120 uint
*digests_shown_tmp
;
1134 uint logfile_disable
;
1143 cpt_t cpt_buf
[CPT_BUF
];
1166 uint outfile_format
;
1167 uint outfile_autohex
;
1168 uint outfile_check_timer
;
1169 char *eff_restore_file
;
1170 char *new_restore_file
;
1171 char *induction_directory
;
1172 char *outfile_check_directory
;
1174 char *loopback_file
;
1177 uint restore_disable
;
1180 uint status_automat
;
1194 float kernel_blocks_div
;
1195 uint powertune_enable
;
1198 char *truecrypt_keyfiles
;
1215 uint gpu_temp_disable
;
1216 uint gpu_temp_abort
;
1217 uint gpu_temp_retain
;
1236 u64 checkpoint_cur_words
; // used for the "stop at next checkpoint" feature
1242 time_t runtime_start
;
1243 time_t runtime_stop
;
1252 u64
*words_progress_done
; // progress number of words done per salt
1253 u64
*words_progress_rejected
; // progress number of words rejected per salt
1254 u64
*words_progress_restored
; // progress number of words restored per salt
1256 hc_timer_t timer_running
; // timer on current dict
1257 hc_timer_t timer_paused
; // timer on current dict
1259 float ms_paused
; // timer on current dict
1262 * hash_info and username
1265 hashinfo_t
**hash_info
;
1268 int (*sort_by_digest
) (const void *, const void *);
1270 int (*parse_func
) (char *, uint
, hash_t
*);
1274 extern hc_global_data_t data
;