Home
last modified time | relevance | path

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

12345

/freebsd/libexec/rc/rc.d/
H A Drandom63 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 Drand_pool.c66 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 …]
/freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/
H A Dzstd_ddict.c40 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 Dzstd_decompress.c1056 ZSTD_loadDEntropy(ZSTD_entropyDTables_t* entropy, in ZSTD_loadDEntropy() argument
1066 …entropyDTables_t, OFTable) == offsetof(ZSTD_entropyDTables_t, LLTable) + sizeof(entropy->LLTable)); in ZSTD_loadDEntropy()
1067 …entropyDTables_t, MLTable) == offsetof(ZSTD_entropyDTables_t, OFTable) + sizeof(entropy->OFTable)); in ZSTD_loadDEntropy()
1068 …ZSTD_STATIC_ASSERT(sizeof(entropy->LLTable) + sizeof(entropy->OFTable) + sizeof(entropy->MLTable) … in ZSTD_loadDEntropy()
1069 …{ void* const workspace = &entropy->LLTable; /* use fse tables as temporary workspace; implies… in ZSTD_loadDEntropy()
1070 …size_t const workspaceSize = sizeof(entropy->LLTable) + sizeof(entropy->OFTable) + sizeof(entropy-… in ZSTD_loadDEntropy()
1073 size_t const hSize = HUF_readDTableX1_wksp(entropy->hufTable, in ZSTD_loadDEntropy()
1077 size_t const hSize = HUF_readDTableX2_wksp(entropy->hufTable, in ZSTD_loadDEntropy()
1091 ZSTD_buildFSETable( entropy->OFTable, in ZSTD_loadDEntropy()
1104 ZSTD_buildFSETable( entropy->MLTable, in ZSTD_loadDEntropy()
[all …]
/freebsd/sys/contrib/zstd/lib/decompress/
H A Dzstd_ddict.c40 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 Dzstd_decompress.c1334 ZSTD_loadDEntropy(ZSTD_entropyDTables_t* entropy, in ZSTD_loadDEntropy() argument
1344 …entropyDTables_t, OFTable) == offsetof(ZSTD_entropyDTables_t, LLTable) + sizeof(entropy->LLTable)); in ZSTD_loadDEntropy()
1345 …entropyDTables_t, MLTable) == offsetof(ZSTD_entropyDTables_t, OFTable) + sizeof(entropy->OFTable)); in ZSTD_loadDEntropy()
1346 …ZSTD_STATIC_ASSERT(sizeof(entropy->LLTable) + sizeof(entropy->OFTable) + sizeof(entropy->MLTable) … in ZSTD_loadDEntropy()
1347 …{ void* const workspace = &entropy->LLTable; /* use fse tables as temporary workspace; implies… in ZSTD_loadDEntropy()
1348 …size_t const workspaceSize = sizeof(entropy->LLTable) + sizeof(entropy->OFTable) + sizeof(entropy-… in ZSTD_loadDEntropy()
1351 size_t const hSize = HUF_readDTableX1_wksp(entropy->hufTable, in ZSTD_loadDEntropy()
1355 size_t const hSize = HUF_readDTableX2_wksp(entropy->hufTable, in ZSTD_loadDEntropy()
1369 ZSTD_buildFSETable( entropy->OFTable, in ZSTD_loadDEntropy()
1373 entropy->workspace, sizeof(entropy->workspace), in ZSTD_loadDEntropy()
[all …]
/freebsd/libexec/save-entropy/
H A Dsave-entropy.sh53 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 DMakefile1 SCRIPTS= save-entropy.sh
2 MAN= save-entropy.8
/freebsd/sys/dev/random/
H A Drandom_harvestq.c235 uint32_t entropy[HARVESTSIZE]; in random_sources_feed() local
275 RANDOM_FORTUNA_DEFPOOLSIZE, sizeof(entropy)); in random_sources_feed()
285 n = rrs->rrs_source->rs_read(entropy, sizeof(entropy)); in random_sources_feed()
286 …KASSERT((n <= sizeof(entropy)), ("%s: rs_read returned too much data (%u > %zu)", __func__, n, siz… in random_sources_feed()
300 random_harvest_direct(entropy, n, rrs->rrs_source->rs_source); in random_sources_feed()
305 explicit_bzero(entropy, sizeof(entropy)); in random_sources_feed()
446 random_early_prime(char *entropy, size_t len) in random_early_prime() argument
461 memcpy(event.he_entropy, entropy + i, sizeof(event.he_entropy)); in random_early_prime()
464 explicit_bzero(entropy, len); in random_early_prime()
552 random_harvest_queue_(const void *entropy, u_int size, enum random_entropy_source origin) in random_harvest_queue_() argument
[all …]
/freebsd/sys/sys/
H A Drandom.h121 random_harvest_queue(const void *entropy, u_int size, enum random_entropy_source origin) in random_harvest_queue() argument
125 random_harvest_queue_(entropy, size, origin); in random_harvest_queue()
129 random_harvest_fast(const void *entropy, u_int size, enum random_entropy_source origin) in random_harvest_fast() argument
133 random_harvest_fast_(entropy, size); in random_harvest_fast()
137 random_harvest_direct(const void *entropy, u_int size, enum random_entropy_source origin) in random_harvest_direct() argument
141 random_harvest_direct_(entropy, size, origin); in random_harvest_direct()
/freebsd/crypto/openssl/doc/man7/
H A DEVP_RAND.pod20 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
64 EVP_RAND instance, provided it has itself access to a valid entropy source.
65 The EVP_RAND instance which acts as entropy source is called the I<parent>,
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.
89 either from os entropy sources or by consuming randomness which was added
121 thread. Using the <primary> DRBG as entropy source for multiple DRBG
131 | os entropy sources |
[all …]
H A DEVP_RAND-TEST-RAND.pod54 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 Drand_pool.h81 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 Drandom.c62 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 Darc4random.c256 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 Darc4random.c256 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 Ddrbg.c145 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()
194 static size_t get_entropy(PROV_DRBG *drbg, unsigned char **pout, int entropy, in get_entropy() argument
203 return ossl_crngt_get_entropy(drbg, pout, entropy, min_len, max_len, in get_entropy()
211 return ossl_prov_get_entropy(drbg->provctx, pout, entropy, min_len, in get_entropy()
370 unsigned char *nonce = NULL, *entropy = NULL; in ossl_prov_drbg_instantiate() local
456 entropylen = get_entropy(drbg, &entropy, min_entropy, in ossl_prov_drbg_instantiate()
465 if (!drbg->instantiate(drbg, entropy, entropylen, nonce, noncelen, in ossl_prov_drbg_instantiate()
467 cleanup_entropy(drbg, entropy, entropylen); in ossl_prov_drbg_instantiate()
471 cleanup_entropy(drbg, entropy, entropylen); in ossl_prov_drbg_instantiate()
[all …]
H A Dtest_rng.c45 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 Dzstd_compress_superblock.c259 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 Dentropy29 for i in /entropy /boot/entropy; do
/freebsd/crypto/openssh/
H A D.depend5 …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
12 …compat/port-net.h openbsd-compat/port-uw.h openbsd-compat/bsd-nextstep.h entropy.h xmalloc.h ssh.h…
13 …compat/port-net.h openbsd-compat/port-uw.h openbsd-compat/bsd-nextstep.h entropy.h openbsd-compat/…
14 …olaris.h openbsd-compat/port-net.h openbsd-compat/port-uw.h openbsd-compat/bsd-nextstep.h entropy.h
[all …]
/freebsd/contrib/ntp/libntp/lib/isc/include/isc/
H A Dhash.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);
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dzstd_compress_superblock.c536 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/openssh/contrib/hpux/
H A Degd1 # EGD_START: Set to 1 to start entropy gathering daemon
14 EGD_ARGS='/etc/opt/egd/entropy'
/freebsd/crypto/openssl/doc/man3/
H A DRAND_bytes.pod52 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

12345