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()
412 const struct wpabuf *pubkey, in wps_build_nfc_pw_token() argument
421 if (wps_build_oob_dev_pw(data, dev_pw_id, pubkey, in wps_build_nfc_pw_token()
623 struct wpabuf * wps_nfc_token_build(int ndef, int id, struct wpabuf *pubkey, in wps_nfc_token_build() argument
628 if (pubkey == NULL || dev_pw == NULL) in wps_nfc_token_build()
631 ret = wps_build_nfc_pw_token(id, pubkey, dev_pw); in wps_nfc_token_build()
645 int wps_nfc_gen_dh(struct wpabuf **pubkey, struct wpabuf **privkey) in wps_nfc_gen_dh() argument
661 wpabuf_free(*pubkey); in wps_nfc_gen_dh()
662 *pubkey = pub; in wps_nfc_gen_dh()
670 struct wpabuf * wps_nfc_token_gen(int ndef, int *id, struct wpabuf **pubkey, in wps_nfc_token_gen() argument
688 if (wps_nfc_gen_dh(pubkey, privkey) < 0) { in wps_nfc_token_gen()
697 return wps_nfc_token_build(ndef, *id, *pubkey, *dev_pw); in wps_nfc_token_gen()