Home
last modified time | relevance | path

Searched refs:tmp_key (Results 1 – 14 of 14) sorted by relevance

/external/selinux/libsepol/src/
Dnode_record.c238 sepol_node_key_t *tmp_key = in sepol_node_key_create() local
240 if (!tmp_key) in sepol_node_key_create()
243 if (node_alloc_addr(handle, proto, &tmp_key->addr, &tmp_key->addr_sz) < in sepol_node_key_create()
246 if (node_parse_addr(handle, addr, proto, tmp_key->addr) < 0) in sepol_node_key_create()
249 if (node_alloc_addr(handle, proto, &tmp_key->mask, &tmp_key->mask_sz) < in sepol_node_key_create()
252 if (node_parse_addr(handle, mask, proto, tmp_key->mask) < 0) in sepol_node_key_create()
255 tmp_key->proto = proto; in sepol_node_key_create()
257 *key_ptr = tmp_key; in sepol_node_key_create()
264 sepol_node_key_free(tmp_key); in sepol_node_key_create()
288 sepol_node_key_t *tmp_key = in hidden_def() local
[all …]
Dassertion.c147 avtab_key_t tmp_key; in report_assertion_extended_permissions() local
157 memcpy(&tmp_key, k, sizeof(avtab_key_t)); in report_assertion_extended_permissions()
158 tmp_key.specified = AVTAB_XPERMS_ALLOWED; in report_assertion_extended_permissions()
166 tmp_key.source_type = i + 1; in report_assertion_extended_permissions()
167 tmp_key.target_type = j + 1; in report_assertion_extended_permissions()
168 for (node = avtab_search_node(avtab, &tmp_key); in report_assertion_extended_permissions()
170 node = avtab_search_node_next(node, tmp_key.specified)) { in report_assertion_extended_permissions()
328 avtab_key_t tmp_key; in check_assertion_extended_permissions_avtab() local
337 memcpy(&tmp_key, k, sizeof(avtab_key_t)); in check_assertion_extended_permissions_avtab()
338 tmp_key.specified = AVTAB_XPERMS_ALLOWED; in check_assertion_extended_permissions_avtab()
[all …]
Dport_record.c33 sepol_port_key_t *tmp_key = in sepol_port_key_create() local
36 if (!tmp_key) { in sepol_port_key_create()
41 tmp_key->low = low; in sepol_port_key_create()
42 tmp_key->high = high; in sepol_port_key_create()
43 tmp_key->proto = proto; in sepol_port_key_create()
45 *key_ptr = tmp_key; in sepol_port_key_create()
Dboolean_record.c25 sepol_bool_key_t *tmp_key = in sepol_bool_key_create() local
28 if (!tmp_key) { in sepol_bool_key_create()
33 tmp_key->name = name; in sepol_bool_key_create()
35 *key_ptr = tmp_key; in sepol_bool_key_create()
Diface_record.c31 sepol_iface_key_t *tmp_key = in sepol_iface_key_create() local
34 if (!tmp_key) { in sepol_iface_key_create()
39 tmp_key->name = name; in sepol_iface_key_create()
41 *key_ptr = tmp_key; in sepol_iface_key_create()
Duser_record.c34 sepol_user_key_t *tmp_key = in sepol_user_key_create() local
37 if (!tmp_key) { in sepol_user_key_create()
43 tmp_key->name = name; in sepol_user_key_create()
45 *key_ptr = tmp_key; in sepol_user_key_create()
/external/selinux/libsemanage/src/
Dfcontext_record.c40 semanage_fcontext_key_t *tmp_key = in semanage_fcontext_key_create() local
43 if (!tmp_key) { in semanage_fcontext_key_create()
48 tmp_key->expr = strdup(expr); in semanage_fcontext_key_create()
49 if (!tmp_key->expr) { in semanage_fcontext_key_create()
51 free(tmp_key); in semanage_fcontext_key_create()
54 tmp_key->type = type; in semanage_fcontext_key_create()
56 *key_ptr = tmp_key; in semanage_fcontext_key_create()
Dseuser_record.c44 semanage_seuser_key_t *tmp_key = (semanage_seuser_key_t *) in semanage_seuser_key_create() local
47 if (!tmp_key) { in semanage_seuser_key_create()
51 tmp_key->name = name; in semanage_seuser_key_create()
53 *key_ptr = tmp_key; in semanage_seuser_key_create()
/external/srtp/crypto/rng/
Dctr_prng.c54 uint8_t tmp_key[32]; in ctr_prng_init() local
64 status = random_source(tmp_key, 32); in ctr_prng_init()
69 status = aes_icm_context_init(&ctr_prng.state, tmp_key); in ctr_prng_init()
Dprng.c54 v128_t tmp_key; in x917_prng_init() local
64 status = random_source((uint8_t *)&tmp_key, 16); in x917_prng_init()
69 aes_expand_encryption_key(&tmp_key, x917_prng.key); in x917_prng_init()
/external/srtp/srtp/
Dsrtp.c364 uint8_t tmp_key[MAX_SRTP_KEY_LEN]; in srtp_stream_init_keys() local
371 tmp_key, cipher_get_key_length(srtp->rtp_cipher)); in srtp_stream_init_keys()
385 tmp_key + base_key_len, salt_len); in srtp_stream_init_keys()
388 octet_string_hex_string(tmp_key, in srtp_stream_init_keys()
392 stat = cipher_init(srtp->rtp_cipher, tmp_key, direction_any); in srtp_stream_init_keys()
395 octet_string_set_to_zero(tmp_key, MAX_SRTP_KEY_LEN); in srtp_stream_init_keys()
401 tmp_key, auth_get_key_length(srtp->rtp_auth)); in srtp_stream_init_keys()
403 octet_string_hex_string(tmp_key, in srtp_stream_init_keys()
407 stat = auth_init(srtp->rtp_auth, tmp_key); in srtp_stream_init_keys()
410 octet_string_set_to_zero(tmp_key, MAX_SRTP_KEY_LEN); in srtp_stream_init_keys()
[all …]
/external/srtp/crypto/cipher/
Daes_cbc.c109 v128_t tmp_key; in aes_cbc_context_init() local
112 v128_copy_octet_string(&tmp_key, key); in aes_cbc_context_init()
115 "key: %s", v128_hex_string(&tmp_key)); in aes_cbc_context_init()
120 aes_expand_encryption_key(&tmp_key, c->expanded_key); in aes_cbc_context_init()
123 aes_expand_decryption_key(&tmp_key, c->expanded_key); in aes_cbc_context_init()
Daes_icm.c166 v128_t tmp_key; in aes_icm_context_init() local
182 v128_copy_octet_string(&tmp_key, key); in aes_icm_context_init()
185 "key: %s", v128_hex_string(&tmp_key)); in aes_icm_context_init()
190 aes_expand_encryption_key(&tmp_key, c->expanded_key); in aes_icm_context_init()
/external/srtp/googlepatches/
Dgoogle-5-buffer-overflow.patch8 v128_t tmp_key;
28 /* set tmp_key (for alignment) */
29 v128_copy_octet_string(&tmp_key, key);