Lines Matching refs:ehsz
743 int ehsz, len, tailen, nsg, rc; in tipc_aead_encrypt() local
801 ehsz = tipc_ehdr_size(ehdr); in tipc_aead_encrypt()
803 aead_request_set_ad(req, ehsz); in tipc_aead_encrypt()
804 aead_request_set_crypt(req, sg, sg, len - ehsz, iv); in tipc_aead_encrypt()
886 int ehsz, nsg, rc; in tipc_aead_decrypt() local
926 ehsz = tipc_ehdr_size(ehdr); in tipc_aead_decrypt()
928 aead_request_set_ad(req, ehsz); in tipc_aead_decrypt()
929 aead_request_set_crypt(req, sg, sg, skb->len - ehsz, iv); in tipc_aead_decrypt()
1003 int ehsz; in tipc_ehdr_validate() local
1011 ehsz = tipc_ehdr_size(ehdr); in tipc_ehdr_validate()
1012 if (unlikely(!pskb_may_pull(skb, ehsz))) in tipc_ehdr_validate()
1014 if (unlikely(skb->len <= ehsz + TIPC_AES_GCM_TAG_SIZE)) in tipc_ehdr_validate()
1038 int ehsz; in tipc_ehdr_build() local
1041 ehsz = (user != LINK_CONFIG) ? EHDR_SIZE : EHDR_CFG_SIZE; in tipc_ehdr_build()
1042 WARN_ON(skb_headroom(skb) < ehsz); in tipc_ehdr_build()
1043 ehdr = (struct tipc_ehdr *)skb_push(skb, ehsz); in tipc_ehdr_build()
1087 return ehsz; in tipc_ehdr_build()