Skip to main content

server_hybrid_stream_keys

Function server_hybrid_stream_keys 

Source
pub fn server_hybrid_stream_keys(
    client_kem_public: &[u8],
) -> EnvelopeResult<(HybridKemMaterial, StreamKeys)>
Expand description

Server side of the hybrid stream handshake (S3 #554).

client_kem_public is the client’s encoded ephemeral RecipientPublic from RequestEnvelope.clientKemPublic. Encapsulate to it, derive the stream keys from the hybrid combiner secret, and return the per-component ciphertexts to emit in StreamInfo.kemCiphertexts. Fail-closed on malformed/wrong-suite input.