Lines Matching refs:randoms
259 let mut randoms = [0u8; 64]; localVariable
260 randoms.as_mut().write_all(first).unwrap();
261 randoms[32..].as_mut().write_all(second).unwrap();
262 randoms
267 pub randoms: SessionRandoms, field
273 pub fn new(randoms: &SessionRandoms, in new()
278 randoms: randoms.clone(), in new()
283 let randoms = join_randoms(&ret.randoms.client, &ret.randoms.server); in new() localVariable
288 &randoms); in new()
292 pub fn new_ems(randoms: &SessionRandoms, in new_ems()
297 randoms: randoms.clone(), in new_ems()
310 pub fn new_resume(randoms: &SessionRandoms, in new_resume()
315 randoms: randoms.clone(), in new_resume()
329 let randoms = join_randoms(&self.randoms.server, &self.randoms.client); in make_key_block() localVariable
334 &randoms); in make_key_block()
369 let mut randoms = Vec::new(); in export_keying_material() localVariable
370 randoms.extend_from_slice(&self.randoms.client); in export_keying_material()
371 randoms.extend_from_slice(&self.randoms.server); in export_keying_material()
374 (context.len() as u16).encode(&mut randoms); in export_keying_material()
375 randoms.extend_from_slice(context); in export_keying_material()
382 &randoms) in export_keying_material()