Lines Matching refs:ahp

294 	struct ah_data *ahp = x->data;  in ah6_output_done()  local
305 icv = ah_tmp_icv(ahp->ahash, iph_ext, extlen); in ah6_output_done()
307 memcpy(ah->auth_data, icv, ahp->icv_trunc_len); in ah6_output_done()
336 struct ah_data *ahp; in ah6_output() local
343 ahp = x->data; in ah6_output()
344 ahash = ahp->ahash; in ah6_output()
374 memset(ah->auth_data, 0, ahp->icv_trunc_len); in ah6_output()
409 ah->hdrlen = (XFRM_ALIGN8(sizeof(*ah) + ahp->icv_trunc_len) >> 2) - 2; in ah6_output()
440 memcpy(ah->auth_data, icv, ahp->icv_trunc_len); in ah6_output()
464 struct ah_data *ahp = x->data; in ah6_input_done() local
474 icv = ah_tmp_icv(ahp->ahash, auth_data, ahp->icv_trunc_len); in ah6_input_done()
476 err = crypto_memneq(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG : 0; in ah6_input_done()
522 struct ah_data *ahp; in ah6_input() local
545 ahp = x->data; in ah6_input()
546 ahash = ahp->ahash; in ah6_input()
551 if (ah_hlen != XFRM_ALIGN8(sizeof(*ah) + ahp->icv_full_len) && in ah6_input()
552 ah_hlen != XFRM_ALIGN8(sizeof(*ah) + ahp->icv_trunc_len)) in ah6_input()
574 ahp->icv_trunc_len + seqhi_len); in ah6_input()
581 seqhi = (__be32 *)(auth_data + ahp->icv_trunc_len); in ah6_input()
588 memcpy(auth_data, ah->auth_data, ahp->icv_trunc_len); in ah6_input()
589 memset(ah->auth_data, 0, ahp->icv_trunc_len); in ah6_input()
625 err = crypto_memneq(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG : 0; in ah6_input()
674 struct ah_data *ahp = NULL; in ah6_init_state() local
684 ahp = kzalloc(sizeof(*ahp), GFP_KERNEL); in ah6_init_state()
685 if (!ahp) in ah6_init_state()
692 ahp->ahash = ahash; in ah6_init_state()
714 ahp->icv_full_len = aalg_desc->uinfo.auth.icv_fullbits/8; in ah6_init_state()
715 ahp->icv_trunc_len = x->aalg->alg_trunc_len/8; in ah6_init_state()
718 ahp->icv_trunc_len); in ah6_init_state()
729 x->data = ahp; in ah6_init_state()
734 if (ahp) { in ah6_init_state()
735 crypto_free_ahash(ahp->ahash); in ah6_init_state()
736 kfree(ahp); in ah6_init_state()
743 struct ah_data *ahp = x->data; in ah6_destroy() local
745 if (!ahp) in ah6_destroy()
748 crypto_free_ahash(ahp->ahash); in ah6_destroy()
749 kfree(ahp); in ah6_destroy()