Lines Matching refs:pi
983 const struct wpabuf *pi, in dpp_auth_build_req() argument
999 attr_len = 2 * (4 + SHA256_MAC_LEN) + 4 + (pi ? wpabuf_len(pi) : 0) + in dpp_auth_build_req()
1020 if (pi) { in dpp_auth_build_req()
1022 wpabuf_put_le16(msg, wpabuf_len(pi)); in dpp_auth_build_req()
1023 wpabuf_put_buf(msg, pi); in dpp_auth_build_req()
1524 struct wpabuf *pi = NULL; in dpp_auth_init() local
1586 pi = dpp_get_pubkey_point(auth->own_protocol_key, 0); in dpp_auth_init()
1587 if (!pi) in dpp_auth_init()
1628 wpabuf_free(pi); in dpp_auth_init()
1629 pi = NULL; in dpp_auth_init()
1632 wpabuf_free(pi); in dpp_auth_init()
1633 pi = wpabuf_alloc(2 * auth->curve->prime_len); in dpp_auth_init()
1634 if (!pi || dpp_test_gen_invalid_key(pi, auth->curve) < 0) in dpp_auth_init()
1639 auth->req_msg = dpp_auth_build_req(auth, pi, nonce_len, r_pubkey_hash, in dpp_auth_init()
1645 wpabuf_free(pi); in dpp_auth_init()
2399 struct crypto_key *pi = NULL; in dpp_auth_req_rx() local
2490 pi = dpp_set_pubkey_point(own_bi->pubkey, i_proto, i_proto_len); in dpp_auth_req_rx()
2491 if (!pi) { in dpp_auth_req_rx()
2495 dpp_debug_print_key("Peer (Initiator) Protocol Key", pi); in dpp_auth_req_rx()
2497 if (dpp_ecdh(own_bi->pubkey, pi, auth->Mx, &secret_len) < 0) in dpp_auth_req_rx()
2594 auth->peer_protocol_key = pi; in dpp_auth_req_rx()
2595 pi = NULL; in dpp_auth_req_rx()
2633 auth->peer_protocol_key = pi; in dpp_auth_req_rx()
2634 pi = NULL; in dpp_auth_req_rx()
2642 crypto_ec_free_key(pi); in dpp_auth_req_rx()