Re: Fast 32-bit Hash
From: John E. Hadstate (jh113355_at_hotmail.com)
Date: 02/24/04
- Next message: John E. Hadstate: "Re: Fast 32-bit Hash"
- Previous message: Sebastian Gottschalk: "Re: Steganography file sizes"
- In reply to: Cristiano: "Re: Fast 32-bit Hash"
- Next in thread: jamotto: "Re: Fast 32-bit Hash"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 24 Feb 2004 06:40:40 -0500
"Cristiano" <cristiano.pi@NSquipo.it> wrote in message
news:ytt_b.12126$gk.546262@news3.tin.it...
> John Hadstate wrote:
> > Aside from the obvious fact that a 32-bit hash is mostly too short for
> > a cryptographic hash, does anyone see any obvious attacks or other
> > problems?
>
> I used your hash like a prng:
>
> unsigned long FastHash(void)
> {
> static unsigned long A=Seed;
> unsigned long t=A;
> for(int i=0;i<4;i++) { A=FastHash(A,t); t>>=8; }
> return A;
> }
>
> it fails sistematically several tests for randomness (e.g. the up'n'down
> runs test, Maurer). This could leads to an attack.
> The speed is good; I get 21.5 MBytes/s on a Athlon 3000+ (while I get 5
> MBytes/s with the SHA-1 used the same way).
>
> Cristiano
Thanks for the information. I'm not surprised at your results. Feedback
circuits can be very tricky and counter-intuitive. Applying feedback around
a component that already has substantial internal feedback can produce
instability and unexpected behavior that wasn't present originally. I think
you'd see better results if you used it CTR mode (just increment the data
byte each time before you feed it to the hash.)
I don't think the "FastHash" algorithm is good for much. I doubt that it
has any value as a cipher. It's too slow to have any advantage over SHA1.
I wouldn't trust it as a PRNG because it relies too heavily on PRNGs that
have been demonstrated to be equivalent to LFSRs. That should pretty-well
rule out interest from the sci.crypt community.
- Next message: John E. Hadstate: "Re: Fast 32-bit Hash"
- Previous message: Sebastian Gottschalk: "Re: Steganography file sizes"
- In reply to: Cristiano: "Re: Fast 32-bit Hash"
- Next in thread: jamotto: "Re: Fast 32-bit Hash"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|