Home
last modified time | relevance | path

Searched refs:pubkey (Results 1 – 11 of 11) sorted by relevance

/hal_espressif-latest/components/wpa_supplicant/src/crypto/
Dcrypto_internal-modexp.c17 u8 *pubkey) in crypto_dh_init() argument
30 pubkey, &pubkey_len) < 0) in crypto_dh_init()
34 os_memmove(pubkey + pad, pubkey, pubkey_len); in crypto_dh_init()
35 os_memset(pubkey, 0, pad); in crypto_dh_init()
45 const u8 *pubkey, size_t pubkey_len, in crypto_dh_derive_secret() argument
53 os_memcmp(pubkey, prime, prime_len) >= 0)) in crypto_dh_derive_secret()
57 if (!pub || bignum_set_unsigned_bin(pub, pubkey, pubkey_len) < 0 || in crypto_dh_derive_secret()
81 res = crypto_mod_exp(pubkey, pubkey_len, privkey, privkey_len, in crypto_dh_derive_secret()
Dcrypto.h422 u8 *pubkey);
426 const u8 *pubkey, size_t pubkey_len,
/hal_espressif-latest/components/wpa_supplicant/src/wps/
Dwps_attr_build.c23 struct wpabuf *pubkey = NULL; in wps_build_public_key() local
39 pubkey = wpabuf_dup(wps->wps->dh_pubkey); in wps_build_public_key()
62 pubkey = wpabuf_dup(wps->wps->ap_nfc_dh_pubkey); in wps_build_public_key()
63 if (wps->dh_privkey && pubkey) in wps_build_public_key()
64 wps->dh_ctx = dh5_init_fixed(wps->dh_privkey, pubkey); in wps_build_public_key()
69 wps->dh_ctx = dh5_init(&wps->dh_privkey, &pubkey); in wps_build_public_key()
70 pubkey = wpabuf_zeropad(pubkey, 192); in wps_build_public_key()
72 if (wps->dh_ctx == NULL || wps->dh_privkey == NULL || pubkey == NULL) { in wps_build_public_key()
75 wpabuf_free(pubkey); in wps_build_public_key()
79 wpa_hexdump_buf(MSG_DEBUG, "WPS: DH own Public Key", pubkey); in wps_build_public_key()
[all …]
Dwps_common.c64 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()
428 const struct wpabuf *pubkey, in wps_build_nfc_pw_token() argument
437 if (wps_build_oob_dev_pw(data, dev_pw_id, pubkey, in wps_build_nfc_pw_token()
640 struct wpabuf * wps_nfc_token_build(int ndef, int id, struct wpabuf *pubkey, in wps_nfc_token_build() argument
645 if (pubkey == NULL || dev_pw == NULL) in wps_nfc_token_build()
648 ret = wps_build_nfc_pw_token(id, pubkey, dev_pw); in wps_nfc_token_build()
[all …]
Dwps.h936 const u8 *addr, struct wpabuf *pubkey);
947 const struct wpabuf *pubkey,
949 struct wpabuf * wps_nfc_token_build(int ndef, int id, struct wpabuf *pubkey,
951 int wps_nfc_gen_dh(struct wpabuf **pubkey, struct wpabuf **privkey);
952 struct wpabuf * wps_nfc_token_gen(int ndef, int *id, struct wpabuf **pubkey,
Dwps_i.h180 const struct wpabuf *pubkey, const u8 *dev_pw,
/hal_espressif-latest/components/wpa_supplicant/esp_supplicant/src/crypto/
Dcrypto_mbedtls.c938 u8 *pubkey) in crypto_dh_init() argument
952 pubkey, &pubkey_len) < 0) { in crypto_dh_init()
957 os_memmove(pubkey + pad, pubkey, pubkey_len); in crypto_dh_init()
958 os_memset(pubkey, 0, pad); in crypto_dh_init()
/hal_espressif-latest/components/wpa_supplicant/src/common/
Ddpp.c363 crypto_ec_free_key(info->pubkey); in dpp_bootstrap_info_free()
587 bi->pubkey = pkey; in dpp_parse_uri_pk()
749 der = dpp_bootstrap_key_der(bi->pubkey); in dpp_bootstrap_key_hash()
789 bi->pubkey = dpp_set_keypair(&bi->curve, privkey, privkey_len); in dpp_keygen()
791 bi->pubkey = dpp_gen_keypair(bi->curve); in dpp_keygen()
792 if (!bi->pubkey) in dpp_keygen()
796 der = dpp_bootstrap_key_der(bi->pubkey); in dpp_keygen()
1591 if (dpp_ecdh(auth->own_protocol_key, auth->peer_bi->pubkey, in dpp_auth_init()
1902 bix = dpp_get_pubkey_point(auth->own_bi->pubkey, 0); in dpp_gen_r_auth()
1905 brx = dpp_get_pubkey_point(auth->peer_bi->pubkey, 0); in dpp_gen_r_auth()
[all …]
Dsae.h41 struct wpabuf *pubkey; /* DER encoded subjectPublicKey */ member
Dsae_pk.c483 const u8 *pubkey, size_t pubkey_len, u8 *hash) in sae_pk_hash_sig_data() argument
520 wpabuf_put_data(sig_data, pubkey, pubkey_len); in sae_pk_hash_sig_data()
Ddpp.h162 struct crypto_key *pubkey; member