Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vOeQo-00HRlo-04 for pgsql-bugs@arkaria.postgresql.org; Thu, 27 Nov 2025 16:01:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vOeQm-00777r-2F for pgsql-bugs@arkaria.postgresql.org; Thu, 27 Nov 2025 16:01:17 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vOeQm-00777g-1R for pgsql-bugs@lists.postgresql.org; Thu, 27 Nov 2025 16:01:16 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vOeQj-001lij-1k for pgsql-bugs@lists.postgresql.org; Thu, 27 Nov 2025 16:01:15 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 5ARG17Bl126277; Thu, 27 Nov 2025 11:01:07 -0500 From: Tom Lane To: marco.lebahn@kfw.de cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #19335: the function encrypt does not work correct - ERROR: encrypt error: Key was too big In-reply-to: <19335-0ba21e6ccf61a219@postgresql.org> References: <19335-0ba21e6ccf61a219@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Thu, 27 Nov 2025 08:55:14 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <126275.1764259267.1@sss.pgh.pa.us> Date: Thu, 27 Nov 2025 11:01:07 -0500 Message-ID: <126276.1764259267@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > we patched our Systems from 16.10 and 14.19 to the new minor-level 16.11 and > 14.20. > No problems with 16.10 and 14.19 while we using the function encrypt and > decrypt > After patching the function throws errors These examples work fine for me in 16.11, and nothing in the contrib/pgcrypto source code changed between 16.10 and 16.11. Since pgcrypto depends on OpenSSL, one possible theory is that your new pgcrypto.so was built against a different version of OpenSSL than what is installed on your machine. But with no info about how you did the update, that's only wild speculation. regards, tom lane