Table of Contents

Class Fnv32

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

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

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

Constructors

Fnv32()

Initializes a new instance of the Fnv32 class

public Fnv32()

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.

HashSize

Gets the size, in bits, of the computed hash code.

public override int HashSize { get; }

Property Value

int

The size, in bits, of the computed hash code.

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 32-bit Fowler–Noll–Vo hash

public static uint SetHighBit(uint hash)

Parameters

hash uint

Returns

uint