]> granicus.if.org Git - postgresql/commit
Fix error detection in contrib/pgcrypto's encrypt_iv() and decrypt_iv().
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 28 Jan 2012 04:09:16 +0000 (23:09 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 28 Jan 2012 04:09:44 +0000 (23:09 -0500)
commita752952d2600c65d06b470f7de43dd068a11f673
treeacf4491f820da1f21b8ea4489f36dfb5c003947b
parent2f66c1a2ff8918086099cdfb3b9d9759c8658382
Fix error detection in contrib/pgcrypto's encrypt_iv() and decrypt_iv().

Due to oversights, the encrypt_iv() and decrypt_iv() functions failed to
report certain types of invalid-input errors, and would instead return
random garbage values.

Marko Kreen, per report from Stefan Kaltenbrunner
contrib/pgcrypto/pgcrypto.c