Lines Matching defs:pBuffer
345 void CEncryptedStreamSocket::CryptPrepareSendData(uint8* pBuffer, uint32 nLen)
359 //DumpMem(pBuffer, nLen, wxT("Before crypt prepare:\n"));
360 m_pfiSendBuffer.RC4Crypt(pBuffer, pBuffer, nLen);
361 //DumpMem(pBuffer, nLen, wxT("After crypt prepare:\n"));
438 int CEncryptedStreamSocket::Negotiate(const uint8* pBuffer, uint32 nLen)
443 //DumpMem(pBuffer, nLen, wxT("Negotiate buffer: "));
454 //DumpMem(pBuffer + nRead, nToRead, wxT("Recv Buffer: "));
455 m_pfiReceiveBuffer.Write(pBuffer + nRead, nToRead);
690 uint8_t* pBuffer = NULL;
693 pBuffer = new uint8_t[nBufLen];
694 if (pBuffer == NULL) {
699 memcpy(pBuffer, lpBuf, nStartCryptFromByte);
705 m_pfiSendBuffer.RC4Crypt((uint8*)lpBuf + nStartCryptFromByte, pBuffer + nStartCryptFromByte, nBufLen - nStartCryptFromByte);
706 //DumpMem(pBuffer, nBufLen, wxT("Post-encryption:"));
716 m_pfiSendBuffer.Append(pBuffer, nBufLen);
717 delete[] pBuffer;
718 pBuffer = NULL;
731 pBuffer = m_pfiSendBuffer.Detach();
739 CSocketClientProxy::Write(pBuffer, nBufLen);
745 m_pfiSendBuffer.Write(pBuffer, nBufLen);
746 delete[] pBuffer;
752 m_pfiSendBuffer.Write(pBuffer + result, nBufLen - result);
754 delete[] pBuffer;