]> 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:10:02 +0000 (23:10 -0500)
commitb882ffc24ed14fb7dcdf7eb8792df8105d79abc8
treec7ca180faa9da7470acdf5a9cf04744c0829a716
parent3852cfaf6065f14dd3dc4d2f59583de3c594d28b
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