Function classic_mceliece_rust::encapsulate_boxed
source · [−]pub fn encapsulate_boxed<R: CryptoRng + RngCore>(
public_key: &PublicKey<'_>,
rng: &mut R
) -> (Ciphertext, SharedSecret<'static>)
Available on crate feature
alloc
only.Expand description
Convenient wrapper around encapsulate
that stores the shared secret on the heap
and returns it with the 'static
lifetime.