Home
last modified time | relevance | path

Searched refs:aad (Results 1 – 25 of 25) sorted by relevance

/linux-4.1.27/security/apparmor/
Daudit.c117 audit_log_string(ab, aa_audit_type[sa->aad->type]); in audit_pre()
120 if (sa->aad->op) { in audit_pre()
122 audit_log_string(ab, op_table[sa->aad->op]); in audit_pre()
125 if (sa->aad->info) { in audit_pre()
127 audit_log_string(ab, sa->aad->info); in audit_pre()
128 if (sa->aad->error) in audit_pre()
129 audit_log_format(ab, " error=%d", sa->aad->error); in audit_pre()
132 if (sa->aad->profile) { in audit_pre()
133 struct aa_profile *profile = sa->aad->profile; in audit_pre()
142 if (sa->aad->name) { in audit_pre()
[all …]
Dfile.c70 if (sa->aad->fs.request & AA_AUDIT_FILE_MASK) { in file_audit_cb()
72 audit_file_mask(ab, sa->aad->fs.request); in file_audit_cb()
74 if (sa->aad->fs.denied & AA_AUDIT_FILE_MASK) { in file_audit_cb()
76 audit_file_mask(ab, sa->aad->fs.denied); in file_audit_cb()
78 if (sa->aad->fs.request & AA_AUDIT_FILE_MASK) { in file_audit_cb()
82 from_kuid(&init_user_ns, sa->aad->fs.ouid)); in file_audit_cb()
85 if (sa->aad->fs.target) { in file_audit_cb()
87 audit_log_untrustedstring(ab, sa->aad->fs.target); in file_audit_cb()
112 struct apparmor_audit_data aad = {0,}; in aa_audit_file() local
114 sa.aad = &aad; in aa_audit_file()
[all …]
Dresource.c38 rlim_names[sa->aad->rlim.rlim], sa->aad->rlim.max); in audit_cb()
54 struct apparmor_audit_data aad = {0,}; in audit_resource() local
57 sa.aad = &aad; in audit_resource()
58 aad.op = OP_SETRLIMIT, in audit_resource()
59 aad.rlim.rlim = resource; in audit_resource()
60 aad.rlim.max = value; in audit_resource()
61 aad.error = error; in audit_resource()
Dipc.c29 audit_log_untrustedstring(ab, sa->aad->target); in audit_cb()
44 struct apparmor_audit_data aad = {0,}; in aa_audit_ptrace() local
46 sa.aad = &aad; in aa_audit_ptrace()
47 aad.op = OP_PTRACE; in aa_audit_ptrace()
48 aad.target = target; in aa_audit_ptrace()
49 aad.error = error; in aa_audit_ptrace()
Dlib.c70 struct apparmor_audit_data aad = {0,}; in aa_info_message() local
72 sa.aad = &aad; in aa_info_message()
73 aad.info = str; in aa_info_message()
Dcapability.c70 struct apparmor_audit_data aad = {0,}; in audit_caps() local
72 sa.aad = &aad; in audit_caps()
74 sa.aad->op = OP_CAPABLE; in audit_caps()
75 sa.aad->error = error; in audit_caps()
Dpolicy_unpack.c73 if (sa->aad->iface.target) { in audit_cb()
74 struct aa_profile *name = sa->aad->iface.target; in audit_cb()
78 if (sa->aad->iface.pos) in audit_cb()
79 audit_log_format(ab, " offset=%ld", sa->aad->iface.pos); in audit_cb()
97 struct apparmor_audit_data aad = {0,}; in audit_iface() local
99 sa.aad = &aad; in audit_iface()
101 aad.iface.pos = e->pos - e->start; in audit_iface()
102 aad.iface.target = new; in audit_iface()
103 aad.name = name; in audit_iface()
104 aad.info = info; in audit_iface()
[all …]
Dlsm.c535 struct apparmor_audit_data aad = {0,}; in apparmor_setprocattr() local
597 sa.aad = &aad; in apparmor_setprocattr()
598 aad.profile = aa_current_profile(); in apparmor_setprocattr()
599 aad.op = OP_SETPROCATTR; in apparmor_setprocattr()
600 aad.info = name; in apparmor_setprocattr()
601 aad.error = -EINVAL; in apparmor_setprocattr()
Dpolicy.c907 struct apparmor_audit_data aad = {0,}; in audit_policy() local
909 sa.aad = &aad; in audit_policy()
910 aad.op = op; in audit_policy()
911 aad.name = name; in audit_policy()
912 aad.info = info; in audit_policy()
913 aad.error = error; in audit_policy()
/linux-4.1.27/net/mac80211/
Dwpa.c307 static void ccmp_special_blocks(struct sk_buff *skb, u8 *pn, u8 *b_0, u8 *aad) in ccmp_special_blocks() argument
355 put_unaligned_be16(len_a, &aad[0]); in ccmp_special_blocks()
356 put_unaligned(mask_fc, (__le16 *)&aad[2]); in ccmp_special_blocks()
357 memcpy(&aad[4], &hdr->addr1, 3 * ETH_ALEN); in ccmp_special_blocks()
360 aad[22] = *((u8 *) &hdr->seq_ctrl) & 0x0f; in ccmp_special_blocks()
361 aad[23] = 0; in ccmp_special_blocks()
364 memcpy(&aad[24], hdr->addr4, ETH_ALEN); in ccmp_special_blocks()
365 aad[30] = qos_tid; in ccmp_special_blocks()
366 aad[31] = 0; in ccmp_special_blocks()
368 memset(&aad[24], 0, ETH_ALEN + IEEE80211_QOS_CTL_LEN); in ccmp_special_blocks()
[all …]
Daes_gcm.c19 void ieee80211_aes_gcm_encrypt(struct crypto_aead *tfm, u8 *j_0, u8 *aad, in ieee80211_aes_gcm_encrypt() argument
32 sg_init_one(&assoc, &aad[2], be16_to_cpup((__be16 *)aad)); in ieee80211_aes_gcm_encrypt()
44 int ieee80211_aes_gcm_decrypt(struct crypto_aead *tfm, u8 *j_0, u8 *aad, in ieee80211_aes_gcm_decrypt() argument
59 sg_init_one(&assoc, &aad[2], be16_to_cpup((__be16 *)aad)); in ieee80211_aes_gcm_decrypt()
Daes_ccm.c22 void ieee80211_aes_ccm_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, in ieee80211_aes_ccm_encrypt() argument
36 sg_init_one(&assoc, &aad[2], be16_to_cpup((__be16 *)aad)); in ieee80211_aes_ccm_encrypt()
48 int ieee80211_aes_ccm_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, in ieee80211_aes_ccm_decrypt() argument
64 sg_init_one(&assoc, &aad[2], be16_to_cpup((__be16 *)aad)); in ieee80211_aes_ccm_decrypt()
Daes_cmac.h16 void ieee80211_aes_cmac(struct crypto_cipher *tfm, const u8 *aad,
18 void ieee80211_aes_cmac_256(struct crypto_cipher *tfm, const u8 *aad,
Daes_gcm.h14 void ieee80211_aes_gcm_encrypt(struct crypto_aead *tfm, u8 *j_0, u8 *aad,
16 int ieee80211_aes_gcm_decrypt(struct crypto_aead *tfm, u8 *j_0, u8 *aad,
Daes_cmac.c95 void ieee80211_aes_cmac(struct crypto_cipher *tfm, const u8 *aad, in ieee80211_aes_cmac() argument
103 addr[0] = aad; in ieee80211_aes_cmac()
113 void ieee80211_aes_cmac_256(struct crypto_cipher *tfm, const u8 *aad, in ieee80211_aes_cmac_256() argument
121 addr[0] = aad; in ieee80211_aes_cmac_256()
Daes_ccm.h18 void ieee80211_aes_ccm_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad,
21 int ieee80211_aes_ccm_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad,
Daes_gmac.c24 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce, in ieee80211_aes_gmac() argument
41 sg_set_buf(&sg[0], aad, AAD_LEN); in ieee80211_aes_gmac()
Daes_gmac.h16 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce,
/linux-4.1.27/drivers/staging/rtl8192e/
Drtllib_crypt_ccmp.c118 u8 aad[2 * AES_BLOCK_LEN]; in ccmp_init_blocks() local
157 aad[0] = 0; /* aad_len >> 8 */ in ccmp_init_blocks()
158 aad[1] = aad_len & 0xff; in ccmp_init_blocks()
159 aad[2] = pos[0] & 0x8f; in ccmp_init_blocks()
160 aad[3] = pos[1] & 0xc7; in ccmp_init_blocks()
161 memcpy(aad + 4, hdr->addr1, 3 * ETH_ALEN); in ccmp_init_blocks()
163 aad[22] = pos[0] & 0x0f; in ccmp_init_blocks()
164 aad[23] = 0; /* all bits masked */ in ccmp_init_blocks()
165 memset(aad + 24, 0, 8); in ccmp_init_blocks()
167 memcpy(aad + 24, hdr->addr4, ETH_ALEN); in ccmp_init_blocks()
[all …]
/linux-4.1.27/drivers/staging/rtl8192u/ieee80211/
Dieee80211_crypt_ccmp.c123 u8 aad[2 * AES_BLOCK_LEN]; in ccmp_init_blocks() local
165 aad[0] = 0; /* aad_len >> 8 */ in ccmp_init_blocks()
166 aad[1] = aad_len & 0xff; in ccmp_init_blocks()
167 aad[2] = pos[0] & 0x8f; in ccmp_init_blocks()
168 aad[3] = pos[1] & 0xc7; in ccmp_init_blocks()
169 memcpy(aad + 4, hdr->addr1, 3 * ETH_ALEN); in ccmp_init_blocks()
171 aad[22] = pos[0] & 0x0f; in ccmp_init_blocks()
172 aad[23] = 0; /* all bits masked */ in ccmp_init_blocks()
173 memset(aad + 24, 0, 8); in ccmp_init_blocks()
175 memcpy(aad + 24, hdr->addr4, ETH_ALEN); in ccmp_init_blocks()
[all …]
/linux-4.1.27/net/wireless/
Dlib80211_crypt_ccmp.c118 u8 aad[2 * AES_BLOCK_LEN]; in ccmp_init_blocks() local
154 aad[0] = 0; /* aad_len >> 8 */ in ccmp_init_blocks()
155 aad[1] = aad_len & 0xff; in ccmp_init_blocks()
156 aad[2] = pos[0] & 0x8f; in ccmp_init_blocks()
157 aad[3] = pos[1] & 0xc7; in ccmp_init_blocks()
158 memcpy(aad + 4, hdr->addr1, 3 * ETH_ALEN); in ccmp_init_blocks()
160 aad[22] = pos[0] & 0x0f; in ccmp_init_blocks()
161 aad[23] = 0; /* all bits masked */ in ccmp_init_blocks()
162 memset(aad + 24, 0, 8); in ccmp_init_blocks()
164 memcpy(aad + 24, hdr->addr4, ETH_ALEN); in ccmp_init_blocks()
[all …]
/linux-4.1.27/arch/arm/mach-imx/
Dclk-imx35.c76 struct arm_ahb_div *aad; in mx35_clocks_init() local
81 aad = &clk_consumer[consumer_sel]; in mx35_clocks_init()
82 if (!aad->arm) { in mx35_clocks_init()
88 aad = &clk_consumer[0]; in mx35_clocks_init()
97 if (aad->sel) in mx35_clocks_init()
98 clk[arm] = imx_clk_fixed_factor("arm", "mpll_075", 1, aad->arm); in mx35_clocks_init()
100 clk[arm] = imx_clk_fixed_factor("arm", "mpll", 1, aad->arm); in mx35_clocks_init()
115 clk[ahb] = imx_clk_fixed_factor("ahb", "arm", 1, aad->ahb); in mx35_clocks_init()
/linux-4.1.27/arch/x86/crypto/
Daesni-intel_glue.c132 u8 *hash_subkey, const u8 *aad, unsigned long aad_len,
153 u8 *hash_subkey, const u8 *aad, unsigned long aad_len,
173 const u8 *aad, unsigned long aad_len,
178 const u8 *aad, unsigned long aad_len,
183 u8 *hash_subkey, const u8 *aad, unsigned long aad_len, in aesni_gcm_enc_avx() argument
188 aesni_gcm_enc(ctx, out, in, plaintext_len, iv, hash_subkey, aad, in aesni_gcm_enc_avx()
192 aesni_gcm_enc_avx_gen2(ctx, out, in, plaintext_len, iv, aad, in aesni_gcm_enc_avx()
199 u8 *hash_subkey, const u8 *aad, unsigned long aad_len, in aesni_gcm_dec_avx() argument
204 aesni_gcm_dec(ctx, out, in, ciphertext_len, iv, hash_subkey, aad, in aesni_gcm_dec_avx()
208 aesni_gcm_dec_avx_gen2(ctx, out, in, ciphertext_len, iv, aad, in aesni_gcm_dec_avx()
[all …]
Daesni-intel_avx-x86_64.S1502 # const u8 *aad, /* Additional Authentication Data (AAD)*/
1523 # const u8 *aad, /* Additional Authentication Data (AAD)*/
2779 # const u8 *aad, /* Additional Authentication Data (AAD)*/
2800 # const u8 *aad, /* Additional Authentication Data (AAD)*/
/linux-4.1.27/security/apparmor/include/
Daudit.h132 #define aad apparmor_audit_data macro