On Wed, Aug 15, 2001 at 08:09:15PM -0400, Bruce Momjian wrote:
> Vince, I can't figure out how that pgcrypto API for MD5.
In the 'new' code I sent today:
{
PX_MD *md;
uint8 *res;
int err;
err = px_find_digest("md5", &md);
if (err) ...
res = palloc(px_md_result_size(md));
px_md_update(md, data, datalen);
px_md_update(md, data2, data2len);
px_md_finish(md, res);
px_md_free(md);
}
--
marko