projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3b53b2
)
updates.
author
Pekka Riikonen
<priikone@silcnet.org>
Tue, 5 Jun 2001 17:43:49 +0000
(17:43 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Tue, 5 Jun 2001 17:43:49 +0000
(17:43 +0000)
lib/silccrypt/silcrng.c
patch
|
blob
|
history
diff --git
a/lib/silccrypt/silcrng.c
b/lib/silccrypt/silcrng.c
index 6d08cfc71c4b729b568a7bf231bc0deb93ace51e..30fb5f4825211cbc2dd02a7850622b3d79be9140 100644
(file)
--- a/
lib/silccrypt/silcrng.c
+++ b/
lib/silccrypt/silcrng.c
@@
-30,6
+30,12
@@
#undef SILC_RNG_DEBUG
/*#define SILC_RNG_DEBUG*/
+/* Number of states to fetch data from pool. */
+#define SILC_RNG_STATE_NUM 4
+
+/* Byte size of the random data pool. */
+#define SILC_RNG_POOLSIZE 1024
+
static uint32 silc_rng_get_position(SilcRng rng);
static void silc_rng_stir_pool(SilcRng rng);
static void silc_rng_xor(SilcRng rng, uint32 val, unsigned int pos);