/linux/security/apparmor/ |
A D | ipc.c | 57 aa_label_xaudit(ab, labels_ns(aad(sa)->label), aad(sa)->peer, in audit_ptrace_cb() 69 aad(sa)->peer = peer; in profile_ptrace_perm() 101 aad(sa)->label = &tracer->label; in profile_tracer_perm() 102 aad(sa)->peer = tracee; in profile_tracer_perm() 103 aad(sa)->request = 0; in profile_tracer_perm() 174 if (aad(sa)->signal == SIGUNKNOWN) in audit_signal_cb() 176 aad(sa)->unmappedsig); in audit_signal_cb() 183 aa_label_xaudit(ab, labels_ns(aad(sa)->label), aad(sa)->peer, in audit_signal_cb() 198 aad(sa)->peer = peer; in profile_signal_perm() 202 aad(sa)->signal); in profile_signal_perm() [all …]
|
A D | audit.c | 61 aa_audit_type[aad(sa)->type]); in audit_pre() 64 if (aad(sa)->op) { in audit_pre() 68 if (aad(sa)->info) { in audit_pre() 70 if (aad(sa)->error) in audit_pre() 74 if (aad(sa)->label) { in audit_pre() 94 if (aad(sa)->name) { in audit_pre() 108 aad(sa)->type = type; in aa_audit_msg() 129 if (likely(!aad(sa)->error)) { in aa_audit() 141 return aad(sa)->error; in aa_audit() 146 aad(sa)->label = &profile->label; in aa_audit() [all …]
|
A D | file.c | 67 if (aad(sa)->peer) { in file_audit_cb() 69 aa_label_xaudit(ab, labels_ns(aad(sa)->label), aad(sa)->peer, in file_audit_cb() 102 aad(&sa)->name = name; in aa_audit_file() 104 aad(&sa)->peer = tlabel; in aa_audit_file() 105 aad(&sa)->fs.ouid = ouid; in aa_audit_file() 106 aad(&sa)->info = info; in aa_audit_file() 107 aad(&sa)->error = error; in aa_audit_file() 124 aad(&sa)->request = aad(&sa)->request & ~perms->allow; in aa_audit_file() 136 if (!aad(&sa)->request) in aa_audit_file() 137 return aad(&sa)->error; in aa_audit_file() [all …]
|
A D | resource.c | 35 rlim_names[aad(sa)->rlim.rlim], aad(sa)->rlim.max); in audit_cb() 36 if (aad(sa)->peer) { in audit_cb() 38 aa_label_xaudit(ab, labels_ns(aad(sa)->label), aad(sa)->peer, in audit_cb() 58 aad(&sa)->rlim.rlim = resource; in audit_resource() 59 aad(&sa)->rlim.max = value; in audit_resource() 60 aad(&sa)->peer = peer; in audit_resource() 61 aad(&sa)->info = info; in audit_resource() 62 aad(&sa)->error = error; in audit_resource()
|
A D | net.c | 81 if (sock_type_names[aad(sa)->net.type]) in audit_net_cb() 83 sock_type_names[aad(sa)->net.type]); in audit_net_cb() 86 aad(sa)->net.type); in audit_net_cb() 87 audit_log_format(ab, " protocol=%d", aad(sa)->net.protocol); in audit_net_cb() 89 if (aad(sa)->request & NET_PERMS_MASK) { in audit_net_cb() 91 aa_audit_perm_mask(ab, aad(sa)->request, NULL, 0, in audit_net_cb() 94 if (aad(sa)->denied & NET_PERMS_MASK) { in audit_net_cb() 96 aa_audit_perm_mask(ab, aad(sa)->denied, NULL, 0, in audit_net_cb() 100 if (aad(sa)->peer) { in audit_net_cb() 102 aa_label_xaudit(ab, labels_ns(aad(sa)->label), aad(sa)->peer, in audit_net_cb()
|
A D | lib.c | 129 aad(&sa)->info = str; in aa_info_message() 266 if (aad(sa)->request) { in aa_audit_perms_cb() 272 if (aad(sa)->denied) { in aa_audit_perms_cb() 279 aa_label_xaudit(ab, labels_ns(aad(sa)->label), aad(sa)->peer, in aa_audit_perms_cb() 401 aad(sa)->label = &profile->label; in aa_profile_label_perm() 402 aad(sa)->peer = &target->label; in aa_profile_label_perm() 403 aad(sa)->request = request; in aa_profile_label_perm() 463 aad(sa)->label = &profile->label; in aa_check_perms() 464 aad(sa)->request = request; in aa_check_perms() 465 aad(sa)->denied = denied; in aa_check_perms() [all …]
|
A D | mount.c | 90 if (aad(sa)->mnt.type) { in audit_cb() 94 if (aad(sa)->mnt.src_name) { in audit_cb() 98 if (aad(sa)->mnt.trans) { in audit_cb() 102 if (aad(sa)->mnt.flags) { in audit_cb() 107 if (aad(sa)->mnt.data) { in audit_cb() 168 aad(&sa)->name = name; in audit_mount() 170 aad(&sa)->mnt.type = type; in audit_mount() 171 aad(&sa)->mnt.trans = trans; in audit_mount() 174 aad(&sa)->mnt.data = data; in audit_mount() 175 aad(&sa)->info = info; in audit_mount() [all …]
|
A D | policy_unpack.c | 82 if (aad(sa)->iface.ns) { in audit_cb() 84 audit_log_untrustedstring(ab, aad(sa)->iface.ns); in audit_cb() 86 if (aad(sa)->name) { in audit_cb() 88 audit_log_untrustedstring(ab, aad(sa)->name); in audit_cb() 90 if (aad(sa)->iface.pos) in audit_cb() 112 aad(&sa)->iface.pos = e->pos - e->start; in audit_iface() 113 aad(&sa)->iface.ns = ns_name; in audit_iface() 115 aad(&sa)->name = new->base.hname; in audit_iface() 117 aad(&sa)->name = name; in audit_iface() 118 aad(&sa)->info = info; in audit_iface() [all …]
|
A D | capability.c | 70 aad(sa)->error = error; in audit_caps() 131 aad(sa)->info = "optional: no audit"; in profile_capable()
|
/linux/net/mac80211/ |
A D | wpa.c | 369 aad[23] = 0; in ccmp_special_blocks() 373 aad[30] = qos_tid; in ccmp_special_blocks() 374 aad[31] = 0; in ccmp_special_blocks() 377 aad[24] = qos_tid; in ccmp_special_blocks() 604 aad[23] = 0; in gcmp_special_blocks() 614 aad[31] = 0; in gcmp_special_blocks() 950 u8 aad[20]; in ieee80211_crypto_aes_cmac_encrypt() local 980 bip_aad(skb, aad); in ieee80211_crypto_aes_cmac_encrypt() 998 u8 aad[20]; in ieee80211_crypto_aes_cmac_256_encrypt() local 1024 bip_aad(skb, aad); in ieee80211_crypto_aes_cmac_256_encrypt() [all …]
|
A 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()
|
A 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()
|
A 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()
|
A 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()
|
A 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()
|
A 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,
|
A 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,
|
/linux/drivers/staging/rtl8192u/ieee80211/ |
A 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() 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() 154 aad[a4_included ? 28 : 22] = qc; in ccmp_init_iv_and_aad() 200 u8 *aad = key->tx_aad; in ieee80211_ccmp_encrypt() local 214 sg_set_buf(&sg[0], aad, aad_len); in ieee80211_ccmp_encrypt() 287 u8 *aad = key->rx_aad; in ieee80211_ccmp_decrypt() local [all …]
|
/linux/drivers/staging/rtl8192e/ |
A D | rtllib_crypt_ccmp.c | 89 u8 *pn, u8 *iv, u8 *aad) in ccmp_init_iv_and_aad() argument 134 aad[0] = pos[0] & 0x8f; in ccmp_init_iv_and_aad() 135 aad[1] = pos[1] & 0xc7; in ccmp_init_iv_and_aad() 140 aad[20] = pos[0] & 0x0f; in ccmp_init_iv_and_aad() 141 aad[21] = 0; /* all bits masked */ in ccmp_init_iv_and_aad() 142 memset(aad + 22, 0, 8); in ccmp_init_iv_and_aad() 146 aad[a4_included ? 28 : 22] = qc; in ccmp_init_iv_and_aad() 193 u8 *aad = key->tx_aad; in rtllib_ccmp_encrypt() local 206 sg_set_buf(&sg[0], aad, aad_len); in rtllib_ccmp_encrypt() 278 u8 *aad = key->rx_aad; in rtllib_ccmp_decrypt() local [all …]
|
/linux/net/wireless/ |
A 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() 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() 147 aad[a4_included ? 28 : 22] = qc; in ccmp_init_iv_and_aad() 196 u8 *aad = key->tx_aad; in lib80211_ccmp_encrypt() local 219 sg_set_buf(&sg[0], aad, aad_len); in lib80211_ccmp_encrypt() 261 u8 *aad = key->rx_aad; in lib80211_ccmp_decrypt() local [all …]
|
/linux/net/tls/ |
A D | tls_device_fallback.c | 49 struct crypto_aead *aead, char *aad, in tls_enc_record() argument 76 tls_make_aad(aad, len - TLS_CIPHER_AES_GCM_128_TAG_SIZE, in tls_enc_record() 84 sg_set_buf(sg_in, aad, TLS_AAD_SPACE_SIZE); in tls_enc_record() 85 sg_set_buf(sg_out, aad, TLS_AAD_SPACE_SIZE); in tls_enc_record() 142 struct scatterlist *sg_out, char *aad, char *iv, in tls_enc_records() argument 152 rc = tls_enc_record(aead_req, aead, aad, iv, in tls_enc_records() 316 void *buf, *iv, *aad, *dummy_buf; in tls_enc_skb() local 337 aad = buf + TLS_CIPHER_AES_GCM_128_SALT_SIZE + in tls_enc_skb() 339 dummy_buf = aad + TLS_AAD_SPACE_SIZE; in tls_enc_skb() 350 if (tls_enc_records(aead_req, ctx->aead_send, sg_in, sg_out, aad, iv, in tls_enc_skb()
|
/linux/drivers/clk/imx/ |
A D | clk-imx35.c | 89 struct arm_ahb_div *aad; in _mx35_clocks_init() local 97 aad = &clk_consumer[consumer_sel]; in _mx35_clocks_init() 98 if (!aad->arm) { in _mx35_clocks_init() 104 aad = &clk_consumer[0]; in _mx35_clocks_init() 114 if (aad->sel) in _mx35_clocks_init() 115 clk[arm] = imx_clk_fixed_factor("arm", "mpll_075", 1, aad->arm); in _mx35_clocks_init() 117 clk[arm] = imx_clk_fixed_factor("arm", "mpll", 1, aad->arm); in _mx35_clocks_init() 132 clk[ahb] = imx_clk_fixed_factor("ahb", "arm", 1, aad->ahb); in _mx35_clocks_init()
|
/linux/security/apparmor/include/ |
A D | audit.h | 157 #define aad(SA) ((SA)->apparmor_audit_data) macro 175 aad((SA))->error = (ERROR); \ 177 aad((SA))->error; \
|
/linux/sound/soc/codecs/ |
A 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() 710 struct da7219_aad_priv *da7219_aad = da7219->aad; in da7219_aad_handle_pdata() 833 struct da7219_aad_priv *da7219_aad = da7219->aad; in da7219_aad_suspend() 862 struct da7219_aad_priv *da7219_aad = da7219->aad; in da7219_aad_resume() 889 struct da7219_aad_priv *da7219_aad = da7219->aad; in da7219_aad_init() 926 struct da7219_aad_priv *da7219_aad = da7219->aad; in da7219_aad_exit() 955 da7219->aad = da7219_aad; in da7219_aad_probe()
|
/linux/Documentation/devicetree/bindings/memory-controllers/ |
A 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:
|