Module secret_handshake::crypto
[−]
[src]
Low-level bindings to shs1-c. You probably don't need to use this module directly.
Structs
Client |
The struct used in the C code to perform the client side of a handshake. |
Outcome |
The data resulting from a handshake: Keys and nonces suitable for encrypted two-way communication with the peer via box-stream-rs, and the longterm public key of the peer. |
Server |
The struct used in the C code to perform the server side of a handshake. |
Constants
MSG1_BYTES |
Length of msg1 in bytes. |
MSG2_BYTES |
Length of msg2 in bytes. |
MSG3_BYTES |
Length of msg3 in bytes. |
MSG4_BYTES |
Length of msg4 in bytes. |
NETWORK_IDENTIFIER_BYTES |
Length of a network identifier in bytes. |