mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
More pgcrypto fixes: handle long messages correctly, suppress
compiler warnings. Marko Kreen and Kris Jurka.
This commit is contained in:
@ -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');
|
||||
|
||||
|
Reference in New Issue
Block a user