]> 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:33 +0000 (23:09 -0500)
commit7c016e3f56e2a7d8e9dd00a6d2d80bdc2239424e
tree9a147a912ab5ba9c8c1feea2b494fa78d12fafd1
parentb7922a6dd0ec2ff949751d77b004576c820de19c
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