Lines Matching refs:padLen
221 uint8_t padLen;
222 receivebuffer.RC4Crypt(bufIn + 7, (uint8_t*)&padLen, 1);
225 if (result <= padLen) {
230 if (padLen > 0) {
231 receivebuffer.RC4Crypt(NULL, NULL, padLen);
234 result -= padLen;
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);
271 uint8_t padLen = 0; // padding disabled for UDP currently
272 const uint32_t cryptHeaderLen = padLen + CRYPT_HEADER_WITHOUTPADDING + (kad ? 8 : 0);
354 sendbuffer.RC4Crypt((uint8_t*)&padLen, cryptedBuffer + 7, 1);
356 for (int j = 0; j < padLen; j++) {
364 sendbuffer.RC4Crypt((uint8_t*)&receiverVerifyKey, cryptedBuffer + CRYPT_HEADER_WITHOUTPADDING + padLen, 4);
365 sendbuffer.RC4Crypt((uint8_t*)&senderVerifyKey, cryptedBuffer + CRYPT_HEADER_WITHOUTPADDING + padLen + 4, 4);