EAPOL_KEY_NONCE_LEN
u_int8_t nonce[EAPOL_KEY_NONCE_LEN];
u_int8_t buf[2 * IEEE80211_ADDR_LEN + 2 * EAPOL_KEY_NONCE_LEN];
ret = memcmp(anonce, snonce, EAPOL_KEY_NONCE_LEN) < 0;
memcpy(&buf[12], ret ? anonce : snonce, EAPOL_KEY_NONCE_LEN);
memcpy(&buf[44], ret ? snonce : anonce, EAPOL_KEY_NONCE_LEN);
arc4random_buf(ic->ic_globalcnt, EAPOL_KEY_NONCE_LEN);
arc4random_buf(ni->ni_nonce, EAPOL_KEY_NONCE_LEN);
u_int8_t ni_nonce[EAPOL_KEY_NONCE_LEN];
memcpy(ni->ni_nonce, key->nonce, EAPOL_KEY_NONCE_LEN);
arc4random_buf(ic->ic_nonce, EAPOL_KEY_NONCE_LEN);
if (memcmp(key->nonce, ni->ni_nonce, EAPOL_KEY_NONCE_LEN) != 0) {
memcpy(key->nonce, ni->ni_nonce, EAPOL_KEY_NONCE_LEN);
memcpy(key->nonce, ic->ic_nonce, EAPOL_KEY_NONCE_LEN);
memcpy(key->nonce, ni->ni_nonce, EAPOL_KEY_NONCE_LEN);
u_int8_t ic_globalcnt[EAPOL_KEY_NONCE_LEN];
u_int8_t ic_nonce[EAPOL_KEY_NONCE_LEN];