Property | Type | Description | |
---|---|---|---|
IsNull | bool | ||
IsSession | bool | ||
TpmHandle | System |
Method | Description | |
---|---|---|
Copy ( ) : |
||
Equals ( Object obj ) : bool | ||
GetFirst ( Ht rangeType ) : uint |
Get uint value representing the first handle in the range dedicated to the handles of the given type.
|
|
GetHashCode ( ) : int | ||
GetIndex ( ) : uint | ||
GetName ( ) : byte[] |
Get the TPM name of the associated entity. If the entity is a transient object, persistent object or NV index, the name must have been previously set explicitly by the caller (by means of SetName() or GetName(Tpm2 tpm) methods) or implicitly by the framework (when an object is created by means of CreatePrimary, CreateLoaded or Create command). Otherwise the name is a 4-byte TPM representation of the handle value.
|
|
GetName ( |
Returns the cached name of an entity referenced by this handle. If the name is not cached yet, retrieves it from the TPM (for a transient or persistent object, or NV index) or computes it (for session, PCR or permanent handles).
|
|
GetOffset ( ) : uint |
return the handle minus the handle-type (top byte) field
|
|
GetQualifiedName ( |
Calculate the qualified name of an object presumed loaded under the provided ancestral chain in a given hierarchy.
|
|
GetRangeLength ( Ht rangeType ) : uint |
Get the length (number of handles) in the range dedicated to the handles of the given type.
|
|
GetType ( ) : Ht | ||
GetUnionSelector ( ) : NameUnionTagValues | ||
HmacSession ( uint handleIndex ) : |
Create a HMAC handle given an index into the HMAC handle range
|
|
NV ( int slotIndex ) : |
Return a handle to the the specified NV index
|
|
NV ( uint slotIndex ) : |
Return a handle to the the specified NV index
|
|
Pcr ( int pcrIndex ) : |
||
Pcr ( uint pcrIndex ) : |
Return a handle for the PCR of specified index
|
|
Persistent ( uint handleIndex ) : |
Create a persistent handle given an index into the persistent handle range
|
|
SetAuth ( |
Associates authorization value with the handle. This association is done automatically by TPM commands producing the corresponding handle or changing object's auth value. However on many occasions the library does not have access to the auth value at any moment before it is required for authorizing access to the handle. Notably, when an externally created key is imported, pre-existing NV index or persistent object is used, SetAuth() is required to associate auth value with the handle.
|
|
SetName ( byte name ) : |
Associates the name with the handle. Only needed for transient, persistent and NV handles. Normally this association is done automatically either by TPM commands producing the corresponding handle, or when the handle is passed as a parameter to a command requiring HMAC authorization (the name is implicitly requested from the TPM by means of TPM2_ReadPublic or TPM2_NV_ReadPublic commands). Thus this method has to be used only either when Tpm2 object is in the strict mode (i.e. it is prohibited to issue commands not explicitly requested by the user), or for the sake of performance optimization (if the client code has the name pre-computed).
|
|
TpmHandle ( ) : System | ||
TpmHandle ( Ht handleType, uint offset ) : System |
Create a handle of the given type with the given numerical value.
|
|
TpmHandle ( |
||
TpmHandle ( TpmRh reservedHandle ) : System |
Create a reserved TPM handle.
|
|
TpmHandle ( uint the_handle ) : System | ||
operator ( ) : |
||
operator ( ) : bool |
Returns true if the two arguments either are both null references or encapsulate the same TPM handle.
|
Method | Description | |
---|---|---|
IsNull ( |
||
IsSession ( ) : bool | ||
TpmHandle ( |
public static GetFirst ( Ht rangeType ) : uint | ||
rangeType | Ht | |
return | uint |
public static GetQualifiedName ( |
||
hierarchyHandle | ||
children | ||
return | byte[] |
public static GetRangeLength ( Ht rangeType ) : uint | ||
rangeType | Ht | |
return | uint |
public GetUnionSelector ( ) : NameUnionTagValues | ||
return | NameUnionTagValues |
public static HmacSession ( uint handleIndex ) : |
||
handleIndex | uint | |
return |
public static NV ( int slotIndex ) : |
||
slotIndex | int | |
return |
public static NV ( uint slotIndex ) : |
||
slotIndex | uint | |
return |
public static Pcr ( int pcrIndex ) : |
||
pcrIndex | int | |
return |
public static Pcr ( uint pcrIndex ) : |
||
pcrIndex | uint | |
return |
public static Persistent ( uint handleIndex ) : |
||
handleIndex | uint | |
return |
public SetAuth ( |
||
auth | ||
return |
public TpmHandle ( Ht handleType, uint offset ) : System | ||
handleType | Ht | |
offset | uint | |
return | System |
public TpmHandle ( |
||
the_TpmHandle | ||
return | System |
public TpmHandle ( TpmRh reservedHandle ) : System | ||
reservedHandle | TpmRh | |
return | System |
public TpmHandle ( uint the_handle ) : System | ||
the_handle | uint | Handle value |
return | System |
public static operator ( ) : |
||
return |