Proprietary software by ® Rudoysecurity™

Record THashFNV1a32

Иерархия
Свойства

Модуль

Объявления

type THashFNV1a32 = record

Описание

Record to generate FNV1a 32-bit Hash values from data. Stores internal state of the process

Обзор

Поля

Private FHash: Cardinal;
Public nested const FNV_PRIME = $01000193;
Public nested const FNV_SEED = $811C9DC5;

Методы

Public class function Create: THashFNV1a32; static;
Public class function GetHashBytes(const AData: string): TBytes; static;
Public class function GetHashString(const AString: RawByteString): string; overload; static;
Public class function GetHashString(const AString: string): string; overload; static;
Public class function GetHashValue(const AData; ALength: Cardinal; AInitialValue: Cardinal = FNV_SEED): Integer; overload; static; inline;
Public class function GetHashValue(const AData: RawByteString): Integer; overload; static; inline;
Public class function GetHashValue(const AData: string): Integer; overload; static; inline;
Public function HashAsBytes: TBytes;
Public function HashAsInteger: Integer;
Public function HashAsString: string;
Private function GetDigest: TBytes;
Private class function Hash(const Data; Len, InitVal: Cardinal): Cardinal; static;
Public procedure Reset(AInitialValue: Cardinal = FNV_SEED);
Public procedure Update(const Input: string); overload; inline;
Public procedure Update(const AData: TBytes; ALength: Cardinal = 0); overload; inline;
Public procedure Update(const AData; ALength: Cardinal); overload; inline;

Описание

Поля

Private FHash: Cardinal;

This item has no description.

Public nested const FNV_PRIME = $01000193;

16777619

Public nested const FNV_SEED = $811C9DC5;

2166136261

Методы

Public class function Create: THashFNV1a32; static;

Initialize the Record used to calculate the FNV1a Hash

Public class function GetHashBytes(const AData: string): TBytes; static;

Hash the given string and returns it's hash value as integer

Public class function GetHashString(const AString: RawByteString): string; overload; static;

This item has no description.

Public class function GetHashString(const AString: string): string; overload; static;

Hash the given string and returns it's hash value as string

Public class function GetHashValue(const AData; ALength: Cardinal; AInitialValue: Cardinal = FNV_SEED): Integer; overload; static; inline;

Hash the given Data and returns it's hash value as integer

Public class function GetHashValue(const AData: RawByteString): Integer; overload; static; inline;

This item has no description.

Public class function GetHashValue(const AData: string): Integer; overload; static; inline;

Hash the given string and returns it's hash value as integer

Public function HashAsBytes: TBytes;

Returns the hash value as a TBytes

Public function HashAsInteger: Integer;

Returns the hash value as integer

Public function HashAsString: string;

Returns the hash value as string

Private function GetDigest: TBytes;

This item has no description.

Private class function Hash(const Data; Len, InitVal: Cardinal): Cardinal; static;

This item has no description.

Public procedure Reset(AInitialValue: Cardinal = FNV_SEED);

Puts the state machine of the generator in it's initial state.

Public procedure Update(const Input: string); overload; inline;

This item has no description.

Public procedure Update(const AData: TBytes; ALength: Cardinal = 0); overload; inline;

This item has no description.

Public procedure Update(const AData; ALength: Cardinal); overload; inline;

Update the Hash value with the given Data.

© Andrey Igorevich Rudoy, 2005-2025 jear
Сгенерировал PasDoc 0.16.0-snapshot.