Searched refs:authlen (Results 1 – 1 of 1) sorted by relevance
/linux-4.4.14/net/mac802154/ |
D | llsec.c | 635 llsec_tfm_by_len(struct mac802154_llsec_key *key, int authlen) in llsec_tfm_by_len() argument 640 if (crypto_aead_authsize(key->tfm[i]) == authlen) in llsec_tfm_by_len() 653 int authlen, assoclen, datalen, rc; in llsec_do_encrypt_auth() local 657 authlen = ieee802154_sechdr_authtag_len(&hdr->sec); in llsec_do_encrypt_auth() 660 req = aead_request_alloc(llsec_tfm_by_len(key, authlen), GFP_ATOMIC); in llsec_do_encrypt_auth() 669 skb_put(skb, authlen); in llsec_do_encrypt_auth() 671 sg_init_one(&sg, skb_mac_header(skb), assoclen + datalen + authlen); in llsec_do_encrypt_auth() 703 int rc, authlen, hlen; in mac802154_llsec_encrypt() local 717 authlen = ieee802154_sechdr_authtag_len(&hdr.sec); in mac802154_llsec_encrypt() 719 if (skb->len + hlen + authlen + IEEE802154_MFR_SIZE > IEEE802154_MTU) in mac802154_llsec_encrypt() [all …]
|