Lines Matching refs:authsize

947 	unsigned int authsize = crypto_aead_authsize(authenc);  in ipsec_esp_encrypt_done()  local
961 memcpy((char *)sg_virt(sg) + sg->length - authsize, in ipsec_esp_encrypt_done()
962 icvdata, authsize); in ipsec_esp_encrypt_done()
976 unsigned int authsize = crypto_aead_authsize(authenc); in ipsec_esp_decrypt_swauth_done() local
988 icv = (char *)sg_virt(sg) + sg->length - authsize; in ipsec_esp_decrypt_swauth_done()
994 icv = oicv + authsize; in ipsec_esp_decrypt_swauth_done()
998 err = crypto_memneq(oicv, icv, authsize) ? -EBADMSG : 0; in ipsec_esp_decrypt_swauth_done()
1087 unsigned int authsize = crypto_aead_authsize(aead); in ipsec_esp() local
1140 desc->ptr[4].j_extent = authsize; in ipsec_esp()
1144 sg_link_tbl_len += authsize; in ipsec_esp()
1167 desc->ptr[5].j_extent = authsize; in ipsec_esp()
1192 tbl_ptr->len = cpu_to_be16(authsize); in ipsec_esp()
1198 authsize, 0); in ipsec_esp()
1229 unsigned int authsize, in talitos_edesc_alloc() argument
1244 if (cryptlen + authsize > max_len) { in talitos_edesc_alloc()
1254 assoclen + cryptlen + authsize); in talitos_edesc_alloc()
1259 (encrypt ? 0 : authsize)); in talitos_edesc_alloc()
1262 (encrypt ? authsize : 0)); in talitos_edesc_alloc()
1278 sizeof(struct talitos_ptr) + authsize * 2; in talitos_edesc_alloc()
1282 alloc_len += icv_stashing ? authsize : 0; in talitos_edesc_alloc()
1310 unsigned int authsize = crypto_aead_authsize(authenc); in aead_edesc_alloc() local
1316 authsize, ivsize, icv_stashing, in aead_edesc_alloc()
1340 unsigned int authsize = crypto_aead_authsize(authenc); in aead_decrypt() local
1347 req->cryptlen -= authsize; in aead_decrypt()
1381 memcpy(icvdata, (char *)sg_virt(sg) + sg->length - authsize, authsize); in aead_decrypt()