| /netbsd/src/crypto/external/bsd/openssl/dist/crypto/rand/ |
| D | rand_pool.c | 66 size_t entropy) in ossl_rand_pool_attach() argument 86 pool->entropy = entropy; in ossl_rand_pool_attach() 128 return pool->entropy; in ossl_rand_pool_entropy() 149 pool->entropy = 0; in ossl_rand_pool_detach() 182 if (pool->entropy < pool->entropy_requested) in ossl_rand_pool_entropy_available() 188 return pool->entropy; in ossl_rand_pool_entropy_available() 198 if (pool->entropy < pool->entropy_requested) in ossl_rand_pool_entropy_needed() 199 return pool->entropy_requested - pool->entropy; in ossl_rand_pool_entropy_needed() 306 const unsigned char *buffer, size_t len, size_t entropy) in ossl_rand_pool_add() argument 342 pool->entropy += entropy; in ossl_rand_pool_add() [all …]
|
| D | prov_seed.c | 16 unsigned char **pout, int entropy, in ossl_rand_get_entropy() argument 23 pool = ossl_rand_pool_new(entropy, 1, min_len, max_len); in ossl_rand_get_entropy()
|
| /netbsd/src/sbin/rndctl/ |
| D | rndctl.c | 195 rs.entropy = MIN(MAX(systementropy, extraentropy), in update_seed() 203 SHA1Update(&s, (const uint8_t *)&rs.entropy, sizeof(rs.entropy)); in update_seed() 335 SHA1Update(&s, (const uint8_t *)&rs.entropy, sizeof(rs.entropy)); in do_load() 346 rs.entropy = 0; in do_load() 354 if (howmany(rs.entropy, NBBY) > sizeof(rs.data)) { in do_load() 355 rs.entropy = bswap32(rs.entropy); in do_load() 356 if (howmany(rs.entropy, NBBY) > sizeof(rs.data)) { in do_load() 358 rs.entropy = 0; in do_load() 364 rs.entropy = 0; in do_load() 367 if (rs.entropy == 0) { in do_load() [all …]
|
| /netbsd/src/external/bsd/ntp/dist/sntp/libevent/ |
| D | arc4random.c | 258 unsigned char entropy[64]; in arc4_seed_proc_sys_kernel_random_uuid() local 268 memset(entropy, 0, sizeof(entropy)); in arc4_seed_proc_sys_kernel_random_uuid() 273 entropy[nybbles/2] |= nyb; in arc4_seed_proc_sys_kernel_random_uuid() 275 entropy[nybbles/2] |= nyb<<4; in arc4_seed_proc_sys_kernel_random_uuid() 282 arc4_addrandom(entropy, nybbles/2); in arc4_seed_proc_sys_kernel_random_uuid() 285 evutil_memclear_(entropy, sizeof(entropy)); in arc4_seed_proc_sys_kernel_random_uuid()
|
| /netbsd/src/external/bsd/wpa/dist/src/crypto/ |
| D | random.c | 62 static unsigned int entropy = 0; variable 137 if (entropy > MIN_COLLECT_ENTROPY && (count & 0x3ff) != 0) { in random_add_randomness() 145 count, entropy); in random_add_randomness() 154 entropy++; in random_add_randomness() 166 (unsigned int) len, entropy); in random_get_bytes() 210 if (entropy < len) in random_get_bytes() 211 entropy = 0; in random_get_bytes() 213 entropy -= len; in random_get_bytes()
|
| /netbsd/src/external/bsd/libevent/dist/ |
| D | arc4random.c | 257 unsigned char entropy[64]; in arc4_seed_proc_sys_kernel_random_uuid() local 267 memset(entropy, 0, sizeof(entropy)); in arc4_seed_proc_sys_kernel_random_uuid() 272 entropy[nybbles/2] |= nyb; in arc4_seed_proc_sys_kernel_random_uuid() 274 entropy[nybbles/2] |= nyb<<4; in arc4_seed_proc_sys_kernel_random_uuid() 281 arc4_addrandom(entropy, nybbles/2); in arc4_seed_proc_sys_kernel_random_uuid() 284 evutil_memclear_(entropy, sizeof(entropy)); in arc4_seed_proc_sys_kernel_random_uuid()
|
| /netbsd/src/etc/rc.d/ |
| D | sshd | 24 if [ $( sysctl -n kern.entropy.needed ) -ne 0 ]; then 29 not enough entropy configured, so they may be predictable. 31 To fix, follow the "Adding entropy" section in the entropy(7) 32 man page. After this machine has enough entropy, re-generate
|
| D | entropy | 18 case ${entropy-} in
|
| D | Makefile | 23 entropy envsys \
|
| /netbsd/src/etc/etc.i386/ |
| D | boot.cfg | 1 menu=Boot normally:rndseed /var/db/entropy-file;boot 2 menu=Boot single user:rndseed /var/db/entropy-file;boot -s
|
| /netbsd/src/etc/etc.amd64/ |
| D | boot.cfg | 1 menu=Boot normally:rndseed /var/db/entropy-file;boot 2 menu=Boot single user:rndseed /var/db/entropy-file;boot -s
|
| /netbsd/src/external/apache2/mDNSResponder/dist/mDNSPosix/ |
| D | mbedtls.c | 59 static mbedtls_entropy_context entropy; variable 67 mbedtls_entropy_init(&entropy); in mDNSPosixTLSInit() 70 status = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, NULL, 0); in mDNSPosixTLSInit()
|
| /netbsd/src/share/man/man7/ |
| D | Makefile | 10 MAN+= entropy.7 52 entropy.7 random.7
|
| /netbsd/src/tests/kernel/ |
| D | t_rnd.c | 63 rd.entropy = 1; in ATF_TC_BODY() 85 rd.entropy = 1; in ATF_TC_BODY()
|
| /netbsd/src/external/bsd/openldap/dist/libraries/liblutil/ |
| D | Makefile.in | 29 SRCS = base64.c entropy.c sasl.c signal.c hash.c passfile.c \ 34 OBJS = base64.o entropy.o sasl.o signal.o hash.o passfile.o \
|
| D | passwd.c | 895 char entropy[sizeof(salt)]; in hash_crypt() local 896 strcpy( entropy, (char *) salt ); in hash_crypt() 897 snprintf( (char *) salt, sizeof(entropy), salt_format, entropy ); in hash_crypt()
|
| /netbsd/src/sys/sys/ |
| D | rndio.h | 47 uint32_t entropy; member 160 uint32_t entropy; member
|
| /netbsd/src/sys/kern/ |
| D | kern_entropy.c | 593 SHA1Update(&ctx, (const void *)&seed->entropy, sizeof(seed->entropy)); in entropy_seed() 599 seed->entropy = 0; in entropy_seed() 609 if (howmany(seed->entropy, NBBY) > sizeof(seed->data)) { in entropy_seed() 610 seed->entropy = bswap32(seed->entropy); in entropy_seed() 611 if (howmany(seed->entropy, NBBY) > sizeof(seed->data)) in entropy_seed() 612 seed->entropy = 0; in entropy_seed() 620 E->seeded = (seed->entropy > 0); in entropy_seed() 629 seed->entropy = 0; in entropy_seed() 632 " with %u bits of entropy\n", (unsigned)seed->entropy); in entropy_seed() 637 seed->entropy); in entropy_seed() [all …]
|
| /netbsd/src/external/bsd/wpa/dist/src/eap_common/ |
| D | eap_pax_common.c | 32 const u8 *entropy, size_t entropy_len, in eap_pax_kdf() argument 51 addr[1] = entropy; in eap_pax_kdf()
|
| D | eap_pax_common.h | 82 const u8 *entropy, size_t entropy_len,
|
| /netbsd/src/external/bsd/openldap/lib/liblutil/ |
| D | Makefile | 14 SRCS= base64.c entropy.c sasl.c signal.c hash.c passfile.c \
|
| /netbsd/src/etc/defaults/ |
| D | security.conf | 51 random_file=/var/db/entropy-file
|
| /netbsd/src/external/bsd/wpa/dist/wpa_supplicant/ |
| D | android.config | 407 # works by reading /dev/urandom. It should be noted that the OS entropy pool 410 # number generator and may by default start up with minimal entropy available 414 # additional entropy for generating random data to mix in with the data fetched 418 # entropy either by using hardware assisted random number generator or by 421 # wpa_supplicant can be configured to maintain its own entropy store over 424 # reboot. This can be enabled with -e<entropy file> command line option. The 436 # entropy is maintained across reboots. Commit b410eb1913 'Initialize 437 # /dev/urandom earlier in boot' seeds /dev/urandom with that entropy before
|
| /netbsd/src/external/bsd/wpa/dist/hostapd/ |
| D | defconfig | 238 # reading /dev/urandom. It should be noted that the OS entropy pool needs to be 241 # may by default start up with minimal entropy available for random number 245 # additional entropy for generating random data to mix in with the data 249 # with enough entropy either by using hardware assisted random number 252 # hostapd can be configured to maintain its own entropy store over restarts to 255 # This can be enabled with -e<entropy file> command line option. The specified
|
| /netbsd/src/external/mit/expat/dist/lib/ |
| D | xmlparse.c | 149 # error You do not have support for any sources of high quality entropy \ 962 ENTROPY_DEBUG(const char *label, unsigned long entropy) { in ENTROPY_DEBUG() argument 965 (int)sizeof(entropy) * 2, entropy, (unsigned long)sizeof(entropy)); in ENTROPY_DEBUG() 967 return entropy; in ENTROPY_DEBUG() 972 unsigned long entropy; in generate_hash_secret_salt() local 977 arc4random_buf(&entropy, sizeof(entropy)); in generate_hash_secret_salt() 978 return ENTROPY_DEBUG("arc4random_buf", entropy); in generate_hash_secret_salt() 980 writeRandomBytes_arc4random((void *)&entropy, sizeof(entropy)); in generate_hash_secret_salt() 981 return ENTROPY_DEBUG("arc4random", entropy); in generate_hash_secret_salt() 985 if (writeRandomBytes_rand_s((void *)&entropy, sizeof(entropy))) { in generate_hash_secret_salt() [all …]
|