Home
last modified time | relevance | path

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

/external/wpa_supplicant_8/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 …]
/external/wpa_supplicant_8/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()
/external/wpa_supplicant_8/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()
/external/iproute2/ip/
Dipmacsec.c51 __u8 icv_len; member
587 static void print_cipher_suite(const char *prefix, __u64 cid, __u8 icv_len) in print_cipher_suite() argument
590 cs_id_to_name(cid), icv_len); in print_cipher_suite()
1175 if (cipher.icv_len) in macsec_parse_opt()
1177 get_icvlen(&cipher.icv_len, *argv); in macsec_parse_opt()
1286 if (cipher.icv_len) in macsec_parse_opt()
1288 &cipher.icv_len, sizeof(cipher.icv_len)); in macsec_parse_opt()
/external/kernel-headers/original/uapi/rdma/
Dib_user_ioctl_verbs.h110 __u32 icv_len; member
/external/wpa_supplicant_8/src/pae/
Dieee802_1x_kay.c65 .icv_len = DEFAULT_ICV_LEN,
1806 if (mka_alg_tbl[participant->kay->mka_algindex].icv_len != in ieee802_1x_mka_get_icv_length()
1811 length += mka_alg_tbl[participant->kay->mka_algindex].icv_len; in ieee802_1x_mka_get_icv_length()
1829 if (mka_alg_tbl[participant->kay->mka_algindex].icv_len != in ieee802_1x_mka_encode_icv_body()
1883 < mka_alg_tbl[participant->kay->mka_algindex].icv_len) in ieee802_1x_mka_decode_icv_body()
3120 if (len < mka_alg_tbl[kay->mka_algindex].icv_len || in ieee802_1x_kay_mkpdu_sanity_check()
3123 buf, len - mka_alg_tbl[kay->mka_algindex].icv_len, icv)) { in ieee802_1x_kay_mkpdu_sanity_check()
3136 msg_icv, mka_alg_tbl[kay->mka_algindex].icv_len); in ieee802_1x_kay_mkpdu_sanity_check()
3138 mka_alg_tbl[kay->mka_algindex].icv_len) != 0) { in ieee802_1x_kay_mkpdu_sanity_check()
3142 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