Lines Matching refs:nBufLen
376 int CEncryptedDatagramSocket::DecryptReceivedServer(uint8_t* pbyBufIn, int nBufLen, uint8_t **ppbyBufOut, uint32_t dwBaseKey, uint32_t /*dbgIP*/)
378 int nResult = nBufLen;
412 return nBufLen; // pass through, let the Receivefunction do the errorhandling on this junk
420 *ppbyBufOut = pbyBufIn + (nBufLen - nResult);
423 theStats::AddDownOverheadCrypt(nBufLen - nResult);
427 return nBufLen; // pass through, let the Receivefunction do the errorhandling on this junk
431 int CEncryptedDatagramSocket::EncryptSendServer(uint8_t** ppbyBuf, int nBufLen, uint32_t dwBaseKey)
464 uint32_t nCryptedLen = nBufLen + byPadLen + CRYPT_HEADER_WITHOUTPADDING;
479 sendbuffer.RC4Crypt(*ppbyBuf, pachCryptedBuffer + CRYPT_HEADER_WITHOUTPADDING + byPadLen, nBufLen);
483 theStats::AddUpOverheadCrypt(nCryptedLen - nBufLen);