Lines Matching refs:authsize

1069 	unsigned int authsize = crypto_aead_authsize(aead);  in ipsec_esp_unmap()  local
1070 unsigned int cryptlen = areq->cryptlen - (encrypt ? 0 : authsize); in ipsec_esp_unmap()
1080 cryptlen + authsize, areq->assoclen); in ipsec_esp_unmap()
1123 unsigned int authsize = crypto_aead_authsize(authenc); in ipsec_esp_decrypt_swauth_done() local
1134 icv = oicv - authsize; in ipsec_esp_decrypt_swauth_done()
1136 err = crypto_memneq(oicv, icv, authsize) ? -EBADMSG : 0; in ipsec_esp_decrypt_swauth_done()
1275 unsigned int authsize = crypto_aead_authsize(aead); in ipsec_esp() local
1279 unsigned int cryptlen = areq->cryptlen - (encrypt ? 0 : authsize); in ipsec_esp()
1290 dma_addr_t dma_icv = edesc->dma_link_tbl + edesc->dma_len - authsize; in ipsec_esp()
1327 elen = authsize; in ipsec_esp()
1346 elen = authsize; in ipsec_esp()
1362 to_talitos_ptr(tbl_ptr, dma_icv, authsize, is_sec1); in ipsec_esp()
1363 to_talitos_ptr_ext_or(&desc->ptr[5], authsize, is_sec1); in ipsec_esp()
1366 to_talitos_ptr(&desc->ptr[6], dma_icv, authsize, is_sec1); in ipsec_esp()
1369 talitos_sg_map(dev, areq->dst, authsize, edesc, &desc->ptr[6], in ipsec_esp()
1400 unsigned int authsize, in talitos_edesc_alloc() argument
1415 if (cryptlen + authsize > max_len) { in talitos_edesc_alloc()
1421 src_len = assoclen + cryptlen + authsize; in talitos_edesc_alloc()
1431 src_len = assoclen + cryptlen + (encrypt ? 0 : authsize); in talitos_edesc_alloc()
1438 dst_len = assoclen + cryptlen + (encrypt ? authsize : 0); in talitos_edesc_alloc()
1456 (dst_nents ? dst_len : 0) + authsize; in talitos_edesc_alloc()
1459 sizeof(struct talitos_ptr) + authsize; in talitos_edesc_alloc()
1464 alloc_len += icv_stashing ? authsize : 0; in talitos_edesc_alloc()
1493 unsigned int authsize = crypto_aead_authsize(authenc); in aead_edesc_alloc() local
1496 unsigned int cryptlen = areq->cryptlen - (encrypt ? 0 : authsize); in aead_edesc_alloc()
1500 authsize, ivsize, icv_stashing, in aead_edesc_alloc()
1524 unsigned int authsize = crypto_aead_authsize(authenc); in aead_decrypt() local
1557 sg_pcopy_to_buffer(req->src, edesc->src_nents ? : 1, icvdata, authsize, in aead_decrypt()
1558 req->assoclen + req->cryptlen - authsize); in aead_decrypt()