Lines Matching refs:icv_trunc_len
316 memcpy(ah->auth_data, icv, ahp->icv_trunc_len); in ah6_output_done()
373 memset(ah->auth_data, 0, ahp->icv_trunc_len); in ah6_output()
408 ah->hdrlen = (XFRM_ALIGN8(sizeof(*ah) + ahp->icv_trunc_len) >> 2) - 2; in ah6_output()
432 memcpy(ah->auth_data, icv, ahp->icv_trunc_len); in ah6_output()
463 icv = ah_tmp_icv(ahp->ahash, auth_data, ahp->icv_trunc_len); in ah6_input_done()
465 err = memcmp(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG: 0; in ah6_input_done()
535 ah_hlen != XFRM_ALIGN8(sizeof(*ah) + ahp->icv_trunc_len)) in ah6_input()
551 work_iph = ah_alloc_tmp(ahash, nfrags, hdr_len + ahp->icv_trunc_len); in ah6_input()
556 icv = ah_tmp_icv(ahash, auth_data, ahp->icv_trunc_len); in ah6_input()
561 memcpy(auth_data, ah->auth_data, ahp->icv_trunc_len); in ah6_input()
562 memset(ah->auth_data, 0, ahp->icv_trunc_len); in ah6_input()
591 err = memcmp(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG: 0; in ah6_input()
673 ahp->icv_trunc_len = x->aalg->alg_trunc_len/8; in ah6_init_state()
675 BUG_ON(ahp->icv_trunc_len > MAX_AH_AUTH_LEN); in ah6_init_state()
678 ahp->icv_trunc_len); in ah6_init_state()