diff options
| author | Peter Eisentraut | 2023-11-16 14:57:21 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2023-11-16 15:16:07 +0000 |
| commit | 3af0d17acef7538c5605afa5dd7929cfd7e38d9e (patch) | |
| tree | 0baa4f7d0f5b8bdcd1921c9273e13fe580f2f67d /contrib/pgcrypto/expected | |
| parent | 743ddafc7124604c1f59b5d9f661be47a987a8d0 (diff) | |
pgcrypto: Split off pgp-encrypt-md5 test
In FIPS mode, these tests will fail. By having them in a separate
file, it would make it easier to have an alternative output file or
selectively disable these tests. This isn't done here; this is just
some preparation.
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/2766054.1700080156@sss.pgh.pa.us
Diffstat (limited to 'contrib/pgcrypto/expected')
| -rw-r--r-- | contrib/pgcrypto/expected/pgp-encrypt-md5.out | 11 | ||||
| -rw-r--r-- | contrib/pgcrypto/expected/pgp-encrypt.out | 8 |
2 files changed, 11 insertions, 8 deletions
diff --git a/contrib/pgcrypto/expected/pgp-encrypt-md5.out b/contrib/pgcrypto/expected/pgp-encrypt-md5.out new file mode 100644 index 00000000000..339e12a434b --- /dev/null +++ b/contrib/pgcrypto/expected/pgp-encrypt-md5.out @@ -0,0 +1,11 @@ +-- +-- PGP encrypt using MD5 +-- +select pgp_sym_decrypt( + pgp_sym_encrypt('Secret.', 'key', 's2k-digest-algo=md5'), + 'key', 'expect-s2k-digest-algo=md5'); + pgp_sym_decrypt +----------------- + Secret. +(1 row) + diff --git a/contrib/pgcrypto/expected/pgp-encrypt.out b/contrib/pgcrypto/expected/pgp-encrypt.out index 77e45abe53a..50cd3f6daa0 100644 --- a/contrib/pgcrypto/expected/pgp-encrypt.out +++ b/contrib/pgcrypto/expected/pgp-encrypt.out @@ -122,14 +122,6 @@ NOTICE: pgp_decrypt: unexpected s2k_count: expected 65000000 got 65011712 -- s2k digest change select pgp_sym_decrypt( - pgp_sym_encrypt('Secret.', 'key', 's2k-digest-algo=md5'), - 'key', 'expect-s2k-digest-algo=md5'); - pgp_sym_decrypt ------------------ - Secret. -(1 row) - -select pgp_sym_decrypt( pgp_sym_encrypt('Secret.', 'key', 's2k-digest-algo=sha1'), 'key', 'expect-s2k-digest-algo=sha1'); pgp_sym_decrypt |
