Skip to main content

pq_handshake_responder

Function pq_handshake_responder 

Source
pub fn pq_handshake_responder(
    ek: &[u8],
    msg: &[u8; 32],
) -> Result<(Vec<u8>, PqSuite, PqSuite), KemError>
Expand description

Responder: encapsulate to the initiator’s ek, returning the ciphertext to send back and the two directional suites (initiator→responder, responder→initiator). An ek that fails the FIPS 203 encapsulation-key checks is refused, never encapsulated to.