Home | History | Annotate | Download | only in net80211

Lines Matching defs:icv

221 		    "[%s] WEP ICV mismatch on decrypt\n",
309 uint8_t icv[IEEE80211_WEP_CRCLEN];
372 /* Append little-endian CRC32 and encrypt it to produce ICV */
373 icv[0] = crc;
374 icv[1] = crc >> 8;
375 icv[2] = crc >> 16;
376 icv[3] = crc >> 24;
381 icv[k] ^= S[(S[i] + S[j]) & 0xff];
383 return m_append(m0, IEEE80211_WEP_CRCLEN, icv);
394 uint8_t icv[IEEE80211_WEP_CRCLEN];
457 * received ICV
459 icv[0] = crc;
460 icv[1] = crc >> 8;
461 icv[2] = crc >> 16;
462 icv[3] = crc >> 24;
467 /* XXX assumes ICV is contiguous in mbuf */
468 if ((icv[k] ^ S[(S[i] + S[j]) & 0xff]) != *pos++) {
469 /* ICV mismatch - drop frame */