/darwin-on-arm/xnu/libsyscall/mach/servers/ |
H A D | key_defs.h | 59 * An encrytion key. 72 #define KEY_IS_NULL(key) \ 73 (((key).key_longs[0] == 0) && ((key).key_longs[1] == 0) \ 74 && ((key).key_longs[2] == 0) && ((key).key_longs[3] == 0)) 80 #define NTOH_KEY(key) { \ 81 (key).key_longs[0] = ntohl((key).key_longs[0]); \ 82 (key) [all...] |
/darwin-on-arm/xnu/bsd/netkey/ |
H A D | key_var.h | 90 #define _KEYLEN(key) ((u_int)((key)->sadb_key_bits >> 3)) 91 #define _KEYBITS(key) ((u_int)((key)->sadb_key_bits)) 92 #define _KEYBUF(key) ((caddr_t)((caddr_t)(key) + sizeof(struct sadb_key)))
|
/darwin-on-arm/xnu/security/ |
H A D | mac_data.h | 62 data is made of up key/value pairs where the key is always a 64 may be a list of values (actually a similar set of key/value pairs, 66 a set of dictionaries, which in turn are made up of a list of key/value 74 <key>OSModuleData</key> 76 <key>foo</key> 78 <key>Beers</key> 100 char *key; member in struct:mac_module_data_element [all...] |
H A D | mac_data.c | 59 mac_find_policy_data(const mac_policy_handle_t handle, const char *key, argument 66 error = mac_find_module_data(mpc->mpc_data, key, valp, sizep); 71 mac_find_module_data(struct mac_module_data *mmd, const char *key, argument 79 if (strcmp(key, mmd->data[i].key) == 0) {
|
/darwin-on-arm/xnu/bsd/crypto/blowfish/ |
H A D | bf_skey.c | 70 BF_set_key(key, len, data) 71 BF_KEY *key; 79 memcpy((char *)key, (const char *)&bf_init, sizeof(BF_KEY)); 80 p = key->P; 109 BF_encrypt(in, key); 114 p = key->S; 116 BF_encrypt(in, key);
|
H A D | bf_enc.c | 78 BF_encrypt(BF_LONG *data, BF_KEY *key) argument 82 p = key->P; 83 s= &key->S[0]; 118 BF_decrypt(BF_LONG *data, BF_KEY *key) argument 122 p = key->P; 123 s= &key->S[0];
|
/darwin-on-arm/xnu/bsd/hfs/hfscommon/Catalog/ |
H A D | CatalogUtilities.c | 46 // CNode and returns the key and data records. 76 bcopy(keyPtr, &searchIterator->key, sizeof(CatalogKey)); 84 BlockMoveData(&searchIterator->key, keyPtr, sizeof(CatalogKey)); 158 BuildCatalogKey(folderID, name, (volume->vcbSigWord == kHFSPlusSigWord), (CatalogKey *)&searchIterator->key); 163 BlockMoveData(&searchIterator->key, keyPtr, CalcKeySize(btcb, &searchIterator->key)); 175 * Function: Constructs a catalog key record (ckr) given the parent 182 BuildCatalogKey(HFSCatalogNodeID parentID, const CatalogName *cName, Boolean isHFSPlus, CatalogKey *key) argument 186 key->hfsPlus.keyLength = kHFSPlusCatalogKeyMinimumLength; // initial key lengt 210 BuildCatalogKeyUTF8(ExtendedVCB *volume, HFSCatalogNodeID parentID, const unsigned char *name, u_int32_t nameLength, CatalogKey *key, u_int32_t *textEncoding) argument [all...] |
/darwin-on-arm/xnu/libkern/crypto/ |
H A D | corecrypto_aes.c | 35 aes_rval aes_encrypt_key(const unsigned char *key, int key_len, aes_encrypt_ctx cx[1]) argument 43 cccbc_init(cbc, cx[0].ctx, key_len, key); 66 aes_rval aes_decrypt_key(const unsigned char *key, int key_len, aes_decrypt_ctx cx[1]) argument 74 cccbc_init(cbc, cx[0].ctx, key_len, key); 97 aes_rval aes_encrypt_key128(const unsigned char *key, aes_encrypt_ctx cx[1]) argument 99 return aes_encrypt_key(key, 16, cx); 102 aes_rval aes_decrypt_key128(const unsigned char *key, aes_decrypt_ctx cx[1]) argument 104 return aes_decrypt_key(key, 16, cx); 108 aes_rval aes_encrypt_key256(const unsigned char *key, aes_encrypt_ctx cx[1]) argument 110 return aes_encrypt_key(key, 3 113 aes_decrypt_key256(const unsigned char *key, aes_decrypt_ctx cx[1]) argument [all...] |
H A D | corecrypto_des.c | 37 int des_ecb_key_sched(des_cblock *key, des_ecb_key_schedule *ks) argument 46 enc->init(enc, ks->enc, CCDES_KEY_SIZE, key); 47 dec->init(dec, ks->dec, CCDES_KEY_SIZE, key); 65 int des3_ecb_key_sched(des_cblock *key, des3_ecb_key_schedule *ks) argument 74 enc->init(enc, ks->enc, CCDES_KEY_SIZE*3, key); 75 dec->init(dec, ks->dec, CCDES_KEY_SIZE*3, key); 92 int des_cbc_key_sched(des_cblock *key, des_cbc_key_schedule *ks) argument 102 cccbc_init(enc, ks->enc, CCDES_KEY_SIZE, key); 103 cccbc_init(dec, ks->dec, CCDES_KEY_SIZE, key); 134 int des3_cbc_key_sched(des_cblock *key, des3_cbc_key_schedul argument 202 des_fixup_key_parity(des_cblock *key) argument 207 des_is_weak_key(des_cblock *key) argument [all...] |
/darwin-on-arm/xnu/libkern/kxld/ |
H A D | kxld_dict.c | 61 const void *key; member in struct:dict_entry 70 static kern_return_t get_locate_index(const KXLDDict *dict, const void *key, 72 static kern_return_t get_insert_index(const KXLDDict *dict, const void *key, 165 kxld_dict_find(const KXLDDict *dict, const void *key) argument 172 check(key); 174 rval = get_locate_index(dict, key, &idx); 191 get_locate_index(const KXLDDict *dict, const void *key, u_int *_idx) argument 197 base = idx = dict->hash(dict, key); 199 /* Iterate until we match the key, wrap, or hit an empty bucket */ 201 while (!dict->cmp(entry->key, ke 222 kxld_dict_insert(KXLDDict *dict, const void *key, void *value) argument 314 get_insert_index(const KXLDDict *dict, const void *key, u_int *r_index) argument 342 kxld_dict_remove(KXLDDict *dict, const void *key, void **value) argument 373 kxld_dict_iterator_get_next(KXLDDictIterator *iter, const void **key, void **value) argument 413 const char *key = _key; local 431 uint32_t key = *(const uint32_t *) _key; local 441 kxld_addr_t key = *(const kxld_addr_t *) _key; local [all...] |
H A D | kxld_dict.h | 45 * NOTE: NULL is NOT a valid key or value! 57 typedef u_int (*kxld_dict_hash)(const KXLDDict *dict, const void *key); 107 /* Finds a key-value pair and assigns the value to the 'value' pointer, or NULL 110 void * kxld_dict_find(const KXLDDict *dict, const void *key) 117 /* Inserts a key-value pair, and will overwrite the value for a key if that key 120 kern_return_t kxld_dict_insert(KXLDDict *dict, const void *key, void *value) 123 /* Removes a key-value pair and assigns the value to the 'value' pointer. 127 void kxld_dict_remove(KXLDDict *dict, const void *key, voi [all...] |
/darwin-on-arm/xnu/iokit/IOKit/ |
H A D | AppleKeyStoreInterface.h | 49 aks_raw_key_t key; member in struct:aks_volume_key_t
|
/darwin-on-arm/xnu/libkern/libkern/crypto/ |
H A D | aes.h | 72 aes_rval aes_encrypt_key(const unsigned char *key, int key_len, aes_encrypt_ctx cx[1]); 73 aes_rval aes_encrypt_key128(const unsigned char *key, aes_encrypt_ctx cx[1]); 74 aes_rval aes_encrypt_key256(const unsigned char *key, aes_encrypt_ctx cx[1]); 84 aes_rval aes_decrypt_key(const unsigned char *key, int key_len, aes_decrypt_ctx cx[1]); 85 aes_rval aes_decrypt_key128(const unsigned char *key, aes_decrypt_ctx cx[1]); 86 aes_rval aes_decrypt_key256(const unsigned char *key, aes_decrypt_ctx cx[1]);
|
H A D | des.h | 81 int des_ecb_key_sched(des_cblock *key, des_ecb_key_schedule *ks); 85 int des3_ecb_key_sched(des_cblock *key, des3_ecb_key_schedule *ks); 89 int des_cbc_key_sched(des_cblock *key, des_cbc_key_schedule *ks); 94 int des3_cbc_key_sched(des_cblock *key, des3_cbc_key_schedule *ks); 101 void des_fixup_key_parity(des_cblock *key); 102 int des_is_weak_key(des_cblock *key);
|
H A D | register_crypto.h | 54 unsigned long key_len, const void *key); 61 const void *key, unsigned long data_len, const void *data, 71 /* des weak key testing */ 72 typedef int (*ccdes_key_is_weak_fn_t)(void *key, unsigned long length); 73 typedef void (*ccdes_key_set_odd_parity_fn_t)(void *key, unsigned long length); 128 /* DES key helper functions */
|
/darwin-on-arm/xnu/EXTERNAL_HEADERS/corecrypto/ |
H A D | ccdes.h | 59 int ccdes_key_is_weak( void *key, unsigned long length); 60 void ccdes_key_set_odd_parity(void *key, unsigned long length); 64 void *key, unsigned long keylen, void *ivec);
|
H A D | ccrc4.h | 17 /* Declare a gcm key named _name_. Pass the size field of a struct ccmode_gcm 24 void (*init)(ccrc4_ctx *ctx, unsigned long key_len, const void *key); 35 const void *key; member in struct:ccrc4_vector
|
H A D | ccmode_impl.h | 24 unsigned long key_len, const void *key); 37 unsigned long key_len, const void *key); 51 unsigned long key_len, const void *key, 66 unsigned long key_len, const void *key, 81 unsigned long key_len, const void *key, 96 unsigned long key_len, const void *key, 113 /* Create a xts key from a xts mode object. The tweak_len here 116 key must point to at least 'size' cc_units of free storage. 119 unsigned long key_len, const void *key, 142 unsigned long key_len, const void *key); [all...] |
H A D | ccmode.h | 18 /* Declare a ecb key named _name_. Pass the size field of a struct ccmode_ecb 34 unsigned long key_len, const void *key) 36 mode->init(mode, ctx, key_len, key); 47 unsigned long key_len, const void *key, unsigned long in_len, 52 mode->init(mode, ctx, key_len, key); 65 /* Declare a cbc key named _name_. Pass the size field of a struct ccmode_cbc 94 unsigned long key_len, const void *key) 96 mode->init(mode, ctx, key_len, key); 114 unsigned long key_len, const void *key, const void *iv, unsigned long nblocks, 119 mode->init(mode, ctx, key_len, key); 33 ccecb_init(const struct ccmode_ecb *mode, ccecb_ctx *ctx, unsigned long key_len, const void *key) argument 46 ccecb_one_shot(const struct ccmode_ecb *mode, unsigned long key_len, const void *key, unsigned long in_len, const void *in, void *out) argument 93 cccbc_init(const struct ccmode_cbc *mode, cccbc_ctx *ctx, unsigned long key_len, const void *key) argument 113 cccbc_one_shot(const struct ccmode_cbc *mode, unsigned long key_len, const void *key, const void *iv, unsigned long nblocks, const void *in, void *out) argument 145 cccfb_init(const struct ccmode_cfb *mode, cccfb_ctx *ctx, unsigned long key_len, const void *key, const void *iv) argument 157 cccfb_one_shot(const struct ccmode_cfb *mode, unsigned long key_len, const void *key, const void *iv, unsigned long in_len, const void *in, void *out) argument 184 cccfb8_init(const struct ccmode_cfb8 *mode, cccfb8_ctx *ctx, unsigned long key_len, const void *key, const void *iv) argument 196 cccfb8_one_shot(const struct ccmode_cfb8 *mode, unsigned long key_len, const void *key, const void *iv, unsigned long in_len, const void *in, void *out) argument 227 ccctr_init(const struct ccmode_ctr *mode, ccctr_ctx *ctx, unsigned long key_len, const void *key, const void *iv) argument 240 ccctr_one_shot(const struct ccmode_ctr *mode, unsigned long key_len, const void *key, const void *iv, unsigned long in_len, const void *in, void *out) argument 269 ccofb_init(const struct ccmode_ofb *mode, ccofb_ctx *ctx, unsigned long key_len, const void *key, const void *iv) argument 281 ccofb_one_shot(const struct ccmode_ofb *mode, unsigned long key_len, const void *key, const void *iv, unsigned long in_len, const void *in, void *out) argument 328 ccxts_init(const struct ccmode_xts *mode, ccxts_ctx *ctx, unsigned long key_len, const void *key, const void *tweak_key) argument 345 ccxts_one_shot(const struct ccmode_xts *mode, unsigned long key_len, const void *key, const void *tweak_key, const void* iv, unsigned long in_len, const void *in, void *out) argument 376 ccgcm_init(const struct ccmode_gcm *mode, ccgcm_ctx *ctx, unsigned long key_len, const void *key) argument 411 ccgcm_one_shot(const struct ccmode_gcm *mode, unsigned long key_len, const void *key, unsigned long iv_len, const void *iv, unsigned long nbytes, const void *in, void *out, unsigned long adata_len, const void* adata, size_t tag_len, void *tag) argument 445 ccomac_init(const struct ccmode_omac *mode, ccomac_ctx *ctx, unsigned long tweak_len, unsigned long key_len, const void *key) argument 457 ccomac_one_shot(const struct ccmode_omac *mode, unsigned long tweak_len, unsigned long key_len, const void *key, const void *tweak, unsigned long in_len, const void *in, void *out) argument [all...] |
/darwin-on-arm/xnu/bsd/crypto/rc4/ |
H A D | rc4.h | 49 extern void rc4_init(struct rc4_state *state, const u_char *key, int keylen);
|
/darwin-on-arm/xnu/bsd/nfs/ |
H A D | nfs_gss_crypto.c | 159 * Given 21 bytes of random bits, make a triple DES key. 163 des3_make_key(const unsigned char randombits[21], des_cblock key[3]) argument 168 memcpy(&key[i], &randombits[i*7], 7); 169 key[i][7] = (((key[i][0] & 1) << 1) | 170 ((key[i][1] & 1) << 2) | 171 ((key[i][2] & 1) << 3) | 172 ((key[i][3] & 1) << 4) | 173 ((key[i][4] & 1) << 5) | 174 ((key[ 237 HMAC_SHA1_DES3KD_Init(HMAC_SHA1_DES3KD_CTX *ctx, des_cblock key[3], int derive) argument [all...] |
/darwin-on-arm/xnu/bsd/hfs/ |
H A D | hfs_hotfiles.c | 523 HotFileKey * key; local 592 key = (HotFileKey*) &iterator->key; 593 key->keyLength = HFC_KEYLENGTH; 665 key->keyLength = HFC_KEYLENGTH; 666 key->temperature = HFC_MINIMUM_TEMPERATURE; 667 key->fileID = cnid; 668 key->forkType = 0; 672 printf("hfs_recording_init: BTInsertRecord failed %d (fileid %d)\n", error, key->fileID); 678 key 943 update_callback(const HotFileKey *key, u_int32_t *data, u_int32_t *state) argument 961 HotFileKey * key; local 1077 HotFileKey * key; local 1283 HotFileKey * key; local 1486 HotFileKey * key; local [all...] |
/darwin-on-arm/xnu/libkern/kxld/tests/ |
H A D | kxld_dict_test.c | 39 char * key; member in struct:__anon796 65 kxld_log(0, 0, "%d: Find nonexistant key", ++test_num); 77 kxld_log(0, 0, "%d: Insert same key with different values", ++test_num); 85 kxld_log(0, 0, "%d: Clear and find of nonexistant key", ++test_num); 133 stress_test[i].key = tmp_key; 140 char * key = stress_test[i].key; local 143 tmp_value = kxld_dict_find(&dict, key); 146 kxld_free(stress_test[i].key, sizeof(char) * (KEYLEN + 1));
|
/darwin-on-arm/xnu/bsd/hfs/hfscommon/Misc/ |
H A D | BTreeWrapper.c | 36 static OSErr CheckBTreeKey(const BTreeKey *key, const BTreeControlBlock *btcb); 40 OSErr ReplaceBTreeRecord(FileReference refNum, const void* key, u_int32_t hint, void *newData, u_int16_t dataSize, u_int32_t *newHint) argument 63 result = CheckBTreeKey((const BTreeKey *) key, btcb); 68 BlockMoveData(key, &iterator->key, CalcKeySize(btcb, (const BTreeKey *) key)); //�� should we range check against maxkeylen? 85 static OSErr CheckBTreeKey(const BTreeKey *key, const BTreeControlBlock *btcb) argument 90 keyLen = key->length16; 92 keyLen = key->length8; 97 DebugStr("CheckBTreeKey: bad key lengt [all...] |
H A D | HybridAllocator.c | 66 * Find a extent_node_t with the specified key (search by offset). If it does not exist, return NULL 67 * static extent_node_t* extent_tree_offset_search(extent_tree_offset_t * tree, extent_node_t * key) 69 * Find an extent node_t withthe specified key (offset). If it does not exist, 71 * static extent_node_t* extent_tree_offset_nsearch(extent_tree_offset_t * tree, extent_node_t * key) 73 * Find an extent_node_t with the specified key (offset). If it does not exist, 75 * static extent_node_t* extent_tree_offset_psearch(extent_tree_offset_t * tree, extent_node_t * key) 188 * Search the extent tree by offset. The "key" argument is only used to extract 193 extent_tree_off_search(extent_tree_offset_t *tree, extent_node_t *key) { argument 194 return extent_tree_offset_search(tree, key); 199 * if the specified one does not exist. The "key" argumen 204 extent_tree_off_search_next(extent_tree_offset_t *offset_tree, extent_node_t *key) argument 217 extent_tree_off_search_nextWithSize(extent_tree_offset_t *offset_tree, extent_node_t *key) argument 244 extent_tree_off_search_prev(extent_tree_offset_t *offset_tree, extent_node_t *key) argument [all...] |