C# Класс Tpm2Lib.AuthValue

Наследование: TpmStructureBase
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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