Re: MD5P (Variable length hash, kindof)
- From: tomstdenis@xxxxxxxxx
- Date: 20 Dec 2005 22:30:50 -0800
aie93 wrote:
> memcpy(MD5->data, MD5->s, 4);
> MD5->s = MD5->s % 128;
> MD5->states[0] += MD5->states[2] & (0xFFFFFFFF >> MD5->s);
> MD5->states[1] += MD5->states[3] & (0xFFFFFFFF >> (MD5->s - 64));
> MD5->states[2] &= 0xFFFFFFFF << MD5->s;
> MD5->states[3] &= 0xFFFFFFFF << (MD5->s - 64);
> memcpy(MD5->data+47, MD5->states, 16);
> MD5_Process(MD5);
This doesn't make sense. the states[] variables are 32-bits but MD5->s
can be upto 127. That means
0xFFFFFFFF << MD5->s
Can be 0 for 96 out of 128 possible values and it means states[2] and
states[3] are likely to be zero [or have many zeros].
BOO YAH!
Tom
.
- Follow-Ups:
- Re: MD5P (Variable length hash, kindof)
- From: aie93
- Re: MD5P (Variable length hash, kindof)
- References:
- MD5P (Variable length hash, kindof)
- From: aie93
- MD5P (Variable length hash, kindof)
- Prev by Date: Re: MD5P (Variable length hash, kindof)
- Next by Date: Re: What's wrong with this RC4?
- Previous by thread: Re: MD5P (Variable length hash, kindof)
- Next by thread: Re: MD5P (Variable length hash, kindof)
- Index(es):
Relevant Pages
|