mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
More pgcrypto fixes: handle long messages correctly, suppress
compiler warnings. Marko Kreen and Kris Jurka.
This commit is contained in:
@ -40,3 +40,7 @@ select encode(encrypt_iv('foo', '0123456', 'abcd', 'cast5'), 'hex');
|
||||
select decrypt_iv(decode('384a970695ce016a', 'hex'),
|
||||
'0123456', 'abcd', 'cast5');
|
||||
|
||||
-- long message
|
||||
select encode(encrypt('Lets try a longer message.', '0123456789', 'cast5'), 'hex');
|
||||
select decrypt(encrypt('Lets try a longer message.', '0123456789', 'cast5'), '0123456789', 'cast5');
|
||||
|
||||
|
Reference in New Issue
Block a user