Function encapsulate

Source
pub fn encapsulate(
    pk: &PublicKey,
    rng: &mut (impl CryptoRng + Rng),
) -> Result<(Ss, Ct), Error>
Expand description

Encapsulate a shared secret to the provided pk and return the (Key, Enc) tuple.