/linux-6.6.21/net/mac80211/ |
D | wpa.c | 318 static u8 ccmp_gcmp_aad(struct sk_buff *skb, u8 *aad) in ccmp_gcmp_aad() argument 352 put_unaligned_be16(len_a, &aad[0]); in ccmp_gcmp_aad() 353 put_unaligned(mask_fc, (__le16 *)&aad[2]); in ccmp_gcmp_aad() 354 memcpy(&aad[4], &hdr->addrs, 3 * ETH_ALEN); in ccmp_gcmp_aad() 357 aad[22] = *((u8 *) &hdr->seq_ctrl) & 0x0f; in ccmp_gcmp_aad() 358 aad[23] = 0; in ccmp_gcmp_aad() 361 memcpy(&aad[24], hdr->addr4, ETH_ALEN); in ccmp_gcmp_aad() 362 aad[30] = qos_tid; in ccmp_gcmp_aad() 363 aad[31] = 0; in ccmp_gcmp_aad() 365 memset(&aad[24], 0, ETH_ALEN + IEEE80211_QOS_CTL_LEN); in ccmp_gcmp_aad() [all …]
|
D | aes_ccm.h | 22 u8 *b_0, u8 *aad, u8 *data, in ieee80211_aes_ccm_encrypt() argument 25 return aead_encrypt(tfm, b_0, aad + 2, in ieee80211_aes_ccm_encrypt() 26 be16_to_cpup((__be16 *)aad), in ieee80211_aes_ccm_encrypt() 32 u8 *b_0, u8 *aad, u8 *data, in ieee80211_aes_ccm_decrypt() argument 35 return aead_decrypt(tfm, b_0, aad + 2, in ieee80211_aes_ccm_decrypt() 36 be16_to_cpup((__be16 *)aad), in ieee80211_aes_ccm_decrypt()
|
D | aes_gcm.h | 14 u8 *j_0, u8 *aad, u8 *data, in ieee80211_aes_gcm_encrypt() argument 17 return aead_encrypt(tfm, j_0, aad + 2, in ieee80211_aes_gcm_encrypt() 18 be16_to_cpup((__be16 *)aad), in ieee80211_aes_gcm_encrypt() 23 u8 *j_0, u8 *aad, u8 *data, in ieee80211_aes_gcm_decrypt() argument 26 return aead_decrypt(tfm, j_0, aad + 2, in ieee80211_aes_gcm_decrypt() 27 be16_to_cpup((__be16 *)aad), in ieee80211_aes_gcm_decrypt()
|
D | aes_cmac.c | 25 void ieee80211_aes_cmac(struct crypto_shash *tfm, const u8 *aad, in ieee80211_aes_cmac() argument 35 crypto_shash_update(desc, aad, AAD_LEN); in ieee80211_aes_cmac() 36 fc = (const __le16 *)aad; in ieee80211_aes_cmac() 49 void ieee80211_aes_cmac_256(struct crypto_shash *tfm, const u8 *aad, in ieee80211_aes_cmac_256() argument 58 crypto_shash_update(desc, aad, AAD_LEN); in ieee80211_aes_cmac_256() 59 fc = (const __le16 *)aad; in ieee80211_aes_cmac_256()
|
D | aead_api.c | 18 int aead_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, in aead_encrypt() argument 33 memcpy(__aad, 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 68 memcpy(__aad, aad, aad_len); in aead_decrypt()
|
D | aes_gmac.c | 17 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce, in ieee80211_aes_gmac() argument 36 memcpy(__aad, aad, GMAC_AAD_LEN); in ieee80211_aes_gmac() 38 fc = (const __le16 *)aad; in ieee80211_aes_gmac()
|
D | aes_cmac.h | 14 void ieee80211_aes_cmac(struct crypto_shash *tfm, const u8 *aad, 16 void ieee80211_aes_cmac_256(struct crypto_shash *tfm, const u8 *aad,
|
D | aead_api.h | 13 int aead_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, 17 int aead_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad,
|
D | aes_gmac.h | 17 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce,
|
/linux-6.6.21/drivers/staging/rtl8192e/ |
D | rtllib_crypt_ccmp.c | 87 u8 *pn, u8 *iv, u8 *aad) in ccmp_init_iv_and_aad() argument 132 aad[0] = pos[0] & 0x8f; in ccmp_init_iv_and_aad() 133 aad[1] = pos[1] & 0xc7; in ccmp_init_iv_and_aad() 134 memcpy(&aad[2], &hdr->addr1, ETH_ALEN); in ccmp_init_iv_and_aad() 135 memcpy(&aad[8], &hdr->addr2, ETH_ALEN); in ccmp_init_iv_and_aad() 136 memcpy(&aad[14], &hdr->addr3, ETH_ALEN); in ccmp_init_iv_and_aad() 138 aad[20] = pos[0] & 0x0f; in ccmp_init_iv_and_aad() 139 aad[21] = 0; /* all bits masked */ in ccmp_init_iv_and_aad() 140 memset(aad + 22, 0, 8); in ccmp_init_iv_and_aad() 142 memcpy(aad + 22, hdr->addr4, ETH_ALEN); in ccmp_init_iv_and_aad() [all …]
|
/linux-6.6.21/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_crypt_ccmp.c | 93 u8 *pn, u8 *iv, u8 *aad) in ccmp_init_iv_and_aad() argument 142 aad[0] = pos[0] & 0x8f; in ccmp_init_iv_and_aad() 143 aad[1] = pos[1] & 0xc7; in ccmp_init_iv_and_aad() 144 memcpy(&aad[2], &hdr->addr1, ETH_ALEN); in ccmp_init_iv_and_aad() 145 memcpy(&aad[8], &hdr->addr2, ETH_ALEN); in ccmp_init_iv_and_aad() 146 memcpy(&aad[14], &hdr->addr3, ETH_ALEN); in ccmp_init_iv_and_aad() 148 aad[20] = pos[0] & 0x0f; in ccmp_init_iv_and_aad() 149 aad[21] = 0; /* all bits masked */ in ccmp_init_iv_and_aad() 150 memset(aad + 22, 0, 8); in ccmp_init_iv_and_aad() 152 memcpy(aad + 22, hdr->addr4, ETH_ALEN); in ccmp_init_iv_and_aad() [all …]
|
/linux-6.6.21/net/wireless/ |
D | lib80211_crypt_ccmp.c | 95 const u8 *pn, u8 *iv, u8 *aad) in ccmp_init_iv_and_aad() argument 137 aad[0] = pos[0] & 0x8f; in ccmp_init_iv_and_aad() 138 aad[1] = pos[1] & 0xc7; in ccmp_init_iv_and_aad() 139 memcpy(aad + 2, &hdr->addrs, 3 * ETH_ALEN); in ccmp_init_iv_and_aad() 141 aad[20] = pos[0] & 0x0f; in ccmp_init_iv_and_aad() 142 aad[21] = 0; /* all bits masked */ in ccmp_init_iv_and_aad() 143 memset(aad + 22, 0, 8); in ccmp_init_iv_and_aad() 145 memcpy(aad + 22, hdr->addr4, ETH_ALEN); in ccmp_init_iv_and_aad() 147 aad[a4_included ? 28 : 22] = qc; in ccmp_init_iv_and_aad() 196 u8 *aad = key->tx_aad; in lib80211_ccmp_encrypt() local [all …]
|
/linux-6.6.21/net/tls/ |
D | tls_device_fallback.c | 51 struct crypto_aead *aead, char *aad, in tls_enc_record() argument 90 tls_make_aad(aad, len - cipher_desc->tag, (char *)&rcd_sn, buf[0], prot); in tls_enc_record() 96 sg_set_buf(sg_in, aad, TLS_AAD_SPACE_SIZE); in tls_enc_record() 97 sg_set_buf(sg_out, aad, TLS_AAD_SPACE_SIZE); in tls_enc_record() 154 struct scatterlist *sg_out, char *aad, char *iv, in tls_enc_records() argument 164 rc = tls_enc_record(aead_req, aead, aad, iv, in tls_enc_records() 332 void *buf, *iv, *aad, *dummy_buf, *salt; in tls_enc_skb() local 360 aad = buf + cipher_desc->salt + cipher_desc->iv; in tls_enc_skb() 361 dummy_buf = aad + TLS_AAD_SPACE_SIZE; in tls_enc_skb() 372 if (tls_enc_records(aead_req, ctx->aead_send, sg_in, sg_out, aad, iv, in tls_enc_skb()
|
/linux-6.6.21/drivers/clk/imx/ |
D | clk-imx35.c | 88 struct arm_ahb_div *aad; in _mx35_clocks_init() local 96 aad = &clk_consumer[consumer_sel]; in _mx35_clocks_init() 97 if (!aad->arm) { in _mx35_clocks_init() 103 aad = &clk_consumer[0]; in _mx35_clocks_init() 113 if (aad->sel) in _mx35_clocks_init() 114 clk[arm] = imx_clk_fixed_factor("arm", "mpll_075", 1, aad->arm); in _mx35_clocks_init() 116 clk[arm] = imx_clk_fixed_factor("arm", "mpll", 1, aad->arm); in _mx35_clocks_init() 131 clk[ahb] = imx_clk_fixed_factor("ahb", "arm", 1, aad->ahb); in _mx35_clocks_init()
|
/linux-6.6.21/arch/powerpc/crypto/ |
D | aes-gcm-p10-glue.c | 42 unsigned char *aad, unsigned int alen); 88 unsigned char *aad, int alen) in set_aad() argument 96 gcm_ghash_p10(nXi, hash->Htable+32, aad, i); in set_aad() 97 aad += i; in set_aad() 102 nXi[i] ^= aad[i]; in set_aad()
|
/linux-6.6.21/sound/soc/codecs/ |
D | da7219-aad.c | 35 da7219->aad->jack = jack; in da7219_aad_jack_det() 36 da7219->aad->jack_inserted = false; in da7219_aad_jack_det() 762 struct da7219_aad_priv *da7219_aad = da7219->aad; in da7219_aad_handle_pdata() 895 struct da7219_aad_priv *da7219_aad = da7219->aad; in da7219_aad_handle_gnd_switch_time() 926 struct da7219_aad_priv *da7219_aad = da7219->aad; in da7219_aad_suspend() 957 struct da7219_aad_priv *da7219_aad = da7219->aad; in da7219_aad_resume() 984 struct da7219_aad_priv *da7219_aad = da7219->aad; in da7219_aad_init() 1029 struct da7219_aad_priv *da7219_aad = da7219->aad; in da7219_aad_exit() 1059 da7219->aad = da7219_aad; in da7219_aad_probe()
|
/linux-6.6.21/Documentation/devicetree/bindings/memory-controllers/ |
D | ti,gpmc-child.yaml | 54 gpmc,adv-aad-mux-on-ns: 58 gpmc,adv-aad-mux-rd-off-ns: 62 gpmc,adv-aad-mux-wr-off-ns: 84 gpmc,oe-aad-mux-on-ns: 88 gpmc,oe-aad-mux-off-ns:
|
/linux-6.6.21/security/apparmor/include/ |
D | audit.h | 161 #define aad(SA) (container_of(SA, struct apparmor_audit_data, common)) macro 162 #define aad_of_va(VA) aad((struct common_audit_data *)(VA))
|
/linux-6.6.21/arch/s390/include/asm/ |
D | cpacf.h | 530 const u8 *aad, unsigned long aad_len) in cpacf_kma() argument 537 a.even = (unsigned long)aad; in cpacf_kma() 545 [aad] "+&d" (a.pair) in cpacf_kma()
|
/linux-6.6.21/security/apparmor/ |
D | ipc.c | 55 struct apparmor_audit_data *ad = aad(sa); in audit_signal_cb()
|
D | resource.c | 33 struct apparmor_audit_data *ad = aad(sa); in audit_cb()
|
D | task.c | 211 struct apparmor_audit_data *ad = aad(sa); in audit_ptrace_cb()
|
D | net.c | 74 struct apparmor_audit_data *ad = aad(sa); in audit_net_cb()
|
D | lib.c | 286 struct apparmor_audit_data *ad = aad(sa); in aa_audit_perms_cb()
|
/linux-6.6.21/drivers/crypto/ |
D | sa2ul.h | 254 struct sa_cmdl_param_info aad; member
|