Home
last modified time | relevance | path

Searched refs:inc_y (Results 1 – 5 of 5) sorted by relevance

/freebsd/contrib/wpa/src/pasn/
H A Dpasn_responder.c612 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()
H A Dpasn_initiator.c1071 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()
/freebsd/contrib/wpa/src/crypto/
H A Dcrypto.h980 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,
H A Dcrypto_wolfssl.c2199 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()
H A Dcrypto_openssl.c2768 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()