blob: 2d20c9a8edb0a61a00fa1436e11a5f94f34d8c8e [file] [log] [blame]
Vadim Bendeburyc4b77e02015-05-27 15:29:50 -07001/*
2 * Copyright 2015 The Chromium OS Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
6
7#ifndef __TPM2_OBJECT_FP_H
8#define __TPM2_OBJECT_FP_H
9
Vadim Bendebury3743ac12015-05-29 22:44:14 -070010void ObjectComputeName(
11 TPMT_PUBLIC *publicArea, // IN: public area of an object
12 TPM2B_NAME *name // OUT: name of the object
13);
14TPM_RC ObjectContextLoad(
15 OBJECT *object, // IN: object structure from saved context
16 TPMI_DH_OBJECT *handle // OUT: object handle
17 );
18TPMI_RH_HIERARCHY ObjectDataGetHierarchy(
19 OBJECT *object // IN :object
20);
Vadim Bendebury59727bd2015-05-28 14:58:08 -070021void ObjectFlushHierarchy(
22 TPMI_RH_HIERARCHY hierarchy // IN: hierarchy to be flush
23);
Vadim Bendeburyc4b77e02015-05-27 15:29:50 -070024OBJECT* ObjectGet(
25 TPMI_DH_OBJECT handle // IN: handle of the object
26);
Vadim Bendebury1ba13282015-05-29 22:39:54 -070027UINT16 ObjectGetName(
28 TPMI_DH_OBJECT handle, // IN: handle of the object
29 NAME *name // OUT: name of the object
30);
Vadim Bendeburyb86371b2015-05-27 18:16:19 -070031void ObjectGetQualifiedName(
32 TPMI_DH_OBJECT handle, // IN: handle of the object
33 TPM2B_NAME *qualifiedName // OUT: qualified name of the object
34);
Vadim Bendebury3743ac12015-05-29 22:44:14 -070035BOOL ObjectIsSequence(
36 OBJECT *object // IN: handle to be checked
37 );
Vadim Bendeburyc4b77e02015-05-27 15:29:50 -070038
39#endif // __TPM2_OBJECT_FP_H