Re: [CodeGallery] MFC MD5 Calculator




"Xavier" <xavier@xxxxxxx> ha scritto nel messaggio news:gbjfq9$9f9$1@xxxxxxxxxxx

With MD5 apis : no Crypto API required...

CryptoAPI is a part of Win32 API, and it seems to ma that is present by default on Windows XP and Windows Vista.
Using CryptoAPI to calculate MD5 makes your code independent from 3rd party DLLs/libraries.

I found an open source MD5 library here:

http://www.fourmilab.ch/md5/

but it was pure C code, and with a style that seems very strange to me:

e.g.

void MD5Update(ctx, buf, len)
struct MD5Context *ctx; unsigned char *buf; unsigned len;
{
...
}

What is this way of defining function parameters??
Is it C 1.0 ?

However, in general, if something is already available in Win32, I prefer using that instead of 3rd party stuff, IMHO.

Giovanni

.