Classe TDWDCP_hash

Unit

Declaração

type TDWDCP_hash = class(TComponent)

Descrição

Hierarquia

Visão Geral

Campos

Protected fInitialized: boolean;

Métodos

Protected procedure DeadInt(Value: integer);
Protected procedure DeadStr(Value: string);
Public class function GetId: integer; virtual;
Public class function GetAlgorithm: string; virtual;
Public class function GetHashSize: integer; virtual;
Public class function SelfTest: boolean; virtual;
Public procedure Init; virtual;
Public procedure Final(var Digest); virtual;
Public procedure Burn; virtual;
Public procedure Update(const Buffer; Size: longword); virtual;
Public procedure UpdateStream(Stream: TStream; Size: longword);
Public procedure UpdateStr(const Str: DWDCPRawString); overload;
Public procedure UpdateStr(const Str: DWDCPUnicodeString); overload;
Public destructor Destroy; override;

Propriedades

Public property Initialized: boolean read fInitialized;
Published property Id: integer read _GetId write DeadInt;
Published property Algorithm: string read _GetAlgorithm write DeadStr;
Published property HashSize: integer read _GetHashSize write DeadInt;

Descrição

Campos

Protected fInitialized: boolean;
 

Métodos

Protected procedure DeadInt(Value: integer);

Whether or not the algorithm has been initialized

Protected procedure DeadStr(Value: string);

Knudge to display vars in the object inspector

Public class function GetId: integer; virtual;
 
Public class function GetAlgorithm: string; virtual;

Get the algorithm id

Public class function GetHashSize: integer; virtual;

Get the algorithm name

Public class function SelfTest: boolean; virtual;

Get the size of the digest produced - in bits

Public procedure Init; virtual;

Tests the implementation with several test vectors

Public procedure Final(var Digest); virtual;

Initialize the hash algorithm

Public procedure Burn; virtual;

Create the final digest and clear the stored information. The size of the Digest var must be at least equal to the hash size

Public procedure Update(const Buffer; Size: longword); virtual;

Clear any stored information with out creating the final digest

Public procedure UpdateStream(Stream: TStream; Size: longword);

Update the hash buffer with Size bytes of data from Buffer

Public procedure UpdateStr(const Str: DWDCPRawString); overload;

Update the hash buffer with Size bytes of data from the stream

Public procedure UpdateStr(const Str: DWDCPUnicodeString); overload;

Update the hash buffer with the string

Public destructor Destroy; override;

Update the hash buffer with the string

Propriedades

Public property Initialized: boolean read fInitialized;
 
Published property Id: integer read _GetId write DeadInt;
 
Published property Algorithm: string read _GetAlgorithm write DeadStr;
 
Published property HashSize: integer read _GetHashSize write DeadInt;
 

Gerado por PasDoc 0.16.0.