/hostap-latest/src/crypto/ |
D | crypto_internal-modexp.c | 48 struct bignum *pub; in crypto_dh_derive_secret() local 56 pub = bignum_init(); in crypto_dh_derive_secret() 57 if (!pub || bignum_set_unsigned_bin(pub, pubkey, pubkey_len) < 0 || in crypto_dh_derive_secret() 58 bignum_cmp_d(pub, 1) <= 0) in crypto_dh_derive_secret() 72 bignum_exptmod(pub, q, p, tmp) < 0 || in crypto_dh_derive_secret() 84 bignum_deinit(pub); in crypto_dh_derive_secret()
|
D | crypto_openssl.c | 772 BIGNUM *pub, *p; in crypto_dh_derive_secret() local 775 pub = BN_bin2bn(pubkey, pubkey_len, NULL); in crypto_dh_derive_secret() 777 if (!pub || !p || BN_is_zero(pub) || BN_is_one(pub) || in crypto_dh_derive_secret() 778 BN_cmp(pub, p) >= 0) in crypto_dh_derive_secret() 791 !BN_mod_exp(tmp, pub, q, p, ctx) || in crypto_dh_derive_secret() 803 BN_clear_free(pub); in crypto_dh_derive_secret() 2772 unsigned char *pub; in crypto_ecdh_get_pubkey() local 2775 len = EVP_PKEY_get1_encoded_public_key(ecdh->pkey, &pub); in crypto_ecdh_get_pubkey() 2787 buf = wpabuf_alloc_copy(pub + 1, inc_y ? len - 1 : len / 2); in crypto_ecdh_get_pubkey() 2789 OPENSSL_free(pub); in crypto_ecdh_get_pubkey() [all …]
|
D | crypto_nettle.c | 339 mpz_t pub; in crypto_dh_derive_secret() local 347 mpz_init(pub); in crypto_dh_derive_secret() 348 mpz_import(pub, pubkey_len, 1, 1, 1, 0, pubkey); in crypto_dh_derive_secret() 349 if (mpz_cmp_d(pub, 1) <= 0) in crypto_dh_derive_secret() 360 mpz_powm(tmp, pub, q, p); in crypto_dh_derive_secret() 370 mpz_clear(pub); in crypto_dh_derive_secret()
|
D | crypto_gnutls.c | 318 gcry_mpi_t pub = NULL; in crypto_dh_derive_secret() local 326 if (gcry_mpi_scan(&pub, GCRYMPI_FMT_USG, pubkey, pubkey_len, NULL) != in crypto_dh_derive_secret() 328 gcry_mpi_cmp_ui(pub, 1) <= 0) in crypto_dh_derive_secret() 343 gcry_mpi_powm(tmp, pub, q, p); in crypto_dh_derive_secret() 356 gcry_mpi_release(pub); in crypto_dh_derive_secret()
|
D | crypto_mbedtls_alt.c | 2531 const mbedtls_ecp_point *pub, in crypto_ec_key_set_pub_point_for_group() argument 2553 (pub ? mbedtls_ecp_copy(ecp_kp_Q, pub) == 0 : in crypto_ec_key_set_pub_point_for_group() 2581 … crypto_ec_key *crypto_ec_key_set_pub_point(struct crypto_ec *e, const struct crypto_ec_point *pub) in crypto_ec_key_set_pub_point() argument 2584 mbedtls_ecp_point *p = (mbedtls_ecp_point *)pub; in crypto_ec_key_set_pub_point()
|
D | crypto.h | 1055 const struct crypto_ec_point *pub);
|
D | crypto_wolfssl.c | 3078 const struct crypto_ec_point *pub) in crypto_ec_key_set_pub_point() argument 3085 if (!e || !pub) { in crypto_ec_key_set_pub_point() 3092 (ecc_point *) pub, NULL, &buf_len); in crypto_ec_key_set_pub_point() 3105 (ecc_point *) pub, buf, &buf_len); in crypto_ec_key_set_pub_point()
|
/hostap-latest/hostapd/ |
D | sae_pk_gen.c | 22 struct wpabuf *pub = NULL; in main() local 72 pub = crypto_ec_key_get_subject_public_key(key); in main() 73 if (!pub) { in main() 94 data_len = os_strlen(argv[3]) + SAE_PK_M_LEN + wpabuf_len(pub); in main() 106 os_memcpy(m + SAE_PK_M_LEN, wpabuf_head(pub), wpabuf_len(pub)); in main() 187 wpabuf_free(pub); in main()
|
/hostap-latest/src/ap/ |
D | ieee802_11.c | 1813 struct wpabuf *data, int pub); 1820 struct wpabuf *data, int pub)) in handle_auth_fils() argument 1841 struct wpabuf *pub; in handle_auth_fils() local 1873 pub = crypto_ecdh_get_pubkey(sta->fils_ecdh, 1); in handle_auth_fils() 1874 if (!pub) { in handle_auth_fils() 1880 elem_len = wpabuf_len(pub); in handle_auth_fils() 1881 wpabuf_free(pub); in handle_auth_fils() 2042 int pub = 0; in handle_auth_fils() local 2045 NULL, 0, &pub); in handle_auth_fils() 2052 cb(hapd, sta, resp, data, pub); in handle_auth_fils() [all …]
|
D | sta_info.h | 292 u16 resp, struct wpabuf *data, int pub);
|
D | ieee802_11.h | 215 u16 resp, struct wpabuf *data, int pub));
|
/hostap-latest/src/wps/ |
D | wps_common.c | 648 struct wpabuf *priv = NULL, *pub = NULL; in wps_nfc_gen_dh() local 651 dh_ctx = dh5_init(&priv, &pub); in wps_nfc_gen_dh() 654 pub = wpabuf_zeropad(pub, 192); in wps_nfc_gen_dh() 655 if (pub == NULL) { in wps_nfc_gen_dh() 660 wpa_hexdump_buf(MSG_DEBUG, "WPS: Generated new DH pubkey", pub); in wps_nfc_gen_dh() 664 *pubkey = pub; in wps_nfc_gen_dh()
|
/hostap-latest/src/rsn_supp/ |
D | wpa.c | 5797 struct wpabuf *pub = NULL; in fils_build_auth() local 5836 pub = crypto_ecdh_get_pubkey(sm->fils_ecdh, 1); in fils_build_auth() 5837 if (!pub) in fils_build_auth() 5840 pub); in fils_build_auth() 5841 sm->fils_dh_elem_len = wpabuf_len(pub); in fils_build_auth() 5846 (pub ? wpabuf_len(pub) : 0)); in fils_build_auth() 5864 wpabuf_put_buf(buf, pub); in fils_build_auth() 5919 wpabuf_free(pub); in fils_build_auth() 5939 struct wpabuf *pub = NULL; in fils_process_auth() local 6211 pub = crypto_ecdh_get_pubkey(sm->fils_ecdh, 1); in fils_process_auth() [all …]
|
/hostap-latest/src/common/ |
D | dpp_crypto.c | 686 static int dpp_check_pubkey_match(struct crypto_ec_key *pub, in dpp_check_pubkey_match() argument 697 uncomp = crypto_ec_key_get_pubkey_point(pub, 1); in dpp_check_pubkey_match() 2004 struct wpabuf *pub = NULL; in dpp_pfs_init() local 2024 pub = crypto_ecdh_get_pubkey(pfs->ecdh, 0); in dpp_pfs_init() 2025 pub = wpabuf_zeropad(pub, pfs->curve->prime_len); in dpp_pfs_init() 2026 if (!pub) in dpp_pfs_init() 2029 pfs->ie = wpabuf_alloc(5 + wpabuf_len(pub)); in dpp_pfs_init() 2033 wpabuf_put_u8(pfs->ie, 1 + 2 + wpabuf_len(pub)); in dpp_pfs_init() 2036 wpabuf_put_buf(pfs->ie, pub); in dpp_pfs_init() 2037 wpabuf_free(pub); in dpp_pfs_init() [all …]
|
D | dpp.c | 1560 struct wpabuf *pub; in dpp_build_jwk() local 1564 pub = crypto_ec_key_get_pubkey_point(key, 0); in dpp_build_jwk() 1565 if (!pub) in dpp_build_jwk() 1573 pos = wpabuf_head(pub); in dpp_build_jwk() 1587 wpabuf_free(pub); in dpp_build_jwk()
|
/hostap-latest/src/eap_common/ |
D | eap_eke_common.c | 345 u8 pub[EAP_EKE_MAX_DH_LEN]; in eap_eke_dhcomp() local 365 os_memcpy(pub, dhpub, dh_len); in eap_eke_dhcomp() 366 if (aes_128_cbc_encrypt(key, iv, pub, dh_len) < 0) in eap_eke_dhcomp() 369 os_memcpy(ret_dhcomp + AES_BLOCK_SIZE, pub, dh_len); in eap_eke_dhcomp()
|
/hostap-latest/tests/hwsim/ |
D | example-setup.txt | 47 wget http://www.kernel.org/pub/linux/kernel/projects/backports/stable/v3.19-rc1/backports-3.19-rc1-… 77 wget https://www.kernel.org/pub/software/network/iw/iw-3.17.tar.gz 93 wget http://kernel.org/pub/software/network/wireless-regdb/wireless-regdb-2014.10.07.tar.xz
|
/hostap-latest/tests/hwsim/auth_serv/ |
D | ec-user.pem | 14 pub:
|
D | ec-server.pem | 14 pub:
|
D | ec2-user-p256.pem | 14 pub:
|
D | ec2-user.pem | 14 pub:
|
D | ec2-server.pem | 14 pub:
|
/hostap-latest/src/eap_server/ |
D | eap_server_eke.c | 243 u8 pub[EAP_EKE_MAX_DH_LEN]; in eap_eke_build_commit() local 277 if (eap_eke_dh_init(data->sess.dhgroup, data->dh_priv, pub) < 0) { in eap_eke_build_commit() 284 if (eap_eke_dhcomp(&data->sess, data->key, pub, in eap_eke_build_commit()
|
/hostap-latest/src/eap_peer/ |
D | eap_eke.c | 364 u8 pub[EAP_EKE_MAX_DH_LEN]; in eap_eke_process_commit() local 415 if (eap_eke_dh_init(data->sess.dhgroup, data->dh_priv, pub) < 0) { in eap_eke_process_commit() 452 if (eap_eke_dhcomp(&data->sess, key, pub, rpos) < 0) { in eap_eke_process_commit()
|
/hostap-latest/tests/hwsim/vm/ |
D | example-vm-setup.txt | 61 git clone git://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next.git
|