Re: Feature Request: Add AES-128-CFB Mode Support to pgcrypto

Umar Hayat <postgresql.wizard@gmail.com>

From: Umar Hayat <postgresql.wizard@gmail.com>
To: Daniel Gustafsson <daniel@yesql.se>
Cc: Vladyslav Nebozhyn <vlad@liberatii.com>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2025-01-29T10:10:29Z
Lists: pgsql-hackers

Attachments

Hi Daniel Gustafsson and Vladyslav Nebozhyn,
I created a patch for CFB mode for AES encryption. Please have a look
and let me know what you think.
Patch covers implementation, tests and documentation changes.

OpenSSL profives aes-cfb1, aes-cfb8 and aes-cfb128 modes where aes-cfb
defaults to aes-cfb128. For simplicity I only added aes-cfb, which is
the most common method used, lower number of bits will introduce
performance degradation, but if it's desirable I can add them as well.

-- 
Umar Hayat
Bitnine (https://bitnine.net/)

Commits

  1. pgcrypto: Add support for CFB mode in AES encryption