Home
last modified time | relevance | path

Searched refs:aad_len (Results 1 – 13 of 13) sorted by relevance

/linux-6.6.21/net/mac80211/
Daead_api.c18 int aead_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, in aead_encrypt() argument
28 aead_req = kzalloc(reqsize + aad_len, GFP_ATOMIC); in aead_encrypt()
33 memcpy(__aad, aad, aad_len); in aead_encrypt()
36 sg_set_buf(&sg[0], __aad, aad_len); in aead_encrypt()
50 int aead_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, in aead_decrypt() argument
63 aead_req = kzalloc(reqsize + aad_len, GFP_ATOMIC); in aead_decrypt()
68 memcpy(__aad, aad, aad_len); in aead_decrypt()
71 sg_set_buf(&sg[0], __aad, aad_len); in aead_decrypt()
Daead_api.h14 size_t aad_len, u8 *data,
18 size_t aad_len, u8 *data,
/linux-6.6.21/drivers/staging/rtl8192e/
Drtllib_crypt_ccmp.c90 size_t aad_len; in ccmp_init_iv_and_aad() local
100 aad_len = 22; in ccmp_init_iv_and_aad()
102 aad_len += 6; in ccmp_init_iv_and_aad()
108 aad_len += 2; in ccmp_init_iv_and_aad()
148 return aad_len; in ccmp_init_iv_and_aad()
191 int aad_len, ret; in rtllib_ccmp_encrypt() local
198 aad_len = ccmp_init_iv_and_aad(hdr, key->tx_pn, iv, aad); in rtllib_ccmp_encrypt()
202 sg_set_buf(&sg[0], aad, aad_len); in rtllib_ccmp_encrypt()
207 aead_request_set_ad(req, aad_len); in rtllib_ccmp_encrypt()
275 int aad_len, ret; in rtllib_ccmp_decrypt() local
[all …]
/linux-6.6.21/drivers/staging/rtl8192u/ieee80211/
Dieee80211_crypt_ccmp.c96 size_t aad_len; in ccmp_init_iv_and_aad() local
109 aad_len = 22; in ccmp_init_iv_and_aad()
111 aad_len += 6; in ccmp_init_iv_and_aad()
117 aad_len += 2; in ccmp_init_iv_and_aad()
158 return aad_len; in ccmp_init_iv_and_aad()
202 int aad_len, ret; in ieee80211_ccmp_encrypt() local
209 aad_len = ccmp_init_iv_and_aad(hdr, key->tx_pn, iv, aad); in ieee80211_ccmp_encrypt()
214 sg_set_buf(&sg[0], aad, aad_len); in ieee80211_ccmp_encrypt()
219 aead_request_set_ad(req, aad_len); in ieee80211_ccmp_encrypt()
289 int aad_len, ret; in ieee80211_ccmp_decrypt() local
[all …]
/linux-6.6.21/net/wireless/
Dlib80211_crypt_ccmp.c98 size_t aad_len; in ccmp_init_iv_and_aad() local
104 aad_len = 22; in ccmp_init_iv_and_aad()
106 aad_len += 6; in ccmp_init_iv_and_aad()
112 aad_len += 2; in ccmp_init_iv_and_aad()
150 return aad_len; in ccmp_init_iv_and_aad()
198 int len, data_len, aad_len; in lib80211_ccmp_encrypt() local
214 aad_len = ccmp_init_iv_and_aad(hdr, key->tx_pn, iv, aad); in lib80211_ccmp_encrypt()
219 sg_set_buf(&sg[0], aad, aad_len); in lib80211_ccmp_encrypt()
224 aead_request_set_ad(req, aad_len); in lib80211_ccmp_encrypt()
264 int aad_len, ret; in lib80211_ccmp_decrypt() local
[all …]
/linux-6.6.21/include/uapi/linux/
Dvirtio_crypto.h177 __le32 aad_len; member
258 __le32 aad_len; member
391 __le32 aad_len; member
431 __le32 aad_len; member
/linux-6.6.21/arch/s390/include/asm/
Dcpacf.h530 const u8 *aad, unsigned long aad_len) in cpacf_kma() argument
538 a.odd = (unsigned long)aad_len; in cpacf_kma()
/linux-6.6.21/drivers/crypto/caam/
Dpdb.h307 u16 aad_len; member
320 u16 aad_len; member
/linux-6.6.21/include/linux/
Dccp.h190 u32 aad_len; /* In bytes */ member
/linux-6.6.21/drivers/crypto/ccp/
Dccp-crypto-aes-galois.c129 rctx->cmd.u.aes.aad_len = req->assoclen; in ccp_aes_gcm_crypt()
Dccp-ops.c685 p_inp = scatterwalk_ffwd(sg_inp, aes->src, aes->aad_len); in ccp_run_aes_gcm_cmd()
686 p_outp = scatterwalk_ffwd(sg_outp, aes->dst, aes->aad_len); in ccp_run_aes_gcm_cmd()
747 if (aes->aad_len > 0) { in ccp_run_aes_gcm_cmd()
749 ret = ccp_init_data(&aad, cmd_q, p_aad, aes->aad_len, in ccp_run_aes_gcm_cmd()
847 final[0] = cpu_to_be64(aes->aad_len * 8); in ccp_run_aes_gcm_cmd()
903 if (aes->aad_len) in ccp_run_aes_gcm_cmd()
/linux-6.6.21/arch/x86/crypto/
Daesni-intel_glue.c120 unsigned long aad_len);
162 unsigned long aad_len);
185 unsigned long aad_len);
Daesni-intel_avx-x86_64.S1742 # u64 aad_len) /* Length of AAD in bytes. With RFC4106 this is going to be 8 or 12 Bytes…
2710 # u64 aad_len) /* Length of AAD in bytes. With RFC4106 this is going to be 8 or 12 Bytes…