Home | History | Annotate | Download | only in wps

Lines Matching defs:psk

275 		u8 psk[32];
276 /* Generate a random per-device PSK */
278 random_get_bytes(psk, sizeof(psk)) < 0) {
280 "WPS: Could not generate random PSK");
283 wpa_hexdump_key(MSG_DEBUG, "WPS: Generated per-device PSK",
284 psk, sizeof(psk));
287 wpa_snprintf_hex(hex, sizeof(hex), psk, sizeof(psk));
289 wpabuf_put_be16(msg, sizeof(psk) * 2);
290 wpabuf_put_data(msg, hex, sizeof(psk) * 2);
294 wps->p2p_dev_addr, psk, sizeof(psk));