diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-07-12 20:27:45 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-07-12 20:27:45 +0000 |
| commit | 807bbe6051de32dab969d0ed33807747af5a2b45 (patch) | |
| tree | f564058e9969688c09319f249f7cce01bb7b9bc8 /contrib/pgcrypto/sql/blowfish.sql | |
| parent | 7f0b690334b3f735f926c940686589eca486d247 (diff) | |
| download | postgresql-807bbe6051de32dab969d0ed33807747af5a2b45.tar.gz | |
More pgcrypto fixes: handle long messages correctly, suppress
compiler warnings. Marko Kreen and Kris Jurka.
Diffstat (limited to 'contrib/pgcrypto/sql/blowfish.sql')
| -rw-r--r-- | contrib/pgcrypto/sql/blowfish.sql | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/pgcrypto/sql/blowfish.sql b/contrib/pgcrypto/sql/blowfish.sql index 565282cb0f..c0383f5421 100644 --- a/contrib/pgcrypto/sql/blowfish.sql +++ b/contrib/pgcrypto/sql/blowfish.sql @@ -85,3 +85,7 @@ select decrypt(encrypt('foo', '0123456', 'bf'), '0123456', 'bf'); select encode(encrypt_iv('foo', '0123456', 'abcd', 'bf'), 'hex'); select decrypt_iv(decode('95c7e89322525d59', 'hex'), '0123456', 'abcd', 'bf'); +-- long message +select encode(encrypt('Lets try a longer message.', '0123456789', 'bf'), 'hex'); +select decrypt(encrypt('Lets try a longer message.', '0123456789', 'bf'), '0123456789', 'bf'); + |
