Crate snowflakes
source · [−]Structs
Convenient framed stream io with noise protocol support.
AsyncRead
and AsyncWrite
are implemented.
A convenient framed stream writer with noise protocol support. After the
handshake completes, it should be converted to SnowFramed
.
Constants
Length of the overhead of handshake message: TAG_LEN
+ Length of cipher key(32 bytes)
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
Maximum length of the noise protocol.
Tag length of ChaCha20-Poly1305
and AES-256-GCM
Type Definitions
Framed io with noise protocol support.