/hal_espressif-latest/components/wpa_supplicant/src/crypto/ |
D | crypto_internal-modexp.c | 17 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()
|
D | crypto.h | 422 u8 *pubkey); 426 const u8 *pubkey, size_t pubkey_len,
|
/hal_espressif-latest/components/wpa_supplicant/src/wps/ |
D | wps_attr_build.c | 23 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 …]
|
D | wps_common.c | 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() 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 …]
|
D | wps.h | 936 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,
|
D | wps_i.h | 180 const struct wpabuf *pubkey, const u8 *dev_pw,
|
/hal_espressif-latest/components/wpa_supplicant/esp_supplicant/src/crypto/ |
D | crypto_mbedtls.c | 938 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/ |
D | dpp.c | 363 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 …]
|
D | sae.h | 41 struct wpabuf *pubkey; /* DER encoded subjectPublicKey */ member
|
D | sae_pk.c | 483 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()
|
D | dpp.h | 162 struct crypto_key *pubkey; member
|