Lines Matching refs:bufIn
123 int CEncryptedDatagramSocket::DecryptReceivedClient(uint8_t *bufIn, int bufLen, uint8_t **bufOut, uint32_t ip, uint32_t *receiverVerifyKey, uint32_t *senderVerifyKey)
126 *bufOut = bufIn;
140 switch (bufIn[0]) {
157 uint8_t currentTry = ((bufIn[0] & 0x03) == 3) ? 1 : (bufIn[0] & 0x03);
178 memcpy(keyData + 16, bufIn + 1, 2); // random key part sent from remote client
188 memcpy(keyData + 21, bufIn + 1, 2); // random key part sent from remote client
196 memcpy(keyData + 4, bufIn + 1, 2); // random key part sent from remote client
204 receivebuffer.RC4Crypt(bufIn + 3, (uint8_t*)&value, sizeof(value));
222 receivebuffer.RC4Crypt(bufIn + 7, (uint8_t*)&padLen, 1);
242 receivebuffer.RC4Crypt(bufIn + CRYPT_HEADER_WITHOUTPADDING + padLen, (uint8_t*)receiverVerifyKey, 4);
243 receivebuffer.RC4Crypt(bufIn + CRYPT_HEADER_WITHOUTPADDING + padLen + 4, (uint8_t*)senderVerifyKey, 4);
249 *bufOut = bufIn + (bufLen - result);