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
- v0-0001-pgcrypto-aes-cfb-mode.patch (application/octet-stream) patch v0-0001
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
-
pgcrypto: Add support for CFB mode in AES encryption
- 9ad1b3d01f36 18.0 landed