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_OUTSIDE_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; // originally DGST_SIZE_4_;
19 static const u32 HASH_CATEGORY = HASH_CATEGORY_FDE;
20 static const char *HASH_NAME = "Apple File System (APFS)";
21 static const u64 KERN_TYPE = 18300;
22 static const u32 OPTI_TYPE = OPTI_TYPE_ZERO_BYTE
23 | OPTI_TYPE_SLOW_HASH_SIMD_LOOP;
24 static const u64 OPTS_TYPE = OPTS_TYPE_PT_GENERATE_LE;
25 static const u32 SALT_TYPE = SALT_TYPE_EMBEDDED;
26 static const char *ST_PASS = "hashcat";
27 static const char *ST_HASH = "$fvde$2$16$58778104701476542047675521040224$20000$39602e86b7cea4a34f4ff69ff6ed706d68954ee474de1d2a9f6a6f2d24d172001e484c1d4eaa237d";
28
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)29 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)30 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)31 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)32 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)33 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)34 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)35 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)36 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)37 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)38 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)39 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)40 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)41 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)42 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; }
43
44 typedef struct apple_secure_notes
45 {
46 u32 Z_PK;
47 u32 ZCRYPTOITERATIONCOUNT;
48 u32 ZCRYPTOSALT[16];
49 u32 ZCRYPTOWRAPPEDKEY[16];
50
51 } apple_secure_notes_t;
52
53 typedef struct apple_secure_notes_tmp
54 {
55 u32 ipad[8];
56 u32 opad[8];
57
58 u32 dgst[8];
59 u32 out[8];
60
61 } apple_secure_notes_tmp_t;
62
63 static const char *SIGNATURE_APFS = "$fvde$";
64
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)65 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)
66 {
67 char *jit_build_options = NULL;
68
69 // Extra treatment for Apple systems
70 if (device_param->opencl_platform_vendor_id == VENDOR_ID_APPLE)
71 {
72 return jit_build_options;
73 }
74
75 // NVIDIA GPU
76 if (device_param->opencl_device_vendor_id == VENDOR_ID_NV)
77 {
78 hc_asprintf (&jit_build_options, "-D _unroll");
79 }
80
81 // HIP
82 if (device_param->opencl_device_vendor_id == VENDOR_ID_AMD_USE_HIP)
83 {
84 hc_asprintf (&jit_build_options, "-D _unroll");
85 }
86
87 // ROCM
88 if ((device_param->opencl_device_vendor_id == VENDOR_ID_AMD) && (device_param->has_vperm == true))
89 {
90 hc_asprintf (&jit_build_options, "-D _unroll");
91 }
92
93 return jit_build_options;
94 }
95
module_tmp_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 u64 module_tmp_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)
97 {
98 const u64 tmp_size = (const u64) sizeof (apple_secure_notes_tmp_t);
99
100 return tmp_size;
101 }
102
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)103 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)
104 {
105 const u64 esalt_size = (const u64) sizeof (apple_secure_notes_t);
106
107 return esalt_size;
108 }
109
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)110 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)
111 {
112 u32 *digest = (u32 *) digest_buf;
113
114 apple_secure_notes_t *apple_secure_notes = (apple_secure_notes_t *) esalt_buf;
115
116 token_t token;
117
118 token.token_cnt = 6;
119
120 token.signatures_cnt = 1;
121 token.signatures_buf[0] = SIGNATURE_APFS;
122
123 token.len[0] = 6;
124 token.attr[0] = TOKEN_ATTR_FIXED_LENGTH
125 | TOKEN_ATTR_VERIFY_SIGNATURE;
126
127 token.sep[1] = '$';
128 token.len_min[1] = 1;
129 token.len_max[1] = 10;
130 token.attr[1] = TOKEN_ATTR_VERIFY_LENGTH
131 | TOKEN_ATTR_VERIFY_DIGIT;
132
133 token.sep[2] = '$';
134 token.len_min[2] = 1;
135 token.len_max[2] = 6;
136 token.attr[2] = TOKEN_ATTR_VERIFY_LENGTH
137 | TOKEN_ATTR_VERIFY_DIGIT;
138
139 token.sep[3] = '$';
140 token.len_min[3] = 32;
141 token.len_max[3] = 32;
142 token.attr[3] = TOKEN_ATTR_VERIFY_LENGTH
143 | TOKEN_ATTR_VERIFY_HEX;
144
145 token.sep[4] = '$';
146 token.len_min[4] = 1;
147 token.len_max[4] = 6;
148 token.attr[4] = TOKEN_ATTR_VERIFY_LENGTH
149 | TOKEN_ATTR_VERIFY_DIGIT;
150
151 token.sep[5] = '$';
152 token.len_min[5] = 80;
153 token.len_max[5] = 80;
154 token.attr[5] = TOKEN_ATTR_VERIFY_LENGTH
155 | TOKEN_ATTR_VERIFY_HEX;
156
157 const int rc_tokenizer = input_tokenizer ((const u8 *) line_buf, line_len, &token);
158
159 if (rc_tokenizer != PARSER_OK) return (rc_tokenizer);
160
161 // Z_PK
162
163 const u8 *Z_PK_pos = token.buf[1];
164
165 const u32 Z_PK = hc_strtoul ((const char *) Z_PK_pos, NULL, 10);
166
167 if (Z_PK != 2) return (PARSER_SIGNATURE_UNMATCHED);
168
169 apple_secure_notes->Z_PK = Z_PK;
170
171 // ZCRYPTOSALT
172
173 const u8 *ZCRYPTOSALT_pos = token.buf[3];
174
175 apple_secure_notes->ZCRYPTOSALT[ 0] = hex_to_u32 ((const u8 *) &ZCRYPTOSALT_pos[ 0]);
176 apple_secure_notes->ZCRYPTOSALT[ 1] = hex_to_u32 ((const u8 *) &ZCRYPTOSALT_pos[ 8]);
177 apple_secure_notes->ZCRYPTOSALT[ 2] = hex_to_u32 ((const u8 *) &ZCRYPTOSALT_pos[16]);
178 apple_secure_notes->ZCRYPTOSALT[ 3] = hex_to_u32 ((const u8 *) &ZCRYPTOSALT_pos[24]);
179 apple_secure_notes->ZCRYPTOSALT[ 4] = 0;
180 apple_secure_notes->ZCRYPTOSALT[ 5] = 0;
181 apple_secure_notes->ZCRYPTOSALT[ 6] = 0;
182 apple_secure_notes->ZCRYPTOSALT[ 7] = 0;
183 apple_secure_notes->ZCRYPTOSALT[ 8] = 0;
184 apple_secure_notes->ZCRYPTOSALT[ 9] = 0;
185 apple_secure_notes->ZCRYPTOSALT[10] = 0;
186 apple_secure_notes->ZCRYPTOSALT[11] = 0;
187 apple_secure_notes->ZCRYPTOSALT[12] = 0;
188 apple_secure_notes->ZCRYPTOSALT[13] = 0;
189 apple_secure_notes->ZCRYPTOSALT[14] = 0;
190 apple_secure_notes->ZCRYPTOSALT[15] = 0;
191
192 // ZCRYPTOITERATIONCOUNT
193
194 const u8 *ZCRYPTOITERATIONCOUNT_pos = token.buf[4];
195
196 const u32 ZCRYPTOITERATIONCOUNT = hc_strtoul ((const char *) ZCRYPTOITERATIONCOUNT_pos, NULL, 10);
197
198 apple_secure_notes->ZCRYPTOITERATIONCOUNT = ZCRYPTOITERATIONCOUNT;
199
200 // ZCRYPTOWRAPPEDKEY
201
202 const u8 *ZCRYPTOWRAPPEDKEY_pos = token.buf[5];
203
204 apple_secure_notes->ZCRYPTOWRAPPEDKEY[0] = hex_to_u32 ((const u8 *) &ZCRYPTOWRAPPEDKEY_pos[ 0]);
205 apple_secure_notes->ZCRYPTOWRAPPEDKEY[1] = hex_to_u32 ((const u8 *) &ZCRYPTOWRAPPEDKEY_pos[ 8]);
206 apple_secure_notes->ZCRYPTOWRAPPEDKEY[2] = hex_to_u32 ((const u8 *) &ZCRYPTOWRAPPEDKEY_pos[16]);
207 apple_secure_notes->ZCRYPTOWRAPPEDKEY[3] = hex_to_u32 ((const u8 *) &ZCRYPTOWRAPPEDKEY_pos[24]);
208 apple_secure_notes->ZCRYPTOWRAPPEDKEY[4] = hex_to_u32 ((const u8 *) &ZCRYPTOWRAPPEDKEY_pos[32]);
209 apple_secure_notes->ZCRYPTOWRAPPEDKEY[5] = hex_to_u32 ((const u8 *) &ZCRYPTOWRAPPEDKEY_pos[40]);
210 apple_secure_notes->ZCRYPTOWRAPPEDKEY[6] = hex_to_u32 ((const u8 *) &ZCRYPTOWRAPPEDKEY_pos[48]);
211 apple_secure_notes->ZCRYPTOWRAPPEDKEY[7] = hex_to_u32 ((const u8 *) &ZCRYPTOWRAPPEDKEY_pos[56]);
212 apple_secure_notes->ZCRYPTOWRAPPEDKEY[8] = hex_to_u32 ((const u8 *) &ZCRYPTOWRAPPEDKEY_pos[64]);
213 apple_secure_notes->ZCRYPTOWRAPPEDKEY[9] = hex_to_u32 ((const u8 *) &ZCRYPTOWRAPPEDKEY_pos[72]);
214
215 // fake salt
216
217 salt->salt_buf[0] = apple_secure_notes->ZCRYPTOSALT[0];
218 salt->salt_buf[1] = apple_secure_notes->ZCRYPTOSALT[1];
219 salt->salt_buf[2] = apple_secure_notes->ZCRYPTOSALT[2];
220 salt->salt_buf[3] = apple_secure_notes->ZCRYPTOSALT[3];
221 salt->salt_buf[4] = apple_secure_notes->Z_PK;
222
223 salt->salt_iter = apple_secure_notes->ZCRYPTOITERATIONCOUNT - 1;
224 salt->salt_len = 20;
225
226 // fake hash
227
228 digest[0] = apple_secure_notes->ZCRYPTOWRAPPEDKEY[0];
229 digest[1] = apple_secure_notes->ZCRYPTOWRAPPEDKEY[1];
230 digest[2] = apple_secure_notes->ZCRYPTOWRAPPEDKEY[2];
231 digest[3] = apple_secure_notes->ZCRYPTOWRAPPEDKEY[3];
232
233 return (PARSER_OK);
234 }
235
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)236 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)
237 {
238 apple_secure_notes_t *apple_secure_notes = (apple_secure_notes_t *) esalt_buf;
239
240 const int out_len = snprintf (line_buf, line_size, "%s%u$16$%08x%08x%08x%08x$%u$%08x%08x%08x%08x%08x%08x%08x%08x%08x%08x",
241 SIGNATURE_APFS,
242 apple_secure_notes->Z_PK,
243 byte_swap_32 (apple_secure_notes->ZCRYPTOSALT[0]),
244 byte_swap_32 (apple_secure_notes->ZCRYPTOSALT[1]),
245 byte_swap_32 (apple_secure_notes->ZCRYPTOSALT[2]),
246 byte_swap_32 (apple_secure_notes->ZCRYPTOSALT[3]),
247 apple_secure_notes->ZCRYPTOITERATIONCOUNT,
248 byte_swap_32 (apple_secure_notes->ZCRYPTOWRAPPEDKEY[0]),
249 byte_swap_32 (apple_secure_notes->ZCRYPTOWRAPPEDKEY[1]),
250 byte_swap_32 (apple_secure_notes->ZCRYPTOWRAPPEDKEY[2]),
251 byte_swap_32 (apple_secure_notes->ZCRYPTOWRAPPEDKEY[3]),
252 byte_swap_32 (apple_secure_notes->ZCRYPTOWRAPPEDKEY[4]),
253 byte_swap_32 (apple_secure_notes->ZCRYPTOWRAPPEDKEY[5]),
254 byte_swap_32 (apple_secure_notes->ZCRYPTOWRAPPEDKEY[6]),
255 byte_swap_32 (apple_secure_notes->ZCRYPTOWRAPPEDKEY[7]),
256 byte_swap_32 (apple_secure_notes->ZCRYPTOWRAPPEDKEY[8]),
257 byte_swap_32 (apple_secure_notes->ZCRYPTOWRAPPEDKEY[9]));
258
259 return out_len;
260 }
261
module_init(module_ctx_t * module_ctx)262 void module_init (module_ctx_t *module_ctx)
263 {
264 module_ctx->module_context_size = MODULE_CONTEXT_SIZE_CURRENT;
265 module_ctx->module_interface_version = MODULE_INTERFACE_VERSION_CURRENT;
266
267 module_ctx->module_attack_exec = module_attack_exec;
268 module_ctx->module_benchmark_esalt = MODULE_DEFAULT;
269 module_ctx->module_benchmark_hook_salt = MODULE_DEFAULT;
270 module_ctx->module_benchmark_mask = MODULE_DEFAULT;
271 module_ctx->module_benchmark_salt = MODULE_DEFAULT;
272 module_ctx->module_build_plain_postprocess = MODULE_DEFAULT;
273 module_ctx->module_deep_comp_kernel = MODULE_DEFAULT;
274 module_ctx->module_deprecated_notice = MODULE_DEFAULT;
275 module_ctx->module_dgst_pos0 = module_dgst_pos0;
276 module_ctx->module_dgst_pos1 = module_dgst_pos1;
277 module_ctx->module_dgst_pos2 = module_dgst_pos2;
278 module_ctx->module_dgst_pos3 = module_dgst_pos3;
279 module_ctx->module_dgst_size = module_dgst_size;
280 module_ctx->module_dictstat_disable = MODULE_DEFAULT;
281 module_ctx->module_esalt_size = module_esalt_size;
282 module_ctx->module_extra_buffer_size = MODULE_DEFAULT;
283 module_ctx->module_extra_tmp_size = MODULE_DEFAULT;
284 module_ctx->module_extra_tuningdb_block = MODULE_DEFAULT;
285 module_ctx->module_forced_outfile_format = MODULE_DEFAULT;
286 module_ctx->module_hash_binary_count = MODULE_DEFAULT;
287 module_ctx->module_hash_binary_parse = MODULE_DEFAULT;
288 module_ctx->module_hash_binary_save = MODULE_DEFAULT;
289 module_ctx->module_hash_category = module_hash_category;
290 module_ctx->module_hash_decode = module_hash_decode;
291 module_ctx->module_hash_decode_potfile = MODULE_DEFAULT;
292 module_ctx->module_hash_decode_zero_hash = MODULE_DEFAULT;
293 module_ctx->module_hash_encode = module_hash_encode;
294 module_ctx->module_hash_encode_status = MODULE_DEFAULT;
295 module_ctx->module_hash_encode_potfile = MODULE_DEFAULT;
296 module_ctx->module_hash_init_selftest = MODULE_DEFAULT;
297 module_ctx->module_hash_mode = MODULE_DEFAULT;
298 module_ctx->module_hash_name = module_hash_name;
299 module_ctx->module_hashes_count_min = MODULE_DEFAULT;
300 module_ctx->module_hashes_count_max = MODULE_DEFAULT;
301 module_ctx->module_hlfmt_disable = MODULE_DEFAULT;
302 module_ctx->module_hook_extra_param_size = MODULE_DEFAULT;
303 module_ctx->module_hook_extra_param_init = MODULE_DEFAULT;
304 module_ctx->module_hook_extra_param_term = MODULE_DEFAULT;
305 module_ctx->module_hook12 = MODULE_DEFAULT;
306 module_ctx->module_hook23 = MODULE_DEFAULT;
307 module_ctx->module_hook_salt_size = MODULE_DEFAULT;
308 module_ctx->module_hook_size = MODULE_DEFAULT;
309 module_ctx->module_jit_build_options = module_jit_build_options;
310 module_ctx->module_jit_cache_disable = MODULE_DEFAULT;
311 module_ctx->module_kernel_accel_max = MODULE_DEFAULT;
312 module_ctx->module_kernel_accel_min = MODULE_DEFAULT;
313 module_ctx->module_kernel_loops_max = MODULE_DEFAULT;
314 module_ctx->module_kernel_loops_min = MODULE_DEFAULT;
315 module_ctx->module_kernel_threads_max = MODULE_DEFAULT;
316 module_ctx->module_kernel_threads_min = MODULE_DEFAULT;
317 module_ctx->module_kern_type = module_kern_type;
318 module_ctx->module_kern_type_dynamic = MODULE_DEFAULT;
319 module_ctx->module_opti_type = module_opti_type;
320 module_ctx->module_opts_type = module_opts_type;
321 module_ctx->module_outfile_check_disable = MODULE_DEFAULT;
322 module_ctx->module_outfile_check_nocomp = MODULE_DEFAULT;
323 module_ctx->module_potfile_custom_check = MODULE_DEFAULT;
324 module_ctx->module_potfile_disable = MODULE_DEFAULT;
325 module_ctx->module_potfile_keep_all_hashes = MODULE_DEFAULT;
326 module_ctx->module_pwdump_column = MODULE_DEFAULT;
327 module_ctx->module_pw_max = MODULE_DEFAULT;
328 module_ctx->module_pw_min = MODULE_DEFAULT;
329 module_ctx->module_salt_max = MODULE_DEFAULT;
330 module_ctx->module_salt_min = MODULE_DEFAULT;
331 module_ctx->module_salt_type = module_salt_type;
332 module_ctx->module_separator = MODULE_DEFAULT;
333 module_ctx->module_st_hash = module_st_hash;
334 module_ctx->module_st_pass = module_st_pass;
335 module_ctx->module_tmp_size = module_tmp_size;
336 module_ctx->module_unstable_warning = MODULE_DEFAULT;
337 module_ctx->module_warmup_disable = MODULE_DEFAULT;
338 }
339