Searched refs:inc_y (Results 1 – 6 of 6) sorted by relevance
/hostap-latest/src/pasn/ |
D | pasn_responder.c | 612 int ret, inc_y; in handle_auth_pasn_1() local 736 inc_y = 1; in handle_auth_pasn_1() 739 inc_y = 0; in handle_auth_pasn_1() 748 secret = crypto_ecdh_set_peerkey(pasn->ecdh, inc_y, in handle_auth_pasn_1()
|
D | pasn_initiator.c | 1071 int ret, inc_y; in wpa_pasn_auth_rx() local 1195 inc_y = 1; in wpa_pasn_auth_rx() 1198 inc_y = 0; in wpa_pasn_auth_rx() 1206 secret = crypto_ecdh_set_peerkey(pasn->ecdh, inc_y, in wpa_pasn_auth_rx()
|
/hostap-latest/src/crypto/ |
D | crypto.h | 980 struct wpabuf * crypto_ecdh_get_pubkey(struct crypto_ecdh *ecdh, int inc_y); 991 struct wpabuf * crypto_ecdh_set_peerkey(struct crypto_ecdh *ecdh, int inc_y,
|
D | crypto_mbedtls_alt.c | 1843 struct wpabuf *crypto_ecdh_get_pubkey(struct crypto_ecdh *ecdh, int inc_y) in crypto_ecdh_get_pubkey() argument 1852 len = inc_y ? len * 2 + 1 : len + 1; in crypto_ecdh_get_pubkey() 1857 inc_y = inc_y ? MBEDTLS_ECP_PF_UNCOMPRESSED : MBEDTLS_ECP_PF_COMPRESSED; in crypto_ecdh_get_pubkey() 1858 if (mbedtls_ecp_point_write_binary(grp, &ecdh->Q, inc_y, &len, wpabuf_mhead_u8(buf), len) == 0) in crypto_ecdh_get_pubkey() 1895 struct wpabuf *crypto_ecdh_set_peerkey(struct crypto_ecdh *ecdh, int inc_y, const u8 *key, size_t l… in crypto_ecdh_set_peerkey() argument 1912 if (inc_y) in crypto_ecdh_set_peerkey()
|
D | crypto_wolfssl.c | 2199 struct wpabuf * crypto_ecdh_get_pubkey(struct crypto_ecdh *ecdh, int inc_y) in crypto_ecdh_get_pubkey() argument 2205 buf = wpabuf_alloc(inc_y ? 2 * len : len); in crypto_ecdh_get_pubkey() 2214 if (inc_y) { in crypto_ecdh_get_pubkey() 2231 struct wpabuf * crypto_ecdh_set_peerkey(struct crypto_ecdh *ecdh, int inc_y, in crypto_ecdh_set_peerkey() argument 2239 size_t need_key_len = inc_y ? 2 * key_len : key_len; in crypto_ecdh_set_peerkey() 2250 wpabuf_put_u8(pubkey, inc_y ? ECC_POINT_UNCOMP : ECC_POINT_COMP_EVEN); in crypto_ecdh_set_peerkey()
|
D | crypto_openssl.c | 2768 struct wpabuf * crypto_ecdh_get_pubkey(struct crypto_ecdh *ecdh, int inc_y) in crypto_ecdh_get_pubkey() argument 2787 buf = wpabuf_alloc_copy(pub + 1, inc_y ? len - 1 : len / 2); in crypto_ecdh_get_pubkey() 2808 if (inc_y) { in crypto_ecdh_get_pubkey() 2813 buf = wpabuf_alloc(inc_y ? 2 * len : len); in crypto_ecdh_get_pubkey() 2830 if (inc_y) { in crypto_ecdh_get_pubkey() 2851 struct wpabuf * crypto_ecdh_set_peerkey(struct crypto_ecdh *ecdh, int inc_y, in crypto_ecdh_set_peerkey() argument 2867 peer[0] = inc_y ? 0x04 : 0x02; in crypto_ecdh_set_peerkey() 2908 x = BN_bin2bn(key, inc_y ? len / 2 : len, NULL); in crypto_ecdh_set_peerkey() 2913 if (inc_y) { in crypto_ecdh_set_peerkey()
|