Module revault_net::noise
source · [−]Expand description
Noise Protocol Framework API
This module is a wrapper for noise functionality provided by snow to build and use secure communication channels between revault infrastructure machines.
Structs
A wrapper over Snow’s transport state for a KK Noise communication channel.
First round of the KK handshake
Final round of the KK handshake
Message sent during the first round of the KK handshake (e, es, ss)
Content of the message from the final round of the KK handshake (e, ee, se)
A cypertext encrypted with [encrypt_message] containing the length prefix of a plaintext message.
A cyphertext encrypted with [encrypt_message] containing the body of a Noise message.
The static public key used to enact Noise authenticated and encrypted channels
PublicKey
for asymmetric authenticated encryption
The static secret key used to enact Noise authenticated and encrypted channels
SecretKey
for asymmetric authenticated encryption
Constants
Sent for versioning and identification during handshake
The size of a key, either public or private, on the Curve25519
e, es, ss
e, ee, se
Two bytes are used for the message length prefix
Size of the poly1305 MAC
Message header length plus its MAC
Max message size pecified by Noise Protocol Framework
Maximum size of a message before being encrypted; limited by Noise Protocol Framework