Home
last modified time | relevance | path

Searched refs:rand_bytes (Results 1 - 4 of 4) sorted by relevance

/third_party/rust/crates/rust-openssl/openssl/src/
H A Drand.rs8 //! use openssl::rand::rand_bytes;
11 //! rand_bytes(&mut buf).unwrap();
26 /// use openssl::rand::rand_bytes;
29 /// rand_bytes(&mut buf).unwrap();
32 pub fn rand_bytes(buf: &mut [u8]) -> Result<(), ErrorStack> { in rand_bytes() functions
53 use super::rand_bytes;
58 rand_bytes(&mut buf).unwrap(); in test_rand_bytes()
H A Dcipher_ctx.rs724 use crate::{cipher::Cipher, rand::rand_bytes};
814 rand_bytes(&mut key).unwrap();
816 rand_bytes(&mut iv).unwrap();
926 rand_bytes(&mut key).unwrap();
928 rand_bytes(&mut iv).unwrap();
/third_party/nghttp2/src/
H A Dshrpx_quic_connection_handler.cc600 std::array<uint8_t, NGTCP2_MIN_STATELESS_RESET_RANDLEN> rand_bytes; in send_stateless_reset() local
602 if (RAND_bytes(rand_bytes.data(), rand_bytes.size()) != 1) { in send_stateless_reset()
610 rand_bytes.data(), rand_bytes.size()); in send_stateless_reset()
/third_party/openssl/test/
H A Ddrbgtest.c65 static int rand_bytes(unsigned char *buf, int num) in rand_bytes() function
166 * Generates random output using rand_bytes() and rand_priv_bytes()
222 if (!TEST_int_eq(rand_bytes((unsigned char*)public_random, in test_drbg_reseed()
701 if (rand_bytes(buf, sizeof(buf)) <= 0) in run_multi_thread_test()

Completed in 5 milliseconds