Home | History | Annotate | Download | only in wps

Lines Matching defs:pubkey

64 	struct wpabuf *pubkey, *dh_shared;
75 pubkey = wps->registrar ? wps->dh_pubkey_e : wps->dh_pubkey_r;
76 if (pubkey == NULL) {
82 wpa_hexdump_buf(MSG_DEBUG, "WPS: DH peer Public Key", pubkey);
83 dh_shared = dh5_derive_shared(wps->dh_ctx, pubkey, wps->dh_privkey);
413 const struct wpabuf *pubkey,
422 if (wps_build_oob_dev_pw(data, dev_pw_id, pubkey,
624 struct wpabuf * wps_nfc_token_build(int ndef, int id, struct wpabuf *pubkey,
629 if (pubkey == NULL || dev_pw == NULL)
632 ret = wps_build_nfc_pw_token(id, pubkey, dev_pw);
646 int wps_nfc_gen_dh(struct wpabuf **pubkey, struct wpabuf **privkey)
659 wpa_hexdump_buf(MSG_DEBUG, "WPS: Generated new DH pubkey", pub);
662 wpabuf_free(*pubkey);
663 *pubkey = pub;
671 struct wpabuf * wps_nfc_token_gen(int ndef, int *id, struct wpabuf **pubkey,
689 if (wps_nfc_gen_dh(pubkey, privkey) < 0) {
698 return wps_nfc_token_build(ndef, *id, *pubkey, *dev_pw);