|
|
|
@ -73,6 +73,18 @@ typedef struct tc
|
|
|
|
|
static const int ROUNDS_TRUECRYPT_1K = 1000;
|
|
|
|
|
static const float MIN_SUFFICIENT_ENTROPY_FILE = 7.0f;
|
|
|
|
|
|
|
|
|
|
int module_build_plain_postprocess (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const hashes_t *hashes, const u32 *src_buf, MAYBE_UNUSED const size_t src_sz, const int src_len, u32 *dst_buf, MAYBE_UNUSED const size_t dst_sz)
|
|
|
|
|
{
|
|
|
|
|
const tc_t *tc = (const tc_t *) hashes->esalts_buf;
|
|
|
|
|
|
|
|
|
|
if (src_len < (int) dst_sz)
|
|
|
|
|
{
|
|
|
|
|
memcpy (dst_buf, src_buf, src_len);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return execute_keyboard_layout_mapping (dst_buf, src_len, tc->keyboard_layout_mapping_buf, tc->keyboard_layout_mapping_cnt);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool module_potfile_disable (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra)
|
|
|
|
|
{
|
|
|
|
|
const bool potfile_disable = true;
|
|
|
|
@ -243,7 +255,7 @@ void module_init (module_ctx_t *module_ctx)
|
|
|
|
|
module_ctx->module_benchmark_hook_salt = MODULE_DEFAULT;
|
|
|
|
|
module_ctx->module_benchmark_mask = MODULE_DEFAULT;
|
|
|
|
|
module_ctx->module_benchmark_salt = MODULE_DEFAULT;
|
|
|
|
|
module_ctx->module_build_plain_postprocess = MODULE_DEFAULT;
|
|
|
|
|
module_ctx->module_build_plain_postprocess = module_build_plain_postprocess;
|
|
|
|
|
module_ctx->module_deep_comp_kernel = MODULE_DEFAULT;
|
|
|
|
|
module_ctx->module_dgst_pos0 = module_dgst_pos0;
|
|
|
|
|
module_ctx->module_dgst_pos1 = module_dgst_pos1;
|
|
|
|
|