summaryrefslogtreecommitdiff
path: root/contrib/pgcrypto/pgcrypto.h
diff options
context:
space:
mode:
authorBruce Momjian2001-09-23 04:12:44 +0000
committerBruce Momjian2001-09-23 04:12:44 +0000
commitab560228643cca4a3640db82f61dc0e2cabf2acd (patch)
treed905cd6ae2e9119f635ecc5679c321de2a667f81 /contrib/pgcrypto/pgcrypto.h
parentb75814aee320ef2b67ad01ba72c266dbbf94db45 (diff)
Big thanks to Solar Designer who pointed out a bug in bcrypt
salt generation code. He also urged using better random source and making possible to choose using bcrypt and xdes rounds more easily. So, here's patch: * For all salt generation, use Solar Designer's own code. This is mostly due fact that his code is more fit for get_random_bytes() style interface. * New function: gen_salt(type, rounds). This lets specify iteration count for algorithm. * random.c: px_get_random_bytes() function. Supported randomness soure: /dev/urandom, OpenSSL PRNG, libc random() Default: /dev/urandom. * Draft description of C API for pgcrypto functions. New files: API, crypt-gensalt.c, random.c Marko Kreen
Diffstat (limited to 'contrib/pgcrypto/pgcrypto.h')
-rw-r--r--contrib/pgcrypto/pgcrypto.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/pgcrypto/pgcrypto.h b/contrib/pgcrypto/pgcrypto.h
index 4c400243042..1b49c8d895b 100644
--- a/contrib/pgcrypto/pgcrypto.h
+++ b/contrib/pgcrypto/pgcrypto.h
@@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: pgcrypto.h,v 1.4 2001/08/21 00:42:41 momjian Exp $
+ * $Id: pgcrypto.h,v 1.5 2001/09/23 04:12:44 momjian Exp $
*/
#ifndef _PG_CRYPTO_H
@@ -38,6 +38,7 @@ Datum pg_digest_exists(PG_FUNCTION_ARGS);
Datum pg_hmac(PG_FUNCTION_ARGS);
Datum pg_hmac_exists(PG_FUNCTION_ARGS);
Datum pg_gen_salt(PG_FUNCTION_ARGS);
+Datum pg_gen_salt_rounds(PG_FUNCTION_ARGS);
Datum pg_crypt(PG_FUNCTION_ARGS);
Datum pg_encrypt(PG_FUNCTION_ARGS);
Datum pg_decrypt(PG_FUNCTION_ARGS);