Re: [HACKERS] pgcrypto: Fix RSA password-protected keys

2013-05-10 Thread Tom Lane
Marko Kreen mark...@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!

Re: [HACKERS] pgcrypto: Fix RSA password-protected keys

2013-05-10 Thread Marko Kreen
On Fri, May 10, 2013 at 12:52:55PM -0400, Tom Lane wrote: Marko Kreen mark...@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

[HACKERS] pgcrypto: Fix RSA password-protected keys

2013-05-06 Thread Marko Kreen
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. Reported-by: Keith Fiske ke...@omniti.com -- marko diff --git