Searched refs:entropy (Results 1 - 25 of 68) sorted by relevance

123

/bind-9.11.3/lib/isc/include/isc/
H A Drandom.h16 #include <isc/entropy.h>
60 isc_rng_create(isc_mem_t *mctx, isc_entropy_t *entropy, isc_rng_t **rngp);
69 * \li entropy is an optional entopy source (can be NULL)
H A Dhash.h58 * Its unpredictability relies on the quality of entropy to build the
79 isc_hash_ctxcreate(isc_mem_t *mctx, isc_entropy_t *entropy, size_t limit,
82 isc_hash_create(isc_mem_t *mctx, isc_entropy_t *entropy, size_t limit);
91 * 'entropy' must be NULL or a valid entropy object. If 'entropy' is NULL,
137 * source of entropy, which is typically from the entropy object specified
139 * initializing the entropy object with some good entropy source
[all...]
H A Dentropy.h9 /* $Id: entropy.h,v 1.35 2009/10/19 02:37:08 marka Exp $ */
18 /*! \file isc/entropy.h
19 * \brief The entropy API
22 * The entropy object is locked internally. All callbacks into
25 * entropy API lock held. This means these functions are
26 * not permitted to call back into the entropy API.
32 * A buffer, used as an entropy pool.
35 * While this code is believed to implement good entropy gathering
38 * Since the added entropy is only as good as the sources used,
96 * Estimate the amount of entropy containe
[all...]
/bind-9.11.3/lib/isc/
H A Dentropy.c9 /* $Id: entropy.c,v 1.22 2010/08/10 23:48:19 tbox Exp $ */
13 * This is the system independent part of the entropy module. It is
15 * \link unix/entropy.c unix/entropy.c \endlink or win32/entropy.c.
26 #include <isc/entropy.h>
58 * Size of entropy pool in 32-bit words. This _MUST_ be a power of 2.
90 isc_uint32_t entropy; /*%< current entropy estimate in bits */ member in struct:__anon218
140 isc_uint32_t total; /*%< entropy fro
223 add_entropy(isc_entropy_t *ent, isc_uint32_t entropy) argument
236 subtract_entropy(isc_entropy_t *ent, isc_uint32_t entropy) argument
308 entropypool_adddata(isc_entropy_t *ent, void *p, unsigned int len, isc_uint32_t entropy) argument
1032 unsigned int entropy; local
1070 isc_entropy_putdata(isc_entropy_t *ent, void *data, unsigned int length, isc_uint32_t entropy) argument
[all...]
H A Drandom.c47 #include <isc/entropy.h>
73 isc_entropy_t *entropy; /*%< entropy source */ member in struct:isc_rng
175 isc_rng_create(isc_mem_t *mctx, isc_entropy_t *entropy, isc_rng_t **rngp) { argument
186 if (entropy != NULL) {
190 result = isc_entropy_getdata(entropy, rnd.rnd,
221 rng->entropy = entropy; /* don't have to attach */
332 if (rng->entropy != NULL) {
336 result = isc_entropy_getdata(rng->entropy, rn
[all...]
H A Dhash.c50 #include <isc/entropy.h>
85 isc_entropy_t *entropy; /*%< entropy source */ member in struct:isc_hash
132 isc_hash_ctxcreate(isc_mem_t *mctx, isc_entropy_t *entropy, argument
182 hctx->entropy = NULL;
187 if (entropy != NULL)
188 isc_entropy_attach(entropy, &hctx->entropy);
209 isc_hash_create(isc_mem_t *mctx, isc_entropy_t *entropy, size_t limit) { argument
220 result = isc_hash_ctxcreate(mctx, entropy, limi
[all...]
/bind-9.11.3/lib/isc/tests/
H A Disctest.h16 #include <isc/entropy.h>
H A Disctest.c19 #include <isc/entropy.h>
/bind-9.11.3/lib/dns/
H A Dopenssl_link.c30 #include <isc/entropy.h>
85 entropy_add(const void *buf, int num, double entropy) { argument
91 UNUSED(entropy);
95 entropy_add(const void *buf, int num, double entropy) { argument
101 UNUSED(entropy);
/bind-9.11.3/lib/dns/tests/
H A Ddnstest.h14 #include <isc/entropy.h>
/bind-9.11.3/bin/tests/
H A Dentropy_test.c18 #include <isc/entropy.h>
90 fprintf(stderr, "No entropy.\n");
H A Dentropy2_test.c18 #include <isc/entropy.h>
150 fprintf(stderr, "No entropy.\r\n");
H A Dmakejournal.c12 #include <isc/entropy.h>
/bind-9.11.3/lib/isc/win32/
H A Dentropy.c9 /* $Id: entropy.c,v 1.10 2009/01/18 23:48:14 tbox Exp $ */
12 * This is the system dependent part of the ISC entropy API.
25 * There is only one variable in the entropy data structures that is not
37 #include "../entropy.c"
73 * Poll each source, trying to get data from it to stuff into the entropy
101 * Next, if we are asked to add a specific bit of entropy, make
103 * (DIGEST_SIZE * 8 < needed < POOLBITS - entropy).
112 if ((ent->pool.entropy >= RND_POOLBITS / 4)
125 needed = ISC_MIN(needed, RND_POOLBITS - ent->pool.entropy);
139 * next one) to avoid letting some sources build up entropy whil
[all...]
/bind-9.11.3/bin/confgen/
H A Dddns-confgen.c26 #include <isc/entropy.h>
H A Dkeygen.c20 #include <isc/entropy.h>
114 * Generate a key of size 'keysize' using entropy source 'randomfile',
152 DO("create entropy context", isc_entropy_create(mctx, &ectx));
158 DO("start entropy source", isc_entropy_usebestsource(ectx,
182 * Shut down the entropy source now so the "stop typing" message
H A Drndc-confgen.c31 #include <isc/entropy.h>
/bind-9.11.3/lib/isc/unix/
H A Dentropy.c9 /* $Id: entropy.c,v 1.82 2008/12/01 23:47:45 tbox Exp $ */
11 /* \file unix/entropy.c
13 * This is the system dependent part of the ISC entropy API.
42 * There is only one variable in the entropy data structures that is not
63 #include "../entropy.c"
167 * entropy pool fill back up (at least
239 * Poll each source, trying to get data from it to stuff into the entropy
266 * Next, if we are asked to add a specific bit of entropy, make
268 * (DIGEST_SIZE * 8 < needed < POOLBITS - entropy).
277 if ((ent->pool.entropy >
[all...]
/bind-9.11.3/contrib/sdb/pgsql/
H A Dzonetodb.c15 #include <isc/entropy.h>
/bind-9.11.3/lib/dns/include/dns/
H A Ddispatch.h144 dns_dispatchmgr_create(isc_mem_t *mctx, isc_entropy_t *entropy,
154 *\li "entropy" may be NULL, in which case an insecure random generator
155 * will be used. If it is non-NULL, it must be a valid entropy
/bind-9.11.3/bin/dnssec/
H A Ddnssec-revoke.c18 #include <isc/entropy.h>
H A Ddnssec-verify.c19 #include <isc/entropy.h>
/bind-9.11.3/bin/tests/system/rsabigexponent/
H A Dbigkey.c19 #include <isc/entropy.h>
/bind-9.11.3/bin/tests/system/tkey/
H A Dkeydelete.c18 #include <isc/entropy.h>
/bind-9.11.3/contrib/sdb/sqlite/
H A Dzone2sqlite.c19 #include <isc/entropy.h>

Completed in 63 milliseconds

123