Table of Contents

Class Fnv56

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

Represents the 56-bit implementation of the Fowler–Noll–Vo hash algorithm

public sealed class Fnv56 : Fnv64, ICryptoTransform, IDisposable
Inheritance
Fnv56
Implements
Inherited Members

Fields

EmptyStringHash

Gets the hash value for an empty string

public static readonly ulong EmptyStringHash

Field Value

ulong

Properties

Hash

Gets the value of the computed hash code.

public override byte[]? Hash { get; }

Property Value

byte[]

The current value of the computed hash code.

Exceptions

CryptographicUnexpectedOperationException

HashValue is null.

ObjectDisposedException

The object has already been disposed.

Methods

GetHash(string?)

Computes the hash value for the specified string

public static ulong GetHash(string? text)

Parameters

text string

Returns

ulong

SetHighBit(ulong)

Sets the high bit of a 56-bit Fowler–Noll–Vo hash

public static ulong SetHighBit(ulong hash)

Parameters

hash ulong

Returns

ulong