Classe TDWDCP_blockcipher

Unit

Declaração

type TDWDCP_blockcipher = class(TDWDCP_cipher)

Descrição

No description available, ancestor TDWDCP_cipher description follows

Hierarquia

Visão Geral

Campos

Protected fCipherMode: TDWDCP_ciphermode;

Métodos

Protected procedure InitKey(const Key; Size: longword); virtual;
Public class function GetBlockSize: integer; virtual;
Public procedure SetIV(const Value); virtual;
Public procedure GetIV(var Value); virtual;
Public procedure Encrypt(const Indata; var Outdata; Size: longword); override;
Public procedure Decrypt(const Indata; var Outdata; Size: longword); override;
Public function EncryptString(const Str: DWDCPRawString): DWDCPRawString; overload; override;
Public function DecryptString(const Str: DWDCPRawString): DWDCPRawString; overload; override;
Public function EncryptString(const Str: DWDCPUnicodeString): DWDCPUnicodeString; overload; override;
Public function DecryptString(const Str: DWDCPUnicodeString): DWDCPUnicodeString; overload; override;
Public procedure EncryptECB(const Indata; var Outdata); virtual;
Public procedure DecryptECB(const Indata; var Outdata); virtual;
Public procedure EncryptCBC(const Indata; var Outdata; Size: longword); virtual;
Public procedure DecryptCBC(const Indata; var Outdata; Size: longword); virtual;
Public procedure EncryptCFB8bit(const Indata; var Outdata; Size: longword); virtual;
Public procedure DecryptCFB8bit(const Indata; var Outdata; Size: longword); virtual;
Public procedure EncryptCFBblock(const Indata; var Outdata; Size: longword); virtual;
Public procedure DecryptCFBblock(const Indata; var Outdata; Size: longword); virtual;
Public procedure EncryptOFB(const Indata; var Outdata; Size: longword); virtual;
Public procedure DecryptOFB(const Indata; var Outdata; Size: longword); virtual;
Public procedure EncryptCTR(const Indata; var Outdata; Size: longword); virtual;
Public procedure DecryptCTR(const Indata; var Outdata; Size: longword); virtual;
Public constructor Create(AOwner: TComponent); override;

Propriedades

Published property BlockSize: integer read _GetBlockSize write DeadInt;
Published property CipherMode: TDWDCP_ciphermode read fCipherMode write fCipherMode default cmCBC;

Descrição

Campos

Protected fCipherMode: TDWDCP_ciphermode;
 

Métodos

Protected procedure InitKey(const Key; Size: longword); virtual;

The cipher mode the encrypt method uses

Public class function GetBlockSize: integer; virtual;
 
Public procedure SetIV(const Value); virtual;

Get the block size of the cipher (in bits)

Public procedure GetIV(var Value); virtual;

Sets the IV to Value and performs a reset

Public procedure Encrypt(const Indata; var Outdata; Size: longword); override;

Returns the current chaining information, not the actual IV

Public procedure Decrypt(const Indata; var Outdata; Size: longword); override;

Encrypt size bytes of data and place in Outdata using CipherMode

Public function EncryptString(const Str: DWDCPRawString): DWDCPRawString; overload; override;

Decrypt size bytes of data and place in Outdata using CipherMode

Public function DecryptString(const Str: DWDCPRawString): DWDCPRawString; overload; override;

Encrypt a string and return Base64 encoded

Public function EncryptString(const Str: DWDCPUnicodeString): DWDCPUnicodeString; overload; override;

Decrypt a Base64 encoded string

Public function DecryptString(const Str: DWDCPUnicodeString): DWDCPUnicodeString; overload; override;

Encrypt a Unicode string and return Base64 encoded

Public procedure EncryptECB(const Indata; var Outdata); virtual;

Decrypt a Base64 encoded Unicode string

Public procedure DecryptECB(const Indata; var Outdata); virtual;

Encrypt a block of data using the ECB method of encryption

Public procedure EncryptCBC(const Indata; var Outdata; Size: longword); virtual;

Decrypt a block of data using the ECB method of decryption

Public procedure DecryptCBC(const Indata; var Outdata; Size: longword); virtual;

Encrypt size bytes of data using the CBC method of encryption

Public procedure EncryptCFB8bit(const Indata; var Outdata; Size: longword); virtual;

Decrypt size bytes of data using the CBC method of decryption

Public procedure DecryptCFB8bit(const Indata; var Outdata; Size: longword); virtual;

Encrypt size bytes of data using the CFB (8 bit) method of encryption

Public procedure EncryptCFBblock(const Indata; var Outdata; Size: longword); virtual;

Decrypt size bytes of data using the CFB (8 bit) method of decryption

Public procedure DecryptCFBblock(const Indata; var Outdata; Size: longword); virtual;

Encrypt size bytes of data using the CFB (block) method of encryption

Public procedure EncryptOFB(const Indata; var Outdata; Size: longword); virtual;

Decrypt size bytes of data using the CFB (block) method of decryption

Public procedure DecryptOFB(const Indata; var Outdata; Size: longword); virtual;

Encrypt size bytes of data using the OFB method of encryption

Public procedure EncryptCTR(const Indata; var Outdata; Size: longword); virtual;

Decrypt size bytes of data using the OFB method of decryption

Public procedure DecryptCTR(const Indata; var Outdata; Size: longword); virtual;

Encrypt size bytes of data using the CTR method of encryption

Public constructor Create(AOwner: TComponent); override;

Decrypt size bytes of data using the CTR method of decryption

Propriedades

Published property BlockSize: integer read _GetBlockSize write DeadInt;
 
Published property CipherMode: TDWDCP_ciphermode read fCipherMode write fCipherMode default cmCBC;
 

Gerado por PasDoc 0.16.0.