Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAG5=z91Symnjg-cygHX-20rnTvthEnXBWbr14q0oVzv10vdeTg@mail.gmail.com>
Date: Tue, 24 Jan 2012 06:31:34 +0530
From: Piyush Mittal <piyush.cse29@...il.com>
To: john-dev@...ts.openwall.com
Subject: Re: Bit slice implementation of DES based hashes

>
> We need to pass this same key into DES_bs_set_key(), which discards the
> most significant bits instead.  So we shift each char right by 1 bit,
> thereby shifting out the unused "parity" bits and shifting in zero bits
> (into the most significant bits of each char).  We could as well shift
> in one bits - in fact, we do just that for the char that would otherwise
> be NUL.  Those bits are unused anyway, except that a NUL would terminate
> the strings with the DES_bs_set_key() interface.
>


So what exactly the modifications that I need to in DES_bs_set_key()? Right
now I am just calling it with constant key
"\x80\x11\x22\x33\x44\x55\x66\x77" .
-- 
Piyush Mittal

Content of type "text/html" skipped

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.