Class TRALHashBase
Unit
Declaration
type TRALHashBase = class(TObject)
Description
TRALHashBase
Hierarchy
- TObject
- TRALHashBase
Overview
Methods
![]() |
constructor Create(AOutputType: TRALHashOutputType = rhotHex); |
![]() |
function HashAsStream(AValue: TStream): TStream; |
![]() |
function HashAsString(const AValue: StringRAL): StringRAL; overload; virtual; |
![]() |
function HashAsString(AValue: TStream): StringRAL; overload; virtual; |
![]() |
function HMACAsString(AValue: TBytes; const AKey: StringRAL): StringRAL; overload; virtual; |
![]() |
function HMACAsString(const AValue: StringRAL; const AKey: StringRAL): StringRAL; overload; virtual; |
![]() |
function HMACAsString(AValue: TStream; const AKey: StringRAL): StringRAL; overload; virtual; |
![]() |
function DigestToBase64(AValue: TBytes): StringRAL; |
![]() |
function DigestToBase64Url(AValue: TBytes): StringRAL; |
![]() |
function DigestToHex(AValue: TBytes): StringRAL; |
![]() |
function Finalize: TBytes; virtual; |
![]() |
function GetBuffer(AIndex: IntegerRAL): Pointer; virtual; abstract; |
![]() |
function GetBufLength: IntegerRAL; virtual; abstract; |
![]() |
function GetDigest(AValue: TBytes): TBytes; overload; virtual; |
![]() |
function GetDigest(const AValue: StringRAL): TBytes; overload; virtual; |
![]() |
function GetDigest(AValue: TStream): TBytes; overload; virtual; |
![]() |
function GetIndex: IntegerRAL; |
![]() |
function GetLenBit: UInt64RAL; |
![]() |
function HMACAsDigest(AValue: TStream; AKey: TBytes): TBytes; virtual; |
![]() |
procedure Compress; virtual; |
![]() |
procedure HashBytes(AData: pbyte; ALength: IntegerRAL); virtual; |
![]() |
procedure Initialize; virtual; |
![]() |
procedure UpdateBuffer(AValue: TStream); overload; virtual; |
![]() |
procedure UpdateBuffer(AValue: TBytes); overload; virtual; |
![]() |
procedure UpdateBuffer(const AValue: StringRAL); overload; virtual; |
Properties
![]() |
property OutputType: TRALHashOutputType read FOutputType write FOutputType; |
Description
Methods
![]() |
constructor Create(AOutputType: TRALHashOutputType = rhotHex); |
![]() |
function HashAsStream(AValue: TStream): TStream; |
|
Returns a stream hash from a stream | |
![]() |
function HashAsString(const AValue: StringRAL): StringRAL; overload; virtual; |
|
Returns a string hash from a string | |
![]() |
function HashAsString(AValue: TStream): StringRAL; overload; virtual; |
|
Returns a string hash from a stream | |
![]() |
function HMACAsString(AValue: TBytes; const AKey: StringRAL): StringRAL; overload; virtual; |
|
Returns a string of a HMAC generated given an Array of bytes | |
![]() |
function HMACAsString(const AValue: StringRAL; const AKey: StringRAL): StringRAL; overload; virtual; |
|
Returns a string of a HMAC generated given an UTF8String | |
![]() |
function HMACAsString(AValue: TStream; const AKey: StringRAL): StringRAL; overload; virtual; |
|
Returns a string of a HMAC generated given a Stream | |
![]() |
function DigestToBase64(AValue: TBytes): StringRAL; |
|
Convert hash (return Finalize) to base64 | |
![]() |
function DigestToBase64Url(AValue: TBytes): StringRAL; |
|
Convert hash (return Finalize) to base64-url | |
![]() |
function DigestToHex(AValue: TBytes): StringRAL; |
|
Convert hash (return Finalize) to hexadecimal | |
![]() |
function Finalize: TBytes; virtual; |
|
| |
![]() |
function GetBuffer(AIndex: IntegerRAL): Pointer; virtual; abstract; |
|
Returns the buffer pointer at a given position | |
![]() |
function GetBufLength: IntegerRAL; virtual; abstract; |
|
Returns the length of the buffer | |
![]() |
function GetDigest(AValue: TBytes): TBytes; overload; virtual; |
|
Generates a hash of a given piece of Array of Bytes content | |
![]() |
function GetDigest(const AValue: StringRAL): TBytes; overload; virtual; |
|
Generates a hash of a given piece of UTF8String content | |
![]() |
function GetDigest(AValue: TStream): TBytes; overload; virtual; |
|
Generates a hash of a given piece of Stream content | |
![]() |
function GetIndex: IntegerRAL; |
|
Returns the position of the buffer | |
![]() |
function GetLenBit: UInt64RAL; |
|
Returns the total buffer in bits | |
![]() |
function HMACAsDigest(AValue: TStream; AKey: TBytes): TBytes; virtual; |
|
Generates an HMAC hash of a given content | |
![]() |
procedure Compress; virtual; |
|
Used to | |
![]() |
procedure HashBytes(AData: pbyte; ALength: IntegerRAL); virtual; |
|
Picks up incoming and compact content according to buffer length | |
![]() |
procedure Initialize; virtual; |
|
Used to | |
![]() |
procedure UpdateBuffer(AValue: TStream); overload; virtual; |
|
Used to insert more content that will generate the hash | |
![]() |
procedure UpdateBuffer(AValue: TBytes); overload; virtual; |
|
Used to insert more content that will generate the hash | |
![]() |
procedure UpdateBuffer(const AValue: StringRAL); overload; virtual; |
|
Used to insert more content that will generate the hash | |
Properties
![]() |
property OutputType: TRALHashOutputType read FOutputType write FOutputType; |
|
Identifies the formatting of the hash | |
GitHub Repository
Generated by PasDoc 0.16.0.


