4 CREATE EXTENSION pgcrypto;
5 -- check error handling
6 select gen_salt('foo');
7 ERROR: gen_salt: Unknown salt algorithm
8 select digest('foo', 'foo');
9 ERROR: Cannot use "foo": No such hash algorithm
10 select hmac('foo', 'foo', 'foo');
11 ERROR: Cannot use "foo": No such hash algorithm
12 select encrypt('foo', 'foo', 'foo');
13 ERROR: Cannot use "foo": No such cipher algorithm