Lines Matching refs:pr
1139 const struct wpabuf *pr, in dpp_auth_build_resp() argument
1162 4 + (pr ? wpabuf_len(pr) : 0) + 4 + sizeof(wrapped_data); in dpp_auth_build_resp()
1184 if (pr) { in dpp_auth_build_resp()
1186 wpabuf_put_le16(msg, wpabuf_len(pr)); in dpp_auth_build_resp()
1187 wpabuf_put_buf(msg, pr); in dpp_auth_build_resp()
2147 struct wpabuf *msg, *pr = NULL; in dpp_auth_build_resp_ok() local
2203 pr = dpp_get_pubkey_point(auth->own_protocol_key, 0); in dpp_auth_build_resp_ok()
2204 if (!pr) in dpp_auth_build_resp_ok()
2284 wpabuf_free(pr); in dpp_auth_build_resp_ok()
2285 pr = NULL; in dpp_auth_build_resp_ok()
2288 wpabuf_free(pr); in dpp_auth_build_resp_ok()
2289 pr = wpabuf_alloc(2 * auth->curve->prime_len); in dpp_auth_build_resp_ok()
2290 if (!pr || dpp_test_gen_invalid_key(pr, auth->curve) < 0) in dpp_auth_build_resp_ok()
2311 msg = dpp_auth_build_resp(auth, status, pr, nonce_len, in dpp_auth_build_resp_ok()
2322 wpabuf_free(pr); in dpp_auth_build_resp_ok()
2948 struct crypto_key *pr; in dpp_auth_resp_rx() local
3073 pr = dpp_set_pubkey_point(auth->own_protocol_key, r_proto, r_proto_len); in dpp_auth_resp_rx()
3074 if (!pr) { in dpp_auth_resp_rx()
3078 dpp_debug_print_key("Peer (Responder) Protocol Key", pr); in dpp_auth_resp_rx()
3080 if (dpp_ecdh(auth->own_protocol_key, pr, auth->Nx, &secret_len) < 0) { in dpp_auth_resp_rx()
3085 auth->peer_protocol_key = pr; in dpp_auth_resp_rx()
3086 pr = NULL; in dpp_auth_resp_rx()
3254 crypto_ec_free_key(pr); in dpp_auth_resp_rx()