Lines Matching refs:Counter
341 * Counter = PRF-256(Random number, "Init Counter",
351 if (sha1_prf(rkey, sizeof(rkey), "Init Counter", buf, sizeof(buf),
352 group->Counter, WPA_NONCE_LEN) < 0)
354 wpa_hexdump_key(MSG_DEBUG, "Key Counter",
355 group->Counter, WPA_NONCE_LEN);
381 * Set initial GMK/Counter value here. The actual values that will be
734 if (os_memcmp(replay_counter, ctr[i].counter,
749 os_memcmp(replay_counter, ctr[i].counter,
966 wpa_hexdump(MSG_DEBUG, "WPA: Received Replay Counter",
1045 "replayed counter");
1075 sm->key_replay[0].counter,
1090 "Try to process received EAPOL-Key 4/4 based on old Replay Counter and SNonce from an earlier EAPOL-Key 1/4");
1104 "unexpected replay counter", msgtxt);
1109 wpa_hexdump(MSG_DEBUG, "pending replay counter",
1110 sm->key_replay[i].counter,
1113 wpa_hexdump(MSG_DEBUG, "received replay counter",
1148 * Counter update and the station will be allowed to
1304 /* Do not allow the same key replay counter to be reused. */
1490 os_memcpy(sm->key_replay[i].counter,
1491 sm->key_replay[i - 1].counter,
1494 inc_byte_array(sm->key_replay[0].counter, WPA_REPLAY_COUNTER_LEN);
1495 os_memcpy(key->replay_counter, sm->key_replay[0].counter,
1497 wpa_hexdump(MSG_DEBUG, "WPA: Replay Counter",
1564 sm->group->Counter + WPA_NONCE_LEN - 16, 16);
1565 inc_byte_array(sm->group->Counter, WPA_NONCE_LEN);
1637 "counter %u)", timeout_ms, ctr);
1856 * GMK and Counter here to improve their strength if there was not
1859 wpa_printf(MSG_DEBUG, "WPA: Re-initialize GMK/Counter on first "
1889 * ambiguous. The Authenticator state machine uses a counter that is
3177 os_memcpy(group->GNonce, group->Counter, WPA_NONCE_LEN);
3178 inc_byte_array(group->Counter, WPA_NONCE_LEN);
3190 os_memcpy(group->GNonce, group->Counter, WPA_NONCE_LEN);
3191 inc_byte_array(group->Counter, WPA_NONCE_LEN);
3965 /* Increase the reference counter for group */
3977 /* Decrease the reference counter and maybe free the group */
3993 * Add a group that has its references counter set to zero. Caller needs to
4019 * reference counter as interface is up. References might have been increased
4058 * Decrease reference counter, expected to be zero afterwards.