mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-26 07:27:18 +02:00
* 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
60 lines
1.6 KiB
MySQL
60 lines
1.6 KiB
MySQL
|
|
-- drop function digest(bytea, text);
|
|
-- drop function digest_exists(text);
|
|
-- drop function hmac(bytea, bytea, text);
|
|
-- drop function hmac_exists(text);
|
|
-- drop function crypt(text, text);
|
|
-- drop function gen_salt(text);
|
|
-- drop function encrypt(bytea, bytea, text);
|
|
-- drop function decrypt(bytea, bytea, text);
|
|
-- drop function encrypt_iv(bytea, bytea, bytea, text);
|
|
-- drop function decrypt_iv(bytea, bytea, bytea, text);
|
|
|
|
|
|
|
|
CREATE FUNCTION digest(bytea, text) RETURNS bytea
|
|
AS '@MODULE_FILENAME@',
|
|
'pg_digest' LANGUAGE 'C';
|
|
|
|
CREATE FUNCTION digest_exists(text) RETURNS bool
|
|
AS '@MODULE_FILENAME@',
|
|
'pg_digest_exists' LANGUAGE 'C';
|
|
|
|
CREATE FUNCTION hmac(bytea, bytea, text) RETURNS bytea
|
|
AS '@MODULE_FILENAME@',
|
|
'pg_hmac' LANGUAGE 'C';
|
|
|
|
CREATE FUNCTION hmac_exists(text) RETURNS bool
|
|
AS '@MODULE_FILENAME@',
|
|
'pg_hmac_exists' LANGUAGE 'C';
|
|
|
|
CREATE FUNCTION crypt(text, text) RETURNS text
|
|
AS '@MODULE_FILENAME@',
|
|
'pg_crypt' LANGUAGE 'C';
|
|
|
|
CREATE FUNCTION gen_salt(text) RETURNS text
|
|
AS '@MODULE_FILENAME@',
|
|
'pg_gen_salt' LANGUAGE 'C';
|
|
|
|
CREATE FUNCTION encrypt(bytea, bytea, text) RETURNS bytea
|
|
AS '@MODULE_FILENAME@',
|
|
'pg_encrypt' LANGUAGE 'C';
|
|
|
|
CREATE FUNCTION decrypt(bytea, bytea, text) RETURNS bytea
|
|
AS '@MODULE_FILENAME@',
|
|
'pg_decrypt' LANGUAGE 'C';
|
|
|
|
CREATE FUNCTION encrypt_iv(bytea, bytea, bytea, text) RETURNS bytea
|
|
AS '@MODULE_FILENAME@',
|
|
'pg_encrypt_iv' LANGUAGE 'C';
|
|
|
|
CREATE FUNCTION decrypt_iv(bytea, bytea, bytea, text) RETURNS bytea
|
|
AS '@MODULE_FILENAME@',
|
|
'pg_decrypt_iv' LANGUAGE 'C';
|
|
|
|
CREATE FUNCTION cipher_exists(text) RETURNS bool
|
|
AS '@MODULE_FILENAME@',
|
|
'pg_cipher_exists' LANGUAGE 'C';
|
|
|
|
|