Lines Matching refs:hkdf
28 use ring::hkdf;
87 fn get_ring_digest(self) -> hkdf::Algorithm { in get_ring_digest()
89 Algorithm::AES128_GCM => hkdf::HKDF_SHA256, in get_ring_digest()
90 Algorithm::AES256_GCM => hkdf::HKDF_SHA384, in get_ring_digest()
91 Algorithm::ChaCha20_Poly1305 => hkdf::HKDF_SHA256, in get_ring_digest()
337 fn derive_initial_secret(secret: &[u8], version: u32) -> Result<hkdf::Prk> { in derive_initial_secret()
355 let salt = hkdf::Salt::new(hkdf::HKDF_SHA256, salt); in derive_initial_secret()
359 fn derive_client_initial_secret(prk: &hkdf::Prk, out: &mut [u8]) -> Result<()> { in derive_client_initial_secret()
364 fn derive_server_initial_secret(prk: &hkdf::Prk, out: &mut [u8]) -> Result<()> { in derive_server_initial_secret()
380 let secret = hkdf::Prk::new_less_safe(aead.get_ring_digest(), secret); in derive_hdr_key()
395 let secret = hkdf::Prk::new_less_safe(aead.get_ring_digest(), secret); in derive_pkt_key()
410 let secret = hkdf::Prk::new_less_safe(aead.get_ring_digest(), secret); in derive_pkt_iv()
415 prk: &hkdf::Prk, label: &[u8], out: &mut [u8], in hkdf_expand_label()
450 impl hkdf::KeyType for ArbitraryOutputLen {