Skip to main content

encapsulate_to

Function encapsulate_to 

Source
pub fn encapsulate_to(
    recipient: &RecipientPublic,
) -> Result<(HybridKemMaterial, Zeroizing<[u8; 32]>)>
Expand description

Encapsulate to a recipient’s public material, returning the wire HybridKemMaterial (the per-component ciphertexts) and the combined 32-byte shared secret.