Re: pgcrypto: Fix RSA password-protected keys

Поиск
Список
Период
Сортировка
От Marko Kreen
Тема Re: pgcrypto: Fix RSA password-protected keys
Дата
Msg-id 20130510181654.GA28808@gmail.com
обсуждение исходный текст
Ответ на Re: pgcrypto: Fix RSA password-protected keys  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Fri, May 10, 2013 at 12:52:55PM -0400, Tom Lane wrote:
> Marko Kreen <markokr@gmail.com> writes:
> > RSA secret key extraction code uses wrong variable so
> > that decryption is skipped and only secret keys without
> > password work for pgp_pub_decrypt().
> 
> > Attached patch fixes it and also adds regtest.
> 
> > Please apply to all branches.
> 
> Will do, thanks for the fix!

Thanks.

Re: future changelog entry

The problem is specific to RSA keys, password-protected DSA+ElGamal
keys work fine.  Sorry for not mentioning it earlier.

RSA code was added later than ElGamal, and the bug is probably
because of copy-paste from public key code...

-- 
marko




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Jeff Janes
Дата:
Сообщение: Re: corrupt pages detected by enabling checksums
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Bug in VACUUM reporting of "removed %d row versions" in 9.2+