Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c26b183cda2a981c1624748f6091f14b@smtp.hushmail.com>
Date: Wed, 27 Jun 2012 12:04:35 +0200
From: magnum <john.magnum@...hmail.com>
To: john-dev@...ts.openwall.com
Subject: Re: mschap-v2 conversion

On 2012-06-27 11:54, deepika dutta wrote:
> But md4 calculation is being done in mschapv2_crypt_all() which
> happens in both single and many salts cases (i debugged and
> confirmed). So how is keys_prepared flag playing any role here in
> avoiding this computation? This means that apart from above three
> lines of code, same thing is happening in single salt and many salt
> and thus the difference in benchmark result for both should not be
> very high.

It's avoided for all salts but the first. It's like this:

set_key()
set_key()
set_key()
set_key()
set_key()
set_salt()
crypt_all() (keys will be prepared, in parallel if OMP)
set_salt()
crypt_all() (keys are already prepared)
set_salt()
crypt_all() (keys are already prepared)
...

magnum

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.