Table of Contents

Class HashInfo

Namespace
SceneGate.Ekona.Security
Assembly
SceneGate.Ekona.dll

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

algoName string

The name of the hashing algorithm.

hash byte[]

The hash data.

HashInfo(string, byte[], bool)

Initializes a new instance of the HashInfo class.

public HashInfo(string algoName, byte[] hash, bool isValid)

Parameters

algoName string

The name of the hashing algorithm.

hash byte[]

The hash data.

isValid bool

Value indicating whether this signature is valid.

Properties

AlgorithmName

Gets the hashing algorithm name.

public string AlgorithmName { get; }

Property Value

string

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

bool

Status

Gets or sets the status of the hash.

public HashStatus Status { get; set; }

Property Value

HashStatus

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.