Re: Re: Proposal for encrypting pg_shadow passwords - Mailing list pgsql-patches

From Marko Kreen
Subject Re: Re: Proposal for encrypting pg_shadow passwords
Date
Msg-id 20010820124127.A27539@l-t.ee
Whole thread Raw
In response to Re: Re: Proposal for encrypting pg_shadow passwords  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-patches
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


pgsql-patches by date:

Previous
From: Marko Kreen
Date:
Subject: pgcrypto update
Next
From: Garrett Wollman
Date:
Subject: Re: Patch: use SCM_CREDS authentication over PF_LOCAL sockets