Lines Matching refs:out_len
235 let mut out_len = 0; in hkdf_extract() localVariable
241 &mut out_len, in hkdf_extract()
252 if out_len > max_size { in hkdf_extract()
257 buf.reduce_len(out_len); in hkdf_extract()
262 pub fn hkdf_expand(out_len: usize, prk: &[u8], info: &[u8]) -> Result<ZVec, Error> { in hkdf_expand()
263 let mut buf = ZVec::new(out_len)?; in hkdf_expand()
267 HKDFExpand(buf.as_mut_ptr(), out_len, prk.as_ptr(), prk.len(), info.as_ptr(), info.len()) in hkdf_expand()
335 let out_len = result.try_into().unwrap(); in ecdh_compute_key() localVariable
337 if out_len > buf.len() { in ecdh_compute_key()
342 buf.reduce_len(out_len); in ecdh_compute_key()
546 for out_len in 4..=8 { in test_hkdf()
547 let result = hkdf_expand(out_len, &[0; 16], &[0; 16]); in test_hkdf()
549 assert_eq!(result.unwrap().len(), out_len); in test_hkdf()