Property | Type | Description | |
---|---|---|---|
ISignatureUnion | TpmAlgId | ||
ToStringInternal | void | ||
TpmHash | System |
Method | Description | |
---|---|---|
AllOnesHash ( TpmAlgId alg ) : |
Return a TpmHash of the specified algorithm with value set to 0x01010101... Note that this is not a 'real' hash value, but is the initialization value of some resettable PCR
|
|
BlockSize ( TpmAlgId hashAlg ) : ushort |
Return the hash function block size in bytes
|
|
DigestSize ( TpmAlgId hashAlg ) : ushort |
Return the length of the output of the hash function in bytes
|
|
Equals ( Object obj ) : bool | ||
Event ( byte dataToExtend ) : |
Replace the hash value with the hash of the concatenation of the current hash value and DataToExtend
|
|
Extend ( Object objectToExtend ) : |
Replace the hash value with the hash of the concatenation of the current value and the TPM representation of objectToExtend
|
|
FromData ( TpmAlgId hashAlg, byte dataToHash ) : |
Return a new TpmHash set to the hash of the supplied data
|
|
FromObject ( TpmAlgId hashAlg, Object data ) : |
Make a new TpmHash from the hash of the TPM representation of data
|
|
FromRandom ( TpmAlgId hashAlg ) : |
Return a new TpmHash that is the hash of random data
|
|
FromString ( TpmAlgId hashAlg, string password ) : |
Return a TpmHash that is the hash of Encoding.Unicode.GetBytes(password)
|
|
GetHashCode ( ) : int | ||
GetUnionSelector ( ) : TpmAlgId | ||
TpmHash ( ) : System |
Create a new TpmHash with no associated hash algorithm (generally this should only be used prior to object de-serialization)
|
|
TpmHash ( TpmAlgId hashAlgId ) : System |
Create an all-zeroes TpmHash with the named hash algorithm
|
|
TpmHash ( TpmAlgId hashAlg, byte digest ) : System |
Create a TpmHash from the provided digest and hash algorithm. The number of bytes in the digest must match the hash size.
|
|
ZeroHash ( TpmAlgId alg ) : |
Return a TpmHash of specified algorithm set to all zeroes
|
|
operator ( ) : bool |
Returns true if the two hashes are equal, i.e. if both hash algorithms and digests are the same. When this operator is used to compare a hash object with a byte buffer representing digest, the latter is converted to a hash object with its hash algorithm set to null, which excludes the algorithms from comparison).
|
Method | Description | |
---|---|---|
ISignatureUnion ( ) : TpmAlgId | ||
ToStringInternal ( |
||
TpmHash ( byte digest ) : System |
Create a TpmHash from the provided digest. Intended to be used by the conversion from byte[] operator to construct temporary object hash objects for the purposes of comparison.
|
public static AllOnesHash ( TpmAlgId alg ) : |
||
alg | TpmAlgId | |
return |
public static BlockSize ( TpmAlgId hashAlg ) : ushort | ||
hashAlg | TpmAlgId | |
return | ushort |
public static DigestSize ( TpmAlgId hashAlg ) : ushort | ||
hashAlg | TpmAlgId | |
return | ushort |
public Extend ( Object objectToExtend ) : |
||
objectToExtend | Object | |
return |
public static FromData ( TpmAlgId hashAlg, byte dataToHash ) : |
||
hashAlg | TpmAlgId | |
dataToHash | byte | |
return |
public static FromObject ( TpmAlgId hashAlg, Object data ) : |
||
hashAlg | TpmAlgId | |
data | Object | |
return |
public static FromRandom ( TpmAlgId hashAlg ) : |
||
hashAlg | TpmAlgId | |
return |
public static FromString ( TpmAlgId hashAlg, string password ) : |
||
hashAlg | TpmAlgId | |
password | string | |
return |
public TpmHash ( TpmAlgId hashAlgId ) : System | ||
hashAlgId | TpmAlgId | |
return | System |
public TpmHash ( TpmAlgId hashAlg, byte digest ) : System | ||
hashAlg | TpmAlgId | Hash algorithm used to compute digest |
digest | byte | Byte array representing digest |
return | System |
public static ZeroHash ( TpmAlgId alg ) : |
||
alg | TpmAlgId | |
return |