Skip to main content

Module application_crypto_streams

Module application_crypto_streams 

Source
Expand description

Length-framed application-crypto adapters for iroh SendStream / RecvStream.

Mirrors the TypeScript createCryptoStreams contract: each write_all produces one encrypted frame; read reassembles framed ciphertext from arbitrary chunk boundaries before returning plaintext.

Structs§

CryptoRecvStream
CryptoSendStream

Enums§

PeerRecvStream
PeerSendStream

Functions§

is_crypto_auth_failure
Returns true only when encrypted stream decoding reached AEAD verification and rejected the frame. Transport EOF, connection loss, and incomplete shutdown frames are intentionally distinct so callers do not misreport lifecycle teardown as retired key material.
peer_stop_code
Return the peer-provided QUIC stop code without forcing higher layers to parse a transport error’s display text.
wrap_peer_streams
wrap_send_stream