Lines Matching refs:auth
40 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);
157 int alen = esp->auth.icv_trunc_len;
173 if (esp->auth.icv_full_len) {
183 if (unlikely(memcmp(esp->auth.work_icv, sum, alen))) {
275 mtu -= x->props.header_len + esp->auth.icv_trunc_len;
326 crypto_free_hash(esp->auth.tfm);
327 esp->auth.tfm = NULL;
328 kfree(esp->auth.work_icv);
329 esp->auth.work_icv = NULL;
339 /* null auth and encryption can have zero length keys */
355 esp->auth.key = x->aalg->alg_key;
356 esp->auth.key_len = (x->aalg->alg_key_len+7)/8;
362 esp->auth.tfm = hash;
363 if (crypto_hash_setkey(hash, esp->auth.key, esp->auth.key_len))
369 if (aalg_desc->uinfo.auth.icv_fullbits/8 !=
374 aalg_desc->uinfo.auth.icv_fullbits/8);
378 esp->auth.icv_full_len = aalg_desc->uinfo.auth.icv_fullbits/8;
379 esp->auth.icv_trunc_len = aalg_desc->uinfo.auth.icv_truncbits/8;
381 esp->auth.work_icv = kmalloc(esp->auth.icv_full_len, GFP_KERNEL);
382 if (!esp->auth.work_icv)
424 x->props.trailer_len = align + 1 + esp->auth.icv_trunc_len;