Skip to content

Commit d40d97d

Browse files
committed
pgcrypto's encrypt() supports AES-128, AES-192, and AES-256
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
1 parent e5dede9 commit d40d97d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

contrib/pgcrypto/expected/rijndael.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--
2-
-- AES / Rijndael-128 cipher
2+
-- AES cipher (aka Rijndael-128, -192, or -256)
33
--
44
-- ensure consistent test output regardless of the default bytea format
55
SET bytea_output TO escape;

contrib/pgcrypto/sql/rijndael.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--
2-
-- AES / Rijndael-128 cipher
2+
-- AES cipher (aka Rijndael-128, -192, or -256)
33
--
44
-- ensure consistent test output regardless of the default bytea format
55
SET bytea_output TO escape;

doc/src/sgml/pgcrypto.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,7 @@ decrypt_iv(data bytea, key bytea, iv bytea, type text) returns bytea
10621062

10631063
<itemizedlist>
10641064
<listitem><para><literal>bf</literal> &mdash; Blowfish</para></listitem>
1065-
<listitem><para><literal>aes</literal> &mdash; AES (Rijndael-128)</para></listitem>
1065+
<listitem><para><literal>aes</literal> &mdash; AES (Rijndael-128, -192 or -256)</para></listitem>
10661066
</itemizedlist>
10671067
and <replaceable>mode</replaceable> is one of:
10681068
<itemizedlist>

0 commit comments

Comments
 (0)