Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-patches by date

Next:From: Karel ZakDate: 2001-08-20 13:36:04
Subject: encoding: ODBC, createdb
Previous:From: Marko KreenDate: 2001-08-20 10:21:38
Subject: pgcrypto update

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group