Lines Matching refs:pubkey
64 struct wpabuf *pubkey, *dh_shared; in wps_derive_keys() local
75 pubkey = wps->registrar ? wps->dh_pubkey_e : wps->dh_pubkey_r; in wps_derive_keys()
76 if (pubkey == NULL) { in wps_derive_keys()
82 wpa_hexdump_buf(MSG_DEBUG, "WPS: DH peer Public Key", pubkey); in wps_derive_keys()
83 dh_shared = dh5_derive_shared(wps->dh_ctx, pubkey, wps->dh_privkey); in wps_derive_keys()
413 const struct wpabuf *pubkey, in wps_build_nfc_pw_token() argument
422 if (wps_build_oob_dev_pw(data, dev_pw_id, pubkey, in wps_build_nfc_pw_token()
624 struct wpabuf * wps_nfc_token_build(int ndef, int id, struct wpabuf *pubkey, in wps_nfc_token_build() argument
629 if (pubkey == NULL || dev_pw == NULL) in wps_nfc_token_build()
632 ret = wps_build_nfc_pw_token(id, pubkey, dev_pw); in wps_nfc_token_build()
646 int wps_nfc_gen_dh(struct wpabuf **pubkey, struct wpabuf **privkey) in wps_nfc_gen_dh() argument
663 wpabuf_free(*pubkey); in wps_nfc_gen_dh()
664 *pubkey = pub; in wps_nfc_gen_dh()
672 struct wpabuf * wps_nfc_token_gen(int ndef, int *id, struct wpabuf **pubkey, in wps_nfc_token_gen() argument
690 if (wps_nfc_gen_dh(pubkey, privkey) < 0) { in wps_nfc_token_gen()
699 return wps_nfc_token_build(ndef, *id, *pubkey, *dev_pw); in wps_nfc_token_gen()