| /freebsd/crypto/openssl/test/recipes/30-test_evp_data/ |
| H A D | evppkey_slh_dsa_sigver.txt | 19 Ctrl = hextest-entropy:5157DB1A3DBCE731D0BA7EE3521407CC 31 Ctrl = hextest-entropy:BC3E3697FC4FCE254E6DD5CB0619CE77 43 Ctrl = hextest-entropy:B05690A0EAA31163D2BEF1D9FB0AC350 55 Ctrl = hextest-entropy:E6FE21F8061D2226593D23B0A5D9A2D7 67 Ctrl = hextest-entropy:4BC9CD286588DBCC26DE241DBC8E7688 79 Ctrl = hextest-entropy:5289347B0A4243DFD4AA29DA267FD8A3 91 Ctrl = hextest-entropy:ACF88EFA704369762C4A0195CA65C6FA 103 Ctrl = hextest-entropy:82CC191B80D66A2CBEDAE214A7CA894A 115 Ctrl = hextest-entropy:928604BF71C99579AB8164B87612903C 126 Ctrl = hextest-entropy:932964E1985D1E8D2685AC7A8B3832D2 [all …]
|
| H A D | evppkey_ml_dsa_siggen.txt | 942 Ctrl = hextest-entropy:D5EF4D149621669A4FA4F92F5F8D9195573993290C28BB69A00DCE2F269F0BDD 954 Ctrl = hextest-entropy:744A2A504AE90DF559E3FE02207BE3C4E83B17E662746153C52C9EE3F027487A 965 Ctrl = hextest-entropy:8EFC0B5143FDDCF0E930C3993565AD446235321A0ECA411D5F884389216BECC3 977 Ctrl = hextest-entropy:1B9ED7C038CBF59300B0D2D1D6C7159CDCF05BA3457DC741C5DEE85FA91B11C7 988 Ctrl = hextest-entropy:1F1CE083FFBF67118D11F33CE326A07F1863FE76A5D0C47A589FF1457285D628 1000 Ctrl = hextest-entropy:899491EB455FB3B90E0DC777B342DE40CE08F174D00F54AFA22E8AB108AA5FD0 1011 Ctrl = hextest-entropy:3C46F4EC8E5A841CF5879AB25021EDFF5BCCE1FA4CF28AC23FE2DD8849B9A90C 1023 Ctrl = hextest-entropy:15F41DEAE2FF797B3CA333AC7EA6B002D4438E609EAD66182EF0155DF933919F 1034 Ctrl = hextest-entropy:7657D430F61C013A69DB781D9758C1F36357D2E62801A986894A7D09B73BF428 1046 Ctrl = hextest-entropy:EBC301D50108892345B777345232E710C9C62D28E35987C64D7D9AB5A4A32F97 [all …]
|
| H A D | evppkey_slh_dsa_siggen.txt | 1764 Ctrl = hextest-entropy:FD3FE9ADC298FAD0BF5A08D804C690B1 1776 Ctrl = hextest-entropy:CFA647B01AFDA2BE4AB477543044BE01 1788 Ctrl = hextest-entropy:50CBDEB4841D5BA0E36C5CC95F2462FC 1800 Ctrl = hextest-entropy:C3B229528DF451356E77E390274C0EA9 1812 Ctrl = hextest-entropy:EA50934B640D17FAE27A9D2E3E7314B6 1824 Ctrl = hextest-entropy:AE9539827342A2B6462DA1C67ED605CC 1836 Ctrl = hextest-entropy:68EB56B39393026CA6F9A94B0E645F91 1847 Ctrl = hextest-entropy:85A190064C3CBF774DE25196C9F8637012682BB6A80BABF5 1859 Ctrl = hextest-entropy:33424201FCB0E7D65B227E4DCC1B8D81E375ABCFF64ABB7F 1871 Ctrl = hextest-entropy:AE292D8CD3B9852772E2FAF2B318CCB33AE0629B9A7E9201 [all …]
|
| /freebsd/contrib/llvm-project/libc/src/__support/HashTable/ |
| H A D | randomness.h | 34 uint64_t entropy[2]; in next_random_seed() local 35 entropy[0] = reinterpret_cast<uint64_t>(&entropy); in next_random_seed() 36 entropy[1] = reinterpret_cast<uint64_t>(&state); in next_random_seed() 38 size_t count = sizeof(entropy); in next_random_seed() 39 uint8_t *buffer = reinterpret_cast<uint8_t *>(entropy); in next_random_seed() 51 state.update(&entropy, sizeof(entropy)); in next_random_seed()
|
| /freebsd/crypto/openssl/providers/implementations/kem/ |
| H A D | ml_kem_kem.c | 36 uint8_t *entropy; member 48 ctx->entropy = NULL; in ml_kem_newctx() 57 if (ctx->entropy != NULL) in ml_kem_freectx() 58 OPENSSL_cleanse(ctx->entropy, ML_KEM_RANDOM_BYTES); in ml_kem_freectx() 106 if (ctx->op == EVP_PKEY_OP_DECAPSULATE && ctx->entropy != NULL) { in ml_kem_set_ctx_params() 108 OPENSSL_cleanse(ctx->entropy, ML_KEM_RANDOM_BYTES); in ml_kem_set_ctx_params() 109 ctx->entropy = NULL; in ml_kem_set_ctx_params() 120 ctx->entropy = ctx->entropy_buf; in ml_kem_set_ctx_params() 121 if (OSSL_PARAM_get_octet_string(p, (void **)&ctx->entropy, in ml_kem_set_ctx_params() 129 ctx->entropy = NULL; in ml_kem_set_ctx_params() [all …]
|
| /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 | 61 size_t entropy) in ossl_rand_pool_attach() argument 79 pool->entropy = entropy; in ossl_rand_pool_attach() 121 return pool->entropy; in ossl_rand_pool_entropy() 142 pool->entropy = 0; in ossl_rand_pool_detach() 174 if (pool->entropy < pool->entropy_requested) in ossl_rand_pool_entropy_available() 180 return pool->entropy; in ossl_rand_pool_entropy_available() 190 if (pool->entropy < pool->entropy_requested) in ossl_rand_pool_entropy_needed() 191 return pool->entropy_requested - pool->entropy; in ossl_rand_pool_entropy_needed() 299 const unsigned char *buffer, size_t len, size_t entropy) in ossl_rand_pool_add() argument 335 pool->entropy += entropy; in ossl_rand_pool_add() [all …]
|
| H A D | prov_seed.c | 19 unsigned char **pout, int entropy, in ossl_rand_get_entropy() argument 26 pool = ossl_rand_pool_new(entropy, 1, min_len, max_len); in ossl_rand_get_entropy() 45 unsigned char **pout, int entropy, in ossl_rand_get_user_entropy() argument 51 return evp_rand_get_seed(rng, pout, entropy, min_len, max_len, in ossl_rand_get_user_entropy() 54 return ossl_rand_get_entropy(ctx, pout, entropy, min_len, max_len); in ossl_rand_get_user_entropy()
|
| /freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/ |
| H A D | zstd_ddict.c | 41 ZSTD_entropyDTables_t entropy; member 76 dctx->LLTptr = ddict->entropy.LLTable; in ZSTD_copyDDictParameters() 77 dctx->MLTptr = ddict->entropy.MLTable; in ZSTD_copyDDictParameters() 78 dctx->OFTptr = ddict->entropy.OFTable; in ZSTD_copyDDictParameters() 79 dctx->HUFptr = ddict->entropy.hufTable; in ZSTD_copyDDictParameters() 80 dctx->entropy.rep[0] = ddict->entropy.rep[0]; in ZSTD_copyDDictParameters() 81 dctx->entropy.rep[1] = ddict->entropy.rep[1]; in ZSTD_copyDDictParameters() 82 dctx->entropy.rep[2] = ddict->entropy.rep[2]; in ZSTD_copyDDictParameters() 114 &ddict->entropy, ddict->dictContent, ddict->dictSize)), in ZSTD_loadEntropy_intoDDict() 138 …ddict->entropy.hufTable[0] = (HUF_DTable)((ZSTD_HUFFDTABLE_CAPACITY_LOG)*0x1000001); /* cover bot… in ZSTD_initDDict_internal()
|
| /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)((ZSTD_HUFFDTABLE_CAPACITY_LOG)*0x1000001); /* cover bot… in ZSTD_initDDict_internal()
|
| /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.
|
| /freebsd/sys/dev/random/ |
| H A D | random_harvestq.c | 234 uint32_t entropy[HARVESTSIZE]; in random_sources_feed() local 274 RANDOM_FORTUNA_DEFPOOLSIZE, sizeof(entropy)); in random_sources_feed() 288 n = rrs->rrs_source->rs_read(entropy, sizeof(entropy)); in random_sources_feed() 289 KASSERT((n <= sizeof(entropy)), in random_sources_feed() 291 __func__, n, sizeof(entropy))); in random_sources_feed() 306 random_harvest_direct(entropy, n, rrs->rrs_source->rs_source); in random_sources_feed() 311 explicit_bzero(entropy, sizeof(entropy)); in random_sources_feed() 743 random_early_prime(char *entropy, size_t len) in random_early_prime() argument 758 memcpy(event.he_entropy, entropy + i, sizeof(event.he_entropy)); in random_early_prime() 761 explicit_bzero(entropy, len); in random_early_prime() [all …]
|
| /freebsd/sys/sys/ |
| H A D | random.h | 121 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 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 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 D | EVP_RAND-TEST-RAND.pod | 56 Sets the bytes returned when the test generator is sent an entropy request. 67 If this parameter is zero, it will only emit the nonce and entropy data 87 unsigned char entropy[1000] = { ... }; 97 entropy, sizeof(entropy));
|
| /freebsd/crypto/openssl/providers/implementations/kdfs/ |
| H A D | hmacdrbg_kdf.c | 35 unsigned char *entropy, *nonce; member 64 OPENSSL_clear_free(ctx->entropy, ctx->entropylen); in hmac_drbg_kdf_reset() 103 || !ossl_prov_memdup(src->entropy, src->entropylen, in hmac_drbg_kdf_dup() 104 &dst->entropy, &dst->entropylen) in hmac_drbg_kdf_dup() 127 if (ctx->entropy == NULL in hmac_drbg_kdf_derive() 131 || !ossl_drbg_hmac_init(drbg, ctx->entropy, ctx->entropylen, in hmac_drbg_kdf_derive() 196 OPENSSL_free(hmac->entropy); in hmac_drbg_kdf_set_ctx_params() 197 hmac->entropy = ptr; in hmac_drbg_kdf_set_ctx_params()
|
| /freebsd/crypto/openssl/include/crypto/ |
| H A D | rand_pool.h | 80 size_t entropy; /* current entropy count in bits */ member 87 size_t entropy); 104 const unsigned char *buffer, size_t len, size_t entropy); 106 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() 192 static size_t get_entropy(PROV_DRBG *drbg, unsigned char **pout, int entropy, in get_entropy() argument 204 return ossl_prov_get_entropy(drbg->provctx, pout, entropy, min_len, in get_entropy() 239 entropy > 0 ? entropy : (int)drbg->strength, in get_entropy() 353 unsigned char *nonce = NULL, *entropy = NULL; in ossl_prov_drbg_instantiate() local 436 entropylen = get_entropy(drbg, &entropy, min_entropy, in ossl_prov_drbg_instantiate() 445 if (!drbg->instantiate(drbg, entropy, entropylen, nonce, noncelen, in ossl_prov_drbg_instantiate() 447 cleanup_entropy(drbg, entropy, entropylen); in ossl_prov_drbg_instantiate() 451 cleanup_entropy(drbg, entropy, entropylen); in ossl_prov_drbg_instantiate() [all …]
|
| H A D | test_rng.c | 48 unsigned char *entropy, *nonce; member 75 OPENSSL_free(t->entropy); in test_rng_free() 143 memcpy(out, t->entropy + t->entropy_pos, outlen); in test_rng_generate() 244 OPENSSL_free(t->entropy); in test_rng_set_ctx_params() 245 t->entropy = ptr; in test_rng_set_ctx_params() 290 int entropy, size_t min_len, size_t max_len, in test_rng_get_seed() argument 297 *pout = t->entropy; in test_rng_get_seed()
|
| /freebsd/sys/contrib/zstd/lib/compress/ |
| H A D | zstd_compress_superblock.c | 263 static size_t ZSTD_compressSubBlock(const ZSTD_entropyCTables_t* entropy, in ZSTD_compressSubBlock() argument 280 { size_t cLitSize = ZSTD_compressSubBlock_literal((const HUF_CElt*)entropy->huf.CTable, in ZSTD_compressSubBlock() 288 { size_t cSeqSize = ZSTD_compressSubBlock_sequences(&entropy->fse, in ZSTD_compressSubBlock() 402 const ZSTD_entropyCTables_t* entropy, in ZSTD_estimateSubBlockSize() argument 409 … &entropy->huf, &entropyMetadata->hufMetadata, in ZSTD_estimateSubBlockSize() 412 … nbSeq, &entropy->fse, &entropyMetadata->fseMetadata, in ZSTD_estimateSubBlockSize() 518 &nextCBlock->entropy, entropyMetadata, in ZSTD_compressSubBlock_multi() 550 size_t const cSize = ZSTD_compressSubBlock(&nextCBlock->entropy, entropyMetadata, in ZSTD_compressSubBlock_multi() 594 size_t const cSize = ZSTD_compressSubBlock(&nextCBlock->entropy, entropyMetadata, in ZSTD_compressSubBlock_multi() 630 … ZSTD_memcpy(&nextCBlock->entropy.huf, &prevCBlock->entropy.huf, sizeof(prevCBlock->entropy.huf)); in ZSTD_compressSubBlock_multi() [all …]
|
| /freebsd/sys/contrib/openzfs/module/zstd/lib/compress/ |
| H A D | zstd_compress_superblock.c | 264 static size_t ZSTD_compressSubBlock(const ZSTD_entropyCTables_t* entropy, in ZSTD_compressSubBlock() argument 281 { size_t cLitSize = ZSTD_compressSubBlock_literal((const HUF_CElt*)entropy->huf.CTable, in ZSTD_compressSubBlock() 289 { size_t cSeqSize = ZSTD_compressSubBlock_sequences(&entropy->fse, in ZSTD_compressSubBlock() 403 const ZSTD_entropyCTables_t* entropy, in ZSTD_estimateSubBlockSize() argument 410 … &entropy->huf, &entropyMetadata->hufMetadata, in ZSTD_estimateSubBlockSize() 413 … nbSeq, &entropy->fse, &entropyMetadata->fseMetadata, in ZSTD_estimateSubBlockSize() 519 &nextCBlock->entropy, entropyMetadata, in ZSTD_compressSubBlock_multi() 551 size_t const cSize = ZSTD_compressSubBlock(&nextCBlock->entropy, entropyMetadata, in ZSTD_compressSubBlock_multi() 595 size_t const cSize = ZSTD_compressSubBlock(&nextCBlock->entropy, entropyMetadata, in ZSTD_compressSubBlock_multi() 631 … ZSTD_memcpy(&nextCBlock->entropy.huf, &prevCBlock->entropy.huf, sizeof(prevCBlock->entropy.huf)); in ZSTD_compressSubBlock_multi() [all …]
|
| /freebsd/crypto/openssl/doc/man3/ |
| H A D | RAND_bytes.pod | 53 of the built-in in DRBGs and entropy source. Pass NULL for the provider 55 and entropy source will be used. This call should not be considered thread safe. 60 was able to seed itself from a trusted entropy source. 65 If the entropy source fails or is not available, the CSPRNG will enter an 70 On other platforms, there might not be a trusted entropy source available 71 or OpenSSL might have been explicitly configured to use different entropy sources. 72 If you are in doubt about the quality of the entropy source, don't hesitate to ask
|