Proprietary software by ® Rudoysecurity™

Record THashSHA1

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

Модуль

Объявления

type THashSHA1 = record

Описание

Record to generate SHA1 Hash values from data

Обзор

Поля

Private FBitLength: Int64;
Private FBuffer: array [0..63] of Byte;
Private FFinalized: Boolean;
Private FHash: array[0..4] of Cardinal;
Private FIndex: Integer;

Методы

Public class function Create: THashSHA1; static; inline;
Public function GetBlockSize: Integer; inline;
Public class function GetHashBytes(const AData: string): TBytes; overload; static;
Public class function GetHashBytes(const AStream: TStream): TBytes; overload; static;
Public class function GetHashBytesFromFile(const AFileName: TFileName): TBytes; static;
Public function GetHashSize: Integer; inline;
Public class function GetHashString(const AStream: TStream): string; overload; static; inline;
Public class function GetHashString(const AString: string): string; overload; static; inline;
Public class function GetHashStringFromFile(const AFileName: TFileName): string; static; inline;
Public class function GetHMAC(const AData, AKey: string): string; static; inline;
Public class function GetHMACAsBytes(const AData: string; const AKey: TBytes): TBytes; overload; static;
Public class function GetHMACAsBytes(const AData: TBytes; const AKey: string): TBytes; overload; static;
Public class function GetHMACAsBytes(const AData, AKey: TBytes): TBytes; overload; static;
Public class function GetHMACAsBytes(const AData, AKey: string): TBytes; overload; static;
Public function HashAsBytes: TBytes; inline;
Public function HashAsString: string; inline;
Private function GetDigest: TBytes;
Public procedure Reset; inline;
Public procedure Update(const AData; ALength: Cardinal); overload;
Public procedure Update(const AData: TBytes; ALength: Cardinal = 0); overload; inline;
Public procedure Update(const Input: string); overload; inline;
Private procedure CheckFinalized;
Private procedure Compress;
Private procedure Finalize;
Private procedure Initialize;
Private procedure Update(const AData: PByte; ALength: Cardinal); overload;

Описание

Поля

Private FBitLength: Int64;

This item has no description.

Private FBuffer: array [0..63] of Byte;

This item has no description.

Private FFinalized: Boolean;

This item has no description.

Private FHash: array[0..4] of Cardinal;

This item has no description.

Private FIndex: Integer;

This item has no description.

Методы

Public class function Create: THashSHA1; static; inline;

Initialize the Record used to calculate the SHA1 Hash

Public function GetBlockSize: Integer; inline;

Returns the BlockSize for this hash instance

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

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

Public class function GetHashBytes(const AStream: TStream): TBytes; overload; static;

Hash the given stream and returns it's hash value as TBytes

Public class function GetHashBytesFromFile(const AFileName: TFileName): TBytes; static;

Hash the file with given FileName and returns it's hash value as TBytes

Public function GetHashSize: Integer; inline;

Returns the HashSize for this hash instance

Public class function GetHashString(const AStream: TStream): string; overload; static; inline;

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

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

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

Public class function GetHashStringFromFile(const AFileName: TFileName): string; static; inline;

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

Public class function GetHMAC(const AData, AKey: string): string; static; inline;

Gets the string associated to the HMAC authentication

Public class function GetHMACAsBytes(const AData: string; const AKey: TBytes): TBytes; overload; static;

This item has no description.

Public class function GetHMACAsBytes(const AData: TBytes; const AKey: string): TBytes; overload; static;

This item has no description.

Public class function GetHMACAsBytes(const AData, AKey: TBytes): TBytes; overload; static;

This item has no description.

Public class function GetHMACAsBytes(const AData, AKey: string): TBytes; overload; static;

Gets the Digest associated to the HMAC authentication

Public function HashAsBytes: TBytes; inline;

Returns the hash value as a TBytes

Public function HashAsString: string; inline;

Returns the hash value as string

Private function GetDigest: TBytes;

This item has no description.

Public procedure Reset; inline;

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

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

Update the Hash value with the given Data.

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

This item has no description.

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

This item has no description.

Private procedure CheckFinalized;

This item has no description.

Private procedure Compress;

This item has no description.

Private procedure Finalize;

This item has no description.

Private procedure Initialize;

This item has no description.

Private procedure Update(const AData: PByte; ALength: Cardinal); overload;

This item has no description.

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