Mercurial > masqmail
view src/md5/hmac_md5.h @ 312:c74adb7c4f50
null-terminated the decoded base64 strings
The returned size is still the same. I only alloced one byte more and
filled it with zero.
TODO: I'm not sure if the allocated size is exact. It's large enough
but maybe too large.
author | meillo@marmaro.de |
---|---|
date | Sun, 24 Apr 2011 20:13:47 +0200 |
parents | 0f36c0a46f82 |
children | 41958685480d |
line wrap: on
line source
void hmac_md5( unsigned char* text, /* pointer to the message */ int textlen, /* length of the message */ unsigned char* key, /* pointer to the authentication key */ int keylen, /* length of the key */ unsigned char* digest /* pointer to allocated memory to store the computed HMAC */ );