Function classic_mceliece_rust::crypto_kem_dec
source · [−]pub fn crypto_kem_dec(
key: &mut [u8; 32],
c: &[u8; 128],
sk: &[u8; 6492]
) -> Result<u8, Box<dyn Error>>
Expand description
KEM Decapsulation.
Given a secret key sk
and a ciphertext c
,
determine the shared text key
negotiated by both parties.