Skip to main content

pq_handshake_finish

Function pq_handshake_finish 

Source
pub fn pq_handshake_finish(
    hs: &PqHandshake,
    ct: &[u8],
) -> Result<(PqSuite, PqSuite), KemError>
Expand description

Initiator step 2: decapsulate the responder’s ciphertext, yielding the matching directional suites (initiator→responder, responder→initiator). A ciphertext of the wrong length is refused; a well-formed but forged one implicit-rejects into suites that open nothing.