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

From: Umar Hayat <postgresql(dot)wizard(at)gmail(dot)com>
To: Daniel Gustafsson <daniel(at)yesql(dot)se>
Cc: Vladyslav Nebozhyn <vlad(at)liberatii(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Feature Request: Add AES-128-CFB Mode Support to pgcrypto
Date: 2025-01-29 10:10:29
Message-ID: CAD68Dp1+f-rCjcJyq6dVSVYJ_zo33bbA=w4x4TNG5OzMK2y7Ow@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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/)

Attachment Content-Type Size
v0-0001-pgcrypto-aes-cfb-mode.patch application/octet-stream 8.1 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Vladyslav Nebozhyn 2025-01-29 10:11:54 Re: Feature Request: Add AES-128-CFB Mode Support to pgcrypto
Previous Message Maxim Orlov 2025-01-29 09:58:55 Re: postgres_fdw could deparse ArrayCoerceExpr