Expand description
Rust implementation of the Noise Protocol Framework.
§Basic Usage
Initialize a HandshakeState with HandshakeState::new or
HandshakeStateBuilder, call HandshakeState::write_message and
HandshakeState::read_message to complete the handshake, and finally call
HandshakeState::get_ciphers to get a pair of CipherState to
encrypt/decrypt further transport messages.
§Crypto Primitives
This crate only contains an abstract implementation of the protocol.
Concrete implementations of the crypto primitives, wrapping around some
popular libraries, are provided in sibling crates, e.g., noise-ring,
noise-sodiumoxide and noise-rust-crypto.
Other implementations of the crypto primitives can be easily plugged in by
implementing the DH, Cipher and Hash traits.
Modules§
- patterns
- Handshake patterns.
Structs§
- Cipher
State - A
CipherStatecan encrypt and decrypt data. - Error
- Handshake error.
- Handshake
State - Noise handshake state.
- Handshake
State Builder - Builder for
HandshakeState.
Enums§
- Error
Kind - Handshake error kind.