Add data for WAL in pg_stat_io and backend statistics
[pgsql.git] / contrib / pgcrypto / expected / 3des_1.out
blobfb1d1f6f0c05aa0c1bc18ef13a63b2d023124a58
1 --
2 -- 3DES cipher
3 --
4 -- test vector from somewhere
5 SELECT encrypt('\x8000000000000000',
6                '\x010101010101010101010101010101010101010101010101',
7                '3des-ecb/pad:none');
8 ERROR:  encrypt error: Cipher cannot be initialized
9 select encrypt('', 'foo', '3des');
10 ERROR:  encrypt error: Cipher cannot be initialized
11 -- 10 bytes key
12 select encrypt('foo', '0123456789', '3des');
13 ERROR:  encrypt error: Cipher cannot be initialized
14 -- 22 bytes key
15 select encrypt('foo', '0123456789012345678901', '3des');
16 ERROR:  encrypt error: Cipher cannot be initialized
17 -- decrypt
18 select encode(decrypt(encrypt('foo', '0123456', '3des'), '0123456', '3des'), 'escape');
19 ERROR:  encrypt error: Cipher cannot be initialized
20 -- iv
21 select encrypt_iv('foo', '0123456', 'abcd', '3des');
22 ERROR:  encrypt_iv error: Cipher cannot be initialized
23 select encode(decrypt_iv('\x50735067b073bb93', '0123456', 'abcd', '3des'), 'escape');
24 ERROR:  decrypt_iv error: Cipher cannot be initialized
25 -- long message
26 select encrypt('Lets try a longer message.', '0123456789012345678901', '3des');
27 ERROR:  encrypt error: Cipher cannot be initialized
28 select encode(decrypt(encrypt('Lets try a longer message.', '0123456789012345678901', '3des'), '0123456789012345678901', '3des'), 'escape');
29 ERROR:  encrypt error: Cipher cannot be initialized