postgresql/contrib/pgcrypto/expected
Peter Eisentraut f5576a21b0 pgcrypto: Remove internal padding implementation
Use the padding provided by OpenSSL instead of doing it ourselves.
The internal implementation was once applicable to the non-OpenSSL
code paths, but those have since been removed.  The padding algorithm
is still the same.

The OpenSSL padding implementation is stricter than the previous
internal one: Bad padding during decryption is now an error, and
encryption without padding now requires the input size to be a
multiple of the block size, otherwise it is also an error.
Previously, these cases silently proceeded, in spite of the
documentation saying otherwise.

Add some test cases about this, too.  (The test cases are in
rijndael.sql, but they apply to all encryption algorithms.)

Reviewed-by: Jacob Champion <pchampion@vmware.com>
Reviewed-by: Nathan Bossart <nathandbossart@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/ba94c26b-0c58-c97e-7a44-f44e08b4cca2%40enterprisedb.com
2022-03-22 08:58:44 +01:00
..
3des.out pgcrypto: Remove explicit hex encoding/decoding from tests 2021-12-08 06:06:22 +01:00
blowfish.out pgcrypto: Remove explicit hex encoding/decoding from tests 2021-12-08 06:06:22 +01:00
blowfish_1.out pgcrypto: Remove explicit hex encoding/decoding from tests 2021-12-08 06:06:22 +01:00
cast5.out pgcrypto: Remove explicit hex encoding/decoding from tests 2021-12-08 06:06:22 +01:00
cast5_1.out pgcrypto: Remove explicit hex encoding/decoding from tests 2021-12-08 06:06:22 +01:00
crypt-blowfish.out pgcrypto: Detect and report too-short crypt() salts. 2015-10-05 10:06:29 -04:00
crypt-des.out pgcrypto: Detect and report too-short crypt() salts. 2015-10-05 10:06:29 -04:00
crypt-md5.out SET autocommit no longer needed in /contrib because pg_regress.sh does 2002-10-21 01:42:14 +00:00
crypt-xdes.out pgcrypto: Detect and report too-short crypt() salts. 2015-10-05 10:06:29 -04:00
des.out pgcrypto: Remove explicit hex encoding/decoding from tests 2021-12-08 06:06:22 +01:00
des_1.out pgcrypto: Remove explicit hex encoding/decoding from tests 2021-12-08 06:06:22 +01:00
hmac-md5.out pgcrypto: Remove explicit hex encoding/decoding from tests 2021-12-08 06:06:22 +01:00
hmac-sha1.out pgcrypto: Remove explicit hex encoding/decoding from tests 2021-12-08 06:06:22 +01:00
init.out pgcrypto: Remove explicit hex encoding/decoding from tests 2021-12-08 06:06:22 +01:00
md5.out pgcrypto: Remove explicit hex encoding/decoding from tests 2021-12-08 06:06:22 +01:00
pgp-armor.out pgcrypto: Remove explicit hex encoding/decoding from tests 2021-12-08 06:06:22 +01:00
pgp-compression.out Fix corner case with 16kB-long decompression in pgcrypto, take 2 2020-07-27 15:58:32 +09:00
pgp-decrypt.out pgcrypto: Remove explicit hex encoding/decoding from tests 2021-12-08 06:06:22 +01:00
pgp-decrypt_1.out pgcrypto: Remove explicit hex encoding/decoding from tests 2021-12-08 06:06:22 +01:00
pgp-encrypt.out pgcrypto: Remove explicit hex encoding/decoding from tests 2021-12-08 06:06:22 +01:00
pgp-info.out Fix buffer overrun after incomplete read in pullf_read_max(). 2015-02-02 10:00:45 -05:00
pgp-pubkey-decrypt.out pgcrypto: Report errant decryption as "Wrong key or corrupt data". 2015-05-18 10:02:31 -04:00
pgp-pubkey-decrypt_1.out Add alternative output for OpenSSL 3 without legacy loaded 2021-08-10 15:08:46 +02:00
pgp-pubkey-encrypt.out pgcrypto: Remove explicit hex encoding/decoding from tests 2021-12-08 06:06:22 +01:00
pgp-zlib-DISABLED.out Add missing pgcrypto files from previous commit. 2005-07-10 13:46:29 +00:00
rijndael.out pgcrypto: Remove internal padding implementation 2022-03-22 08:58:44 +01:00
sha1.out pgcrypto: Remove explicit hex encoding/decoding from tests 2021-12-08 06:06:22 +01:00
sha2.out pgcrypto: Remove explicit hex encoding/decoding from tests 2021-12-08 06:06:22 +01:00