Disable OpenSSL EVP digest padding in pgcrypto

Daniel Gustafsson <dgustafsson@postgresql.org>

Commit: 4fa2b15e1c9cae79afe17c14591074111b0d4093
Author: Daniel Gustafsson <dgustafsson@postgresql.org>
Date: 2021-09-25T09:27:20Z
Releases: 14.0
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

Files

PathChange+/−
contrib/pgcrypto/openssl.c modified +4 −0

Discussion