Lines Matching refs:lpBuf
184 int CEncryptedStreamSocket::Write(const void* lpBuf, uint32_t nBufLen)
194 int nRes = SendNegotiatingData(lpBuf, nBufLen, nBufLen);
210 CSocketClientProxy::Write(lpBuf, nBufLen);
214 int CEncryptedStreamSocket::Read(void* lpBuf, uint32_t nBufLen)
216 CSocketClientProxy::Read(lpBuf, nBufLen);
240 switch (((uint8_t*)lpBuf)[0]) {
251 const uint32 nNegRes = Negotiate((uint8_t*)lpBuf + nRead, m_nObfusicationBytesReceived - nRead);
297 m_pfiReceiveBuffer.RC4Crypt((uint8_t*)lpBuf, (uint8_t*)lpBuf, m_nObfusicationBytesReceived);
298 //DumpMem(lpBuf, m_nObfusicationBytesReceived, wxT("Directly decrypted data:"));
302 const uint32_t nRead = Negotiate((uint8_t*)lpBuf, m_nObfusicationBytesReceived);
316 memmove(lpBuf, (uint8_t*)lpBuf + nRead, m_nObfusicationBytesReceived - nRead);
684 int CEncryptedStreamSocket::SendNegotiatingData(const void* lpBuf, uint32_t nBufLen, uint32_t nStartCryptFromByte, bool bDelaySend)
692 if (lpBuf != NULL) {
699 memcpy(pBuffer, lpBuf, nStartCryptFromByte);
704 //DumpMem(lpBuf, nBufLen, wxT("Pre-encryption:"));
705 m_pfiSendBuffer.RC4Crypt((uint8*)lpBuf + nStartCryptFromByte, pBuffer + nStartCryptFromByte, nBufLen - nStartCryptFromByte);
724 if (lpBuf == NULL || bProcess) {