Fix error detection in contrib/pgcrypto's encrypt_iv() and decrypt_iv().

Tom Lane <tgl@sss.pgh.pa.us>

Commit: a8b4b84360e5ea145d12d372305b50f6774b0366
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2012-01-28T04:09:16Z
Releases: 9.2.0
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

Files

PathChange+/−
contrib/pgcrypto/pgcrypto.c modified +4 −4