Table of Contents

Class Fnv24

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

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

public sealed class Fnv24 : Fnv32, ICryptoTransform, IDisposable
Inheritance
Fnv24
Implements
Inherited Members

Fields

EmptyStringHash

Gets the hash value for an empty string

public static readonly uint EmptyStringHash

Field Value

uint

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 uint GetHash(string? text)

Parameters

text string

Returns

uint

SetHighBit(uint)

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

public static uint SetHighBit(uint hash)

Parameters

hash uint

Returns

uint