| /freebsd-14.2/crypto/openssl/crypto/evp/ |
| H A D | evp_rand.c | 57 if (rand != NULL) in evp_rand_up_ref() 58 return CRYPTO_UP_REF(&rand->refcnt, &ref, rand->refcnt_lock); in evp_rand_up_ref() 69 CRYPTO_DOWN_REF(&rand->refcnt, &ref, rand->refcnt_lock); in evp_rand_free() 80 EVP_RAND *rand = OPENSSL_zalloc(sizeof(*rand)); in evp_rand_new() local 82 if (rand == NULL in evp_rand_new() 88 return rand; in evp_rand_new() 95 return rand->meth->enable_locking(rand->algctx); in EVP_RAND_enable_locking() 104 return rand->meth->lock(rand->algctx); in evp_rand_lock() 112 rand->meth->unlock(rand->algctx); in evp_rand_unlock() 270 return rand; in evp_rand_from_algorithm() [all …]
|
| /freebsd-14.2/contrib/llvm-project/libcxx/modules/std/ |
| H A D | random.inc | 11 // [rand.req.urng], uniform random bit generator requirements 14 // [rand.eng.lcong], class template linear_congruential_engine 17 // [rand.eng.mers], class template mersenne_twister_engine 20 // [rand.eng.sub], class template subtract_with_carry_engine 23 // [rand.adapt.disc], class template discard_block_engine 26 // [rand.adapt.ibits], class template independent_bits_engine 29 // [rand.adapt.shuf], class template shuffle_order_engine 46 // [rand.device], class random_device 50 // [rand.util.seedseq], class seed_seq 62 // [rand.dist.bern.bernoulli], class bernoulli_distribution [all …]
|
| /freebsd-14.2/share/examples/libvgl/ |
| H A D | demo.c | 108 VGLBitmapCopy(VGLDisplay, rand()%xsize, rand()%ysize, in main() 109 VGLDisplay, rand()%xsize, rand()%ysize, in main() 110 rand()%xsize, rand()%ysize); in main() 111 VGLLine(VGLDisplay, rand()%xsize, rand()%ysize, in main() 112 rand()%xsize, rand()%ysize, rand()%256); in main() 113 VGLEllipse(VGLDisplay, rand()%xsize, rand()%ysize, in main() 114 rand()%xsize/2, rand()%ysize/2, rand()%256); in main() 115 rand(); in main()
|
| /freebsd-14.2/crypto/openssl/crypto/rand/ |
| H A D | rand_lib.c | 298 EVP_RAND_CTX *rand; in RAND_status() local 328 EVP_RAND_CTX *rand; in RAND_priv_bytes_ex() local 341 if (rand != NULL) in RAND_priv_bytes_ex() 357 EVP_RAND_CTX *rand; in RAND_bytes_ex() local 370 if (rand != NULL) in RAND_bytes_ex() 517 EVP_RAND_CTX *rand; in rand_delete_thread_state() local 534 EVP_RAND *rand; in rand_new_seed() local 543 if (rand == NULL) { in rand_new_seed() 566 EVP_RAND *rand; in rand_new_drbg() local 700 return rand; in RAND_get0_public() [all …]
|
| /freebsd-14.2/crypto/openssl/doc/man7/ |
| H A D | EVP_RAND-SEED-SRC.pod | 13 building using the B<--with-rand-seed=> option. By default, operating system 41 EVP_RAND *rand = EVP_RAND_fetch(NULL, "SEED-SRC", NULL); 42 EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand); 46 EVP_RAND *rand; 53 rand = EVP_RAND_fetch(NULL, "SEED-SRC", NULL); 54 seed = EVP_RAND_CTX_new(rand, NULL); 56 EVP_RAND_free(rand); 59 rand = EVP_RAND_fetch(NULL, "CTR-DRBG", NULL); 60 rctx = EVP_RAND_CTX_new(rand, seed); 61 EVP_RAND_free(rand);
|
| H A D | EVP_RAND-HASH-DRBG.pod | 59 EVP_RAND *rand = EVP_RAND_fetch(NULL, "HASH-DRBG", NULL); 60 EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand); 64 EVP_RAND *rand; 70 rand = EVP_RAND_fetch(NULL, "HASH-DRBG", NULL); 71 rctx = EVP_RAND_CTX_new(rand, NULL); 72 EVP_RAND_free(rand);
|
| H A D | EVP_RAND-HMAC-DRBG.pod | 61 EVP_RAND *rand = EVP_RAND_fetch(NULL, "HMAC-DRBG", NULL); 62 EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand); 66 EVP_RAND *rand; 72 rand = EVP_RAND_fetch(NULL, "HMAC-DRBG", NULL); 73 rctx = EVP_RAND_CTX_new(rand, NULL); 74 EVP_RAND_free(rand);
|
| H A D | EVP_RAND-CTR-DRBG.pod | 65 EVP_RAND *rand = EVP_RAND_fetch(NULL, "CTR-DRBG", NULL); 66 EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand); 70 EVP_RAND *rand; 76 rand = EVP_RAND_fetch(NULL, "CTR-DRBG", NULL); 77 rctx = EVP_RAND_CTX_new(rand, NULL); 78 EVP_RAND_free(rand);
|
| H A D | EVP_RAND-TEST-RAND.pod | 69 EVP_RAND *rand = EVP_RAND_fetch(NULL, "TEST-RAND", NULL); 70 EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand); 74 EVP_RAND *rand; 82 rand = EVP_RAND_fetch(NULL, "TEST-RAND", NULL); 83 rctx = EVP_RAND_CTX_new(rand, NULL); 84 EVP_RAND_free(rand);
|
| /freebsd-14.2/contrib/bc/tests/bc/scripts/ |
| H A D | rand.bc | 45 r = rand() 48 return rand() 58 rand() == r 66 a[i] = rand() 78 r = rand() 89 r == rand() 94 rand() == a[i]
|
| /freebsd-14.2/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/safety/ |
| H A D | tst.index.d | 41 trace(index((char *)rand(), (char *)(rand() ^ vtimestamp))); 47 trace(rindex((char *)rand(), (char *)(rand() ^ vtimestamp, 54 trace(index((char *)arg0, (char *)arg1, rand()));
|
| H A D | tst.substr.d | 41 trace(substr((char *)rand(), rand() ^ vtimestamp)); 47 trace(substr((char *)rand(), -rand() ^ vtimestamp));
|
| H A D | tst.strchr.d | 41 trace(strchr((char *)(rand() ^ timestamp), rand())); 47 trace(strrchr((char *)(rand() ^ timestamp), rand()));
|
| H A D | tst.ddi_pathname.d | 41 trace(ddi_pathname((struct dev_info *)rand(), rand())); 47 trace(ddi_pathname((struct dev_info *)arg1, rand()));
|
| H A D | tst.rw.d | 42 @[rw_read_held((struct rwlock *)rand())] = count(); 49 @[rw_write_held((struct rwlock *)rand())] = count(); 56 @[rw_iswriter((struct rwlock *)rand())] = count();
|
| /freebsd-14.2/contrib/ntp/libntp/lib/isc/ |
| H A D | random.c | 87 *val = ((rand() >> 4) & 0xffff) | ((rand() << 12) & 0xffff0000); in isc_random_get() 90 *val = ((rand() >> 4) & 0x000007ff) | ((rand() << 7) & 0x003ff800) | in isc_random_get() 91 ((rand() << 18) & 0xffc00000); in isc_random_get()
|
| /freebsd-14.2/sys/contrib/libsodium/test/default/ |
| H A D | onetimeauth7.c | 23 c[rand() % clen] += 1 + (rand() % 255); in main() 28 a[rand() % sizeof a] += 1 + (rand() % 255); in main()
|
| H A D | auth5.c | 23 c[rand() % clen] += 1 + (rand() % 255); in main() 28 a[rand() % sizeof a] += 1 + (rand() % 255); in main()
|
| H A D | auth7.c | 23 c[(size_t) rand() % clen] += 1 + (rand() % 255); in main() 28 a[rand() % sizeof a] += 1 + (rand() % 255); in main()
|
| /freebsd-14.2/contrib/wpa/src/eap_peer/ |
| H A D | eap_pax.c | 34 } rand; member 161 os_memcpy(data->rand.r.x, pos, EAP_PAX_RAND_LEN); in eap_pax_process_std_1() 163 data->rand.r.x, EAP_PAX_RAND_LEN); in eap_pax_process_std_1() 178 data->rand.r.y, EAP_PAX_RAND_LEN); in eap_pax_process_std_1() 196 wpabuf_put_data(resp, data->rand.r.y, EAP_PAX_RAND_LEN); in eap_pax_process_std_1() 198 data->rand.r.y, EAP_PAX_RAND_LEN); in eap_pax_process_std_1() 208 data->rand.r.x, EAP_PAX_RAND_LEN, in eap_pax_process_std_1() 209 data->rand.r.y, EAP_PAX_RAND_LEN, in eap_pax_process_std_1() 279 data->rand.r.y, EAP_PAX_RAND_LEN, in eap_pax_process_std_3() 486 data->rand.e, 2 * EAP_PAX_RAND_LEN, in eap_pax_getKey() [all …]
|
| H A D | eap_sim.c | 36 u8 rand[3][GSM_RAND_LEN]; member 246 data->rand[i], GSM_RAND_LEN); in eap_sim_ext_sim_result() 345 data->rand[i], GSM_RAND_LEN); in eap_sim_gsm_auth() 367 if (data->rand[i][0] == 0xaa) { in eap_sim_gsm_auth() 373 } else if (data->rand[i][0] == 0xbb) { in eap_sim_gsm_auth() 862 if (!attr->mac || !attr->rand) { in eap_sim_process_challenge() 866 !attr->rand ? " AT_RAND" : ""); in eap_sim_process_challenge() 887 if (os_memcmp(attr->rand, attr->rand + GSM_RAND_LEN, in eap_sim_process_challenge() 890 (os_memcmp(attr->rand, attr->rand + 2 * GSM_RAND_LEN, in eap_sim_process_challenge() 893 attr->rand + 2 * GSM_RAND_LEN, in eap_sim_process_challenge() [all …]
|
| /freebsd-14.2/crypto/openssl/doc/man3/ |
| H A D | EVP_RAND.pod | 29 int EVP_RAND_up_ref(EVP_RAND *rand); 30 void EVP_RAND_free(EVP_RAND *rand); 34 int EVP_RAND_get_params(EVP_RAND *rand, OSSL_PARAM params[]); 42 const char *EVP_RAND_get0_name(const EVP_RAND *rand); 44 int EVP_RAND_is_a(const EVP_RAND *rand, const char *name); 49 int EVP_RAND_names_do_all(const EVP_RAND *rand, 167 I<rand>. 235 of the given I<rand>. 249 the rand implementation. 400 L<provider-rand(7)>, [all …]
|
| /freebsd-14.2/contrib/bc/tests/bc/ |
| H A D | rand.txt | 8 a[i] = rand() 24 rand() 29 rand() 257 rand() 262 rand() 274 a[i] == rand()
|
| /freebsd-14.2/crypto/openssl/ |
| H A D | NOTES-NONSTOP.md | 11 Specify the `--with-rand-seed=rdcpu` option to the `./Configure` script. 15 specify the `--with-rand-seed=egd` option to the `./Configure` script. 124 ./Configure nonstop-nsx_64 --with-rand-seed=rdcpu 219 --with-rand-seed=rdcpu ${CIPHENABLES} ${DBGFLAG} ${SYSTEMLIBS} 241 --with-rand-seed=egd ${CIPHENABLES} ${DBGFLAG} ${SYSTEMLIBS} 244 --with-rand-seed=egd ${CIPHENABLES} ${DBGFLAG} ${SYSTEMLIBS} 247 --with-rand-seed=egd ${CIPHENABLES} ${DBGFLAG} ${SYSTEMLIBS} 250 --with-rand-seed=egd ${CIPHENABLES} ${DBGFLAG} ${SYSTEMLIBS} 253 --with-rand-seed=egd ${CIPHENABLES} ${DBGFLAG} ${SYSTEMLIBS} 256 --with-rand-seed=egd ${CIPHENABLES} ${DBGFLAG} ${SYSTEMLIBS} [all …]
|
| /freebsd-14.2/contrib/wpa/src/eap_server/ |
| H A D | eap_server_pax.c | 34 } rand; member 81 if (random_get_bytes(data->rand.r.x, EAP_PAX_RAND_LEN)) { in eap_pax_build_std_1() 105 wpabuf_put_data(req, data->rand.r.x, EAP_PAX_RAND_LEN); in eap_pax_build_std_1() 107 data->rand.r.x, EAP_PAX_RAND_LEN); in eap_pax_build_std_1() 153 data->rand.r.y, EAP_PAX_RAND_LEN, in eap_pax_build_std_3() 333 os_memcpy(data->rand.r.y, pos, EAP_PAX_RAND_LEN); in eap_pax_process_std_2() 335 data->rand.r.y, EAP_PAX_RAND_LEN); in eap_pax_process_std_2() 409 data->rand.e, data->mk, data->ck, in eap_pax_process_std_2() 419 data->rand.r.x, EAP_PAX_RAND_LEN, in eap_pax_process_std_2() 420 data->rand.r.y, EAP_PAX_RAND_LEN, in eap_pax_process_std_2() [all …]
|