Skip to main content

decaps

Function decaps 

Source
pub fn decaps(dk: &[u8], c: &[u8]) -> Result<[u8; 32], KemError>
Expand description

ML-KEM.Decaps(dk, c) → shared secret, with the Fujisaki-Okamoto implicit reject. The FIPS 203 §7.3 input checks run first, the key’s before the ciphertext’s, so a malformed key is reported whatever ciphertext arrives with it.