Function encrypt_query

Source
pub fn encrypt_query<R: RngCore + CryptoRng>(
    query: &ObliviousDoHMessagePlaintext,
    config: &ObliviousDoHConfigContents,
    rng: &mut R,
) -> Result<(ObliviousDoHMessage, OdohSecret), Error>
Expand description

Encrypt a client DNS query with a proper config, return the encrypted query and client secret.