pgcrypto: Allow tests to pass in OpenSSL FIPS mode
authorPeter Eisentraut <peter@eisentraut.org>
Fri, 17 Nov 2023 13:40:13 +0000 (14:40 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Fri, 17 Nov 2023 13:55:51 +0000 (14:55 +0100)
commit795592865c96b58016a883ac6390c985f140918d
tree522d25094f494500fd53abf9c5124ccf7ceec595
parentb1e5c9fa9ac4399895bf312398c5d441baba0c3b
pgcrypto: Allow tests to pass in OpenSSL FIPS mode

This adds several alternative expected files for when MD5 and 3DES are
not available.  This is similar to the alternative expected files for
when the legacy provider is disabled.  In fact, running the pgcrypto
tests in FIPS mode makes use of some of these existing alternative
expected files as well (e.g., for blowfish).

These new expected files currently cover the FIPS mode provided by
OpenSSL 3.x as well as the modified OpenSSL 3.x from Red Hat (e.g.,
Fedora 38), but not the modified OpenSSL 1.x from Red Hat (e.g.,
Fedora 35).  (The latter will have some error message wording
differences.)

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://www.postgresql.org/message-id/flat/dbbd927f-ef1f-c9a1-4ec6-c759778ac852%40enterprisedb.com
contrib/pgcrypto/expected/3des_1.out [new file with mode: 0644]
contrib/pgcrypto/expected/crypt-md5_1.out [new file with mode: 0644]
contrib/pgcrypto/expected/hmac-md5_1.out [new file with mode: 0644]
contrib/pgcrypto/expected/md5_1.out [new file with mode: 0644]
contrib/pgcrypto/expected/pgp-encrypt-md5_1.out [new file with mode: 0644]