Lines Matching refs:assoclen

190 				authsize, req->assoclen +  in chcr_verify_tag()
2416 (req->assoclen > aadmax) || in chcr_aead_need_fallback()
2433 aead_request_set_ad(subreq, req->assoclen); in chcr_aead_fallback()
2477 dnents = sg_nents_xlen(req->dst, req->assoclen + req->cryptlen + in create_authenc_wr()
2480 snents = sg_nents_xlen(req->src, req->assoclen + req->cryptlen, in create_authenc_wr()
2486 reqctx->imm = (transhdr_len + req->assoclen + req->cryptlen) < in create_authenc_wr()
2488 temp = reqctx->imm ? roundup(req->assoclen + req->cryptlen, 16) in create_authenc_wr()
2516 chcr_req->sec_cpl.pldlen = htonl(req->assoclen + IV + req->cryptlen); in create_authenc_wr()
2519 null ? 0 : IV + req->assoclen, in create_authenc_wr()
2520 req->assoclen + IV + 1, in create_authenc_wr()
2524 null ? 0 : req->assoclen + IV + 1, in create_authenc_wr()
2568 kctx_len + (reqctx->imm ? (req->assoclen + req->cryptlen) : 0); in create_authenc_wr()
2594 src_len = req->assoclen + req->cryptlen + (op_type ? in chcr_aead_dma_map()
2598 src_len = req->assoclen + req->cryptlen; in chcr_aead_dma_map()
2599 dst_len = req->assoclen + req->cryptlen + (op_type ? in chcr_aead_dma_map()
2655 src_len = req->assoclen + req->cryptlen + (op_type ? in chcr_aead_dma_unmap()
2659 src_len = req->assoclen + req->cryptlen; in chcr_aead_dma_unmap()
2660 dst_len = req->assoclen + req->cryptlen + (op_type ? in chcr_aead_dma_unmap()
2697 buf, req->cryptlen + req->assoclen, 0); in chcr_add_aead_src_ent()
2704 req->assoclen, 0); in chcr_add_aead_src_ent()
2725 temp = req->assoclen + req->cryptlen + in chcr_add_aead_dst_ent()
2917 if (req->assoclen) in generate_b0()
2939 unsigned int assoclen) in ccm_format_packet() argument
2954 if (assoclen) in ccm_format_packet()
2955 put_unaligned_be16(assoclen, &reqctx->scratch_pad[16]); in ccm_format_packet()
2978 unsigned int assoclen; in fill_sec_cpl_for_aead() local
2983 assoclen = req->assoclen - 8; in fill_sec_cpl_for_aead()
2985 assoclen = req->assoclen; in fill_sec_cpl_for_aead()
2987 ((assoclen) ? CCM_AAD_FIELD_SIZE : 0); in fill_sec_cpl_for_aead()
2990 (req->assoclen + IV + 1 + ccm_xtra) : 0; in fill_sec_cpl_for_aead()
3000 htonl(req->assoclen + IV + req->cryptlen + ccm_xtra); in fill_sec_cpl_for_aead()
3003 1 + IV, IV + assoclen + ccm_xtra, in fill_sec_cpl_for_aead()
3004 req->assoclen + IV + 1 + ccm_xtra, 0); in fill_sec_cpl_for_aead()
3030 if (req->assoclen != 16 && req->assoclen != 20) { in aead_ccm_validate_input()
3032 req->assoclen); in aead_ccm_validate_input()
3052 unsigned int sub_type, assoclen = req->assoclen; in create_aead_ccm_wr() local
3062 assoclen -= 8; in create_aead_ccm_wr()
3063 reqctx->b0_len = CCM_B0_SIZE + (assoclen ? CCM_AAD_FIELD_SIZE : 0); in create_aead_ccm_wr()
3071 dnents = sg_nents_xlen(req->dst, req->assoclen + req->cryptlen in create_aead_ccm_wr()
3076 snents = sg_nents_xlen(req->src, req->assoclen + req->cryptlen, in create_aead_ccm_wr()
3081 reqctx->imm = (transhdr_len + req->assoclen + req->cryptlen + in create_aead_ccm_wr()
3083 temp = reqctx->imm ? roundup(req->assoclen + req->cryptlen + in create_aead_ccm_wr()
3114 error = ccm_format_packet(req, ivptr, sub_type, reqctx->op, assoclen); in create_aead_ccm_wr()
3122 kctx_len + (reqctx->imm ? (req->assoclen + req->cryptlen + in create_aead_ccm_wr()
3150 unsigned int dst_size = 0, temp = 0, kctx_len, assoclen = req->assoclen; in create_gcm_wr() local
3161 assoclen = req->assoclen - 8; in create_gcm_wr()
3167 dnents = sg_nents_xlen(req->dst, req->assoclen + req->cryptlen + in create_gcm_wr()
3170 snents = sg_nents_xlen(req->src, req->assoclen + req->cryptlen, in create_gcm_wr()
3176 reqctx->imm = (transhdr_len + req->assoclen + req->cryptlen) <= in create_gcm_wr()
3178 temp = reqctx->imm ? roundup(req->assoclen + req->cryptlen, 16) : in create_gcm_wr()
3202 htonl(req->assoclen + IV + req->cryptlen); in create_gcm_wr()
3204 assoclen ? 1 + IV : 0, in create_gcm_wr()
3205 assoclen ? IV + assoclen : 0, in create_gcm_wr()
3206 req->assoclen + IV + 1, 0); in create_gcm_wr()
3208 FILL_SEC_CPL_AUTHINSERT(0, req->assoclen + IV + 1, in create_gcm_wr()
3241 kctx_len + (reqctx->imm ? (req->assoclen + req->cryptlen) : 0); in create_gcm_wr()
3771 crypto_ipsec_check_assoclen(req->assoclen) != 0) { in chcr_aead_op()
3773 req->assoclen); in chcr_aead_op()