Home
last modified time | relevance | path

Searched refs:RAND_bytes (Results 1 - 25 of 79) sorted by relevance

1234

/third_party/rust/crates/rust-openssl/openssl/src/
H A Drand.rs31 #[corresponds(RAND_bytes)]
36 cvt(ffi::RAND_bytes(buf.as_mut_ptr(), buf.len() as LenType)).map(|_| ()) in rand_bytes()
/third_party/openssl/test/
H A Dbad_dtls_test.c334 if (!TEST_int_gt(RAND_bytes(iv, sizeof(iv)), 0) in send_record()
475 RAND_bytes(session_id, sizeof(session_id)); in test_bad_dtls()
476 RAND_bytes(master_secret, sizeof(master_secret)); in test_bad_dtls()
477 RAND_bytes(cookie, sizeof(cookie)); in test_bad_dtls()
478 RAND_bytes(server_random + 4, sizeof(server_random) - 4); in test_bad_dtls()
H A Dsrptest.c61 RAND_bytes(rand_tmp, sizeof(rand_tmp)); in run_srp()
75 RAND_bytes(rand_tmp, sizeof(rand_tmp)); in run_srp()
H A Dexptest.c176 if (!TEST_int_gt(RAND_bytes(&c, 1), 0)) in test_mod_exp()
183 if (!TEST_int_gt(RAND_bytes(&c, 1), 0)) in test_mod_exp()
190 if (!TEST_int_gt(RAND_bytes(&c, 1), 0)) in test_mod_exp()
H A Dcmp_asn_test.c118 RAND_bytes(rand_data, OSSL_CMP_TRANSACTIONID_LENGTH); in setup_tests()
H A Digetest.c445 RAND_bytes(rkey, sizeof(rkey)); in setup_tests()
446 RAND_bytes(rkey2, sizeof(rkey2)); in setup_tests()
447 RAND_bytes(plaintext, sizeof(plaintext)); in setup_tests()
448 RAND_bytes(saved_iv, sizeof(saved_iv)); in setup_tests()
H A Dcmp_hdr_test.c438 if (!TEST_int_eq(1, RAND_bytes(ref, sizeof(ref))) in test_HDR_init_with_ref()
474 RAND_bytes(rand_data, OSSL_CMP_TRANSACTIONID_LENGTH); in setup_tests()
H A Dcmp_vfy_test.c605 RAND_bytes(rand_data, OSSL_CMP_TRANSACTIONID_LENGTH); in OPT_TEST_DECLARE_USAGE()
642 if (!TEST_int_eq(1, RAND_bytes(rand_data, OSSL_CMP_TRANSACTIONID_LENGTH))) in OPT_TEST_DECLARE_USAGE()
H A Dcmp_protect_test.c556 RAND_bytes(rand_data, OSSL_CMP_TRANSACTIONID_LENGTH); in OPT_TEST_DECLARE_USAGE()
590 if (!TEST_int_eq(1, RAND_bytes(rand_data, OSSL_CMP_TRANSACTIONID_LENGTH))) in OPT_TEST_DECLARE_USAGE()
H A Dbio_enc_test.c47 if (!TEST_int_gt(RAND_bytes(inp, DATA_SIZE), 0)) in do_bio_cipher()
/third_party/rust/crates/rust-openssl/openssl-sys/src/handwritten/
H A Drand.rs4 pub fn RAND_bytes(buf: *mut u8, num: c_int) -> c_int; in RAND_bytes() functions
/third_party/nghttp2/src/
H A Dshrpx_worker_process.cc212 if (RAND_bytes(reinterpret_cast<unsigned char *>(&ticket_key.data), in generate_ticket_key()
562 if (RAND_bytes(qkm.reserved.data(), qkm.reserved.size()) != 1) { in worker_process_event_loop()
567 if (RAND_bytes(qkm.secret.data(), qkm.secret.size()) != 1) { in worker_process_event_loop()
572 if (RAND_bytes(qkm.salt.data(), qkm.salt.size()) != 1) { in worker_process_event_loop()
H A Dshrpx_quic.cc181 if (RAND_bytes(cid.data, cidlen) != 1) { in generate_quic_retry_connection_id()
201 if (RAND_bytes(cid.data, cidlen) != 1) { in generate_quic_connection_id()
H A Dh2load_quic.cc224 if (RAND_bytes(cid->data, cidlen) != 1) { in get_new_connection_id()
230 if (RAND_bytes(token, NGTCP2_STATELESS_RESET_TOKENLEN) != 1) { in get_new_connection_id()
254 if (RAND_bytes(dest.data, dest.datalen) != 1) { in generate_cid()
/third_party/openssl/ohos_lite/include/openssl/
H A Drand.h42 int RAND_bytes(unsigned char *buf, int num);
/third_party/node/deps/openssl/openssl/include/openssl/
H A Drand.h61 int RAND_bytes(unsigned char *buf, int num);
72 * Equivalent of RAND_bytes() but additionally taking an OSSL_LIB_CTX and
/third_party/openssl/include/openssl/
H A Drand.h61 int RAND_bytes(unsigned char *buf, int num);
72 * Equivalent of RAND_bytes() but additionally taking an OSSL_LIB_CTX and
/third_party/node/deps/openssl/openssl/crypto/asn1/
H A Dp5_scrypt.c85 else if (RAND_bytes(iv, EVP_CIPHER_get_iv_length(cipher)) <= 0) in PKCS5_pbe2_set_scrypt()
164 if (salt == NULL && RAND_bytes(sparam->salt->data, saltlen) <= 0) in pkcs5_scrypt_set()
/third_party/openssl/crypto/asn1/
H A Dp5_scrypt.c85 else if (RAND_bytes(iv, EVP_CIPHER_get_iv_length(cipher)) <= 0) in PKCS5_pbe2_set_scrypt()
164 if (salt == NULL && RAND_bytes(sparam->salt->data, saltlen) <= 0) in pkcs5_scrypt_set()
/third_party/node/test/addons/openssl-binding/
H A Dbinding.cc19 auto rval = RAND_bytes(data, static_cast<int>(byte_length)); in RandomBytes()
/third_party/node/deps/openssl/openssl/apps/
H A Drand.c123 r = RAND_bytes(buf, chunk); in rand_main()
/third_party/openssl/apps/
H A Drand.c123 r = RAND_bytes(buf, chunk); in rand_main()
/third_party/node/deps/ngtcp2/ngtcp2/crypto/boringssl/
H A Dboringssl.c524 if (RAND_bytes(data, NGTCP2_PATH_CHALLENGE_DATALEN) != 1) { in ngtcp2_crypto_get_path_challenge_data_cb()
532 if (RAND_bytes(data, datalen) != 1) { in ngtcp2_crypto_random()
/third_party/node/deps/ngtcp2/ngtcp2/crypto/openssl/
H A Dopenssl.c713 if (RAND_bytes(data, NGTCP2_PATH_CHALLENGE_DATALEN) != 1) { in ngtcp2_crypto_get_path_challenge_data_cb()
721 if (RAND_bytes(data, (int)datalen) != 1) { in ngtcp2_crypto_random()
/third_party/curl/lib/
H A Dsetup-vms.h264 #define RAND_bytes RAND_BYTES macro

Completed in 19 milliseconds

1234