MD{4,5}Final number of parameters

Filip Navara xnavara at volny.cz
Thu Oct 7 12:43:14 CDT 2004


Vincent Béron wrote:

>Hans,
>
>There seems to be a problem with the number of parameters MD{4,5}Final
>expect (haven't checked SHA).
>
>advapi32.spec defines it as follow:
>@ stdcall MD4Final(ptr ptr)
>@ stdcall MD5Final(ptr ptr)
>
>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?
>  
>
The one with two parameters. The first one is context and the second one 
is the result (array).

Regards,
Filip



More information about the wine-devel mailing list