summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Schulz <twoaday@freakmail.de>2003-01-21 12:05:51 +0000
committerTimo Schulz <twoaday@freakmail.de>2003-01-21 12:05:51 +0000
commitbd2754ef4035013596fe68a871e9305712231a2f (patch)
tree6e8202616526c54f95115511c58aa80900275122 /src
parentdd8013b79e4793db8676d72e4266ce21f9e3efdb (diff)
downloadlibgcrypt-bd2754ef4035013596fe68a871e9305712231a2f.tar.gz
2003-01-21 Timo Schulz <twoaday@freakmail.de>
* random.c (gcry_random_add_bytes): New. Function to add external random to the pool.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/gcrypt.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 78eaf386..09b3d26c 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
+2003-01-21 Timo Schulz <twoaday@freakmail.de>
+
+ * gcrypt.h (gcry_random_add_bytes): New.
+
2003-01-20 Simon Josefsson <jas@extundo.com>
* gcrypt.h (gcry_md_algos): Add GCRY_MD_CRC32,
diff --git a/src/gcrypt.h b/src/gcrypt.h
index 86ca7f7d..9a0b7802 100644
--- a/src/gcrypt.h
+++ b/src/gcrypt.h
@@ -850,11 +850,15 @@ enum gcry_random_level
GCRY_VERY_STRONG_RANDOM = 2
};
+
/* Fill BUFFER with LENGTH bytes of random, using random numbers of
quality LEVEL. */
void gcry_randomize (unsigned char *buffer, size_t length,
enum gcry_random_level level);
+/* Add the external random from BUFFER with LENGTH bytes into the pool. */
+void gcry_random_add_bytes (const void * buffer, size_t length);
+
/* Return NBYTES of allocated random using a random numbers of quality
LEVEL. */
void *gcry_random_bytes (size_t nbytes, enum gcry_random_level level)