Skip to main content

Module ntor

Module ntor 

Source
Expand description

Implements the ntor handshake, as used in modern Tor.

Structsยง

NtorClient ๐Ÿ”’
Client side of the Ntor handshake.
NtorHandshakeState ๐Ÿ”’
Client state for an ntor handshake.
NtorHkdfKeyGenerator ๐Ÿ”’
KeyGenerator for use with ntor circuit handshake.
NtorPublicKey ๐Ÿ”’
A set of public keys used by a client to initiate an ntor handshake.
NtorSecretKey ๐Ÿ”’
A secret key used by a relay to answer an ntor request
NtorServer ๐Ÿ”’
Server side of the ntor handshake.

Functionsยง

client_handshake2_ntor_v1 ๐Ÿ”’
Complete a client handshake, returning a key generator on success.
client_handshake_ntor_v1 ๐Ÿ”’
Perform a client handshake, generating an onionskin and a state object
client_handshake_ntor_v1_no_keygen ๐Ÿ”’
Helper: client handshake without generating new keys.
ntor_derive ๐Ÿ”’
helper: compute a key generator and an authentication code from a set of ntor parameters.
server_handshake_ntor_v1 ๐Ÿ”’
Perform a server-side ntor handshake.
server_handshake_ntor_v1_no_keygen ๐Ÿ”’
Helper: perform a server handshake without generating any new keys.

Type Aliasesยง

Authcode ๐Ÿ”’
Alias for an HMAC output, used to validate correctness of a handshake.