|
|
Message-ID: <20111216233754.GA23767@openwall.com>
Date: Sat, 17 Dec 2011 03:37:54 +0400
From: Solar Designer <solar@...nwall.com>
To: john-dev@...ts.openwall.com
Subject: Re: OpenMP for MD5-crypt
magnum -
I am making the below change in -jumbo-5 such that the multiple threads
are used in single crack mode as well.
--- john-1.7.9-jumbo-4/src/MD5_fmt.c 2011-12-16 02:25:34 +0400
+++ john-1.7.9-jumbo-5/src/MD5_fmt.c 2011-12-17 03:34:12 +0400
@@ -79,9 +79,11 @@
{
MD5_std_init(pFmt);
#if defined(_OPENMP) && defined(MD5_SSE_PARA)
- omp_para = OMP_SCALE * omp_get_max_threads();
+ omp_para = omp_get_max_threads();
if (omp_para < 1)
omp_para = 1;
+ fmt_MD5.params.min_keys_per_crypt = MD5_N * omp_para;
+ omp_para *= OMP_SCALE;
fmt_MD5.params.max_keys_per_crypt = MD5_N * omp_para;
#elif MD5_std_mt
fmt_MD5.params.min_keys_per_crypt = MD5_std_min_kpc;
Non-SIMD version of the code already used a similar approach.
Alexander
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.