Class HashInfo
Information of a data hash.
public class HashInfo
- Inheritance
-
HashInfo
- Inherited Members
Constructors
HashInfo(string, byte[])
Initializes a new instance of the HashInfo class.
public HashInfo(string algoName, byte[] hash)
Parameters
HashInfo(string, byte[], bool)
Initializes a new instance of the HashInfo class.
public HashInfo(string algoName, byte[] hash, bool isValid)
Parameters
algoName
stringThe name of the hashing algorithm.
hash
byte[]The hash data.
isValid
boolValue indicating whether this signature is valid.
Properties
AlgorithmName
Gets the hashing algorithm name.
public string AlgorithmName { get; }
Property Value
Hash
Gets the hash.
public byte[] Hash { get; }
Property Value
- byte[]
IsNull
Gets a value indicating whether the hash is null.
public bool IsNull { get; }
Property Value
Status
Gets or sets the status of the hash.
public HashStatus Status { get; set; }
Property Value
Methods
ChangeHash(byte[])
Change the hash, like after computing it again.
public void ChangeHash(byte[] newHash)
Parameters
newHash
byte[]The new hash.
Validate(byte[])
Validate this hash against the provided one.
public void Validate(byte[] actualHash)
Parameters
actualHash
byte[]The hash to compare.