Re: remove internal support in pgcrypto? - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject Re: remove internal support in pgcrypto?
Date
Msg-id 72FC5DEE-8DA3-40CE-946F-3A13B26BFE4C@yesql.se
Whole thread Raw
In response to remove internal support in pgcrypto?  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Responses Re: remove internal support in pgcrypto?
List pgsql-hackers
> On 24 Aug 2021, at 11:13, Peter Eisentraut <peter.eisentraut@enterprisedb.com> wrote:

> So I'm tempted to suggest that we remove the built-in, non-OpenSSL cipher and hash implementations in pgcrypto
(basicallyINT_SRCS in pgcrypto/Makefile), and then also pursue the simplifications in the OpenSSL code paths described
in[0]. 

+1

> Thoughts?

With src/common/cryptohash_*.c and contrib/pgcrypto we have two abstractions
for hashing ciphers, should we perhaps retire hashing from pgcrypto altogether
and pull across what we feel is useful to core (AES and 3DES and..)?  There is
already significant overlap, and allowing core to only support certain ciphers
when compiled with OpenSSL isn’t any different from doing it in pgcrypto
really.

> (Some thoughts from those pursuing NSS support would also be useful.)

Blowfish and CAST5 are not available in NSS.  I've used the internal Blowfish
implementation as a fallback in the NSS patch and left CAST5 as not supported.
This proposal would mean that Blowfish too wasn’t supported in NSS builds, but
I personally don’t see that as a dealbreaker.

--
Daniel Gustafsson        https://vmware.com/




pgsql-hackers by date:

Previous
From: Dipesh Pandit
Date:
Subject: Re: .ready and .done files considered harmful
Next
From: Ajin Cherian
Date:
Subject: Re: Failure of subscription tests with topminnow