Crate snowflakes

Crate snowflakes 

Source

Structs§

SnowFramed
Convenient framed stream io with noise protocol support. AsyncRead and AsyncWrite are implemented.
WinterFramed
A convenient framed stream writer with noise protocol support. After the handshake completes, it should be converted to SnowFramed.

Constants§

HANDSHAKE_LEN
Length of the overhead of handshake message: TAG_LEN + Length of cipher key(32 bytes)
LENGTH_FIELD_LEN
Length of length field of a message. Actually 2 could be used, but here we use 3 due to the possibility of breaking: https://github.com/tokio-rs/tokio/issues/4184
NOISE_MSG_LEN
Maximum length of the noise protocol.
TAG_LEN
Tag length of ChaCha20-Poly1305 and AES-256-GCM

Type Aliases§

SnowFlakes
Framed io with noise protocol support.