Home
last modified time | relevance | path

Searched refs:from_secret (Results 1 – 3 of 3) sorted by relevance

/external/rust/crates/quiche/src/
Dcrypto.rs154 pub fn from_secret(aead: Algorithm, secret: &[u8]) -> Result<Open> { in from_secret() method
160 header: HeaderProtectionKey::from_secret(aead, secret)?, in from_secret()
162 packet: PacketKey::from_secret(aead, secret)?, in from_secret()
227 let next_packet_key = PacketKey::from_secret(self.alg, &next_secret)?; in derive_next_packet_key()
266 pub fn from_secret(aead: Algorithm, secret: &[u8]) -> Result<Seal> { in from_secret() method
272 header: HeaderProtectionKey::from_secret(aead, secret)?, in from_secret()
274 packet: PacketKey::from_secret(aead, secret)?, in from_secret()
354 let next_packet_key = PacketKey::from_secret(self.alg, &next_secret)?; in derive_next_packet_key()
384 pub fn from_secret(aead: Algorithm, secret: &[u8]) -> Result<Self> { in from_secret() method
410 pub fn from_secret(aead: Algorithm, secret: &[u8]) -> Result<Self> { in from_secret() method
Dtls.rs962 let open = match crypto::Open::from_secret(aead, secret) { in set_read_secret()
1013 let seal = match crypto::Seal::from_secret(aead, secret) { in set_write_secret()
Dpacket.rs1893 let aead = crypto::Open::from_secret(alg, &secret).unwrap(); in decrypt_chacha20()
2825 let aead = crypto::Seal::from_secret(alg, &secret).unwrap(); in encrypt_chacha20()