twenty_first::math::lattice::kem

Function dec

Source
pub fn dec(sk: SecretKey, ctxt: Ciphertext) -> Option<[u8; 32]>
Expand description

Decapsulate: use the secret key to extract the corresponding shared symmetric key from a ciphertext (if successful).