Home
last modified time | relevance | path

Searched refs:entropy (Results 1 – 25 of 75) sorted by relevance

123

/NextBSD/etc/rc.d/
HDrandom59 case ${entropy_dir:=/var/db/entropy} in
69 case ${entropy_file:=/entropy} in
73 feed_dev_random "${entropy_file}" /var/db/entropy-file
78 case ${entropy_boot_file:=/boot/entropy} in
94 case ${entropy_file:=/entropy} in
107 rm -f /var/db/entropy-file 2> /dev/null
108 if touch /var/db/entropy-file 2> /dev/null; then
109 entropy_file_confirmed=/var/db/entropy-file
126 case ${entropy_boot_file:=/boot/entropy} in
/NextBSD/sys/dev/random/
HDrandom_harvestq.c197 uint32_t entropy[HARVESTSIZE]; in random_sources_feed() local
213 n = rrs->rrs_source->rs_read(entropy, sizeof(entropy)); in random_sources_feed()
214 …KASSERT((n <= sizeof(entropy)), ("%s: rs_read returned too much data (%u > %zu)", __func__, n, siz… in random_sources_feed()
224 random_harvest_direct(entropy, n, (n*8)/2, rrs->rrs_source->rs_source); in random_sources_feed()
227 explicit_bzero(entropy, sizeof(entropy)); in random_sources_feed()
410 random_harvest_queue(const void *entropy, u_int size, u_int bits, enum random_entropy_source origin) in random_harvest_queue() argument
429 memcpy(event->he_entropy, entropy, size); in random_harvest_queue()
434 event->he_entropy[0] = jenkins_hash(entropy, size, (uint32_t)(uintptr_t)event); in random_harvest_queue()
448 random_harvest_fast(const void *entropy, u_int size, u_int bits, enum random_entropy_source origin) in random_harvest_fast() argument
457 …harvest_context.hc_entropy_fast_accumulator.buf[pos] ^= jenkins_hash(entropy, size, (uint32_t)get_… in random_harvest_fast()
[all …]
/NextBSD/contrib/ntp/lib/isc/
HDhash.c96 isc_entropy_t *entropy; /*%< entropy source */ member
142 isc_hash_ctxcreate(isc_mem_t *mctx, isc_entropy_t *entropy, in isc_hash_ctxcreate() argument
192 hctx->entropy = NULL; in isc_hash_ctxcreate()
198 if (entropy != NULL) in isc_hash_ctxcreate()
199 isc_entropy_attach(entropy, &hctx->entropy); in isc_hash_ctxcreate()
201 UNUSED(entropy); in isc_hash_ctxcreate()
223 isc_hash_create(isc_mem_t *mctx, isc_entropy_t *entropy, size_t limit) { in isc_hash_create() argument
234 result = isc_hash_ctxcreate(mctx, entropy, limit, &hash); in isc_hash_create()
248 if (hctx->entropy) { in isc_hash_ctxinit()
252 result = isc_entropy_getdata(hctx->entropy, in isc_hash_ctxinit()
[all …]
HDentropy.c94 isc_uint32_t entropy; /*%< current entropy estimate in bits */ member
227 add_entropy(isc_entropy_t *ent, isc_uint32_t entropy) { in add_entropy() argument
229 entropy = ISC_MIN(entropy, RND_POOLBITS); in add_entropy()
231 entropy += ent->pool.entropy; in add_entropy()
233 ent->pool.entropy = ISC_MIN(entropy, RND_POOLBITS); in add_entropy()
240 subtract_entropy(isc_entropy_t *ent, isc_uint32_t entropy) { in subtract_entropy() argument
241 entropy = ISC_MIN(entropy, ent->pool.entropy); in subtract_entropy()
242 ent->pool.entropy -= entropy; in subtract_entropy()
313 isc_uint32_t entropy) in entropypool_adddata() argument
360 add_entropy(ent, entropy); in entropypool_adddata()
[all …]
/NextBSD/libexec/save-entropy/
HDsave-entropy.sh52 entropy_dir=${entropy_dir:-/var/db/entropy}
61 logger -is -t "$0" The entropy directory "${entropy_dir}" does \
62 not exist, and cannot be created. Therefore no entropy can \
67 logger -is -t "$0" Cannot cd to the entropy directory: "${entropy_dir}". \
70 for f in saved-entropy.*; do
71 case "${f}" in saved-entropy.\*) continue ;; esac # No files match
90 dd if=/dev/random of=saved-entropy.1 bs=${entropy_save_sz} count=1 2>/dev/null
HDMakefile3 SCRIPTS= save-entropy.sh
/NextBSD/crypto/openssl/doc/crypto/
HDRAND_egd.pod5 RAND_egd, RAND_egd_bytes, RAND_query_egd_bytes - query entropy gathering daemon
18 RAND_egd() queries the entropy gathering daemon EGD on socket B<path>.
23 RAND_egd_bytes() queries the entropy gathering daemon EGD on socket B<path>.
29 the EGD socket. This can be advantageous, since the amount of entropy
39 On systems without /dev/*random devices providing entropy from the kernel,
40 the EGD entropy gathering daemon can be used to collect entropy. It provides
41 a socket interface through which entropy can be gathered in chunks up to
48 random bytes that EGD has collected. RAND_egd() retrieves entropy from the
51 entropy to be collected. The write and read socket operations in the
58 out of entropy.
[all …]
HDRAND_add.pod6 entropy to the PRNG
14 void RAND_add(const void *buf, int num, double entropy);
28 B<entropy> argument is (the lower bound of) an estimate of how much
30 sources of randomness and how to estimate their entropy can be found
43 RAND_seed() is equivalent to RAND_add() when B<num == entropy>.
45 RAND_event() collects the entropy from Windows events such as mouse
48 the window procedure. It will estimate the entropy contained in the
/NextBSD/crypto/openssl/crypto/rand/
HDmd_rand.c144 static double entropy = 0; variable
189 entropy = 0; in ssleay_rand_cleanup()
321 if (entropy < ENTROPY_NEEDED) /* stop counting when we have enough */ in ssleay_rand_add()
322 entropy += add; in ssleay_rand_add()
402 ok = (entropy >= ENTROPY_NEEDED); in ssleay_rand_bytes()
415 entropy -= num; in ssleay_rand_bytes()
416 if (entropy < 0) in ssleay_rand_bytes()
417 entropy = 0; in ssleay_rand_bytes()
582 ret = entropy >= ENTROPY_NEEDED; in ssleay_rand_status()
HDrand_lib.c148 void RAND_add(const void *buf, int num, double entropy) in RAND_add() argument
152 meth->add(buf, num, entropy); in RAND_add()
192 int entropy, size_t min_len, size_t max_len) in drbg_get_entropy() argument
236 double entropy) in drbg_rand_add() argument
238 RAND_SSLeay()->add(in, inlen, entropy); in drbg_rand_add()
HDrand.h85 void (*add) (const void *buf, int num, double entropy);
104 void RAND_add(const void *buf, int num, double entropy);
/NextBSD/contrib/wpa/src/crypto/
HDrandom.c60 static unsigned int entropy = 0; variable
132 if (entropy > MIN_COLLECT_ENTROPY && (count & 0x3ff) != 0) { in random_add_randomness()
140 count, entropy); in random_add_randomness()
149 entropy++; in random_add_randomness()
161 (unsigned int) len, entropy); in random_get_bytes()
205 if (entropy < len) in random_get_bytes()
206 entropy = 0; in random_get_bytes()
208 entropy -= len; in random_get_bytes()
/NextBSD/contrib/ntp/sntp/libevent/
HDarc4random.c261 unsigned char entropy[64]; in arc4_seed_proc_sys_kernel_random_uuid() local
271 memset(entropy, 0, sizeof(entropy)); in arc4_seed_proc_sys_kernel_random_uuid()
276 entropy[nybbles/2] |= nyb; in arc4_seed_proc_sys_kernel_random_uuid()
278 entropy[nybbles/2] |= nyb<<4; in arc4_seed_proc_sys_kernel_random_uuid()
285 arc4_addrandom(entropy, nybbles/2); in arc4_seed_proc_sys_kernel_random_uuid()
288 evutil_memclear_(entropy, sizeof(entropy)); in arc4_seed_proc_sys_kernel_random_uuid()
/NextBSD/usr.sbin/bsdinstall/scripts/
HDentropy30 for i in /entropy /boot/entropy; do
HDMakefile3 SCRIPTS= auto adduser checksum config docsinstall entropy hostname jail \
/NextBSD/contrib/ntp/lib/isc/include/isc/
HDhash.h85 isc_hash_ctxcreate(isc_mem_t *mctx, isc_entropy_t *entropy, unsigned int limit,
88 isc_hash_create(isc_mem_t *mctx, isc_entropy_t *entropy, size_t limit);
/NextBSD/crypto/openssh/contrib/hpux/
HDegd1 # EGD_START: Set to 1 to start entropy gathering daemon
14 EGD_ARGS='/etc/opt/egd/entropy'
/NextBSD/contrib/netbsd-tests/kernel/
HDt_rnd.c62 rd.entropy = 1; in ATF_TC_BODY()
84 rd.entropy = 1; in ATF_TC_BODY()
/NextBSD/etc/
HDcrontab12 # Save some entropy so that /dev/random can re-seed on boot.
13 */11 * * * * operator /usr/libexec/save-entropy
/NextBSD/sys/kern/
HDkern_intr.c872 struct intr_entropy entropy; in intr_event_schedule_thread() local
895 entropy.event = (uintptr_t)ie; in intr_event_schedule_thread()
896 entropy.td = ctd; in intr_event_schedule_thread()
897 random_harvest_queue(&entropy, sizeof(entropy), 2, RANDOM_INTERRUPT); in intr_event_schedule_thread()
1036 struct intr_entropy entropy; in intr_event_schedule_thread() local
1056 entropy.event = (uintptr_t)ie; in intr_event_schedule_thread()
1057 entropy.td = ctd; in intr_event_schedule_thread()
1058 random_harvest_queue(&entropy, sizeof(entropy), 2, RANDOM_INTERRUPT); in intr_event_schedule_thread()
1141 struct intr_entropy entropy; in swi_sched() local
1147 entropy.event = (uintptr_t)ih; in swi_sched()
[all …]
/NextBSD/contrib/wpa/src/eap_common/
HDeap_pax_common.c32 const u8 *entropy, size_t entropy_len, in eap_pax_kdf() argument
51 addr[1] = entropy; in eap_pax_kdf()
/NextBSD/contrib/ntp/lib/isc/win32/
HDentropy.c119 if ((ent->pool.entropy >= RND_POOLBITS / 4) in fillpool()
132 needed = ISC_MIN(needed, RND_POOLBITS - ent->pool.entropy); in fillpool()
/NextBSD/contrib/wpa/hostapd/
HDdefconfig215 # reading /dev/urandom. It should be noted that the OS entropy pool needs to be
218 # may by default start up with minimal entropy available for random number
222 # additional entropy for generating random data to mix in with the data
226 # with enough entropy either by using hardware assisted random number
229 # hostapd can be configured to maintain its own entropy store over restarts to
232 # This can be enabled with -e<entropy file> command line option. The specified
/NextBSD/contrib/ldns/ldns/
HDutil.h.in296 * applications should call this if they need entropy data within ldns
300 * If you need more entropy, or have no openssl available, this function
303 * If openssl *is* available, this function just adds more entropy
305 * \param[in] fd a file providing entropy data for the seed
306 * \param[in] size the number of bytes to use as entropy data. If this is 0,
/NextBSD/targets/pseudo/userland/libexec/
HDMakefile.depend36 libexec/save-entropy \

123