Mixes for Privacy and Anonymity in the Internet
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
CALocalProxy Class Reference

List of all members.

Public Member Functions

 CALocalProxy ()
 ~CALocalProxy ()
SINT32 start ()

Static Public Attributes

static bool bCapturePackets
static bool bReplayPackets
static int iCapturedPackets

Private Member Functions

SINT32 loop ()
SINT32 init ()
SINT32 initOnce ()
SINT32 clean ()
SINT32 processKeyExchange (UINT8 *buff, UINT32 size)

Private Attributes

CASocket m_socketIn
CASocket m_socketSOCKSIn
CAMuxSocket m_muxOut
UINT32 m_chainlen
UINT32 m_MixCascadeProtocolVersion
CAASymCipherm_arRSA
CASymCipherm_pSymCipher
UINT32 m_nFlowControlDownstreamSendMe
bool m_bWithNewFlowControl
bool m_bWithEnhancedChannelEncryption
UINT32 m_SymChannelEncryptedKeySize
UINT32 m_SymChannelKeySize
bool m_bWithFirstMixSymmetric

Constructor & Destructor Documentation

References m_arRSA, and m_pSymCipher.

References clean().


Member Function Documentation

SINT32 CALocalProxy::clean ( ) [private]
SINT32 CALocalProxy::init ( ) [private]
SINT32 CALocalProxy::loop ( ) [private]

References CASocket::accept(), CASocketGroup::add(), CASocketList::add(), CASocketList::addSendMeCounter(), bCapturePackets, bReplayPackets, t_MixPacket::channel, CHANNEL_CLOSE, CHANNEL_DATA, CHANNEL_OPEN, CASocket::close(), CASymCipher::crypt1(), CASymCipher::crypt2(), connlist::currentSendMeCounter, t_MixPacketPayload::data, t_MixPacket::data, DATA_SIZE, E_SUCCESS, E_UNKNOWN, CAASymCipher::encrypt(), CAASymCipher::encryptOAEP(), t_MixPacket::flags, CASocketList::get(), CASocketList::getFirst(), CASocket::getLocalPort(), CASocketList::getNext(), CALibProxytest::getOptions(), getRandom(), CACmdLnOptions::getSOCKSServerPort(), iCapturedPackets, CASymCipher::isKeyValid(), CASocketGroup::isSignaled(), t_MixPacketPayload::len, len, m_arRSA, m_bWithEnhancedChannelEncryption, m_bWithFirstMixSymmetric, m_bWithNewFlowControl, m_chainlen, m_muxOut, m_nFlowControlDownstreamSendMe, m_pSymCipher, m_socketIn, m_socketSOCKSIn, m_SymChannelEncryptedKeySize, m_SymChannelKeySize, MIX_PAYLOAD_HTTP, MIX_PAYLOAD_SOCKS, MIXPACKET_SIZE, NEW_FLOW_CONTROL_FLAG, connlist::next, connlist::outChannel, t_MixPacket::payload, PAYLOAD_LEN_MASK, PAYLOAD_SIZE, connlist::pCiphers, CAMsg::printMsg(), connlist::pSocket, CASocket::receive(), CAMuxSocket::receive(), CASocketList::remove(), CASocketGroup::remove(), REPLAY_COUNT, RSA_SIZE, CASocketGroup::select(), CASocket::send(), CAMuxSocket::send(), CASymCipher::setIV2(), CASymCipher::setKeys(), SOCKET_ERROR, sSleep(), t_MixPacketPayload::type, and connlist::upstreamBytes.

Referenced by start().

SINT32 CALocalProxy::processKeyExchange ( UINT8 buff,
UINT32  size 
) [private]

Member Data Documentation

Referenced by initOnce(), loop(), and SIGUSR1_handler().

Referenced by initOnce(), loop(), and SIGUSR2_handler().

Referenced by loop(), and SIGUSR1_handler().

Referenced by init(), loop(), and processKeyExchange().

Referenced by init(), loop(), and processKeyExchange().

Referenced by init(), loop(), and processKeyExchange().

Referenced by loop(), and processKeyExchange().

Referenced by processKeyExchange().

Referenced by clean(), init(), loop(), and processKeyExchange().

Referenced by init(), loop(), and processKeyExchange().

Referenced by clean(), init(), and loop().

Referenced by clean(), and loop().

Referenced by loop(), and processKeyExchange().

Referenced by loop(), and processKeyExchange().