Re: Re: Proposal for encrypting pg_shadow passwords

From: Marko Kreen <marko(at)l-t(dot)ee>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Vince Vielhaber <vev(at)michvhf(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Re: Proposal for encrypting pg_shadow passwords
Date: 2001-08-20 10:41:27
Message-ID: 20010820124127.A27539@l-t.ee
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Karel Zak 2001-08-20 13:36:04 encoding: ODBC, createdb
Previous Message Marko Kreen 2001-08-20 10:21:38 pgcrypto update