Proprietary software by ® Rudoysecurity™

Record THashMD5

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

Модуль

Объявления

type THashMD5 = record

Описание

Record to generate MD5 Hash values from data. Stores internal state of the process

Обзор

Nested Types

Private TContextBuffer = array [0..63] of Byte;
Private TContextState = array [0..15] of Cardinal;

Поля

Private FContextBuffer: TContextBuffer;
Private FContextCount: array [0..1] of Cardinal;
Private FContextState: array [0..3] of Cardinal;
Private FFinalized: Boolean;
Private FPadding: TContextBuffer;

Методы

Public class function Create: THashMD5; 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: TBytes; const AKey: string): TBytes; overload; static;
Public class function GetHMACAsBytes(const AData: string; const AKey: TBytes): TBytes; overload; static;
Public class function GetHMACAsBytes(const AData, AKey: string): TBytes; overload; static;
Public class function GetHMACAsBytes(const AData, AKey: TBytes): TBytes; overload; static;
Public function HashAsBytes: TBytes; inline;
Public function HashAsString: string; inline;
Private function GetDigest: TBytes;
Public procedure Reset;
Public procedure Update(const AData; ALength: Cardinal); overload;
Public procedure Update(const Input: string); overload; inline;
Public procedure Update(const AData: TBytes; ALength: Cardinal = 0); overload; inline;
Private procedure Decode(const Dst: PCardinal; const Src: PByte; Len: Integer; AShift: Integer);
Private procedure Encode(const Dst: PByte; const Src: PCardinal; Len: Integer);
Private procedure FinalizeHash;
Private procedure Transform(const ABlock: PByte; AShift: Integer);
Private procedure Update(const AData: PByte; ALength: Cardinal); overload;

Описание

Nested Types

Private TContextBuffer = array [0..63] of Byte;

This item has no description.

Private TContextState = array [0..15] of Cardinal;

This item has no description.

Поля

Private FContextBuffer: TContextBuffer;

This item has no description.

Private FContextCount: array [0..1] of Cardinal;

This item has no description.

Private FContextState: array [0..3] of Cardinal;

This item has no description.

Private FFinalized: Boolean;

This item has no description.

Private FPadding: TContextBuffer;

This item has no description.

Методы

Public class function Create: THashMD5; static; inline;

Creates an instance to generate MD5 hashes

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: TBytes; const AKey: string): TBytes; overload; static;

This item has no description.

Public class function GetHMACAsBytes(const AData: string; const 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 class function GetHMACAsBytes(const AData, AKey: TBytes): TBytes; overload; static;

This item has no description.

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;

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

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

Update the Hash with the provided bytes

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.

Private procedure Decode(const Dst: PCardinal; const Src: PByte; Len: Integer; AShift: Integer);

This item has no description.

Private procedure Encode(const Dst: PByte; const Src: PCardinal; Len: Integer);

This item has no description.

Private procedure FinalizeHash;

This item has no description.

Private procedure Transform(const ABlock: PByte; AShift: Integer);

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.