Classe TDWDCP_cipher
Unit
Declaração
type TDWDCP_cipher = class(TComponent)
Descrição
Hierarquia
- TObject
- TPersistent
- TComponent
- TDWDCP_cipher
Visão Geral
Campos
![]() |
fInitialized: boolean; |
Métodos
![]() |
procedure DeadInt(Value: integer); |
![]() |
procedure DeadStr(Value: string); |
![]() |
class function GetId: integer; virtual; |
![]() |
class function GetAlgorithm: string; virtual; |
![]() |
class function GetMaxKeySize: integer; virtual; |
![]() |
class function SelfTest: boolean; virtual; |
![]() |
procedure Init(const Key; Size: longword; InitVector: pointer); virtual; |
![]() |
procedure InitStr(const Key: DWDCPRawString; HashType: TDWDCP_hashclass); overload; |
![]() |
procedure InitStr(const Key: DWDCPUnicodeString; HashType: TDWDCP_hashclass); overload; |
![]() |
procedure Burn; virtual; |
![]() |
procedure Reset; virtual; |
![]() |
procedure Encrypt(const Indata; var Outdata; Size: longword); virtual; |
![]() |
procedure Decrypt(const Indata; var Outdata; Size: longword); virtual; |
![]() |
function EncryptStream(InStream, OutStream: TStream; Size: longword): longword; |
![]() |
function DecryptStream(InStream, OutStream: TStream; Size: longword): longword; |
![]() |
function EncryptString(const Str: DWDCPRawString): DWDCPRawString; overload; virtual; |
![]() |
function DecryptString(const Str: DWDCPRawString): DWDCPRawString; overload; virtual; |
![]() |
function EncryptString(const Str: DWDCPUnicodeString): DWDCPUnicodeString; overload; virtual; |
![]() |
function DecryptString(const Str: DWDCPUnicodeString): DWDCPUnicodeString; overload; virtual; |
![]() |
function PartialEncryptStream(AStream: TMemoryStream; Size: longword) : longword; |
![]() |
function PartialDecryptStream(AStream: TMemoryStream; Size: longword) : longword; |
![]() |
constructor Create(AOwner: TComponent); override; |
![]() |
destructor Destroy; override; |
Propriedades
![]() |
property Initialized: boolean read fInitialized; |
![]() |
property Id: integer read _GetId write DeadInt; |
![]() |
property Algorithm: string read _GetAlgorithm write DeadStr; |
![]() |
property MaxKeySize: integer read _GetMaxKeySize write DeadInt; |
Descrição
Campos
![]() |
fInitialized: boolean; |
Métodos
![]() |
procedure DeadInt(Value: integer); |
|
Whether or not the key setup has been done yet | |
![]() |
procedure DeadStr(Value: string); |
|
Knudge to display vars in the object inspector | |
![]() |
class function GetId: integer; virtual; |
![]() |
class function GetAlgorithm: string; virtual; |
|
Get the algorithm id | |
![]() |
class function GetMaxKeySize: integer; virtual; |
|
Get the algorithm name | |
![]() |
class function SelfTest: boolean; virtual; |
|
Get the maximum key size (in bits) | |
![]() |
procedure Init(const Key; Size: longword; InitVector: pointer); virtual; |
|
Tests the implementation with several test vectors | |
![]() |
procedure InitStr(const Key: DWDCPRawString; HashType: TDWDCP_hashclass); overload; |
|
Do key setup based on the data in Key, size is in bits | |
![]() |
procedure InitStr(const Key: DWDCPUnicodeString; HashType: TDWDCP_hashclass); overload; |
|
Do key setup based on a hash of the key string | |
![]() |
procedure Burn; virtual; |
|
Do key setup based on a hash of the key string | |
![]() |
procedure Reset; virtual; |
|
Clear all stored key information | |
![]() |
procedure Encrypt(const Indata; var Outdata; Size: longword); virtual; |
|
Reset any stored chaining information | |
![]() |
procedure Decrypt(const Indata; var Outdata; Size: longword); virtual; |
|
Encrypt size bytes of data and place in Outdata | |
![]() |
function EncryptStream(InStream, OutStream: TStream; Size: longword): longword; |
|
Decrypt size bytes of data and place in Outdata | |
![]() |
function DecryptStream(InStream, OutStream: TStream; Size: longword): longword; |
|
Encrypt size bytes of data from InStream and place in OutStream | |
![]() |
function EncryptString(const Str: DWDCPRawString): DWDCPRawString; overload; virtual; |
|
Decrypt size bytes of data from InStream and place in OutStream | |
![]() |
function DecryptString(const Str: DWDCPRawString): DWDCPRawString; overload; virtual; |
|
Encrypt a string and return Base64 encoded | |
![]() |
function EncryptString(const Str: DWDCPUnicodeString): DWDCPUnicodeString; overload; virtual; |
|
Decrypt a Base64 encoded string | |
![]() |
function DecryptString(const Str: DWDCPUnicodeString): DWDCPUnicodeString; overload; virtual; |
|
Encrypt a Unicode string and return Base64 encoded | |
![]() |
function PartialEncryptStream(AStream: TMemoryStream; Size: longword) : longword; |
|
Decrypt a Base64 encoded Unicode string | |
![]() |
function PartialDecryptStream(AStream: TMemoryStream; Size: longword) : longword; |
|
Partially Encrypt up to 16K bytes of data in AStream | |
![]() |
constructor Create(AOwner: TComponent); override; |
|
Partially Decrypt up to 16K bytes of data in AStream | |
![]() |
destructor Destroy; override; |
Propriedades
![]() |
property Initialized: boolean read fInitialized; |
![]() |
property Id: integer read _GetId write DeadInt; |
![]() |
property Algorithm: string read _GetAlgorithm write DeadStr; |
![]() |
property MaxKeySize: integer read _GetMaxKeySize write DeadInt; |
Gerado por PasDoc 0.16.0.


