Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20111121165848.GA26821@openwall.com>
Date: Mon, 21 Nov 2011 20:58:48 +0400
From: Solar Designer <solar@...nwall.com>
To: john-dev@...ts.openwall.com
Subject: Re: best way to get ciphertext

On Mon, Nov 21, 2011 at 05:14:12PM +0100, Samuele Giovanni Tonon wrote:
> i've tried an ugly hack to get ciphertext from get_salt, which is
> usually called before crypt_all ; i did a
> 
> memcpy(crypted_key,realcipher,BINARY_SIZE);
> 
> inside get_salt() to save on a "local" variable that has been declared
> inside the fmt_plug.c file .
> 
> this works nicely on the initial test, but after that crypted_key keeps
> on remaing a default value and never change; i suspect i'm not reading
> real data but just "gibberish" .
> 
> i wish i could call binary() but i need ciphertext which is available
> only at a "superior" layer.

As I pointed out in another message, a possibly working dirty hack would
be to save copies of the hashes passing through binary().  Maybe save
partial copies (truncate at BINARY_SIZE), for memory savings and speed.

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.