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: pgcrypto: Add support for CFB mode in AES encryption
Date: Fri, 14 Feb 2025 20:29:04 +0000
Message-ID: <E1tj2J6-0078sM-L2@gemulon.postgresql.org> (raw)

pgcrypto: Add support for CFB mode in AES encryption

Cipher Feedback Mode, CFB, is a self-synchronizing stream cipher which
is very similar to CBC performed in reverse. Since OpenSSL supports it,
we can easily plug it into the existing cipher selection code without
any need for infrastructure changes.

This patch was simultaneously submitted by Umar Hayat and Vladyslav
Nebozhyn, the latter whom suggested the feauture. The committed patch
is Umar's version.

Author: Umar Hayat <postgresql.wizard@gmail.com>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Reviewed-by: Álvaro Herrera <alvherre@alvh.no-ip.org>
Discussion: https://postgr.es/m/CAPBGcbxo9ASzq14VTpQp3mnUJ5omdgTWUJOvWV0L6nNigWE5jw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9ad1b3d01f369f1b204324857e58d9283ff0a527

Modified Files
--------------
contrib/pgcrypto/expected/rijndael.out | 118 +++++++++++++++++++++++++++++++++
contrib/pgcrypto/openssl.c             |  39 +++++++++++
contrib/pgcrypto/sql/rijndael.sql      |  53 +++++++++++++++
doc/src/sgml/pgcrypto.sgml             |   8 ++-
4 files changed, 217 insertions(+), 1 deletion(-)



Message-ID: <E1tj2J6-0078sM-L2@gemulon.postgresql.org>
Permalink:  ../E1tj2J6-0078sM-L2@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1tj2J6-0078sM-L2@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: dgustafsson@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: pgcrypto: Add support for CFB mode in AES encryption
  In-Reply-To: <E1tj2J6-0078sM-L2@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