pgcrypto: Add support for CFB mode in AES encryption
authorDaniel Gustafsson
Fri, 14 Feb 2025 20:18:37 +0000 (21:18 +0100)
committerDaniel Gustafsson
Fri, 14 Feb 2025 20:18:37 +0000 (21:18 +0100)
commit9ad1b3d01f369f1b204324857e58d9283ff0a527
tree2434e8750c56d26178a3178f67e9b5469ed747ab
parent760bf588de91daa5426e3d7aaf77de5abde063b4
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 
Reviewed-by: Daniel Gustafsson
Reviewed-by: Álvaro Herrera
Discussion: https://postgr.es/m/CAPBGcbxo9ASzq14VTpQp3mnUJ5omdgTWUJOvWV0L6nNigWE5jw@mail.gmail.com
contrib/pgcrypto/expected/rijndael.out
contrib/pgcrypto/openssl.c
contrib/pgcrypto/sql/rijndael.sql
doc/src/sgml/pgcrypto.sgml