Table of Contents

Class FnvHash

Namespace
LlamaLogic.Packages.Cryptography
Assembly
LlamaLogic.Packages.dll

Represents the base class from which this library's implementations of the Fowler–Noll–Vo hash algorithms derive

public abstract class FnvHash : HashAlgorithm, ICryptoTransform, IDisposable
Inheritance
FnvHash
Implements
Derived
Inherited Members

Constructors

FnvHash(ulong, ulong)

Represents the base class from which this library's implementations of the Fowler–Noll–Vo hash algorithms derive

protected FnvHash(ulong prime, ulong offset)

Parameters

prime ulong
offset ulong

Fields

hash

The hash aggregate

protected ulong hash

Field Value

ulong

Methods

ComputeHash(string?)

Computes the hash value for the specified string

public byte[] ComputeHash(string? value)

Parameters

value string

Returns

byte[]

HashCore(byte[], int, int)

When overridden in a derived class, routes data written to the object into the hash algorithm for computing the hash.

protected override void HashCore(byte[] array, int ibStart, int cbSize)

Parameters

array byte[]

The input to compute the hash code for.

ibStart int

The offset into the byte array from which to begin using data.

cbSize int

The number of bytes in the byte array to use as data.

HashFinal()

When overridden in a derived class, finalizes the hash computation after the last data is processed by the cryptographic hash algorithm.

protected override byte[] HashFinal()

Returns

byte[]

The computed hash code.

Initialize()

Resets the hash algorithm to its initial state.

public override void Initialize()