Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zj6kr-0004L0-9k for pgsql-hackers@arkaria.postgresql.org; Mon, 05 Oct 2015 14:28:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zj6kq-00044t-8S for pgsql-hackers@arkaria.postgresql.org; Mon, 05 Oct 2015 14:28:40 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Zj6ko-00041S-S5 for pgsql-hackers@postgresql.org; Mon, 05 Oct 2015 14:28:39 +0000 Received: from wsip-72-214-29-243.sd.sd.cox.net ([72.214.29.243] helo=joeconway.com) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Zj6kh-0001Ec-FR for pgsql-hackers@postgresql.org; Mon, 05 Oct 2015 14:28:37 +0000 Received: from [192.168.4.41] (account jconway@joeconway.com [192.168.4.41] verified) by joeconway.com (CommuniGate Pro SMTP 6.1.4) with ESMTPSA id 15658471; Mon, 05 Oct 2015 07:28:30 -0700 Subject: Re: Use EVP API pgcrypto encryption, dropping support for OpenSSL 0.9.6 and older To: Heikki Linnakangas , pgsql-hackers References: <561274F1.1030000@iki.fi> From: Joe Conway Message-ID: <5612890E.3000505@joeconway.com> Date: Mon, 5 Oct 2015 07:28:30 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <561274F1.1030000@iki.fi> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Im77E8v3oRRnbMhq3oVXXJmmE2OXx9gTC" X-Pg-Spam-Score: -0.9 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Im77E8v3oRRnbMhq3oVXXJmmE2OXx9gTC Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 10/05/2015 06:02 AM, Heikki Linnakangas wrote: > There was prior discussion on the EVP API in this old thread from 2007:= > http://www.postgresql.org/message-id/flat/46A5E284.7030402@sun.com#46A5= E284.7030402@sun.com >=20 >=20 > In short, pgcrypto actually used to use the EVP functions, but was > changed to *not* use them, because in older versions of OpenSSL, some > key lengths and/or padding options that pgcrypto supports were not > supported by the EVP API. That was fixed in OpenSSL 0.9.7, however. The= > consensus in 2007 was that we could drop support for OpenSSL 0.9.6 and > below, so that should definitely be OK by now, if we haven't already > done that elsewhere in the code. >=20 > Any objections to the attached two patches? I haven't studied that patches themselves yet, but +1 for the concept. Joe --=20 Crunchy Data - http://crunchydata.com PostgreSQL Support for Secure Enterprises Consulting, Training, & Open Source Development --Im77E8v3oRRnbMhq3oVXXJmmE2OXx9gTC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJWEokOAAoJEDfy90M199hl8OMP/iHoMrbLltCUB9NPVOejLQWJ rmwb8QlABvxGX8URZ0TEHLnhPIyWQfOl25oROvsqYupoHScn+ny5ntnZT0+x65Or 8nTvpWQoWXYF/a6l7ygYIbLXSX6Gt0nxy3fA2B/2bpIFkVfRMg2hJCi16MmaLQGn inuu0r0OZ8UUmqTUnYEpeXq3PcD/tMc0n7vxOV9GzRuWJ153zoxZFV9XbpSnPBoK vTDmuoY81r09hQQ62iP2CF8Hx4mZZFtqb6+T2a4FbImfeJqIZlv581aiHoFTi5IZ bRFJX2FCCACNlBS8auj6nAWNA8It35wdnKWo6soacPeWfbVQx36KCpLGDI0JNXUM OoaU7GBRgnQN4t+LpomKPAIPxWQrXc6OWhahA7tPYG2dPcjUSW3YHtjOZsbGeR1z y8kEwuE5JLIyUn0Qm52oI7+nUd+pjUhZVgY+U2ww9kNxwomPbXebPfmmQ3Ordujo vEf1X4AhrfP1rXV8JP1faJac9ue7exJWsRL+BM4CY5bVdfUFRU5JkE1+WJyNew3R Wn6RHDwwjd7k7iY9B8FLUVJ828V+Qd70MPCpaYS4Hv4XJ+QpaNNEkExdT2PDOUVu FvlMmqC0AaN9hXhnXG4Q2w16y6nTod7wJgo5rCe1vT69cVpwlRJYIWl1cEtCG89O RIHO/nuO5j6lFVRzbxiu =0BDN -----END PGP SIGNATURE----- --Im77E8v3oRRnbMhq3oVXXJmmE2OXx9gTC--