ae7007
diff -ur postgresql-13.4/contrib/pgcrypto/expected/pgp-decrypt.out postgresql-13.4.patched/contrib/pgcrypto/expected/pgp-decrypt.out
ae7007
--- postgresql-13.4/contrib/pgcrypto/expected/pgp-decrypt.out	2021-08-09 16:49:05.000000000 -0400
ae7007
+++ postgresql-13.4.patched/contrib/pgcrypto/expected/pgp-decrypt.out	2021-09-01 08:16:48.138600886 -0400
ae7007
@@ -4,20 +4,6 @@
ae7007
 --  Checking ciphers
ae7007
 select pgp_sym_decrypt(dearmor('
ae7007
 -----BEGIN PGP MESSAGE-----
ae7007
-Comment: dat1.blowfish.sha1.mdc.s2k3.z0
ae7007
-
ae7007
-jA0EBAMCfFNwxnvodX9g0jwB4n4s26/g5VmKzVab1bX1SmwY7gvgvlWdF3jKisvS
ae7007
-yA6Ce1QTMK3KdL2MPfamsTUSAML8huCJMwYQFfE=
ae7007
-=JcP+
ae7007
------END PGP MESSAGE-----
ae7007
-'), 'foobar');
ae7007
- pgp_sym_decrypt 
ae7007
------------------
ae7007
- Secret message.
ae7007
-(1 row)
ae7007
-
ae7007
-select pgp_sym_decrypt(dearmor('
ae7007
------BEGIN PGP MESSAGE-----
ae7007
 Comment: dat1.aes.sha1.mdc.s2k3.z0
ae7007
 
ae7007
 jA0EBwMCci97v0Q6Z0Zg0kQBsVf5Oe3iC+FBzUmuMV9KxmAyOMyjCc/5i8f1Eest
ae7007
diff -ur postgresql-13.4/contrib/pgcrypto/expected/pgp-pubkey-decrypt.out postgresql-13.4.patched/contrib/pgcrypto/expected/pgp-pubkey-decrypt.out
ae7007
--- postgresql-13.4/contrib/pgcrypto/expected/pgp-pubkey-decrypt.out	2021-08-09 16:49:05.000000000 -0400
ae7007
+++ postgresql-13.4.patched/contrib/pgcrypto/expected/pgp-pubkey-decrypt.out	2021-09-01 08:05:27.750172653 -0400
ae7007
@@ -594,13 +594,6 @@
ae7007
 (1 row)
ae7007
 
ae7007
 select pgp_pub_decrypt(dearmor(data), dearmor(seckey))
ae7007
-from keytbl, encdata where keytbl.id=2 and encdata.id=2;
ae7007
- pgp_pub_decrypt 
ae7007
------------------
ae7007
- Secret msg
ae7007
-(1 row)
ae7007
-
ae7007
-select pgp_pub_decrypt(dearmor(data), dearmor(seckey))
ae7007
 from keytbl, encdata where keytbl.id=3 and encdata.id=3;
ae7007
  pgp_pub_decrypt 
ae7007
 -----------------
ae7007
diff -ur postgresql-13.4/contrib/pgcrypto/Makefile postgresql-13.4.patched/contrib/pgcrypto/Makefile
ae7007
--- postgresql-13.4/contrib/pgcrypto/Makefile	2021-08-09 16:49:05.000000000 -0400
ae7007
+++ postgresql-13.4.patched/contrib/pgcrypto/Makefile	2021-09-01 08:26:47.207164873 -0400
ae7007
@@ -5,7 +5,7 @@
ae7007
 INT_TESTS = sha2
ae7007
 
ae7007
 OSSL_SRCS = openssl.c pgp-mpi-openssl.c
ae7007
-OSSL_TESTS = sha2 des 3des cast5
ae7007
+OSSL_TESTS = sha2
ae7007
 
ae7007
 ZLIB_TST = pgp-compression
ae7007
 ZLIB_OFF_TST = pgp-zlib-DISABLED
ae7007
@@ -49,12 +49,13 @@
ae7007
 	pgcrypto--1.0--1.1.sql
ae7007
 PGFILEDESC = "pgcrypto - cryptographic functions"
ae7007
 
ae7007
-REGRESS = init md5 sha1 hmac-md5 hmac-sha1 blowfish rijndael \
ae7007
+REGRESS = init md5 sha1 hmac-md5 hmac-sha1 rijndael \
ae7007
 	$(CF_TESTS) \
ae7007
-	crypt-des crypt-md5 crypt-blowfish crypt-xdes \
ae7007
+	crypt-md5 \
ae7007
 	pgp-armor pgp-decrypt pgp-encrypt $(CF_PGP_TESTS) \
ae7007
 	pgp-pubkey-decrypt pgp-pubkey-encrypt pgp-info
ae7007
 
ae7007
+#REGRESS = init pgp-pubkey-decrypt pgp-decrypt \
ae7007
 EXTRA_CLEAN = gen-rtab
ae7007
 
ae7007
 ifdef USE_PGXS
ae7007
diff -ur postgresql-13.4/contrib/pgcrypto/sql/pgp-decrypt.sql postgresql-13.4.patched/contrib/pgcrypto/sql/pgp-decrypt.sql
ae7007
--- postgresql-13.4/contrib/pgcrypto/sql/pgp-decrypt.sql	2021-08-09 16:49:05.000000000 -0400
ae7007
+++ postgresql-13.4.patched/contrib/pgcrypto/sql/pgp-decrypt.sql	2021-09-01 08:16:12.525212175 -0400
ae7007
@@ -5,16 +5,6 @@
ae7007
 --  Checking ciphers
ae7007
 select pgp_sym_decrypt(dearmor('
ae7007
 -----BEGIN PGP MESSAGE-----
ae7007
-Comment: dat1.blowfish.sha1.mdc.s2k3.z0
ae7007
-
ae7007
-jA0EBAMCfFNwxnvodX9g0jwB4n4s26/g5VmKzVab1bX1SmwY7gvgvlWdF3jKisvS
ae7007
-yA6Ce1QTMK3KdL2MPfamsTUSAML8huCJMwYQFfE=
ae7007
-=JcP+
ae7007
------END PGP MESSAGE-----
ae7007
-'), 'foobar');
ae7007
-
ae7007
-select pgp_sym_decrypt(dearmor('
ae7007
------BEGIN PGP MESSAGE-----
ae7007
 Comment: dat1.aes.sha1.mdc.s2k3.z0
ae7007
 
ae7007
 jA0EBwMCci97v0Q6Z0Zg0kQBsVf5Oe3iC+FBzUmuMV9KxmAyOMyjCc/5i8f1Eest
ae7007
diff -ur postgresql-13.4/contrib/pgcrypto/sql/pgp-pubkey-decrypt.sql postgresql-13.4.patched/contrib/pgcrypto/sql/pgp-pubkey-decrypt.sql
ae7007
--- postgresql-13.4/contrib/pgcrypto/sql/pgp-pubkey-decrypt.sql	2021-08-09 16:49:05.000000000 -0400
ae7007
+++ postgresql-13.4.patched/contrib/pgcrypto/sql/pgp-pubkey-decrypt.sql	2021-09-01 08:06:18.963732342 -0400
ae7007
@@ -606,9 +606,6 @@
ae7007
 from keytbl, encdata where keytbl.id=1 and encdata.id=1;
ae7007
 
ae7007
 select pgp_pub_decrypt(dearmor(data), dearmor(seckey))
ae7007
-from keytbl, encdata where keytbl.id=2 and encdata.id=2;
ae7007
-
ae7007
-select pgp_pub_decrypt(dearmor(data), dearmor(seckey))
ae7007
 from keytbl, encdata where keytbl.id=3 and encdata.id=3;
ae7007
 
ae7007
 select pgp_pub_decrypt(dearmor(data), dearmor(seckey))