Safe Haskell | None |
---|---|
Language | Haskell2010 |
Low-level rendering and parsing routines for raw Tor cells.
- data TorCell
- = Padding
- | Create Word32 ByteString
- | Created Word32 ByteString
- | Relay Word32 ByteString
- | Destroy Word32 DestroyReason
- | CreateFast Word32 ByteString
- | CreatedFast Word32 ByteString ByteString
- | NetInfo Word32 TorAddress [TorAddress]
- | RelayEarly Word32 ByteString
- | Create2 Word32 HandshakeType ByteString
- | Created2 Word32 ByteString
- | Versions
- | VPadding ByteString
- | Certs [TorCert]
- | AuthChallenge ByteString [Word16]
- | Authenticate ByteString
- | Authorize
- putTorCell :: TorCell -> Put
- getTorCell :: Get TorCell
- data DestroyReason
- putDestroyReason :: DestroyReason -> Put
- getDestroyReason :: Get DestroyReason
- data HandshakeType
- putHandshakeType :: HandshakeType -> Put
- getHandshakeType :: Get HandshakeType
- data TorCert
- putTorCert :: TorCert -> Put
- getTorCert :: Get TorCert
- getCircuit :: TorCell -> Maybe Word32
- isPadding :: TorCell -> Bool
Documentation
A raw tor cell.
putTorCell :: TorCell -> Put Source
Render a TorCell
getTorCell :: Get TorCell Source
Parse a TorCell
data DestroyReason Source
A reason that a Circuit could or has been destroyed.
putDestroyReason :: DestroyReason -> Put Source
Render a DestroyReason
getDestroyReason :: Get DestroyReason Source
Parse a DestroyReason.
data HandshakeType Source
The two supported handshake types for Tor.
putHandshakeType :: HandshakeType -> Put Source
Render a handshake identifier.
getHandshakeType :: Get HandshakeType Source
Parse a handshake identifier.
The kinds of certificates used within the initial Tor handshake.
putTorCert :: TorCert -> Put Source
Render a certificate.
getTorCert :: Get TorCert Source
Parse a certificate.
getCircuit :: TorCell -> Maybe Word32 Source
Given a tor cell, return the circuit it's associated with, if it is.