Table of Contents

Class FowlerNollVoHash

Namespace
Cuemon.Security
Assembly
Cuemon.Core.dll

Represents the base class from which all implementations of the Fowler–Noll–Vo non-cryptographic hashing algorithm must derive.

public abstract class FowlerNollVoHash : Hash<FowlerNollVoOptions>, IHash, IConfigurable<FowlerNollVoOptions>
Inheritance
Object
FowlerNollVoHash
Implements
Derived
Inherited Members

Constructors

FowlerNollVoHash(Int16, BigInteger, BigInteger, Action<FowlerNollVoOptions>)

Initializes a new instance of the FowlerNollVoHash class.

protected FowlerNollVoHash(short bits, BigInteger prime, BigInteger offsetBasis, Action<FowlerNollVoOptions> setup)

Parameters

bits Int16

The size in bits.

prime BigInteger

The prime number of the algorithm.

offsetBasis BigInteger

The initial value of the hash.

setup Action<FowlerNollVoOptions>

The FowlerNollVoOptions which need to be configured.

Properties

Bits

Gets the size of the implementation in bits.

public short Bits { get; }

Property Value

Int16

The size of the implementation in bits.

OffsetBasis

Gets the offset basis used as the initial value of the hash.

public BigInteger OffsetBasis { get; }

Property Value

BigInteger

The offset basis used as the initial value of the hash.

Prime

Gets the prime number of the algorithm.

public BigInteger Prime { get; }

Property Value

BigInteger

The prime number of the algorithm.

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.