docs.rs failed to build snow-0.0.1-preview.10
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
snow-0.9.6
Snow
An implementation of the Noise Protocol by Trevor Perrin that is designed to be Hard To Fuck Up™.
See the documentation at https://docs.rs/snow.
🔥 This library is in the state of preview - do everyone a favor and only use this for fun or criticizing the author's code for now.
Crypto
Cryptographic providers are swappable through NoiseBuilder::with_provider()
, but by default it chooses select, artisanal
pure-Rust implementations (see Cargo.toml
for a quick overview).
What's it look like?
See examples/simple.rs
for a more complete TCP client/server example.
let noise = new
.build_initiator
.unwrap;
let mut buf = ;
// write first handshake message
noise.write_message.unwrap;
// receive response message
let incoming = receive_message_from_the_mysterious_ether;
noise.read_message.unwrap;
// complete handshake, and transition the state machine into transport mode
let noise = noise.into_transport_mode;
Status
Work in progress. Unreviewed. Unaudited. All APIs are unstable. Don't use for security critical purposes. Side effects may include nausea, heart palpatations, yolocryptosis, and permanent sexual dysfunction.