C# 클래스 Tpm2Lib.TpmHandle

상속: TpmStructureBase, INameUnion
파일 보기 프로젝트 열기: Microsoft/TSS.MSR 1 사용 예제들

Private Properties

프로퍼티 타입 설명
IsNull bool
IsSession bool
TpmHandle System

공개 메소드들

메소드 설명
Copy ( ) : TpmHandle
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 ( Tpm2 tpm ) : byte[]

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 ( TpmHandle hierarchyHandle, TpmPublic children ) : byte[]

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 ) : TpmHandle

Create a HMAC handle given an index into the HMAC handle range

NV ( int slotIndex ) : TpmHandle

Return a handle to the the specified NV index

NV ( uint slotIndex ) : TpmHandle

Return a handle to the the specified NV index

Pcr ( int pcrIndex ) : TpmHandle
Pcr ( uint pcrIndex ) : TpmHandle

Return a handle for the PCR of specified index

Persistent ( uint handleIndex ) : TpmHandle

Create a persistent handle given an index into the persistent handle range

SetAuth ( AuthValue auth ) : TpmHandle

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 ) : TpmHandle

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 the_TpmHandle ) : System
TpmHandle ( TpmRh reservedHandle ) : System

Create a reserved TPM handle.

TpmHandle ( uint the_handle ) : System
operator ( ) : ParametrizedHandle
operator ( ) : bool

Returns true if the two arguments either are both null references or encapsulate the same TPM handle.

비공개 메소드들

메소드 설명
IsNull ( TpmHandle h ) : bool
IsSession ( ) : bool
TpmHandle ( TpmHandle src, Bind bind ) : System

메소드 상세

Copy() 공개 메소드

public Copy ( ) : TpmHandle
리턴 TpmHandle

Equals() 공개 메소드

public Equals ( Object obj ) : bool
obj Object
리턴 bool

GetFirst() 공개 정적인 메소드

Get uint value representing the first handle in the range dedicated to the handles of the given type.
public static GetFirst ( Ht rangeType ) : uint
rangeType Ht
리턴 uint

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

GetIndex() 공개 메소드

public GetIndex ( ) : uint
리턴 uint

GetName() 공개 메소드

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.
public GetName ( ) : byte[]
리턴 byte[]

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).
public GetName ( Tpm2 tpm ) : byte[]
tpm Tpm2
리턴 byte[]

GetOffset() 공개 메소드

return the handle minus the handle-type (top byte) field
public GetOffset ( ) : uint
리턴 uint

GetQualifiedName() 공개 정적인 메소드

Calculate the qualified name of an object presumed loaded under the provided ancestral chain in a given hierarchy.
public static GetQualifiedName ( TpmHandle hierarchyHandle, TpmPublic children ) : byte[]
hierarchyHandle TpmHandle
children TpmPublic
리턴 byte[]

GetRangeLength() 공개 정적인 메소드

Get the length (number of handles) in the range dedicated to the handles of the given type.
public static GetRangeLength ( Ht rangeType ) : uint
rangeType Ht
리턴 uint

GetType() 공개 메소드

public GetType ( ) : Ht
리턴 Ht

GetUnionSelector() 공개 메소드

public GetUnionSelector ( ) : NameUnionTagValues
리턴 NameUnionTagValues

HmacSession() 공개 정적인 메소드

Create a HMAC handle given an index into the HMAC handle range
public static HmacSession ( uint handleIndex ) : TpmHandle
handleIndex uint
리턴 TpmHandle

NV() 공개 정적인 메소드

Return a handle to the the specified NV index
public static NV ( int slotIndex ) : TpmHandle
slotIndex int
리턴 TpmHandle

NV() 공개 정적인 메소드

Return a handle to the the specified NV index
public static NV ( uint slotIndex ) : TpmHandle
slotIndex uint
리턴 TpmHandle

Pcr() 공개 정적인 메소드

public static Pcr ( int pcrIndex ) : TpmHandle
pcrIndex int
리턴 TpmHandle

Pcr() 공개 정적인 메소드

Return a handle for the PCR of specified index
public static Pcr ( uint pcrIndex ) : TpmHandle
pcrIndex uint
리턴 TpmHandle

Persistent() 공개 정적인 메소드

Create a persistent handle given an index into the persistent handle range
public static Persistent ( uint handleIndex ) : TpmHandle
handleIndex uint
리턴 TpmHandle

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.
public SetAuth ( AuthValue auth ) : TpmHandle
auth AuthValue
리턴 TpmHandle

SetName() 공개 메소드

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).
public SetName ( byte name ) : TpmHandle
name byte
리턴 TpmHandle

TpmHandle() 공개 메소드

public TpmHandle ( ) : System
리턴 System

TpmHandle() 공개 메소드

Create a handle of the given type with the given numerical value.
public TpmHandle ( Ht handleType, uint offset ) : System
handleType Ht
offset uint
리턴 System

TpmHandle() 공개 메소드

public TpmHandle ( TpmHandle the_TpmHandle ) : System
the_TpmHandle TpmHandle
리턴 System

TpmHandle() 공개 메소드

Create a reserved TPM handle.
public TpmHandle ( TpmRh reservedHandle ) : System
reservedHandle TpmRh
리턴 System

TpmHandle() 공개 메소드

public TpmHandle ( uint the_handle ) : System
the_handle uint Handle value
리턴 System

operator() 공개 정적인 메소드

public static operator ( ) : ParametrizedHandle
리턴 ParametrizedHandle

operator() 공개 정적인 메소드

Returns true if the two arguments either are both null references or encapsulate the same TPM handle.
public static operator ( ) : bool
리턴 bool