Home
last modified time | relevance | path

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

12345678910

/xnu-11215/libsyscall/mach/servers/
H A Dkey_defs.h72 #define KEY_IS_NULL(key) \ argument
73 (((key).key_longs[0] == 0) && ((key).key_longs[1] == 0) \
74 && ((key).key_longs[2] == 0) && ((key).key_longs[3] == 0))
81 (key).key_longs[0] = ntohl((key).key_longs[0]); \
82 (key).key_longs[1] = ntohl((key).key_longs[1]); \
83 (key).key_longs[2] = ntohl((key).key_longs[2]); \
84 (key).key_longs[3] = ntohl((key).key_longs[3]); \
88 (key).key_longs[0] = htonl((key).key_longs[0]); \
89 (key).key_longs[1] = htonl((key).key_longs[1]); \
90 (key).key_longs[2] = htonl((key).key_longs[2]); \
[all …]
/xnu-11215/libkern/kxld/
H A Dkxld_dict.c61 const void *key; member
172 check(key); in kxld_dict_find()
203 while (!dict->cmp(entry->key, key)) { in get_locate_index()
235 check(key); in kxld_dict_insert()
259 entry->key = key; in kxld_dict_insert()
332 while (entry->state == USED && !dict->cmp(entry->key, key)) { in get_insert_index()
355 check(key); in kxld_dict_remove()
374 entry->key = NULL; in kxld_dict_remove()
389 check(key); in kxld_dict_iterator_get_next()
392 *key = NULL; in kxld_dict_iterator_get_next()
[all …]
H A Dkxld_dict.h57 typedef u_int (*kxld_dict_hash)(const KXLDDict *dict, const void *key);
110 void * kxld_dict_find(const KXLDDict *dict, const void *key)
120 kern_return_t kxld_dict_insert(KXLDDict *dict, const void *key, void *value)
127 void kxld_dict_remove(KXLDDict *dict, const void *key, void **value)
131 void kxld_dict_iterator_get_next(KXLDDictIterator *iter, const void **key,
143 u_int kxld_dict_string_hash(const KXLDDict *dict, const void *key)
145 u_int kxld_dict_uint32_hash(const KXLDDict *dict, const void *key)
147 u_int kxld_dict_kxldaddr_hash(const KXLDDict *dict, const void *key)
/xnu-11215/libkern/c++/
H A DOSSymbol.cpp174 smrh_key_t key,
214 memcpy(tmp_buf, key.smrk_opaque, key.smrk_len); in findSymbol()
219 memcpy(copy_s, key.smrk_opaque, key.smrk_len); in findSymbol()
220 key.smrk_string = copy_s; in findSymbol()
441 smrh_key_t key = { in withCString() local
499 smrh_key_t key = { in withCStringNoCopy() local
543 smrh_key_t key = { in existingSymbolForString() local
553 smrh_key_t key = { in existingSymbolForCString() local
706 const void * key, in bsearch() argument
717 if (key == *p) { in bsearch()
[all …]
H A DOSSerializeBinary.cpp124 headerSize = sizeof(key); in addBinaryObject()
154 key |= kOSSerializeEndCollecton; in addBinaryObject()
157 bcopy(&key, &data[length], sizeof(key)); in addBinaryObject()
233 key = (kOSSerializeObject | tagIdx); in binarySerializeInternal()
236 key |= kOSSerializeEndCollecton; in binarySerializeInternal()
238 ok = addBinary(&key, sizeof(key)); in binarySerializeInternal()
250 dictKey = dict->dictionary[i].key; in binarySerializeInternal()
308 key = (kOSSerializeSymbol | len); in binarySerializeInternal()
312 key = (kOSSerializeString | len); in binarySerializeInternal()
319 key = (kOSSerializeData | len); in binarySerializeInternal()
[all …]
H A DOSDictionary.cpp69 if ((uintptr_t)e1->key.get() == (uintptr_t)e2->key.get()) { in compare()
73 return (uintptr_t)e1->key.get() > (uintptr_t)e2->key.get() ? 1 : -1; in compare()
173 if (!key) { in initWithObjects()
211 dictionary[i].key = dict->dictionary[i].key; in initWithDictionary()
351 dictionary[i].key.reset(); in flushCollection()
404 dictionary[i].key.reset(aKey, OSRetain); in setObject()
521 if (aKey == dictionary[i].key) { in getObject()
533 if (aKey == dictionary[i].key) { in getObject()
714 const OSSymbol *key = dictionary[i].key.get(); in serialize() local
717 if (!key->metaCast("OSSymbol")) { in serialize()
[all …]
/xnu-11215/osfmk/corecrypto/
H A Dccgcm.c62 const void *cc_sized_by(key_nbytes)key) in ccgcm_init() argument
71 size_t key_nbytes, const void *key, in ccgcm_init_with_iv() argument
177 size_t key_nbytes, const void *key, in ccgcm_one_shot() argument
220 ccmode_gcm_update_pad(key); in ccgcm_set_iv_legacy()
235 size_t key_nbytes, const void *key, in ccgcm_one_shot_legacy() argument
270 ccmode_gcm_update_pad(ccgcm_ctx *key) in ccmode_gcm_update_pad() argument
273 CCMODE_GCM_KEY_ECB(key)->ecb(CCMODE_GCM_KEY_ECB_KEY(key), 1, in ccmode_gcm_update_pad()
274 CCMODE_GCM_KEY_Y(key), in ccmode_gcm_update_pad()
275 CCMODE_GCM_KEY_PAD(key)); in ccmode_gcm_update_pad()
279 ccmode_gcm_aad_finalize(ccgcm_ctx *key) in ccmode_gcm_aad_finalize() argument
[all …]
H A Dccmode_gcm_mult_h.c46 ccmode_gcm_mult_h(ccgcm_ctx *key, unsigned char *I) in ccmode_gcm_mult_h() argument
52 ccmode_gcm_gf_mult(CCMODE_GCM_KEY_H(key), I, I); in ccmode_gcm_mult_h()
58 gcm_gmult(I, CCMODE_GCM_VNG_KEY_Htable(key), I ); in ccmode_gcm_mult_h()
63 ccmode_gcm_gf_mult(CCMODE_GCM_KEY_H(key), I, I); in ccmode_gcm_mult_h()
/xnu-11215/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_var.h670 hash = net_flowhash(&key->field, sizeof(key->field), hash); \ in flow_key_hash()
688 *protocol = key->fk_proto; in flow_key_unpack()
710 FLOW_KEY_CLEAR(key); in flow_req2key()
713 key->fk_ipver = IPVERSION; in flow_req2key()
715 key->fk_mask |= FKMASK_PROTO; in flow_req2key()
726 key->fk_mask |= FKMASK_SPORT; in flow_req2key()
733 key->fk_ipver = IPV6_VERSION; in flow_req2key()
735 key->fk_mask |= FKMASK_PROTO; in flow_req2key()
757 switch (key->fk_mask) { in flow_req2key()
777 struct flow_key *key) in flow_pkt2key() argument
[all …]
/xnu-11215/osfmk/kern/
H A Dsmr_hash.h169 return os_hash_jenkins(key.smrk_opaque, key.smrk_len, seed); in smrh_key_hash_mem()
182 return os_hash_jenkins(key.smrk_opaque, key.smrk_len, seed); in smrh_key_hash_str()
1636 smrh_key_t key, in __smr_hash_bucket() argument
1648 smrh_key_t key, in __smr_hash_entered_find() argument
1664 smrh_key_t key, in __smr_hash_serialized_find() argument
1680 smrh_key_t key, in __smr_hash_get() argument
1700 smrh_key_t key, in __smr_hash_serialized_get_or_insert() argument
1792 smrh_key_t key, in __smr_shash_hash() argument
1847 smrh_key_t key,
1854 smrh_key_t key, in __smr_shash_entered_find() argument
[all …]
/xnu-11215/libkern/crypto/
H A Dcorecrypto_aes.c45 return cccbc_init(cbc, cx[0].ctx, key_len, key); in aes_encrypt_key()
82 return cccbc_init(cbc, cx[0].ctx, key_len, key); in aes_decrypt_key()
110 aes_encrypt_key128(const unsigned char *key, aes_encrypt_ctx cx[1]) in aes_encrypt_key128() argument
112 return aes_encrypt_key(key, 16, cx); in aes_encrypt_key128()
116 aes_decrypt_key128(const unsigned char *key, aes_decrypt_ctx cx[1]) in aes_decrypt_key128() argument
118 return aes_decrypt_key(key, 16, cx); in aes_decrypt_key128()
123 aes_encrypt_key256(const unsigned char *key, aes_encrypt_ctx cx[1]) in aes_encrypt_key256() argument
125 return aes_encrypt_key(key, 32, cx); in aes_encrypt_key256()
131 return aes_decrypt_key(key, 32, cx); in aes_decrypt_key256()
142 return ccgcm_init(gcm, ctx, key_len, key); in aes_encrypt_key_gcm()
[all …]
H A Dcorecrypto_des.c38 des_ecb_key_sched(des_cblock *key, des_ecb_key_schedule *ks) in des_ecb_key_sched() argument
48 int rc = enc->init(enc, ks->enc, CCDES_KEY_SIZE, key); in des_ecb_key_sched()
53 return dec->init(dec, ks->dec, CCDES_KEY_SIZE, key); in des_ecb_key_sched()
69 des3_ecb_key_sched(des_cblock *key, des3_ecb_key_schedule *ks) in des3_ecb_key_sched() argument
79 int rc = enc->init(enc, ks->enc, CCDES_KEY_SIZE * 3, key); in des3_ecb_key_sched()
84 return dec->init(dec, ks->dec, CCDES_KEY_SIZE * 3, key); in des3_ecb_key_sched()
100 des_is_weak_key(des_cblock *key) in des_is_weak_key() argument
102 return g_crypto_funcs->ccdes_key_is_weak_fn(key, CCDES_KEY_SIZE); in des_is_weak_key()
/xnu-11215/EXTERNAL_HEADERS/corecrypto/
H A Dccrsa.h346 int ccrsa_sign_pss(ccrsa_full_ctx_t key,
380 int ccrsa_sign_pss_msg(ccrsa_full_ctx_t key,
410 int ccrsa_verify_pss_digest(ccrsa_pub_ctx_t key,
441 int ccrsa_verify_pss_msg(ccrsa_pub_ctx_t key,
470 int ccrsa_sign_pkcs1v15(ccrsa_full_ctx_t key, const uint8_t *oid,
586 size_t ccder_encode_rsa_pub_size(const ccrsa_pub_ctx_t key);
611 size_t ccder_encode_rsa_priv_size(const ccrsa_full_ctx_t key);
722 size_t ccrsa_export_pub_size(const ccrsa_pub_ctx_t key);
773 size_t ccrsa_export_priv_size(const ccrsa_full_ctx_t key);
863 void ccrsa_dump_public_key(ccrsa_pub_ctx_t key);
[all …]
H A Dccmode_impl.h25 …mode_ecb, init))(const struct ccmode_ecb *ecb, ccecb_ctx *ctx, size_t key_nbytes, const void *key);
27 void (*CC_SPTR(ccmode_ecb, roundkey))(const ccecb_ctx *ctx, unsigned r, void *key);
72 …(ccmode_cbc, init))(const struct ccmode_cbc *cbc, cccbc_ctx *ctx, size_t key_len, const void *key);
85 …t))(const struct ccmode_cfb *cfb, cccfb_ctx *ctx, size_t key_len, const void *key, const void *iv);
123 …t))(const struct ccmode_ofb *ofb, ccofb_ctx *ctx, size_t key_len, const void *key, const void *iv);
180 int (*CC_SPTR(ccmode_gcm, finalize))(ccgcm_ctx *key, size_t tag_nbytes, void *tag);
193 …(ccmode_ccm, init))(const struct ccmode_ccm *ccm, ccccm_ctx *ctx, size_t key_len, const void *key);
206 int (*CC_SPTR(ccmode_ccm, finalize))(ccccm_ctx *key, ccccm_nonce *nonce_ctx, void *mac);
207 int (*CC_SPTR(ccmode_ccm, reset))(ccccm_ctx *key, ccccm_nonce *nonce_ctx);
251 size_t key_len, const uint8_t *key);
[all …]
H A Dccmode.h41 const void *cc_sized_by(key_len) key,
50 const void *cc_sized_by(key_len) key,
91 const void *cc_sized_by(key_len) key,
102 const void *cc_sized_by(key_len) key,
124 const void *cc_sized_by(key_len) key,
147 const void *cc_sized_by(key_len) key,
174 const void *cc_sized_by(key_len) key,
197 const void *cc_sized_by(key_len) key,
593 const void *cc_sized_by(key_nbytes) key,
770 const void *cc_sized_by(key_len) key,
[all …]
/xnu-11215/osfmk/voucher/
H A Dipc_pthread_priority.c54 mach_voucher_attr_key_t __assert_only key,
61 mach_voucher_attr_key_t __assert_only key,
74 mach_voucher_attr_key_t __assert_only key,
84 mach_voucher_attr_key_t __assert_only key,
138 mach_voucher_attr_key_t __assert_only key, in ipc_pthread_priority_release_value() argument
142 assert(MACH_VOUCHER_ATTR_KEY_PTHPRIORITY == key); in ipc_pthread_priority_release_value()
157 mach_voucher_attr_key_t __assert_only key, in ipc_pthread_priority_get_value() argument
171 assert(MACH_VOUCHER_ATTR_KEY_PTHPRIORITY == key); in ipc_pthread_priority_get_value()
217 mach_voucher_attr_key_t __assert_only key, in ipc_pthread_priority_extract_content() argument
228 assert(MACH_VOUCHER_ATTR_KEY_PTHPRIORITY == key); in ipc_pthread_priority_extract_content()
[all …]
/xnu-11215/iokit/DriverKit/crypto/
H A Daes.h75 aes_rval aes_encrypt_key(const unsigned char *key, int key_len, aes_encrypt_ctx cx[1]);
76 aes_rval aes_encrypt_key128(const unsigned char *key, aes_encrypt_ctx cx[1]);
77 aes_rval aes_encrypt_key256(const unsigned char *key, aes_encrypt_ctx cx[1]);
87 aes_rval aes_decrypt_key(const unsigned char *key, int key_len, aes_decrypt_ctx cx[1]);
88 aes_rval aes_decrypt_key128(const unsigned char *key, aes_decrypt_ctx cx[1]);
89 aes_rval aes_decrypt_key256(const unsigned char *key, aes_decrypt_ctx cx[1]);
98 aes_rval aes_encrypt_key_gcm(const unsigned char *key, int key_len, ccgcm_ctx *ctx);
99 aes_rval aes_encrypt_key_with_iv_gcm(const unsigned char *key, int key_len, const unsigned char *in…
108 aes_rval aes_decrypt_key_gcm(const unsigned char *key, int key_len, ccgcm_ctx *ctx);
109 aes_rval aes_decrypt_key_with_iv_gcm(const unsigned char *key, int key_len, const unsigned char *in…
/xnu-11215/libkern/libkern/crypto/
H A Daes.h75 aes_rval aes_encrypt_key(const unsigned char *key, int key_len, aes_encrypt_ctx cx[1]);
76 aes_rval aes_encrypt_key128(const unsigned char *key, aes_encrypt_ctx cx[1]);
77 aes_rval aes_encrypt_key256(const unsigned char *key, aes_encrypt_ctx cx[1]);
87 aes_rval aes_decrypt_key(const unsigned char *key, int key_len, aes_decrypt_ctx cx[1]);
88 aes_rval aes_decrypt_key128(const unsigned char *key, aes_decrypt_ctx cx[1]);
89 aes_rval aes_decrypt_key256(const unsigned char *key, aes_decrypt_ctx cx[1]);
98 aes_rval aes_encrypt_key_gcm(const unsigned char *key, int key_len, ccgcm_ctx *ctx);
99 aes_rval aes_encrypt_key_with_iv_gcm(const unsigned char *key, int key_len, const unsigned char *in…
108 aes_rval aes_decrypt_key_gcm(const unsigned char *key, int key_len, ccgcm_ctx *ctx);
109 aes_rval aes_decrypt_key_with_iv_gcm(const unsigned char *key, int key_len, const unsigned char *in…
H A Dregister_crypto.h57 unsigned long key_len, const void *key);
64 const void *key, unsigned long data_len, const void *data,
69 size_t key_nbytes, const void *key,
75 …init)(const struct ccchacha20poly1305_info *info, ccchacha20poly1305_ctx *ctx, const uint8_t *key);
94 typedef int (*ccdes_key_is_weak_fn_t)(void *key, unsigned long length);
95 typedef void (*ccdes_key_set_odd_parity_fn_t)(void *key, unsigned long length);
109 typedef int (*ccrsa_verify_pkcs1v15_fn_t)(ccrsa_pub_ctx_t key, const uint8_t *oid,
159 const void *key,
185 const void *key,
194 const void *key,
/xnu-11215/osfmk/ipc/
H A Dipc_voucher.c149 return (iv_index_t)key - 1; in iv_key_to_index()
224 smrh_key_t key = { in iv_key() local
229 return key; in iv_key()
981 ivam, key, command, in ipc_replace_voucher_value()
1207 key, new_value); in ipc_execute_voucher_recipe_command()
1259 key, in ipc_execute_voucher_recipe_command()
1731 recipe->key = key; in mach_voucher_extract_attr_recipe()
1841 recipe->key = key; in mach_voucher_extract_all_attr_recipes()
2301 recipe->key = key; in ipc_voucher_prepare_processing_recipe()
2451 #define USER_DATA_ASSERT_KEY(key) assert(MACH_VOUCHER_ATTR_KEY_USER_DATA == (key)) argument
[all …]
/xnu-11215/bsd/netkey/
H A Dkey_var.h89 #define _KEYLEN(key) ((u_int)((key)->sadb_key_bits >> 3)) argument
90 #define _KEYBITS(key) ((u_int)((key)->sadb_key_bits)) argument
91 #define _KEYBUF(key) ((caddr_t)((caddr_t)(key) + sizeof(struct sadb_key))) argument
/xnu-11215/security/
H A Dmac_data.h104 char *key; member
125 int mac_find_policy_data(const mac_policy_handle_t, const char *key,
127 int mac_find_module_data(struct mac_module_data *mmd, const char *key,
139 if (ele->key != NULL) { /* Array elements have no keys. */ in mmd_fixup_ele()
140 ele->key -= (uintptr_t)oldbase; in mmd_fixup_ele()
141 ele->key += (uintptr_t)newbase; in mmd_fixup_ele()
H A Dmac_data.c59 mac_find_policy_data(const mac_policy_handle_t handle, const char *key, in mac_find_policy_data() argument
66 error = mac_find_module_data(mpc->mpc_data, key, valp, sizep); in mac_find_policy_data()
72 mac_find_module_data(struct mac_module_data *mmd, const char *key, in mac_find_module_data() argument
80 if (strcmp(key, mmd->data[i].key) == 0) { in mac_find_module_data()
/xnu-11215/libkern/os/
H A Dhash.h40 const uint8_t *key = (const uint8_t *)data; in os_hash_jenkins_update() local
43 hash += key[i]; in os_hash_jenkins_update()
122 uintptr_t key = (uintptr_t)pointer >> 4; in os_hash_kernel_pointer() local
123 key *= 0x5052acdb; in os_hash_kernel_pointer()
124 return (uint32_t)key ^ __builtin_bswap32((uint32_t)key); in os_hash_kernel_pointer()
/xnu-11215/tools/lldbmacros/core/
H A Diterators.py144 addr = elt.xGetScalarByPath(key)
395 def _find(self, key): argument
429 def find_lt(self, key): argument
432 elt, _, _ = self._find(key)
435 def find_le(self, key): argument
438 elt, _, _ = self._find(key)
441 def find(self, key): argument
444 _, elt, _ = self._find(key)
447 def find_ge(self, key): argument
450 _, _, elt = self._find(key)
[all …]

12345678910