MD{4,5}Final number of parameters

Hans Leidekker hans at it.vu.nl
Thu Oct 7 14:25:10 CDT 2004


On Thursday 7 October 2004 17:19, Vincent Béron wrote:

> But the actual implementation in crypt_md{4,5}.c are:
> VOID WINAPI MD4Final( MD4_CTX *ctx )
> VOID WINAPI MD5Final( MD5_CTX *ctx )
> 
> Also, after a bit of googling I found
> http://akson.sgh.waw.pl/~chopin/ssh/putty/SGH/src-0.53b/PAGEANT.C, which
> uses MD5Final() with 2 parameters:
> MD5Final(response_md5, &md5c);
> 
> So which one is right?

Right, the original RSA or compatible code, which I based the implementation
on has two arguments, but Microsoft opted for putting the output hash inside
the context structure, and of course I forgot to change that in the spec file
as well. Thanks for spotting this.

 -Hans

Changelog:
 MD{4,5}Final take only one parameter.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: advapi32_spec.diff
Type: text/x-diff
Size: 759 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20041007/9475be43/advapi32_spec.bin


More information about the wine-patches mailing list