pgcrypto: Add support for CFB mode in AES encryption

Daniel Gustafsson <dgustafsson@postgresql.org>

Commit: 9ad1b3d01f369f1b204324857e58d9283ff0a527
Author: Daniel Gustafsson <dgustafsson@postgresql.org>
Date: 2025-02-14T20:18:37Z
Releases: 18.0
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

Files

Documentation touched

Discussion