프로퍼티 | 타입 | 설명 | |
---|---|---|---|
ISignatureUnion | TpmAlgId | ||
ToStringInternal | void | ||
TpmHash | System |
메소드 | 설명 | |
---|---|---|
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).
|
메소드 | 설명 | |
---|---|---|
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 | |
리턴 |
public static BlockSize ( TpmAlgId hashAlg ) : ushort | ||
hashAlg | TpmAlgId | |
리턴 | ushort |
public static DigestSize ( TpmAlgId hashAlg ) : ushort | ||
hashAlg | TpmAlgId | |
리턴 | ushort |
public static FromData ( TpmAlgId hashAlg, byte dataToHash ) : |
||
hashAlg | TpmAlgId | |
dataToHash | byte | |
리턴 |
public static FromObject ( TpmAlgId hashAlg, Object data ) : |
||
hashAlg | TpmAlgId | |
data | Object | |
리턴 |
public static FromRandom ( TpmAlgId hashAlg ) : |
||
hashAlg | TpmAlgId | |
리턴 |
public static FromString ( TpmAlgId hashAlg, string password ) : |
||
hashAlg | TpmAlgId | |
password | string | |
리턴 |
public TpmHash ( TpmAlgId hashAlg, byte digest ) : System | ||
hashAlg | TpmAlgId | Hash algorithm used to compute digest |
digest | byte | Byte array representing digest |
리턴 | System |