Searched refs:from_secret (Results 1 – 3 of 3) sorted by relevance
144 pub fn from_secret(aead: Algorithm, secret: &[u8]) -> Result<Open> { in from_secret() method228 pub fn from_secret(aead: Algorithm, secret: &[u8]) -> Result<Seal> { in from_secret() method
589 let open = match crypto::Open::from_secret(aead, &secret) { in set_read_secret()639 let seal = match crypto::Seal::from_secret(aead, &secret) { in set_write_secret()
1505 let aead = crypto::Open::from_secret(alg, &secret).unwrap(); in decrypt_chacha20()2150 let aead = crypto::Seal::from_secret(alg, &secret).unwrap(); in encrypt_chacha20()