| /freebsd/crypto/openssl/crypto/evp/ |
| H A D | evp_rand.c | 55 EVP_RAND *rand = (EVP_RAND *)vrand; in evp_rand_up_ref() local 58 if (rand != NULL) in evp_rand_up_ref() 59 return CRYPTO_UP_REF(&rand->refcnt, &ref); in evp_rand_up_ref() 65 EVP_RAND *rand = (EVP_RAND *)vrand; in evp_rand_free() local 68 if (rand == NULL) in evp_rand_free() 70 CRYPTO_DOWN_REF(&rand->refcnt, &ref); in evp_rand_free() 73 OPENSSL_free(rand->type_name); in evp_rand_free() 74 ossl_provider_free(rand->prov); in evp_rand_free() 75 CRYPTO_FREE_REF(&rand->refcnt); in evp_rand_free() 76 OPENSSL_free(rand); in evp_rand_free() [all …]
|
| /freebsd/contrib/llvm-project/libcxx/modules/std/ |
| H A D | random.cppm | |
| /freebsd/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/crypto/openssl/crypto/rand/ |
| H A D | rand_lib.c | 412 EVP_RAND_CTX *rand; in RAND_status() local 420 if ((rand = RAND_get0_primary(NULL)) == NULL) in RAND_status() 422 return EVP_RAND_get_state(rand) == EVP_RAND_STATE_READY; in RAND_status() 443 EVP_RAND_CTX *rand; in RAND_priv_bytes_ex() local 464 rand = rand_get0_private(ctx, dgbl); in RAND_priv_bytes_ex() 465 if (rand != NULL) in RAND_priv_bytes_ex() 466 return EVP_RAND_generate(rand, buf, num, strength, 0, NULL, 0); in RAND_priv_bytes_ex() 482 EVP_RAND_CTX *rand; in RAND_bytes_ex() local 504 rand = rand_get0_public(ctx, dgbl); in RAND_bytes_ex() 505 if (rand != NULL) in RAND_bytes_ex() [all …]
|
| H A D | rand_uniform.c | 28 uint32_t f2, rand; /* extra fractional part and random material */ in ossl_rand_uniform_uint32() local 41 if (RAND_bytes_ex(ctx, (unsigned char *)&rand, sizeof(rand), 0) <= 0) { in ossl_rand_uniform_uint32() 56 prod = (uint64_t)upper * rand; in ossl_rand_uniform_uint32() 77 if (RAND_bytes_ex(ctx, (unsigned char *)&rand, sizeof(rand), 0) <= 0) { in ossl_rand_uniform_uint32() 81 prod = (uint64_t)upper * rand; in ossl_rand_uniform_uint32()
|
| /freebsd/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, NULL); 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-JITTER.pod | 44 EVP_RAND *rand = EVP_RAND_fetch(NULL, "JITTER", NULL); 45 EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand, NULL); 60 EVP_RAND *rand; 67 rand = EVP_RAND_fetch(NULL, "JITTER", NULL); 68 seed = EVP_RAND_CTX_new(rand, NULL); 70 EVP_RAND_free(rand); 73 rand = EVP_RAND_fetch(NULL, "CTR-DRBG", NULL); 74 rctx = EVP_RAND_CTX_new(rand, seed); 75 EVP_RAND_free(rand);
|
| H A D | EVP_RAND-HMAC-DRBG.pod | 59 These parameters work as described in L<provider-rand(7)/PARAMETERS>. 90 EVP_RAND *rand = EVP_RAND_fetch(NULL, "HMAC-DRBG", NULL); 91 EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand, NULL); 95 EVP_RAND *rand; 101 rand = EVP_RAND_fetch(NULL, "HMAC-DRBG", NULL); 102 rctx = EVP_RAND_CTX_new(rand, NULL); 103 EVP_RAND_free(rand);
|
| H A D | EVP_RAND-HASH-DRBG.pod | 57 These parameters work as described in L<provider-rand(7)/PARAMETERS>. 89 EVP_RAND *rand = EVP_RAND_fetch(NULL, "HASH-DRBG", NULL); 90 EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand, NULL); 94 EVP_RAND *rand; 100 rand = EVP_RAND_fetch(NULL, "HASH-DRBG", NULL); 101 rctx = EVP_RAND_CTX_new(rand, NULL); 102 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, NULL); 76 EVP_RAND *rand; 82 rand = EVP_RAND_fetch(NULL, "CTR-DRBG", NULL); 83 rctx = EVP_RAND_CTX_new(rand, NULL); 84 EVP_RAND_free(rand);
|
| /freebsd/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/crypto/libecc/src/examples/basic/ |
| H A D | Makefile | 14 …rho.c $(ROOT_DIR)/src/external_deps/print.c $(ROOT_DIR)/src/external_deps/rand.c $(LIBARITH) $(BIN… 17 …due.c $(ROOT_DIR)/src/external_deps/print.c $(ROOT_DIR)/src/external_deps/rand.c $(LIBARITH) $(BIN… 20 …les.c $(ROOT_DIR)/src/external_deps/print.c $(ROOT_DIR)/src/external_deps/rand.c $(ROOT_DIR)/src/e… 22 …cdh.c $(ROOT_DIR)/src/external_deps/print.c $(ROOT_DIR)/src/external_deps/rand.c $(BIN_LDFLAGS) $(… 27 …rho.c $(ROOT_DIR)/src/external_deps/print.c $(ROOT_DIR)/src/external_deps/rand.c $(BIN_LDFLAGS) -L… 30 …due.c $(ROOT_DIR)/src/external_deps/print.c $(ROOT_DIR)/src/external_deps/rand.c $(BIN_LDFLAGS) -L… 33 …les.c $(ROOT_DIR)/src/external_deps/print.c $(ROOT_DIR)/src/external_deps/rand.c $(ROOT_DIR)/src/e… 35 …cdh.c $(ROOT_DIR)/src/external_deps/print.c $(ROOT_DIR)/src/external_deps/rand.c $(BIN_LDFLAGS) -L…
|
| /freebsd/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/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/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/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() 172 if (random_get_bytes(data->rand.r.y, 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() 180 if (eap_pax_initial_key_derivation(req->mac_id, data->ak, data->rand.e, 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() [all …]
|
| /freebsd/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); 31 EVP_RAND_CTX *EVP_RAND_CTX_new(EVP_RAND *rand, EVP_RAND_CTX *parent); 35 int EVP_RAND_get_params(EVP_RAND *rand, OSSL_PARAM params[]); 38 const OSSL_PARAM *EVP_RAND_gettable_params(const EVP_RAND *rand); 39 const OSSL_PARAM *EVP_RAND_gettable_ctx_params(const EVP_RAND *rand); 40 const OSSL_PARAM *EVP_RAND_settable_ctx_params(const EVP_RAND *rand); 43 const char *EVP_RAND_get0_name(const EVP_RAND *rand); 44 const char *EVP_RAND_get0_description(const EVP_RAND *rand); 45 int EVP_RAND_is_a(const EVP_RAND *rand, const char *name); [all …]
|
| /freebsd/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/crypto/openssl/providers/fips/ |
| H A D | self_test_kats.c | 296 EVP_RAND *rand; in self_test_drbg() local 306 rand = EVP_RAND_fetch(libctx, "TEST-RAND", NULL); in self_test_drbg() 307 if (rand == NULL) in self_test_drbg() 310 test = EVP_RAND_CTX_new(rand, NULL); in self_test_drbg() 311 EVP_RAND_free(rand); in self_test_drbg() 320 rand = EVP_RAND_fetch(libctx, t->algorithm, NULL); in self_test_drbg() 321 if (rand == NULL) in self_test_drbg() 324 drbg = EVP_RAND_CTX_new(rand, test); in self_test_drbg() 325 EVP_RAND_free(rand); in self_test_drbg() 1025 EVP_RAND *rand; in set_kat_drbg() local [all …]
|