2002-10-19 02:41:22 +08:00
|
|
|
-- Adjust this setting to control where the objects get created.
|
|
|
|
SET search_path = public;
|
|
|
|
|
|
|
|
CREATE OR REPLACE FUNCTION digest(text, text)
|
|
|
|
RETURNS bytea
|
|
|
|
AS 'MODULE_PATHNAME', 'pg_digest'
|
|
|
|
LANGUAGE 'C';
|
|
|
|
|
|
|
|
CREATE OR REPLACE FUNCTION digest(bytea, text)
|
|
|
|
RETURNS bytea
|
|
|
|
AS 'MODULE_PATHNAME', 'pg_digest'
|
|
|
|
LANGUAGE 'C';
|
|
|
|
|
|
|
|
CREATE OR REPLACE FUNCTION digest_exists(text)
|
|
|
|
RETURNS bool
|
|
|
|
AS 'MODULE_PATHNAME', 'pg_digest_exists'
|
|
|
|
LANGUAGE 'C';
|
|
|
|
|
|
|
|
CREATE OR REPLACE FUNCTION hmac(text, text, text)
|
|
|
|
RETURNS bytea
|
|
|
|
AS 'MODULE_PATHNAME', 'pg_hmac'
|
|
|
|
LANGUAGE 'C';
|
|
|
|
|
|
|
|
CREATE OR REPLACE FUNCTION hmac(bytea, bytea, text)
|
|
|
|
RETURNS bytea
|
|
|
|
AS 'MODULE_PATHNAME', 'pg_hmac'
|
|
|
|
LANGUAGE 'C';
|
|
|
|
|
|
|
|
CREATE OR REPLACE FUNCTION hmac_exists(text)
|
|
|
|
RETURNS bool
|
|
|
|
AS 'MODULE_PATHNAME', 'pg_hmac_exists'
|
|
|
|
LANGUAGE 'C';
|
|
|
|
|
|
|
|
CREATE OR REPLACE FUNCTION crypt(text, text)
|
|
|
|
RETURNS text
|
|
|
|
AS 'MODULE_PATHNAME', 'pg_crypt'
|
|
|
|
LANGUAGE 'C';
|
|
|
|
|
|
|
|
CREATE OR REPLACE FUNCTION gen_salt(text)
|
|
|
|
RETURNS text
|
|
|
|
AS 'MODULE_PATHNAME', 'pg_gen_salt'
|
|
|
|
LANGUAGE 'C';
|
|
|
|
|
|
|
|
CREATE OR REPLACE FUNCTION gen_salt(text, int4)
|
|
|
|
RETURNS text
|
|
|
|
AS 'MODULE_PATHNAME', 'pg_gen_salt_rounds'
|
|
|
|
LANGUAGE 'C';
|
|
|
|
|
|
|
|
CREATE OR REPLACE FUNCTION encrypt(bytea, bytea, text)
|
|
|
|
RETURNS bytea
|
|
|
|
AS 'MODULE_PATHNAME', 'pg_encrypt'
|
|
|
|
LANGUAGE 'C';
|
|
|
|
|
|
|
|
CREATE OR REPLACE FUNCTION decrypt(bytea, bytea, text)
|
|
|
|
RETURNS bytea
|
|
|
|
AS 'MODULE_PATHNAME', 'pg_decrypt'
|
|
|
|
LANGUAGE 'C';
|
|
|
|
|
|
|
|
CREATE OR REPLACE FUNCTION encrypt_iv(bytea, bytea, bytea, text)
|
|
|
|
RETURNS bytea
|
|
|
|
AS 'MODULE_PATHNAME', 'pg_encrypt_iv'
|
|
|
|
LANGUAGE 'C';
|
|
|
|
|
|
|
|
CREATE OR REPLACE FUNCTION decrypt_iv(bytea, bytea, bytea, text)
|
|
|
|
RETURNS bytea
|
|
|
|
AS 'MODULE_PATHNAME', 'pg_decrypt_iv'
|
|
|
|
LANGUAGE 'C';
|
|
|
|
|
|
|
|
CREATE OR REPLACE FUNCTION cipher_exists(text)
|
|
|
|
RETURNS bool
|
|
|
|
AS 'MODULE_PATHNAME', 'pg_cipher_exists'
|
|
|
|
LANGUAGE 'C';
|
/contrib/pgcrypto:
* remove support for encode() as it is in main tree now
* remove krb5.c
* new 'PX library' architecture
* remove BSD license from my code to let the general
PostgreSQL one to apply
* md5, sha1: ANSIfy, use const where appropriate
* various other formatting and clarity changes
* hmac()
* UN*X-like crypt() - system or internal crypt
* Internal crypt: DES, Extended DES, MD5, Blowfish
crypt-des.c, crypt-md5.c from FreeBSD
crypt-blowfish.c from Solar Designer
* gen_salt() for crypt() - Blowfish, MD5, DES, Extended DES
* encrypt(), decrypt(), encrypt_iv(), decrypt_iv()
* Cipher support in mhash.c, openssl.c
* internal: Blowfish, Rijndael-128 ciphers
* blf.[ch], rijndael.[ch] from OpenBSD
* there will be generated file rijndael-tbl.inc.
Marko Kreen
2001-08-21 08:42:41 +08:00
|
|
|
|
2001-01-24 11:46:16 +08:00
|
|
|
|