Re: MD5 Hash Algorithm

From: Ted Huffmire (huffmire_at_earthlink.net)
Date: 07/29/04


Date: 29 Jul 2004 06:51:37 -0700

Thanks! The first call to Update() puts the
message in the buffer but doesn't call Transform().
The second call to Update() puts the padding in the
buffer but doesn't call Transform(). The third call
to Update() puts the count into the buffer and
then calls Transform().

Michael Amling <nospam@nospam.com> wrote in message news:<yYXNc.3317$YK2.962@newssvr15.news.prodigy.com>...
> Are you talking about the MD5Transform function in the reference
> implementation of MD5 in Appendix A of RFC 1321? For a message of less
> than 56 bytes, it's only called once. You couldn't get the correct
> answer by calling more than once without re-initializing the context->state.
>
> --Mike Amling



Relevant Pages

  • Re: Socket stuck with puts over ADSL line
    ... gets stuck with the puts command within the filevent writeable ... Is the socket configured as -blocking 1? ... local buffer would fill rapidly, ... buffered portion across the WAN as its own TCP packet, ...
    (comp.lang.tcl)
  • Tcl Socket problem
    ... So the server will just call the ... global parser buffer cidlist nametypecidlist newid ... foreach clientid $cidlist { ... puts $clientid $result ...
    (comp.lang.tcl)
  • Re: Type of memory in VMR9 allocator
    ... output buffer for transformation function from 3r party library and after ... temporary buffer to output sample. ... as a downstream filter and he provide a video memory in allocator buffers, ... It sounds to me as though you've implemented a typical "copy" transform ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: DONE - Tcl exec needs n< ...
    ... doesnt have ksh or awk style coroutines. ... (I realise I am glossing over some buffer issues - but thats ... puts $fd "here is data" ...
    (comp.lang.tcl)
  • Re: Question about the video transform filter
    ... >> I got a problem in developing a video transform filter. ... >> allocator buffer count to 2, ... >> to get the output media sample buffer, it always return the same buffer ...
    (microsoft.public.win32.programmer.directx.video)