/freebsd/libexec/rc/rc.d/ |
H A D | random | 63 case ${entropy_dir:=/var/db/entropy} in 73 case ${entropy_file:=/entropy} in 77 feed_dev_random "${entropy_file}" /var/db/entropy-file 82 case ${entropy_boot_file:=/boot/entropy} in 98 case ${entropy_file:=/entropy} in 111 rm -f /var/db/entropy-file 2> /dev/null 112 if touch /var/db/entropy-file 2> /dev/null; then 113 entropy_file_confirmed=/var/db/entropy-file 128 case ${entropy_boot_file:=/boot/entropy} in
|
/freebsd/crypto/openssl/crypto/rand/ |
H A 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() 342 pool->entropy += entropy; in ossl_rand_pool_add() 399 int ossl_rand_pool_add_end(RAND_POOL *pool, size_t len, size_t entropy) in ossl_rand_pool_add_end() argument [all …]
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/ |
H A D | zstd_ddict.c | 40 ZSTD_entropyDTables_t entropy; member 75 dctx->LLTptr = ddict->entropy.LLTable; in ZSTD_copyDDictParameters() 76 dctx->MLTptr = ddict->entropy.MLTable; in ZSTD_copyDDictParameters() 77 dctx->OFTptr = ddict->entropy.OFTable; in ZSTD_copyDDictParameters() 78 dctx->HUFptr = ddict->entropy.hufTable; in ZSTD_copyDDictParameters() 79 dctx->entropy.rep[0] = ddict->entropy.rep[0]; in ZSTD_copyDDictParameters() 80 dctx->entropy.rep[1] = ddict->entropy.rep[1]; in ZSTD_copyDDictParameters() 81 dctx->entropy.rep[2] = ddict->entropy.rep[2]; in ZSTD_copyDDictParameters() 113 &ddict->entropy, ddict->dictContent, ddict->dictSize)), in ZSTD_loadEntropy_intoDDict() 137 …ddict->entropy.hufTable[0] = (HUF_DTable)((HufLog)*0x1000001); /* cover both little and big endia… in ZSTD_initDDict_internal()
|
H A D | zstd_decompress.c | 1056 ZSTD_loadDEntropy(ZSTD_entropyDTables_t* entropy, in ZSTD_loadDEntropy() argument 1068 …ZSTD_STATIC_ASSERT(sizeof(entropy->LLTable) + sizeof(entropy->OFTable) + sizeof(entropy->MLTable) … in ZSTD_loadDEntropy() 1070 …size_t const workspaceSize = sizeof(entropy->LLTable) + sizeof(entropy->OFTable) + sizeof(entropy-… in ZSTD_loadDEntropy() 1091 ZSTD_buildFSETable( entropy->OFTable, in ZSTD_loadDEntropy() 1104 ZSTD_buildFSETable( entropy->MLTable, in ZSTD_loadDEntropy() 1117 ZSTD_buildFSETable( entropy->LLTable, in ZSTD_loadDEntropy() 1131 entropy->rep[i] = rep; in ZSTD_loadDEntropy() 1174 dctx->LLTptr = dctx->entropy.LLTable; in ZSTD_decompressBegin() 1175 dctx->MLTptr = dctx->entropy.MLTable; in ZSTD_decompressBegin() 1176 dctx->OFTptr = dctx->entropy.OFTable; in ZSTD_decompressBegin() [all …]
|
/freebsd/sys/contrib/zstd/lib/decompress/ |
H A D | zstd_ddict.c | 40 ZSTD_entropyDTables_t entropy; member 75 dctx->LLTptr = ddict->entropy.LLTable; in ZSTD_copyDDictParameters() 76 dctx->MLTptr = ddict->entropy.MLTable; in ZSTD_copyDDictParameters() 77 dctx->OFTptr = ddict->entropy.OFTable; in ZSTD_copyDDictParameters() 78 dctx->HUFptr = ddict->entropy.hufTable; in ZSTD_copyDDictParameters() 79 dctx->entropy.rep[0] = ddict->entropy.rep[0]; in ZSTD_copyDDictParameters() 80 dctx->entropy.rep[1] = ddict->entropy.rep[1]; in ZSTD_copyDDictParameters() 81 dctx->entropy.rep[2] = ddict->entropy.rep[2]; in ZSTD_copyDDictParameters() 113 &ddict->entropy, ddict->dictContent, ddict->dictSize)), in ZSTD_loadEntropy_intoDDict() 137 …ddict->entropy.hufTable[0] = (HUF_DTable)((HufLog)*0x1000001); /* cover both little and big endia… in ZSTD_initDDict_internal()
|
H A D | zstd_decompress.c | 1346 …ZSTD_STATIC_ASSERT(sizeof(entropy->LLTable) + sizeof(entropy->OFTable) + sizeof(entropy->MLTable) … in ZSTD_loadDEntropy() 1348 …size_t const workspaceSize = sizeof(entropy->LLTable) + sizeof(entropy->OFTable) + sizeof(entropy-… in ZSTD_loadDEntropy() 1369 ZSTD_buildFSETable( entropy->OFTable, in ZSTD_loadDEntropy() 1373 entropy->workspace, sizeof(entropy->workspace), in ZSTD_loadDEntropy() 1388 entropy->workspace, sizeof(entropy->workspace), in ZSTD_loadDEntropy() 1403 entropy->workspace, sizeof(entropy->workspace), in ZSTD_loadDEntropy() 1415 entropy->rep[i] = rep; in ZSTD_loadDEntropy() 1462 dctx->LLTptr = dctx->entropy.LLTable; in ZSTD_decompressBegin() 1463 dctx->MLTptr = dctx->entropy.MLTable; in ZSTD_decompressBegin() 1464 dctx->OFTptr = dctx->entropy.OFTable; in ZSTD_decompressBegin() [all …]
|
/freebsd/libexec/save-entropy/ |
H A D | save-entropy.sh | 53 entropy_dir=${entropy_dir:-/var/db/entropy} 62 logger -is -t "$0" The entropy directory "${entropy_dir}" does \ 63 not exist, and cannot be created. Therefore no entropy can \ 68 logger -is -t "$0" Cannot cd to the entropy directory: "${entropy_dir}". \ 71 for f in saved-entropy.*; do 72 case "${f}" in saved-entropy.\*) continue ;; esac # No files match 102 next_file=saved-entropy.${n} 122 No available slot in "${entropy_dir}", save entropy is aborted.
|
H A D | Makefile | 2 SCRIPTS= save-entropy.sh 3 MAN= save-entropy.8
|
/freebsd/sys/dev/random/ |
H A D | random_harvestq.c | 234 uint32_t entropy[HARVESTSIZE]; in random_sources_feed() local 274 sizeof(entropy)); in random_sources_feed() 284 n = rrs->rrs_source->rs_read(entropy, sizeof(entropy)); in random_sources_feed() 285 …KASSERT((n <= sizeof(entropy)), ("%s: rs_read returned too much data (%u > %zu)", __func__, n, siz… in random_sources_feed() 299 random_harvest_direct(entropy, n, rrs->rrs_source->rs_source); in random_sources_feed() 304 explicit_bzero(entropy, sizeof(entropy)); in random_sources_feed() 444 random_early_prime(char *entropy, size_t len) in random_early_prime() argument 462 explicit_bzero(entropy, len); in random_early_prime() 566 memcpy(event->he_entropy, entropy, size); in random_harvest_queue_() 585 random_harvest_fast_(const void *entropy, u_int size) in random_harvest_fast_() argument [all …]
|
/freebsd/sys/sys/ |
H A D | random.h | 120 random_harvest_queue(const void *entropy, u_int size, enum random_entropy_source origin) in random_harvest_queue() argument 124 random_harvest_queue_(entropy, size, origin); in random_harvest_queue() 128 random_harvest_fast(const void *entropy, u_int size, enum random_entropy_source origin) in random_harvest_fast() argument 132 random_harvest_fast_(entropy, size); in random_harvest_fast() 136 random_harvest_direct(const void *entropy, u_int size, enum random_entropy_source origin) in random_harvest_direct() argument 140 random_harvest_direct_(entropy, size, origin); in random_harvest_direct()
|
/freebsd/crypto/openssl/doc/man7/ |
H A D | EVP_RAND.pod | 20 systems's entropy sources and providing access to deterministic random 49 You need to integrate a previously unsupported entropy source. 63 An EVP_RAND instance can be used as the entropy source of another 67 it does not make sense for the child to be an entropy source. 73 a live entropy source may ignore and not use its parent. 131 | os entropy sources | 159 its entropy source. The entropy source can be either a trusted operating 192 reseeding of the DRBG with fresh entropy by setting the 200 entropy from a live entropy source (section 5.5.2 of [NIST SP 800-90C]). 240 pulls the necessary entropy from its source automatically. [all …]
|
H A D | EVP_RAND-TEST-RAND.pod | 54 Sets the bytes returned when the test generator is sent an entropy request. 78 unsigned char entropy[1000] = { ... }; 88 entropy, sizeof(entropy));
|
/freebsd/crypto/openssl/include/crypto/ |
H A D | rand_pool.h | 81 size_t entropy; /* current entropy count in bits */ member 88 size_t entropy); 105 const unsigned char *buffer, size_t len, size_t entropy); 107 int ossl_rand_pool_add_end(RAND_POOL *pool, size_t len, size_t entropy);
|
/freebsd/contrib/wpa/src/crypto/ |
H A 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()
|
/freebsd/contrib/ntp/sntp/libevent/ |
H A D | arc4random.c | 256 unsigned char entropy[64]; in arc4_seed_proc_sys_kernel_random_uuid() local 266 memset(entropy, 0, sizeof(entropy)); in arc4_seed_proc_sys_kernel_random_uuid() 271 entropy[nybbles/2] |= nyb; in arc4_seed_proc_sys_kernel_random_uuid() 273 entropy[nybbles/2] |= nyb<<4; in arc4_seed_proc_sys_kernel_random_uuid() 280 arc4_addrandom(entropy, nybbles/2); in arc4_seed_proc_sys_kernel_random_uuid() 283 evutil_memclear_(entropy, sizeof(entropy)); in arc4_seed_proc_sys_kernel_random_uuid()
|
/freebsd/contrib/libevent/ |
H A D | arc4random.c | 256 unsigned char entropy[64]; in arc4_seed_proc_sys_kernel_random_uuid() local 266 memset(entropy, 0, sizeof(entropy)); in arc4_seed_proc_sys_kernel_random_uuid() 271 entropy[nybbles/2] |= nyb; in arc4_seed_proc_sys_kernel_random_uuid() 273 entropy[nybbles/2] |= nyb<<4; in arc4_seed_proc_sys_kernel_random_uuid() 280 arc4_addrandom(entropy, nybbles/2); in arc4_seed_proc_sys_kernel_random_uuid() 283 evutil_memclear_(entropy, sizeof(entropy)); in arc4_seed_proc_sys_kernel_random_uuid()
|
/freebsd/crypto/openssl/providers/implementations/rands/ |
H A D | drbg.c | 145 int entropy, size_t min_len, in ossl_drbg_get_seed() argument 154 bytes_needed = entropy >= 0 ? (entropy + 7) / 8 : 0; in ossl_drbg_get_seed() 365 unsigned char *nonce = NULL, *entropy = NULL; in ossl_prov_drbg_instantiate() local 451 entropylen = get_entropy(drbg, &entropy, min_entropy, in ossl_prov_drbg_instantiate() 460 if (!drbg->instantiate(drbg, entropy, entropylen, nonce, noncelen, in ossl_prov_drbg_instantiate() 462 cleanup_entropy(drbg, entropy, entropylen); in ossl_prov_drbg_instantiate() 466 cleanup_entropy(drbg, entropy, entropylen); in ossl_prov_drbg_instantiate() 505 unsigned char *entropy = NULL; in ossl_prov_drbg_reseed() local 579 entropylen = get_entropy(drbg, &entropy, drbg->strength, in ossl_prov_drbg_reseed() 588 if (!drbg->reseed(drbg, entropy, entropylen, adin, adinlen)) in ossl_prov_drbg_reseed() [all …]
|
H A D | test_rng.c | 45 unsigned char *entropy, *nonce; member 71 OPENSSL_free(t->entropy); in test_rng_free() 110 memcpy(out, t->entropy + t->entropy_pos, outlen); in test_rng_generate() 189 OPENSSL_free(t->entropy); in test_rng_set_ctx_params() 190 t->entropy = ptr; in test_rng_set_ctx_params() 231 int entropy, size_t min_len, size_t max_len, in test_rng_get_seed() argument 238 *pout = t->entropy; in test_rng_get_seed()
|
/freebsd/sys/contrib/zstd/lib/compress/ |
H A D | zstd_compress_superblock.c | 259 static size_t ZSTD_compressSubBlock(const ZSTD_entropyCTables_t* entropy, in ZSTD_compressSubBlock() argument 276 { size_t cLitSize = ZSTD_compressSubBlock_literal((const HUF_CElt*)entropy->huf.CTable, in ZSTD_compressSubBlock() 283 { size_t cSeqSize = ZSTD_compressSubBlock_sequences(&entropy->fse, in ZSTD_compressSubBlock() 393 const ZSTD_entropyCTables_t* entropy, in ZSTD_estimateSubBlockSize() argument 399 … &entropy->huf, &entropyMetadata->hufMetadata, in ZSTD_estimateSubBlockSize() 402 … nbSeq, &entropy->fse, &entropyMetadata->fseMetadata, in ZSTD_estimateSubBlockSize() 481 &nextCBlock->entropy, entropyMetadata, in ZSTD_compressSubBlock_multi() 487 const size_t cSize = ZSTD_compressSubBlock(&nextCBlock->entropy, entropyMetadata, in ZSTD_compressSubBlock_multi() 521 … ZSTD_memcpy(&nextCBlock->entropy.huf, &prevCBlock->entropy.huf, sizeof(prevCBlock->entropy.huf)); in ZSTD_compressSubBlock_multi() 558 &zc->blockState.prevCBlock->entropy, in ZSTD_compressSuperBlock() [all …]
|
/freebsd/usr.sbin/bsdinstall/scripts/ |
H A D | entropy | 29 for i in /entropy /boot/entropy; do
|
/freebsd/contrib/ntp/libntp/lib/isc/include/isc/ |
H A D | hash.h | 85 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);
|
/freebsd/crypto/openssh/ |
H A D | .depend | 5 …h openbsd-compat/port-net.h openbsd-compat/port-uw.h openbsd-compat/bsd-nextstep.h entropy.h addr.h 6 …compat/port-net.h openbsd-compat/port-uw.h openbsd-compat/bsd-nextstep.h entropy.h addr.h match.h … 7 …enbsd-compat/port-net.h openbsd-compat/port-uw.h openbsd-compat/bsd-nextstep.h entropy.h atomicio.h 8 …olaris.h openbsd-compat/port-net.h openbsd-compat/port-uw.h openbsd-compat/bsd-nextstep.h entropy.h 9 …olaris.h openbsd-compat/port-net.h openbsd-compat/port-uw.h openbsd-compat/bsd-nextstep.h entropy.h 10 …olaris.h openbsd-compat/port-net.h openbsd-compat/port-uw.h openbsd-compat/bsd-nextstep.h entropy.h 11 …olaris.h openbsd-compat/port-net.h openbsd-compat/port-uw.h openbsd-compat/bsd-nextstep.h entropy.h 14 …olaris.h openbsd-compat/port-net.h openbsd-compat/port-uw.h openbsd-compat/bsd-nextstep.h entropy.h 17 …olaris.h openbsd-compat/port-net.h openbsd-compat/port-uw.h openbsd-compat/bsd-nextstep.h entropy.h 18 …olaris.h openbsd-compat/port-net.h openbsd-compat/port-uw.h openbsd-compat/bsd-nextstep.h entropy.h [all …]
|
/freebsd/crypto/openssh/contrib/hpux/ |
H A D | egd | 1 # EGD_START: Set to 1 to start entropy gathering daemon 14 EGD_ARGS='/etc/opt/egd/entropy'
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/ |
H A D | zstd_compress_superblock.c | 536 static size_t ZSTD_compressSubBlock(const ZSTD_entropyCTables_t* entropy, in ZSTD_compressSubBlock() argument 553 { size_t cLitSize = ZSTD_compressSubBlock_literal((const HUF_CElt*)entropy->huf.CTable, in ZSTD_compressSubBlock() 560 { size_t cSeqSize = ZSTD_compressSubBlock_sequences(&entropy->fse, in ZSTD_compressSubBlock() 669 const ZSTD_entropyCTables_t* entropy, in ZSTD_estimateSubBlockSize() argument 675 … &entropy->huf, &entropyMetadata->hufMetadata, in ZSTD_estimateSubBlockSize() 678 … nbSeq, &entropy->fse, &entropyMetadata->fseMetadata, in ZSTD_estimateSubBlockSize() 757 &nextCBlock->entropy, entropyMetadata, in ZSTD_compressSubBlock_multi() 763 const size_t cSize = ZSTD_compressSubBlock(&nextCBlock->entropy, entropyMetadata, in ZSTD_compressSubBlock_multi() 797 memcpy(&nextCBlock->entropy.huf, &prevCBlock->entropy.huf, sizeof(prevCBlock->entropy.huf)); in ZSTD_compressSubBlock_multi() 834 &zc->blockState.prevCBlock->entropy, in ZSTD_compressSuperBlock() [all …]
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | RAND_bytes.pod | 52 was able to seed itself from a trusted entropy source. 57 If the entropy source fails or is not available, the CSPRNG will enter an 62 On other platforms, there might not be a trusted entropy source available 63 or OpenSSL might have been explicitly configured to use different entropy sources. 64 If you are in doubt about the quality of the entropy source, don't hesitate to ask
|