Lines Matching refs:randoms
264 let mut randoms = [0u8; 64]; localVariable
265 randoms.as_mut().write_all(first).unwrap();
266 randoms[32..].as_mut().write_all(second).unwrap();
267 randoms
272 pub randoms: SessionRandoms, field
278 pub fn new(randoms: &SessionRandoms, in new()
283 randoms: randoms.clone(), in new()
288 let randoms = join_randoms(&ret.randoms.client, &ret.randoms.server); in new() localVariable
293 &randoms); in new()
297 pub fn new_ems(randoms: &SessionRandoms, in new_ems()
302 randoms: randoms.clone(), in new_ems()
315 pub fn new_resume(randoms: &SessionRandoms, in new_resume()
320 randoms: randoms.clone(), in new_resume()
334 let randoms = join_randoms(&self.randoms.server, &self.randoms.client); in make_key_block() localVariable
339 &randoms); in make_key_block()
374 let mut randoms = Vec::new(); in export_keying_material() localVariable
375 randoms.extend_from_slice(&self.randoms.client); in export_keying_material()
376 randoms.extend_from_slice(&self.randoms.server); in export_keying_material()
379 (context.len() as u16).encode(&mut randoms); in export_keying_material()
380 randoms.extend_from_slice(context); in export_keying_material()
387 &randoms) in export_keying_material()