Skip to main content

pq_decapsulate

Function pq_decapsulate 

Source
pub fn pq_decapsulate(
    dk: &PqDecapsKey,
    ct: &PqCiphertext,
) -> Result<Zeroizing<[u8; 32]>, CryptoError>
Expand description

Decapsulate ct using dk, recovering the 32-byte shared secret wrapped in zeroizing memory.