Table of Contents

Class KeyedCryptoHash<TAlgorithm>

Namespace
Cuemon.Security.Cryptography
Assembly
Cuemon.Security.Cryptography.dll

Represents the base class from which all implementations of Hash-based Message Authentication Code (HMAC) should derive. Implements the UnkeyedCryptoHash<TAlgorithm>

public abstract class KeyedCryptoHash<TAlgorithm> : UnkeyedCryptoHash<TAlgorithm>, IHash, IConfigurable<ConvertibleOptions> where TAlgorithm : KeyedHashAlgorithm

Type Parameters

TAlgorithm

The type of the System.Security.Cryptography.KeyedHashAlgorithm to implement.

Inheritance
Object
UnkeyedCryptoHash<TAlgorithm>
KeyedCryptoHash<TAlgorithm>
Implements
Derived
Inherited Members

Constructors

KeyedCryptoHash(Byte[], Action<ConvertibleOptions>)

Initializes a new instance of the KeyedCryptoHash<TAlgorithm> class.

protected KeyedCryptoHash(byte[] secret, Action<ConvertibleOptions> setup)

Parameters

secret Byte[]

The secret.

setup Action<ConvertibleOptions>

The setup.

Methods

ComputeHash(Byte[])

Computes the hash value for the specified byte[].

public override HashResult ComputeHash(byte[] input)

Parameters

input Byte[]

The byte[] to compute the hash code for.

Returns

HashResult

A HashResult containing the computed hash code of the specified input.

See Also