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