decapsulate

Function decapsulate 

Source
pub fn decapsulate<'shared_secret>(
    ciphertext: &Ciphertext,
    secret_key: &SecretKey<'_>,
    shared_secret_buf: &'shared_secret mut [u8; 32],
) -> SharedSecret<'shared_secret>
Expand description

KEM Decapsulation.

Given a secret key secret_key and a ciphertext ciphertext, determine the shared key negotiated by both parties.