Lines Matching refs:pub
2806 struct wpabuf *pub = NULL; in owe_build_assoc_req() local
2825 pub = crypto_ecdh_get_pubkey(sm->owe_ecdh, 0); in owe_build_assoc_req()
2826 pub = wpabuf_zeropad(pub, prime_len); in owe_build_assoc_req()
2828 if (!pub) { in owe_build_assoc_req()
2833 wpa_hexdump_buf(MSG_DEBUG, "Own public key", pub); in owe_build_assoc_req()
2838 sm->owe_ie = wpabuf_alloc(5 + wpabuf_len(pub)); in owe_build_assoc_req()
2847 wpabuf_put_u8(sm->owe_ie, 1 + 2 + wpabuf_len(pub)); in owe_build_assoc_req()
2850 wpabuf_put_buf(sm->owe_ie, pub); in owe_build_assoc_req()
2851 wpabuf_free(pub); in owe_build_assoc_req()
2858 wpabuf_free(pub); in owe_build_assoc_req()
2866 struct wpabuf * sh_secret = NULL, *pub = NULL, *hkey = NULL; in owe_process_assoc_resp() local
2941 pub = crypto_ecdh_get_pubkey(sm->owe_ecdh, 0); in owe_process_assoc_resp()
2942 if (!pub) { in owe_process_assoc_resp()
2948 addr[0] = wpabuf_head(pub); in owe_process_assoc_resp()
2949 len[0] = wpabuf_len(pub); in owe_process_assoc_resp()
2960 pub = wpabuf_zeropad(pub, prime_len); in owe_process_assoc_resp()
2961 if (!pub) { in owe_process_assoc_resp()
2966 hkey = wpabuf_alloc(wpabuf_len(pub) + dh_len - 2 + 2); in owe_process_assoc_resp()
2971 wpabuf_put_buf(hkey, pub); /* C */ in owe_process_assoc_resp()
2972 wpabuf_free(pub); in owe_process_assoc_resp()
3011 wpabuf_free(pub); in owe_process_assoc_resp()