Skip to main content

Module noise_transport

Module noise_transport 

Source
Expand description

Noise Protocol transport implementation.

Noise_IK handshake pattern for authenticated key exchange, followed by ChaCha20-Poly1305 AEAD for transport encryption. This is a simplified implementation suitable for testing; production should use the noise-rust or snow crate.

Structs§

NoiseHandshake
Noise handshake state (XX pattern simplified to IK).
NoiseMessage
A Noise transport message (encrypted or handshake).

Functions§

decrypt
Decrypt and verify a Noise-encrypted message.
encrypt
Encrypt a message with a Noise key (simplified AEAD).