Lines Matching refs:head
90 struct tee_fs_htree_image head; member
132 struct tee_fs_htree_image *head) in rpc_read_head() argument
135 head, sizeof(*head)); in rpc_read_head()
163 const struct tee_fs_htree_image *head) in rpc_write_head() argument
166 head, sizeof(*head)); in rpc_write_head()
334 res = rpc_read_head(ht, idx, &ht->head); in init_head_from_data()
344 struct tee_fs_htree_image head[2]; in init_head_from_data() local
347 res = rpc_read_head(ht, idx, head + idx); in init_head_from_data()
352 idx = get_idx_from_counter(head[0].counter, head[1].counter); in init_head_from_data()
360 ht->head = head[idx]; in init_head_from_data()
452 iv = ht->head.iv; in authenc_init()
453 aad_len += TEE_FS_HTREE_HASH_SIZE + sizeof(ht->head.counter); in authenc_init()
479 (void *)&ht->head.counter, in authenc_init()
480 sizeof(ht->head.counter)); in authenc_init()
485 res = crypto_authenc_update_aad(ctx, mode, ht->head.enc_fek, in authenc_init()
549 res = tee_fs_fek_crypt(ht->uuid, TEE_MODE_DECRYPT, ht->head.enc_fek, in verify_root()
558 return authenc_decrypt_final(ctx, ht->head.tag, ht->head.imeta, in verify_root()
636 sizeof(ht->fek), ht->head.enc_fek); in tee_fs_htree_open()
728 vers = !(targ->ht->head.counter & 1); in htree_sync_node_to_storage()
747 ht->head.counter++; in update_root()
753 return authenc_encrypt_final(ctx, ht->head.tag, &ht->imeta, in update_root()
754 sizeof(ht->imeta), &ht->head.imeta); in update_root()
783 res = rpc_write_head(ht, ht->head.counter & 1, &ht->head); in tee_fs_htree_sync_to_storage()