1 /**
2 * Author......: See docs/credits.txt
3 * License.....: MIT
4 */
5
6 #include "common.h"
7 #include "types.h"
8 #include "modules.h"
9 #include "bitops.h"
10 #include "convert.h"
11 #include "shared.h"
12
13 static const u32 ATTACK_EXEC = ATTACK_EXEC_INSIDE_KERNEL;
14 static const u32 DGST_POS0 = 0;
15 static const u32 DGST_POS1 = 1;
16 static const u32 DGST_POS2 = 2;
17 static const u32 DGST_POS3 = 3;
18 static const u32 DGST_SIZE = DGST_SIZE_4_4;
19 static const u32 HASH_CATEGORY = HASH_CATEGORY_DOCUMENTS;
20 static const char *HASH_NAME = "PDF 1.1 - 1.3 (Acrobat 2 - 4), collider #1";
21 static const u64 KERN_TYPE = 10410;
22 static const u32 OPTI_TYPE = OPTI_TYPE_ZERO_BYTE
23 | OPTI_TYPE_NOT_ITERATED;
24 static const u64 OPTS_TYPE = OPTS_TYPE_PT_GENERATE_LE
25 | OPTS_TYPE_PT_ALWAYS_HEXIFY;
26 static const u32 SALT_TYPE = SALT_TYPE_EMBEDDED;
27 static const char *ST_PASS = "\x6a\x8a\xed\xcc\xb7";
28 static const char *ST_HASH = "$pdf$1*2*40*-1*0*16*01221086741440841668371056103222*32*27c3fecef6d46a78eb61b8b4dbc690f5f8a2912bbb9afc842c12d79481568b74*32*0000000000000000000000000000000000000000000000000000000000000000";
29
module_attack_exec(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra)30 u32 module_attack_exec (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { return ATTACK_EXEC; }
module_dgst_pos0(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra)31 u32 module_dgst_pos0 (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { return DGST_POS0; }
module_dgst_pos1(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra)32 u32 module_dgst_pos1 (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { return DGST_POS1; }
module_dgst_pos2(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra)33 u32 module_dgst_pos2 (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { return DGST_POS2; }
module_dgst_pos3(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra)34 u32 module_dgst_pos3 (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { return DGST_POS3; }
module_dgst_size(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra)35 u32 module_dgst_size (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { return DGST_SIZE; }
module_hash_category(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra)36 u32 module_hash_category (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { return HASH_CATEGORY; }
module_hash_name(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra)37 const char *module_hash_name (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { return HASH_NAME; }
module_kern_type(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra)38 u64 module_kern_type (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { return KERN_TYPE; }
module_opti_type(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra)39 u32 module_opti_type (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { return OPTI_TYPE; }
module_opts_type(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra)40 u64 module_opts_type (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { return OPTS_TYPE; }
module_salt_type(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra)41 u32 module_salt_type (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { return SALT_TYPE; }
module_st_hash(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra)42 const char *module_st_hash (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { return ST_HASH; }
module_st_pass(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra)43 const char *module_st_pass (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { return ST_PASS; }
44
45 typedef struct pdf
46 {
47 int V;
48 int R;
49 int P;
50
51 int enc_md;
52
53 u32 id_buf[8];
54 u32 u_buf[32];
55 u32 o_buf[32];
56
57 int id_len;
58 int o_len;
59 int u_len;
60
61 u32 rc4key[2];
62 u32 rc4data[2];
63
64 } pdf_t;
65
66 static const char *SIGNATURE_PDF = "$pdf$";
67
module_jit_build_options(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra,MAYBE_UNUSED const hashes_t * hashes,MAYBE_UNUSED const hc_device_param_t * device_param)68 char *module_jit_build_options (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra, MAYBE_UNUSED const hashes_t *hashes, MAYBE_UNUSED const hc_device_param_t *device_param)
69 {
70 char *jit_build_options = NULL;
71
72 u32 native_threads = 0;
73
74 if (device_param->opencl_device_type & CL_DEVICE_TYPE_CPU)
75 {
76 native_threads = 1;
77 }
78 else if (device_param->opencl_device_type & CL_DEVICE_TYPE_GPU)
79 {
80 if (device_param->device_local_mem_size < 49152)
81 {
82 native_threads = MIN (device_param->kernel_preferred_wgs_multiple, 32); // We can't just set 32, because Intel GPU need 8
83 }
84 else
85 {
86 native_threads = device_param->kernel_preferred_wgs_multiple;
87 }
88 }
89
90 hc_asprintf (&jit_build_options, "-D FIXED_LOCAL_SIZE=%u -D _unroll", native_threads);
91
92 return jit_build_options;
93 }
94
module_esalt_size(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra)95 u64 module_esalt_size (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra)
96 {
97 const u64 esalt_size = (const u64) sizeof (pdf_t);
98
99 return esalt_size;
100 }
101
module_pw_min(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra)102 u32 module_pw_min (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra)
103 {
104 const u32 pw_min = 5; // RC4-40 fixed
105
106 return pw_min;
107 }
108
module_pw_max(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra)109 u32 module_pw_max (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra)
110 {
111 const u32 pw_max = 5; // RC4-40 fixed
112
113 return pw_max;
114 }
115
module_benchmark_mask(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra)116 const char *module_benchmark_mask (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra)
117 {
118 return "?b?b?b?b?b";
119 }
120
module_forced_outfile_format(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const user_options_t * user_options,MAYBE_UNUSED const user_options_extra_t * user_options_extra)121 u32 module_forced_outfile_format (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra)
122 {
123 const u32 forced_outfile_format = OUTFILE_FMT_HASH | OUTFILE_FMT_HEXPLAIN;
124
125 return forced_outfile_format;
126 }
127
module_hash_decode(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED void * digest_buf,MAYBE_UNUSED salt_t * salt,MAYBE_UNUSED void * esalt_buf,MAYBE_UNUSED void * hook_salt_buf,MAYBE_UNUSED hashinfo_t * hash_info,const char * line_buf,MAYBE_UNUSED const int line_len)128 int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED void *digest_buf, MAYBE_UNUSED salt_t *salt, MAYBE_UNUSED void *esalt_buf, MAYBE_UNUSED void *hook_salt_buf, MAYBE_UNUSED hashinfo_t *hash_info, const char *line_buf, MAYBE_UNUSED const int line_len)
129 {
130 u32 *digest = (u32 *) digest_buf;
131
132 pdf_t *pdf = (pdf_t *) esalt_buf;
133
134 token_t token;
135
136 token.token_cnt = 12;
137
138 token.signatures_cnt = 1;
139 token.signatures_buf[0] = SIGNATURE_PDF;
140
141 token.len[0] = 5;
142 token.attr[0] = TOKEN_ATTR_FIXED_LENGTH
143 | TOKEN_ATTR_VERIFY_SIGNATURE;
144
145 token.len_min[1] = 1;
146 token.len_max[1] = 1;
147 token.sep[1] = '*';
148 token.attr[1] = TOKEN_ATTR_VERIFY_LENGTH
149 | TOKEN_ATTR_VERIFY_DIGIT;
150
151 token.len_min[2] = 1;
152 token.len_max[2] = 1;
153 token.sep[2] = '*';
154 token.attr[2] = TOKEN_ATTR_VERIFY_LENGTH
155 | TOKEN_ATTR_VERIFY_DIGIT;
156
157 token.len_min[3] = 2;
158 token.len_max[3] = 2;
159 token.sep[3] = '*';
160 token.attr[3] = TOKEN_ATTR_VERIFY_LENGTH
161 | TOKEN_ATTR_VERIFY_DIGIT;
162
163 token.len_min[4] = 1;
164 token.len_max[4] = 6;
165 token.sep[4] = '*';
166 token.attr[4] = TOKEN_ATTR_VERIFY_LENGTH;
167
168 token.len_min[5] = 1;
169 token.len_max[5] = 1;
170 token.sep[5] = '*';
171 token.attr[5] = TOKEN_ATTR_VERIFY_LENGTH
172 | TOKEN_ATTR_VERIFY_DIGIT;
173
174 token.len_min[6] = 2;
175 token.len_max[6] = 2;
176 token.sep[6] = '*';
177 token.attr[6] = TOKEN_ATTR_VERIFY_LENGTH
178 | TOKEN_ATTR_VERIFY_DIGIT;
179
180 token.len_min[7] = 32;
181 token.len_max[7] = 32;
182 token.sep[7] = '*';
183 token.attr[7] = TOKEN_ATTR_VERIFY_LENGTH
184 | TOKEN_ATTR_VERIFY_HEX;
185
186 token.len_min[8] = 2;
187 token.len_max[8] = 2;
188 token.sep[8] = '*';
189 token.attr[8] = TOKEN_ATTR_VERIFY_LENGTH
190 | TOKEN_ATTR_VERIFY_DIGIT;
191
192 token.len_min[9] = 64;
193 token.len_max[9] = 64;
194 token.sep[9] = '*';
195 token.attr[9] = TOKEN_ATTR_VERIFY_LENGTH
196 | TOKEN_ATTR_VERIFY_HEX;
197
198 token.len_min[10] = 2;
199 token.len_max[10] = 2;
200 token.sep[10] = '*';
201 token.attr[10] = TOKEN_ATTR_VERIFY_LENGTH
202 | TOKEN_ATTR_VERIFY_DIGIT;
203
204 token.len_min[11] = 64;
205 token.len_max[11] = 64;
206 token.sep[11] = '*';
207 token.attr[11] = TOKEN_ATTR_VERIFY_LENGTH
208 | TOKEN_ATTR_VERIFY_HEX;
209
210 const int rc_tokenizer = input_tokenizer ((const u8 *) line_buf, line_len, &token);
211
212 if (rc_tokenizer != PARSER_OK) return (rc_tokenizer);
213
214 const u8 *V_pos = token.buf[1];
215 const u8 *R_pos = token.buf[2];
216 const u8 *bits_pos = token.buf[3];
217 const u8 *P_pos = token.buf[4];
218 const u8 *enc_md_pos = token.buf[5];
219 const u8 *id_len_pos = token.buf[6];
220 const u8 *id_buf_pos = token.buf[7];
221 const u8 *u_len_pos = token.buf[8];
222 const u8 *u_buf_pos = token.buf[9];
223 const u8 *o_len_pos = token.buf[10];
224 const u8 *o_buf_pos = token.buf[11];
225
226 // validate data
227
228 const int V = strtol ((const char *) V_pos, NULL, 10);
229 const int R = strtol ((const char *) R_pos, NULL, 10);
230 const int P = strtol ((const char *) P_pos, NULL, 10);
231
232 if (V != 1) return (PARSER_SALT_VALUE);
233 if (R != 2) return (PARSER_SALT_VALUE);
234
235 const int enc_md = strtol ((const char *) enc_md_pos, NULL, 10);
236
237 if ((enc_md != 0) && (enc_md != 1)) return (PARSER_SALT_VALUE);
238
239 const int id_len = strtol ((const char *) id_len_pos, NULL, 10);
240 const int u_len = strtol ((const char *) u_len_pos, NULL, 10);
241 const int o_len = strtol ((const char *) o_len_pos, NULL, 10);
242
243 if (id_len != 16) return (PARSER_SALT_VALUE);
244 if (u_len != 32) return (PARSER_SALT_VALUE);
245 if (o_len != 32) return (PARSER_SALT_VALUE);
246
247 const int bits = strtol ((const char *) bits_pos, NULL, 10);
248
249 if (bits != 40) return (PARSER_SALT_VALUE);
250
251 // copy data to esalt
252
253 pdf->V = V;
254 pdf->R = R;
255 pdf->P = P;
256
257 pdf->enc_md = enc_md;
258
259 pdf->id_buf[0] = hex_to_u32 (id_buf_pos + 0);
260 pdf->id_buf[1] = hex_to_u32 (id_buf_pos + 8);
261 pdf->id_buf[2] = hex_to_u32 (id_buf_pos + 16);
262 pdf->id_buf[3] = hex_to_u32 (id_buf_pos + 24);
263 pdf->id_len = id_len;
264
265 pdf->u_buf[0] = hex_to_u32 (u_buf_pos + 0);
266 pdf->u_buf[1] = hex_to_u32 (u_buf_pos + 8);
267 pdf->u_buf[2] = hex_to_u32 (u_buf_pos + 16);
268 pdf->u_buf[3] = hex_to_u32 (u_buf_pos + 24);
269 pdf->u_buf[4] = hex_to_u32 (u_buf_pos + 32);
270 pdf->u_buf[5] = hex_to_u32 (u_buf_pos + 40);
271 pdf->u_buf[6] = hex_to_u32 (u_buf_pos + 48);
272 pdf->u_buf[7] = hex_to_u32 (u_buf_pos + 56);
273 pdf->u_len = u_len;
274
275 pdf->o_buf[0] = hex_to_u32 (o_buf_pos + 0);
276 pdf->o_buf[1] = hex_to_u32 (o_buf_pos + 8);
277 pdf->o_buf[2] = hex_to_u32 (o_buf_pos + 16);
278 pdf->o_buf[3] = hex_to_u32 (o_buf_pos + 24);
279 pdf->o_buf[4] = hex_to_u32 (o_buf_pos + 32);
280 pdf->o_buf[5] = hex_to_u32 (o_buf_pos + 40);
281 pdf->o_buf[6] = hex_to_u32 (o_buf_pos + 48);
282 pdf->o_buf[7] = hex_to_u32 (o_buf_pos + 56);
283 pdf->o_len = o_len;
284
285 // we use ID for salt, maybe needs to change, we will see...
286
287 salt->salt_buf[0] = pdf->id_buf[0];
288 salt->salt_buf[1] = pdf->id_buf[1];
289 salt->salt_buf[2] = pdf->id_buf[2];
290 salt->salt_buf[3] = pdf->id_buf[3];
291 salt->salt_len = pdf->id_len;
292
293 digest[0] = pdf->u_buf[0];
294 digest[1] = pdf->u_buf[1];
295 digest[2] = pdf->u_buf[2];
296 digest[3] = pdf->u_buf[3];
297
298 return (PARSER_OK);
299 }
300
module_hash_encode(MAYBE_UNUSED const hashconfig_t * hashconfig,MAYBE_UNUSED const void * digest_buf,MAYBE_UNUSED const salt_t * salt,MAYBE_UNUSED const void * esalt_buf,MAYBE_UNUSED const void * hook_salt_buf,MAYBE_UNUSED const hashinfo_t * hash_info,char * line_buf,MAYBE_UNUSED const int line_size)301 int module_hash_encode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const void *digest_buf, MAYBE_UNUSED const salt_t *salt, MAYBE_UNUSED const void *esalt_buf, MAYBE_UNUSED const void *hook_salt_buf, MAYBE_UNUSED const hashinfo_t *hash_info, char *line_buf, MAYBE_UNUSED const int line_size)
302 {
303 const pdf_t *pdf = (const pdf_t *) esalt_buf;
304
305 const int line_len = snprintf (line_buf, line_size, "$pdf$%d*%d*%d*%d*%d*%d*%08x%08x%08x%08x*%d*%08x%08x%08x%08x%08x%08x%08x%08x*%d*%08x%08x%08x%08x%08x%08x%08x%08x",
306 pdf->V,
307 pdf->R,
308 40,
309 pdf->P,
310 pdf->enc_md,
311 pdf->id_len,
312 byte_swap_32 (pdf->id_buf[0]),
313 byte_swap_32 (pdf->id_buf[1]),
314 byte_swap_32 (pdf->id_buf[2]),
315 byte_swap_32 (pdf->id_buf[3]),
316 pdf->u_len,
317 byte_swap_32 (pdf->u_buf[0]),
318 byte_swap_32 (pdf->u_buf[1]),
319 byte_swap_32 (pdf->u_buf[2]),
320 byte_swap_32 (pdf->u_buf[3]),
321 byte_swap_32 (pdf->u_buf[4]),
322 byte_swap_32 (pdf->u_buf[5]),
323 byte_swap_32 (pdf->u_buf[6]),
324 byte_swap_32 (pdf->u_buf[7]),
325 pdf->o_len,
326 byte_swap_32 (pdf->o_buf[0]),
327 byte_swap_32 (pdf->o_buf[1]),
328 byte_swap_32 (pdf->o_buf[2]),
329 byte_swap_32 (pdf->o_buf[3]),
330 byte_swap_32 (pdf->o_buf[4]),
331 byte_swap_32 (pdf->o_buf[5]),
332 byte_swap_32 (pdf->o_buf[6]),
333 byte_swap_32 (pdf->o_buf[7])
334 );
335
336 return line_len;
337 }
338
module_init(module_ctx_t * module_ctx)339 void module_init (module_ctx_t *module_ctx)
340 {
341 module_ctx->module_context_size = MODULE_CONTEXT_SIZE_CURRENT;
342 module_ctx->module_interface_version = MODULE_INTERFACE_VERSION_CURRENT;
343
344 module_ctx->module_attack_exec = module_attack_exec;
345 module_ctx->module_benchmark_esalt = MODULE_DEFAULT;
346 module_ctx->module_benchmark_hook_salt = MODULE_DEFAULT;
347 module_ctx->module_benchmark_mask = module_benchmark_mask;
348 module_ctx->module_benchmark_salt = MODULE_DEFAULT;
349 module_ctx->module_build_plain_postprocess = MODULE_DEFAULT;
350 module_ctx->module_deep_comp_kernel = MODULE_DEFAULT;
351 module_ctx->module_deprecated_notice = MODULE_DEFAULT;
352 module_ctx->module_dgst_pos0 = module_dgst_pos0;
353 module_ctx->module_dgst_pos1 = module_dgst_pos1;
354 module_ctx->module_dgst_pos2 = module_dgst_pos2;
355 module_ctx->module_dgst_pos3 = module_dgst_pos3;
356 module_ctx->module_dgst_size = module_dgst_size;
357 module_ctx->module_dictstat_disable = MODULE_DEFAULT;
358 module_ctx->module_esalt_size = module_esalt_size;
359 module_ctx->module_extra_buffer_size = MODULE_DEFAULT;
360 module_ctx->module_extra_tmp_size = MODULE_DEFAULT;
361 module_ctx->module_extra_tuningdb_block = MODULE_DEFAULT;
362 module_ctx->module_forced_outfile_format = module_forced_outfile_format;
363 module_ctx->module_hash_binary_count = MODULE_DEFAULT;
364 module_ctx->module_hash_binary_parse = MODULE_DEFAULT;
365 module_ctx->module_hash_binary_save = MODULE_DEFAULT;
366 module_ctx->module_hash_decode_potfile = MODULE_DEFAULT;
367 module_ctx->module_hash_decode_zero_hash = MODULE_DEFAULT;
368 module_ctx->module_hash_decode = module_hash_decode;
369 module_ctx->module_hash_encode_status = MODULE_DEFAULT;
370 module_ctx->module_hash_encode_potfile = MODULE_DEFAULT;
371 module_ctx->module_hash_encode = module_hash_encode;
372 module_ctx->module_hash_init_selftest = MODULE_DEFAULT;
373 module_ctx->module_hash_mode = MODULE_DEFAULT;
374 module_ctx->module_hash_category = module_hash_category;
375 module_ctx->module_hash_name = module_hash_name;
376 module_ctx->module_hashes_count_min = MODULE_DEFAULT;
377 module_ctx->module_hashes_count_max = MODULE_DEFAULT;
378 module_ctx->module_hlfmt_disable = MODULE_DEFAULT;
379 module_ctx->module_hook_extra_param_size = MODULE_DEFAULT;
380 module_ctx->module_hook_extra_param_init = MODULE_DEFAULT;
381 module_ctx->module_hook_extra_param_term = MODULE_DEFAULT;
382 module_ctx->module_hook12 = MODULE_DEFAULT;
383 module_ctx->module_hook23 = MODULE_DEFAULT;
384 module_ctx->module_hook_salt_size = MODULE_DEFAULT;
385 module_ctx->module_hook_size = MODULE_DEFAULT;
386 module_ctx->module_jit_build_options = module_jit_build_options;
387 module_ctx->module_jit_cache_disable = MODULE_DEFAULT;
388 module_ctx->module_kernel_accel_max = MODULE_DEFAULT;
389 module_ctx->module_kernel_accel_min = MODULE_DEFAULT;
390 module_ctx->module_kernel_loops_max = MODULE_DEFAULT;
391 module_ctx->module_kernel_loops_min = MODULE_DEFAULT;
392 module_ctx->module_kernel_threads_max = MODULE_DEFAULT;
393 module_ctx->module_kernel_threads_min = MODULE_DEFAULT;
394 module_ctx->module_kern_type = module_kern_type;
395 module_ctx->module_kern_type_dynamic = MODULE_DEFAULT;
396 module_ctx->module_opti_type = module_opti_type;
397 module_ctx->module_opts_type = module_opts_type;
398 module_ctx->module_outfile_check_disable = MODULE_DEFAULT;
399 module_ctx->module_outfile_check_nocomp = MODULE_DEFAULT;
400 module_ctx->module_potfile_custom_check = MODULE_DEFAULT;
401 module_ctx->module_potfile_disable = MODULE_DEFAULT;
402 module_ctx->module_potfile_keep_all_hashes = MODULE_DEFAULT;
403 module_ctx->module_pwdump_column = MODULE_DEFAULT;
404 module_ctx->module_pw_max = module_pw_max;
405 module_ctx->module_pw_min = module_pw_min;
406 module_ctx->module_salt_max = MODULE_DEFAULT;
407 module_ctx->module_salt_min = MODULE_DEFAULT;
408 module_ctx->module_salt_type = module_salt_type;
409 module_ctx->module_separator = MODULE_DEFAULT;
410 module_ctx->module_st_hash = module_st_hash;
411 module_ctx->module_st_pass = module_st_pass;
412 module_ctx->module_tmp_size = MODULE_DEFAULT;
413 module_ctx->module_unstable_warning = MODULE_DEFAULT;
414 module_ctx->module_warmup_disable = MODULE_DEFAULT;
415 }
416