Lines Matching refs:icv_trunc_len
129 memcpy(ah->auth_data, icv, ahp->icv_trunc_len); in ah_output_done()
179 memset(ah->auth_data, 0, ahp->icv_trunc_len); in ah_output()
205 ah->hdrlen = (XFRM_ALIGN4(sizeof(*ah) + ahp->icv_trunc_len) >> 2) - 2; in ah_output()
207 ah->hdrlen = (XFRM_ALIGN8(sizeof(*ah) + ahp->icv_trunc_len) >> 2) - 2; in ah_output()
231 memcpy(ah->auth_data, icv, ahp->icv_trunc_len); in ah_output()
261 icv = ah_tmp_icv(ahp->ahash, auth_data, ahp->icv_trunc_len); in ah_input_done()
263 err = memcmp(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG: 0; in ah_input_done()
307 ah_hlen != XFRM_ALIGN4(sizeof(*ah) + ahp->icv_trunc_len)) in ah_input()
311 ah_hlen != XFRM_ALIGN8(sizeof(*ah) + ahp->icv_trunc_len)) in ah_input()
335 work_iph = ah_alloc_tmp(ahash, nfrags, ihl + ahp->icv_trunc_len); in ah_input()
340 icv = ah_tmp_icv(ahash, auth_data, ahp->icv_trunc_len); in ah_input()
345 memcpy(auth_data, ah->auth_data, ahp->icv_trunc_len); in ah_input()
346 memset(ah->auth_data, 0, ahp->icv_trunc_len); in ah_input()
379 err = memcmp(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG: 0; in ah_input()
458 ahp->icv_trunc_len = x->aalg->alg_trunc_len/8; in ah_init_state()
460 BUG_ON(ahp->icv_trunc_len > MAX_AH_AUTH_LEN); in ah_init_state()
464 ahp->icv_trunc_len); in ah_init_state()
467 ahp->icv_trunc_len); in ah_init_state()