pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Gustafsson <dgustafsson@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Disable OpenSSL EVP digest padding in pgcrypto
Date: Sat, 25 Sep 2021 09:46:00 +0000
Message-ID: <E1mU4Fs-00039L-6X@gemulon.postgresql.org> (raw)

Disable OpenSSL EVP digest padding in pgcrypto

The PX layer in pgcrypto is handling digest padding on its own uniformly
for all backend implementations. Starting with OpenSSL 3.0.0, DecryptUpdate
doesn't flush the last block in case padding is enabled so explicitly
disable it as we don't use it.

This will be backpatched to all supported version once there is sufficient
testing in the buildfarm of OpenSSL 3.

Reviewed-by: Peter Eisentraut, Michael Paquier
Discussion: https://postgr.es/m/FEF81714-D479-4512-839B-C769D2605F8A@yesql.se

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/4fa2b15e1c9cae79afe17c14591074111b0d4093

Modified Files
--------------
contrib/pgcrypto/openssl.c | 4 ++++
1 file changed, 4 insertions(+)



view thread (6+ messages)  latest in thread

Message-ID: <E1mU4Fs-00039L-6X@gemulon.postgresql.org>
Permalink:  ../E1mU4Fs-00039L-6X@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1mU4Fs-00039L-6X@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: dgustafsson@postgresql.org
  Subject: Re: pgsql: Disable OpenSSL EVP digest padding in pgcrypto
  In-Reply-To: <E1mU4Fs-00039L-6X@gemulon.postgresql.org>
  References: <E1mU4Fs-00039L-6X@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox