C# 클래스 Tpm2Lib.AuthValue

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

공개 메소드들

메소드 설명
AuthValue ( ) : System

Create an zero-length AuthValue

AuthValue ( byte auth ) : System

Create an AuthValue with the specified value. Note that trailing zeros are not removed.

Equals ( Object obj ) : bool
FromRandom ( int numBytes ) : AuthValue

Creates an auth value comprising the specified number of random bytes. Since the TPM removes trailing zeros, this routine makes sure that the last byte is non-zero.

FromString ( TpmAlgId hashAlg, string password ) : AuthValue

Create an AuthValue from the hash of the string. See TpmHash.FromString for the transformation used.

GetHashCode ( ) : int
operator ( ) : bool

Returns true if the two arguments either are both null references or contain equal authorization values.

비공개 메소드들

메소드 설명
IsNull ( AuthValue auth ) : bool

메소드 상세

AuthValue() 공개 메소드

Create an zero-length AuthValue
public AuthValue ( ) : System
리턴 System

AuthValue() 공개 메소드

Create an AuthValue with the specified value. Note that trailing zeros are not removed.
public AuthValue ( byte auth ) : System
auth byte
리턴 System

Equals() 공개 메소드

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

FromRandom() 공개 정적인 메소드

Creates an auth value comprising the specified number of random bytes. Since the TPM removes trailing zeros, this routine makes sure that the last byte is non-zero.
public static FromRandom ( int numBytes ) : AuthValue
numBytes int
리턴 AuthValue

FromString() 공개 정적인 메소드

Create an AuthValue from the hash of the string. See TpmHash.FromString for the transformation used.
public static FromString ( TpmAlgId hashAlg, string password ) : AuthValue
hashAlg TpmAlgId
password string
리턴 AuthValue

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

operator() 공개 정적인 메소드

Returns true if the two arguments either are both null references or contain equal authorization values.
public static operator ( ) : bool
리턴 bool