Lines Matching refs:smk
137 const u8 *smk) in wpa_send_smk_m4() argument
166 pos = wpa_add_kde(pos, RSN_KEY_DATA_SMK, smk, PMK_LEN, in wpa_send_smk_m4()
190 const u8 *smk, const u8 *peer) in wpa_send_smk_m5() argument
223 pos = wpa_add_kde(pos, RSN_KEY_DATA_SMK, smk, PMK_LEN, in wpa_send_smk_m5()
249 u8 smk[32], buf[ETH_ALEN + 8 + 2 * WPA_NONCE_LEN], *pos; in wpa_smk_m3() local
279 if (random_get_bytes(smk, PMK_LEN)) { in wpa_smk_m3()
295 sha256_prf(smk, PMK_LEN, "SMK Derivation", buf, sizeof(buf), in wpa_smk_m3()
296 smk, PMK_LEN); in wpa_smk_m3()
298 sha1_prf(smk, PMK_LEN, "SMK Derivation", buf, sizeof(buf), in wpa_smk_m3()
299 smk, PMK_LEN); in wpa_smk_m3()
302 wpa_hexdump_key(MSG_DEBUG, "RSN: SMK", smk, PMK_LEN); in wpa_smk_m3()
304 wpa_send_smk_m4(wpa_auth, sm, key, &kde, smk); in wpa_smk_m3()
305 wpa_send_smk_m5(wpa_auth, search.sm, key, &kde, smk, sm->addr); in wpa_smk_m3()
309 os_memset(smk, 0, sizeof(*smk)); in wpa_smk_m3()