Header And Logo

PostgreSQL
| The world's most advanced open source database.

pgcrypto.h

Go to the documentation of this file.
00001 /*
00002  * pgcrypto.h
00003  *      Header file for pgcrypto.
00004  *
00005  * Copyright (c) 2000 Marko Kreen
00006  * All rights reserved.
00007  *
00008  * Redistribution and use in source and binary forms, with or without
00009  * modification, are permitted provided that the following conditions
00010  * are met:
00011  * 1. Redistributions of source code must retain the above copyright
00012  *    notice, this list of conditions and the following disclaimer.
00013  * 2. Redistributions in binary form must reproduce the above copyright
00014  *    notice, this list of conditions and the following disclaimer in the
00015  *    documentation and/or other materials provided with the distribution.
00016  *
00017  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
00018  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00019  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00020  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
00021  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00022  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
00023  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
00024  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
00025  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
00026  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00027  * SUCH DAMAGE.
00028  *
00029  * contrib/pgcrypto/pgcrypto.h
00030  */
00031 
00032 #ifndef _PG_CRYPTO_H
00033 #define _PG_CRYPTO_H
00034 
00035 #include "fmgr.h"
00036 
00037 /* exported functions */
00038 Datum       pg_digest(PG_FUNCTION_ARGS);
00039 Datum       pg_hmac(PG_FUNCTION_ARGS);
00040 Datum       pg_gen_salt(PG_FUNCTION_ARGS);
00041 Datum       pg_gen_salt_rounds(PG_FUNCTION_ARGS);
00042 Datum       pg_crypt(PG_FUNCTION_ARGS);
00043 Datum       pg_encrypt(PG_FUNCTION_ARGS);
00044 Datum       pg_decrypt(PG_FUNCTION_ARGS);
00045 Datum       pg_encrypt_iv(PG_FUNCTION_ARGS);
00046 Datum       pg_decrypt_iv(PG_FUNCTION_ARGS);
00047 Datum       pg_random_bytes(PG_FUNCTION_ARGS);
00048 
00049 #endif