Home
last modified time | relevance | path

Searched refs:RAND_bytes (Results 1 – 25 of 67) sorted by relevance

123

/external/boringssl/src/crypto/rand_extra/
Drand_test.cc49 RAND_bytes(buf1, sizeof(buf1)); in TEST()
50 RAND_bytes(buf2, sizeof(buf2)); in TEST()
79 RAND_bytes(out.data(), out.size()); in ForkAndRand()
133 RAND_bytes(&byte, 1); in TEST()
142 RAND_bytes(buf3, sizeof(buf3)); in TEST()
164 std::thread([i, &bufs] { RAND_bytes(bufs[i].data(), bufs[i].size()); }); in RunConcurrentRands()
Drand_extra.c24 RAND_bytes(&unused, sizeof(unused)); in RAND_seed()
55 RAND_bytes,
/external/boringssl/src/crypto/hrss/
Dhrss_test.cc51 RAND_bytes(bits, sizeof(bits)); in TEST()
81 RAND_bytes(reinterpret_cast<uint8_t *>(p), sizeof(poly3)); in poly3_rand()
202 RAND_bytes(generate_key_entropy, sizeof(generate_key_entropy)); in TEST()
211 RAND_bytes(encap_entropy, sizeof(encap_entropy)); in TEST()
223 RAND_bytes((uint8_t*) &offset, sizeof(offset)); in TEST()
225 RAND_bytes(&bit, sizeof(bit)); in TEST()
/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLRandom.java40 NativeCrypto.RAND_bytes(bytes); in engineNextBytes()
46 NativeCrypto.RAND_bytes(output); in engineGenerateSeed()
DOpenSSLCipherChaCha20.java65 NativeCrypto.RAND_bytes(iv); in engineInitInternal()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DOpenSSLRandom.java45 NativeCrypto.RAND_bytes(bytes); in engineNextBytes()
51 NativeCrypto.RAND_bytes(output); in engineGenerateSeed()
DOpenSSLCipherChaCha20.java69 NativeCrypto.RAND_bytes(iv); in engineInitInternal()
/external/boringssl/src/crypto/
Dabi_self_test.cc40 RAND_bytes(reinterpret_cast<uint8_t *>(&state), sizeof(state)); in TEST()
110 RAND_bytes(reinterpret_cast<uint8_t *>(&state), sizeof(state)); in TEST()
214 RAND_bytes(reinterpret_cast<uint8_t *>(&state), sizeof(state)); in TEST()
286 RAND_bytes(reinterpret_cast<uint8_t *>(&state), sizeof(state)); in TEST()
425 RAND_bytes(reinterpret_cast<uint8_t *>(&state), sizeof(state)); in TEST()
Dthread_test.cc124 RAND_bytes(buf, sizeof(buf)); in TEST()
128 RAND_bytes(buf2, sizeof(buf2)); in TEST()
Dconstant_time_test.cc143 RAND_bytes(buf, sizeof(buf)); in TEST()
/external/boringssl/src/crypto/fipsmodule/rand/
Drand.c343 int RAND_bytes(uint8_t *out, size_t out_len) { in RAND_bytes() function
350 return RAND_bytes(buf, len); in RAND_pseudo_bytes()
/external/boringssl/src/crypto/fipsmodule/rsa/
Dpadding.c149 if (!RAND_bytes(out, len)) { in rand_nonzero()
155 if (!RAND_bytes(out + i, 1)) { in rand_nonzero()
355 if (!RAND_bytes(seed, mdlen)) { in RSA_padding_add_PKCS1_OAEP_mgf1()
645 if (!RAND_bytes(salt, sLen)) { in RSA_padding_add_PKCS1_PSS_mgf1()
/external/boringssl/src/crypto/fipsmodule/bn/
Drandom.c158 RAND_bytes((uint8_t *)rnd->d, words * sizeof(BN_ULONG)); in BN_rand()
316 RAND_bytes((uint8_t *)r->d, words * sizeof(BN_ULONG)); in bn_rand_secret_range()
/external/boringssl/src/include/openssl/
Drand.h29 OPENSSL_EXPORT int RAND_bytes(uint8_t *buf, size_t len);
/external/boringssl/src/tool/
Drand.cc73 RAND_bytes(buf, todo); in Rand()
Dspeed.cc488 RAND_bytes(scratch, chunk_len); in SpeedRandomChunk()
790 RAND_bytes(entropy, sizeof(entropy)); in SpeedHRSS()
803 RAND_bytes(key_entropy, sizeof(key_entropy)); in SpeedHRSS()
810 RAND_bytes(entropy, sizeof(entropy)); in SpeedHRSS()
/external/libchrome/crypto/
Dsymmetric_key.cc48 int rv = RAND_bytes(key_data, static_cast<int>(key_size_in_bytes)); in GenerateRandomKey()
/external/boringssl/src/
DFUZZING.md54 * Replace `RAND_bytes` with a deterministic PRNG. Call `RAND_reset_for_fuzzing()` at the start of f…
/external/boringssl/src/ssl/
Dssl_session.cc385 if (!RAND_bytes(session->session_id, session->session_id_length)) { in ssl_get_new_session()
435 RAND_bytes(new_key->name, 16); in ssl_ctx_rotate_ticket_encryption_key()
436 RAND_bytes(new_key->hmac_key, 16); in ssl_ctx_rotate_ticket_encryption_key()
437 RAND_bytes(new_key->aes_key, 16); in ssl_ctx_rotate_ticket_encryption_key()
492 if (!RAND_bytes(iv, 16) || in ssl_encrypt_ticket_with_cipher_ctx()
Dssl_key_share.cc224 RAND_bytes(hrss_entropy, sizeof(hrss_entropy)); in Offer()
261 RAND_bytes(entropy, sizeof(entropy)); in Accept()
/external/openssh/
Dentropy.c188 if (RAND_bytes(buf, sizeof(buf)) <= 0) { in rexec_send_rng_seed()
/external/boringssl/src/ssl/test/
Dhandshaker.cc147 RAND_bytes(&byte, 1); in main()
/external/boringssl/src/crypto/fipsmodule/ecdsa/
Decdsa_test.cc182 ASSERT_TRUE(RAND_bytes(digest, 20)); in TEST()
183 ASSERT_TRUE(RAND_bytes(wrong_digest, 20)); in TEST()
/external/openssh/openbsd-compat/
Darc4random.c112 if (RAND_bytes(rnd, sizeof(rnd)) <= 0) in _rs_stir()
/external/webrtc/webrtc/base/
Dhelpers.cc55 return (RAND_bytes(reinterpret_cast<unsigned char*>(buf), len) > 0); in Generate()

123