Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sun, 18 Sep 2011 14:22:24 +0400
From: Solar Designer <solar@...nwall.com>
To: john-dev@...ts.openwall.com
Subject: Re: integer limit reached

On Sun, Sep 18, 2011 at 11:54:31AM +0200, Pablo Fernandez wrote:
> That specific question was actually about JTR itself, not about the external 
> modes. 32 bit integers actually seem quite small number for certain hashes, 
> so, I was wondering if John can actually work in the incremental mode on those 
> orders of magnitude. My first guess is that, since each word is generated by 
> the previous one, you don't need to "count" the words so far... but what 
> happens with the sessions, for example?

John uses 64-bit ints from math.[ch] there.

> I actually got myself around the 32bit limit in my external mode, by adding 
> two variables: turns_min and turn_max, that carry the number of times my 
> counter has to turn around 31 bits (to avoid sign). So, as soon as the 
> autoincrement becomes negative (MAX_INT / 2), I decrease the number of turns, 
> and set the counter to 0. It's not perfect, but it works!

Yes, this was one of the options I suggested.

> Thanks for the patch, I have just tried with long long int, and it seems to 
> work fine.

Thanks for letting me know.

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.