Lines Matching refs:authsize
998 unsigned int authsize = crypto_aead_authsize(aead); in ipsec_esp_unmap() local
999 unsigned int cryptlen = areq->cryptlen - (encrypt ? 0 : authsize); in ipsec_esp_unmap()
1009 cryptlen + authsize, areq->assoclen); in ipsec_esp_unmap()
1052 unsigned int authsize = crypto_aead_authsize(authenc); in ipsec_esp_decrypt_swauth_done() local
1063 icv = oicv - authsize; in ipsec_esp_decrypt_swauth_done()
1065 err = crypto_memneq(oicv, icv, authsize) ? -EBADMSG : 0; in ipsec_esp_decrypt_swauth_done()
1202 unsigned int authsize = crypto_aead_authsize(aead); in ipsec_esp() local
1206 unsigned int cryptlen = areq->cryptlen - (encrypt ? 0 : authsize); in ipsec_esp()
1217 dma_addr_t dma_icv = edesc->dma_link_tbl + edesc->dma_len - authsize; in ipsec_esp()
1254 elen = authsize; in ipsec_esp()
1273 elen = authsize; in ipsec_esp()
1289 to_talitos_ptr(tbl_ptr, dma_icv, authsize, is_sec1); in ipsec_esp()
1290 to_talitos_ptr_ext_or(&desc->ptr[5], authsize, is_sec1); in ipsec_esp()
1293 to_talitos_ptr(&desc->ptr[6], dma_icv, authsize, is_sec1); in ipsec_esp()
1296 talitos_sg_map(dev, areq->dst, authsize, edesc, &desc->ptr[6], in ipsec_esp()
1327 unsigned int authsize, in talitos_edesc_alloc() argument
1342 if (cryptlen + authsize > max_len) { in talitos_edesc_alloc()
1348 src_len = assoclen + cryptlen + authsize; in talitos_edesc_alloc()
1358 src_len = assoclen + cryptlen + (encrypt ? 0 : authsize); in talitos_edesc_alloc()
1365 dst_len = assoclen + cryptlen + (encrypt ? authsize : 0); in talitos_edesc_alloc()
1383 (dst_nents ? dst_len : 0) + authsize; in talitos_edesc_alloc()
1386 sizeof(struct talitos_ptr) + authsize; in talitos_edesc_alloc()
1391 alloc_len += icv_stashing ? authsize : 0; in talitos_edesc_alloc()
1423 unsigned int authsize = crypto_aead_authsize(authenc); in aead_edesc_alloc() local
1426 unsigned int cryptlen = areq->cryptlen - (encrypt ? 0 : authsize); in aead_edesc_alloc()
1430 authsize, ivsize, icv_stashing, in aead_edesc_alloc()
1454 unsigned int authsize = crypto_aead_authsize(authenc); in aead_decrypt() local
1487 sg_pcopy_to_buffer(req->src, edesc->src_nents ? : 1, icvdata, authsize, in aead_decrypt()
1488 req->assoclen + req->cryptlen - authsize); in aead_decrypt()