Vadim Bendebury | c4b77e0 | 2015-05-27 15:29:50 -0700 | [diff] [blame] | 1 | /* |
| 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 Bendebury | 3743ac1 | 2015-05-29 22:44:14 -0700 | [diff] [blame^] | 10 | void ObjectComputeName( |
| 11 | TPMT_PUBLIC *publicArea, // IN: public area of an object |
| 12 | TPM2B_NAME *name // OUT: name of the object |
| 13 | ); |
| 14 | TPM_RC ObjectContextLoad( |
| 15 | OBJECT *object, // IN: object structure from saved context |
| 16 | TPMI_DH_OBJECT *handle // OUT: object handle |
| 17 | ); |
| 18 | TPMI_RH_HIERARCHY ObjectDataGetHierarchy( |
| 19 | OBJECT *object // IN :object |
| 20 | ); |
Vadim Bendebury | 59727bd | 2015-05-28 14:58:08 -0700 | [diff] [blame] | 21 | void ObjectFlushHierarchy( |
| 22 | TPMI_RH_HIERARCHY hierarchy // IN: hierarchy to be flush |
| 23 | ); |
Vadim Bendebury | c4b77e0 | 2015-05-27 15:29:50 -0700 | [diff] [blame] | 24 | OBJECT* ObjectGet( |
| 25 | TPMI_DH_OBJECT handle // IN: handle of the object |
| 26 | ); |
Vadim Bendebury | 1ba1328 | 2015-05-29 22:39:54 -0700 | [diff] [blame] | 27 | UINT16 ObjectGetName( |
| 28 | TPMI_DH_OBJECT handle, // IN: handle of the object |
| 29 | NAME *name // OUT: name of the object |
| 30 | ); |
Vadim Bendebury | b86371b | 2015-05-27 18:16:19 -0700 | [diff] [blame] | 31 | void ObjectGetQualifiedName( |
| 32 | TPMI_DH_OBJECT handle, // IN: handle of the object |
| 33 | TPM2B_NAME *qualifiedName // OUT: qualified name of the object |
| 34 | ); |
Vadim Bendebury | 3743ac1 | 2015-05-29 22:44:14 -0700 | [diff] [blame^] | 35 | BOOL ObjectIsSequence( |
| 36 | OBJECT *object // IN: handle to be checked |
| 37 | ); |
Vadim Bendebury | c4b77e0 | 2015-05-27 15:29:50 -0700 | [diff] [blame] | 38 | |
| 39 | #endif // __TPM2_OBJECT_FP_H |