Skip to main content

client_hybrid_stream_keys

Function client_hybrid_stream_keys 

Source
pub fn client_hybrid_stream_keys(
    keypair: &RecipientKeypair,
    kem_ciphertexts: &[u8],
) -> EnvelopeResult<StreamKeys>
Expand description

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

Given the client’s ephemeral RecipientKeypair and the server’s encoded ciphertexts from StreamInfo.kemCiphertexts, decapsulate and derive the SAME StreamKeys.