C# Class Tpm2Lib.AuthValue

Inheritance: TpmStructureBase
Afficher le fichier Open project: Microsoft/TSS.MSR Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
IsNull ( AuthValue auth ) : bool

Method Details

AuthValue() public méthode

Create an zero-length AuthValue
public AuthValue ( ) : System
Résultat System

AuthValue() public méthode

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

Equals() public méthode

public Equals ( Object obj ) : bool
obj Object
Résultat bool

FromRandom() public static méthode

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
Résultat AuthValue

FromString() public static méthode

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
Résultat AuthValue

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

operator() public static méthode

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