Lines Matching refs:My
65 let My(out) = salt in hkdf_tests() localVariable
67 .expand(&[&info], My(expected_out.len())) in hkdf_tests()
87 let okm = prk.expand(&[b"info"], My(0)).unwrap(); in hkdf_output_len_tests()
88 let result: My<Vec<u8>> = okm.into(); in hkdf_output_len_tests()
96 let okm = prk.expand(&[b"info"], My(max_out_len)).unwrap(); in hkdf_output_len_tests()
97 let result: My<Vec<u8>> = okm.into(); in hkdf_output_len_tests()
103 assert!(prk.expand(&[b"info"], My(max_out_len + 1)).is_err()); in hkdf_output_len_tests()
108 let okm = prk.expand(&[b"info"], My(2)).unwrap(); in hkdf_output_len_tests()
115 let okm = prk.expand(&[b"info"], My(2)).unwrap(); in hkdf_output_len_tests()
122 let okm = prk.expand(&[b"info"], My(2)).unwrap(); in hkdf_output_len_tests()
132 struct My<T: core::fmt::Debug + PartialEq>(T); struct
134 impl hkdf::KeyType for My<usize> { implementation
140 impl From<hkdf::Okm<'_, My<usize>>> for My<Vec<u8>> { implementation
141 fn from(okm: hkdf::Okm<My<usize>>) -> Self { in from()
144 My(r) in from()