pub fn crypto_kem_enc(
    c: &mut [u8; 128],
    key: &mut [u8; 32],
    pk: &[u8; 261120],
    rng: &mut impl RNGState
) -> Result<(), Box<dyn Error>>
Expand description

KEM Encapsulation.

Given a public key pk, sample a shared key. This shared key is returned through parameter key whereas the ciphertext (meant to be used for decapsulation) is returned as c.