Lines Matching refs:ptk
712 uint8_t *nonce1, uint8_t *nonce2, uint8_t *ptk, size_t ptk_len)
745 sizeof (data), ptk, ptk_len);
748 wpa_hexdump(MSG_DEBUG, "WPA: PTK", ptk, ptk_len);
858 wpa_eapol_key_mic(wpa_s->ptk.mic_key, ver, (uint8_t *)hdr,
880 struct wpa_ptk *ptk;
974 ptk = &wpa_s->tptk;
978 wpa_s->snonce, key->key_nonce, (uint8_t *)ptk, sizeof (*ptk));
983 (void) memcpy(buf, ptk->u.auth.tx_mic_key, 8);
984 (void) memcpy(ptk->u.auth.tx_mic_key, ptk->u.auth.rx_mic_key, 8);
985 (void) memcpy(ptk->u.auth.rx_mic_key, buf, 8);
1232 wpa_eapol_key_mic(wpa_s->ptk.mic_key, ver, (uint8_t *)hdr,
1280 (uint8_t *)&wpa_s->ptk.tk1, keylen) < 0) {
1425 (void) memcpy(ek + 16, wpa_s->ptk.encr_key, 16);
1434 if (aes_unwrap(wpa_s->ptk.encr_key, maxkeylen / 8,
1512 wpa_eapol_key_mic(wpa_s->ptk.mic_key, ver, (uint8_t *)hdr,
1547 (void) memcpy(&wpa_s->ptk, &wpa_s->tptk,
1548 sizeof (wpa_s->ptk));
1554 wpa_eapol_key_mic(wpa_s->ptk.mic_key, ver, buf, len,
1599 (void) memcpy(ek + 16, wpa_s->ptk.encr_key, 16);
1615 if (aes_unwrap(wpa_s->ptk.encr_key, keydatalen / 8,