Documentation
¶
Index ¶
Constants ¶
View Source
const ( PROTOID_NTOR string = "ntor-curve25519-sha256-1" PROTOID_NTOR3 string = "ntor3-curve25519-sha3_256-1" )
View Source
const HTYPE_NTOR uint16 = 0x0002
View Source
const HTYPE_NTOR3 uint16 = 0x0003
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client_NTor3Handshake ¶
type Client_NTorHandshake ¶
type Client_NTorHandshake struct {
NodeID [20]byte
KeyID *ecdh.PublicKey // ntor-onion-key
PublicKey *ecdh.PublicKey // curve25519
PrivateKey *ecdh.PrivateKey // curve25519
}
func (*Client_NTorHandshake) Derive ¶
func (c *Client_NTorHandshake) Derive(s *Server_NTorHandshake, NTorOnionKey *ecdh.PublicKey) (*crypto.CircuitKeys, error)
type Server_NTor3Handshake ¶
type Server_NTorHandshake ¶
type Server_NTorHandshake struct {
PrivateKey *ecdh.PrivateKey // curve25519
PublicKey *ecdh.PublicKey // curve25519
Auth []byte
}
Click to show internal directories.
Click to hide internal directories.