Re: Is OpenSSL AES-NI not available in pgcrypto? - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Is OpenSSL AES-NI not available in pgcrypto?
Date
Msg-id Y7jVVk6r5roQKiuR@momjian.us
Whole thread Raw
In response to Is OpenSSL AES-NI not available in pgcrypto?  ("agharta82@gmail.com" <agharta82@gmail.com>)
Responses Re: Is OpenSSL AES-NI not available in pgcrypto?
List pgsql-hackers
On Mon, Jan  2, 2023 at 05:57:38PM +0100, agharta82@gmail.com wrote:
> So, a test with pgcrypto:
> 
> select pgp_sym_encrypt(data::text, 'pwd') --default to aes128
> from generate_series('2022-01-01'::timestamp, '2022-12-31'::timestamp, '1
> hour'::interval) data
> 
> vs
> 
> select pgp_sym_encrypt(data::text, 'pwd','cipher-algo=bf') -- blowfish
> from generate_series('2022-01-01'::timestamp, '2022-12-31'::timestamp, '1
> hour'::interval) data

To see the difference, I think you need to construct a single large
query that calls many pgcrypto functions, with a small return result, so
the network, parsing, and optimizer overhead are minimal compared to the
OpenSSL overhread.

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

Embrace your flaws.  They make you human, rather than perfect,
which you will never be.



pgsql-hackers by date:

Previous
From: "Imseih (AWS), Sami"
Date:
Subject: Re: Add index scan progress to pg_stat_progress_vacuum
Next
From: David Rowley
Date:
Subject: Re: Todo: Teach planner to evaluate multiple windows in the optimal order