Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 7 Jun 2012 11:31:46 +0200
From: Frank Dittrich <frank_dittrich@...mail.com>
To: john-dev@...ts.openwall.com
Subject: Re: get_source() and bitmaps boost

On 06/07/2012 10:22 AM, magnum wrote:
> On 06/07/2012 10:08 AM, magnum wrote:
>> Maybe, but this depends on the format. For raw SHA-1 I think we save 53
>> bytes of memory per loaded hash. For raw MD5 it's 44 bytes (ie. it's the
>> ASCII hex hash + tag + null byte). But then I suppose we need to
>> subtract sizeof(char*) from that figure, or something like that.
> 
> On second thought that pointer is there anyway, so we still save 53
> bytes per hash for SHA1.

Yes, ( 875 - 530 ) * 10^6 / 6458020 = 53.42...
(Assuming it is the total number of hashes loaded which counts here, not
the number of remaining hashes.)

Frank

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ