Home
last modified time | relevance | path

Searched refs:icv_len (Results 1 – 13 of 13) sorted by relevance

/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_common/
Deap_ikev2_common.c73 size_t icv_len; in eap_ikev2_validate_icv() local
83 icv_len = integ->hash_len; in eap_ikev2_validate_icv()
85 if (end - pos < (int) icv_len) { in eap_ikev2_validate_icv()
98 wpabuf_len(msg) - icv_len, icv) < 0) { in eap_ikev2_validate_icv()
103 if (os_memcmp_const(icv, end - icv_len, icv_len) != 0) { in eap_ikev2_validate_icv()
106 icv, icv_len); in eap_ikev2_validate_icv()
108 end - icv_len, icv_len); in eap_ikev2_validate_icv()
115 return icv_len; in eap_ikev2_validate_icv()
Deap_eke_common.c587 size_t block_size, icv_len, pad; in eap_eke_prot() local
596 icv_len = SHA1_MAC_LEN; in eap_eke_prot()
598 icv_len = SHA256_MAC_LEN; in eap_eke_prot()
606 if (*prot_len < block_size + data_len + pad + icv_len) { in eap_eke_prot()
630 pos += icv_len; in eap_eke_prot()
641 size_t block_size, icv_len; in eap_eke_decrypt_prot() local
650 icv_len = SHA1_MAC_LEN; in eap_eke_decrypt_prot()
652 icv_len = SHA256_MAC_LEN; in eap_eke_decrypt_prot()
656 if (prot_len < 2 * block_size + icv_len || in eap_eke_decrypt_prot()
657 (prot_len - icv_len) % block_size) in eap_eke_decrypt_prot()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_common/
Deap_ikev2_common.c73 size_t icv_len; in eap_ikev2_validate_icv() local
83 icv_len = integ->hash_len; in eap_ikev2_validate_icv()
85 if (end - pos < (int) icv_len) { in eap_ikev2_validate_icv()
98 wpabuf_len(msg) - icv_len, icv) < 0) { in eap_ikev2_validate_icv()
103 if (os_memcmp_const(icv, end - icv_len, icv_len) != 0) { in eap_ikev2_validate_icv()
106 icv, icv_len); in eap_ikev2_validate_icv()
108 end - icv_len, icv_len); in eap_ikev2_validate_icv()
115 return icv_len; in eap_ikev2_validate_icv()
Deap_eke_common.c587 size_t block_size, icv_len, pad; in eap_eke_prot() local
596 icv_len = SHA1_MAC_LEN; in eap_eke_prot()
598 icv_len = SHA256_MAC_LEN; in eap_eke_prot()
606 if (*prot_len < block_size + data_len + pad + icv_len) { in eap_eke_prot()
630 pos += icv_len; in eap_eke_prot()
641 size_t block_size, icv_len; in eap_eke_decrypt_prot() local
650 icv_len = SHA1_MAC_LEN; in eap_eke_decrypt_prot()
652 icv_len = SHA256_MAC_LEN; in eap_eke_decrypt_prot()
656 if (prot_len < 2 * block_size + icv_len || in eap_eke_decrypt_prot()
657 (prot_len - icv_len) % block_size) in eap_eke_decrypt_prot()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_peer/
Deap_ikev2.c139 size_t send_len, plen, icv_len = 0; in eap_ikev2_build_msg() local
170 icv_len = integ->hash_len; in eap_ikev2_build_msg()
172 plen += icv_len; in eap_ikev2_build_msg()
193 msg, len, wpabuf_put(resp, icv_len)); in eap_ikev2_build_msg()
250 int icv_len = eap_ikev2_validate_icv( in eap_ikev2_process_icv() local
253 if (icv_len < 0) in eap_ikev2_process_icv()
256 *end -= icv_len; in eap_ikev2_process_icv()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_peer/
Deap_ikev2.c139 size_t send_len, plen, icv_len = 0; in eap_ikev2_build_msg() local
170 icv_len = integ->hash_len; in eap_ikev2_build_msg()
172 plen += icv_len; in eap_ikev2_build_msg()
193 msg, len, wpabuf_put(resp, icv_len)); in eap_ikev2_build_msg()
250 int icv_len = eap_ikev2_validate_icv( in eap_ikev2_process_icv() local
253 if (icv_len < 0) in eap_ikev2_process_icv()
256 *end -= icv_len; in eap_ikev2_process_icv()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_server/
Deap_server_ikev2.c137 size_t send_len, plen, icv_len = 0; in eap_ikev2_build_msg() local
166 icv_len = integ->hash_len; in eap_ikev2_build_msg()
168 plen += icv_len; in eap_ikev2_build_msg()
189 msg, len, wpabuf_put(req, icv_len)); in eap_ikev2_build_msg()
262 int icv_len = eap_ikev2_validate_icv( in eap_ikev2_process_icv() local
265 if (icv_len < 0) in eap_ikev2_process_icv()
268 *end -= icv_len; in eap_ikev2_process_icv()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_server/
Deap_server_ikev2.c137 size_t send_len, plen, icv_len = 0; in eap_ikev2_build_msg() local
166 icv_len = integ->hash_len; in eap_ikev2_build_msg()
168 plen += icv_len; in eap_ikev2_build_msg()
189 msg, len, wpabuf_put(req, icv_len)); in eap_ikev2_build_msg()
262 int icv_len = eap_ikev2_validate_icv( in eap_ikev2_process_icv() local
265 if (icv_len < 0) in eap_ikev2_process_icv()
268 *end -= icv_len; in eap_ikev2_process_icv()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/pae/
Dieee802_1x_kay.c65 .icv_len = DEFAULT_ICV_LEN,
1816 if (mka_alg_tbl[participant->kay->mka_algindex].icv_len != in ieee802_1x_mka_get_icv_length()
1821 length += mka_alg_tbl[participant->kay->mka_algindex].icv_len; in ieee802_1x_mka_get_icv_length()
1839 if (mka_alg_tbl[participant->kay->mka_algindex].icv_len != in ieee802_1x_mka_encode_icv_body()
1893 < mka_alg_tbl[participant->kay->mka_algindex].icv_len) in ieee802_1x_mka_decode_icv_body()
3130 if (len < mka_alg_tbl[kay->mka_algindex].icv_len || in ieee802_1x_kay_mkpdu_sanity_check()
3133 buf, len - mka_alg_tbl[kay->mka_algindex].icv_len, icv)) { in ieee802_1x_kay_mkpdu_sanity_check()
3146 msg_icv, mka_alg_tbl[kay->mka_algindex].icv_len); in ieee802_1x_kay_mkpdu_sanity_check()
3148 mka_alg_tbl[kay->mka_algindex].icv_len) != 0) { in ieee802_1x_kay_mkpdu_sanity_check()
3152 icv, mka_alg_tbl[kay->mka_algindex].icv_len); in ieee802_1x_kay_mkpdu_sanity_check()
Dieee802_1x_kay_i.h67 size_t icv_len; member
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/pae/
Dieee802_1x_kay.c65 .icv_len = DEFAULT_ICV_LEN,
1853 if (mka_alg_tbl[participant->kay->mka_algindex].icv_len != in ieee802_1x_mka_get_icv_length()
1858 length += mka_alg_tbl[participant->kay->mka_algindex].icv_len; in ieee802_1x_mka_get_icv_length()
1876 if (mka_alg_tbl[participant->kay->mka_algindex].icv_len != in ieee802_1x_mka_encode_icv_body()
1930 < mka_alg_tbl[participant->kay->mka_algindex].icv_len) in ieee802_1x_mka_decode_icv_body()
3167 if (len < mka_alg_tbl[kay->mka_algindex].icv_len || in ieee802_1x_kay_mkpdu_validity_check()
3170 buf, len - mka_alg_tbl[kay->mka_algindex].icv_len, icv)) { in ieee802_1x_kay_mkpdu_validity_check()
3183 msg_icv, mka_alg_tbl[kay->mka_algindex].icv_len); in ieee802_1x_kay_mkpdu_validity_check()
3185 mka_alg_tbl[kay->mka_algindex].icv_len) != 0) { in ieee802_1x_kay_mkpdu_validity_check()
3189 icv, mka_alg_tbl[kay->mka_algindex].icv_len); in ieee802_1x_kay_mkpdu_validity_check()
Dieee802_1x_kay_i.h67 size_t icv_len; member
/third_party/libbpf/.github/actions/build-selftests/
Dvmlinux.h80055 __u32 icv_len; member