Lines Matching refs:entry

100     struct opaque_handle_node* entry;  in hwkey_ctx_close()  local
102 list_for_every_entry_safe(&opaque_handles, entry, temp, in hwkey_ctx_close()
104 if (entry->owner == ctx) { in hwkey_ctx_close()
105 delete_opaque_handle(entry); in hwkey_ctx_close()
140 struct opaque_handle_node* entry; in find_opaque_handle_for_slot() local
141 list_for_every_entry(&opaque_handles, entry, struct opaque_handle_node, in find_opaque_handle_for_slot()
143 if (entry->key_slot == slot) { in find_opaque_handle_for_slot()
144 return entry; in find_opaque_handle_for_slot()
157 struct opaque_handle_node* entry = find_opaque_handle_for_slot(slot); in insert_handle_node() local
159 if (!entry) { in insert_handle_node()
160 entry = calloc(1, sizeof(struct opaque_handle_node)); in insert_handle_node()
161 if (!entry) { in insert_handle_node()
166 entry->owner = ctx; in insert_handle_node()
167 entry->key_slot = slot; in insert_handle_node()
168 list_add_tail(&opaque_handles, &entry->node); in insert_handle_node()
688 struct opaque_handle_node* entry = find_opaque_handle_for_slot(slot); in get_key_handle() local
690 assert(entry); in get_key_handle()
692 if (!is_empty_token(entry->token)) { in get_key_handle()
709 delete_opaque_handle(entry); in get_key_handle()
718 entry->token[token_offset] = random_buf[i]; in get_key_handle()
728 assert(entry->token[HWKEY_OPAQUE_HANDLE_SIZE - 1] == 0); in get_key_handle()
730 memcpy(kbuf, entry->token, HWKEY_OPAQUE_HANDLE_SIZE); in get_key_handle()
741 struct opaque_handle_node* entry; in get_opaque_key() local
742 list_for_every_entry(&opaque_handles, entry, struct opaque_handle_node, in get_opaque_key()
745 assert(!is_empty_token(entry->token)); in get_opaque_key()
747 if (!is_allowed_to_read_opaque_key(uuid, entry->key_slot)) in get_opaque_key()
756 if (CRYPTO_memcmp(entry->token, access_token, in get_opaque_key()
759 entry->key_slot->priv; in get_opaque_key()