pgcrypto's encrypt() supports AES-128, AES-192, and AES-256
authorRobert Haas
Wed, 31 Jan 2018 21:28:11 +0000 (16:28 -0500)
committerRobert Haas
Wed, 31 Jan 2018 21:33:09 +0000 (16:33 -0500)
Previously, only 128 was mentioned, but the others are also supported.

Thomas Munro, reviewed by Michael Paquier and extended a bit by me.

Discussion: http://postgr.es/m/CAEepm=1XbBHXYJKofGjnM2Qfz-ZBVqhGU4AqvtgR+Hegy4fdKg@mail.gmail.com

contrib/pgcrypto/expected/rijndael.out
contrib/pgcrypto/sql/rijndael.sql
doc/src/sgml/pgcrypto.sgml

index 14b2650c324f884cb36889bb3e66b673c67505fb..5366604a3d3b1211a2553ad00a91de5be4624916 100644 (file)
@@ -1,5 +1,5 @@
 --
--- AES / Rijndael-128 cipher
+-- AES cipher (aka Rijndael-128, -192, or -256)
 --
 -- ensure consistent test output regardless of the default bytea format
 SET bytea_output TO escape;
index bfbf95d39b843c5464fcc65b3b6ecfb3e0fdf451..a9bcbf33d0a7a41335dacb5d37e319c97005302b 100644 (file)
@@ -1,5 +1,5 @@
 --
--- AES / Rijndael-128 cipher
+-- AES cipher (aka Rijndael-128, -192, or -256)
 --
 -- ensure consistent test output regardless of the default bytea format
 SET bytea_output TO escape;
index 34d8621958424ebe1ed7d5ede005fb084e7aa6ad..b9f34d2cf0be3ac6596fb7d0beb263ec9d9908af 100644 (file)
@@ -1062,7 +1062,7 @@ decrypt_iv(data bytea, key bytea, iv bytea, type text) returns bytea
 
   
    bf — Blowfish
-   aes — AES (Rijndael-128)
+   aes — AES (Rijndael-128, -192 or -256)
   
    and mode is one of: