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