Lines Matching refs:auth
68 alen = esp->auth.icv_trunc_len;
131 if (esp->auth.icv_full_len) {
134 memcpy(pskb_put(skb, trailer, alen), esp->auth.work_icv, alen);
150 int alen = esp->auth.icv_trunc_len;
167 if (esp->auth.icv_full_len) {
177 if (unlikely(memcmp(esp->auth.work_icv, sum, alen))) {
245 mtu -= x->props.header_len + esp->auth.icv_trunc_len;
288 crypto_free_hash(esp->auth.tfm);
289 esp->auth.tfm = NULL;
290 kfree(esp->auth.work_icv);
291 esp->auth.work_icv = NULL;
300 /* null auth and encryption can have zero length keys */
319 esp->auth.key = x->aalg->alg_key;
320 esp->auth.key_len = (x->aalg->alg_key_len+7)/8;
326 esp->auth.tfm = hash;
327 if (crypto_hash_setkey(hash, esp->auth.key, esp->auth.key_len))
333 if (aalg_desc->uinfo.auth.icv_fullbits/8 !=
338 aalg_desc->uinfo.auth.icv_fullbits/8);
342 esp->auth.icv_full_len = aalg_desc->uinfo.auth.icv_fullbits/8;
343 esp->auth.icv_trunc_len = aalg_desc->uinfo.auth.icv_truncbits/8;
345 esp->auth.work_icv = kmalloc(esp->auth.icv_full_len, GFP_KERNEL);
346 if (!esp->auth.work_icv)