Home
last modified time | relevance | path

Searched refs:authlen (Results 1 – 6 of 6) sorted by relevance

/linux-6.6.21/net/mac802154/
Dllsec.c636 llsec_tfm_by_len(struct mac802154_llsec_key *key, int authlen) in llsec_tfm_by_len() argument
641 if (crypto_aead_authsize(key->tfm[i]) == authlen) in llsec_tfm_by_len()
654 int authlen, assoclen, datalen, rc; in llsec_do_encrypt_auth() local
658 authlen = ieee802154_sechdr_authtag_len(&hdr->sec); in llsec_do_encrypt_auth()
661 req = aead_request_alloc(llsec_tfm_by_len(key, authlen), GFP_ATOMIC); in llsec_do_encrypt_auth()
670 skb_put(skb, authlen); in llsec_do_encrypt_auth()
672 sg_init_one(&sg, skb_mac_header(skb), assoclen + datalen + authlen); in llsec_do_encrypt_auth()
704 int rc, authlen, hlen; in mac802154_llsec_encrypt() local
722 authlen = ieee802154_sechdr_authtag_len(&hdr.sec); in mac802154_llsec_encrypt()
724 if (skb->len + hlen + authlen + IEEE802154_MFR_SIZE > IEEE802154_MTU) in mac802154_llsec_encrypt()
[all …]
/linux-6.6.21/drivers/platform/x86/hp/hp-bioscfg/
Dspmobj-attributes.c44 size_t size, authlen; in hp_calculate_security_buffer() local
49 authlen = strlen(authentication); in hp_calculate_security_buffer()
50 if (!authlen) in hp_calculate_security_buffer()
53 size = sizeof(u16) + authlen * sizeof(u16); in hp_calculate_security_buffer()
/linux-6.6.21/drivers/crypto/
Domap-aes-gcm.c96 unsigned int authlen = crypto_aead_authsize(aead); in omap_aes_gcm_copy_buffers() local
108 cryptlen -= authlen; in omap_aes_gcm_copy_buffers()
151 dd->authsize = authlen; in omap_aes_gcm_copy_buffers()
243 unsigned int authlen = crypto_aead_authsize(aead); in omap_aes_gcm_crypt() local
260 scatterwalk_map_and_copy(rctx->auth_tag, req->dst, 0, authlen, in omap_aes_gcm_crypt()
/linux-6.6.21/drivers/net/ethernet/intel/ixgbevf/
Dipsec.c528 const int authlen = IXGBE_IPSEC_AUTH_BITS / 8; in ixgbevf_ipsec_tx() local
533 ret = skb_copy_bits(skb, skb->len - (authlen + 2), in ixgbevf_ipsec_tx()
537 itd->trailer_len = authlen + 2 + padlen; in ixgbevf_ipsec_tx()
/linux-6.6.21/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ipsec.c1135 const int authlen = IXGBE_IPSEC_AUTH_BITS / 8; in ixgbe_ipsec_tx() local
1140 ret = skb_copy_bits(skb, skb->len - (authlen + 2), in ixgbe_ipsec_tx()
1144 itd->trailer_len = authlen + 2 + padlen; in ixgbe_ipsec_tx()
/linux-6.6.21/fs/ceph/
Dmds_client.c2828 u32 authlen = ceph_fscrypt_auth_len(req->r_fscrypt_auth); in encode_mclientrequest_tail() local
2830 ceph_encode_32(p, authlen); in encode_mclientrequest_tail()
2831 ceph_encode_copy(p, req->r_fscrypt_auth, authlen); in encode_mclientrequest_tail()