Class TSynaBlockCipher

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TSynaBlockCipher = class(TObject)

Description

Implementation of common routines block ciphers (dafault size is 64-bits)

Do not use this class directly, use descendants only!

Hierarchy

Overview

Methods

Public procedure SetIV(const Value: AnsiString); virtual;
Public function GetIV: AnsiString; virtual;
Public procedure Reset; virtual;
Public function EncryptECB(const InData: AnsiString): AnsiString; virtual;
Public function DecryptECB(const InData: AnsiString): AnsiString; virtual;
Public function EncryptCBC(const Indata: AnsiString): AnsiString; virtual;
Public function DecryptCBC(const Indata: AnsiString): AnsiString; virtual;
Public function EncryptCFB8bit(const Indata: AnsiString): AnsiString; virtual;
Public function DecryptCFB8bit(const Indata: AnsiString): AnsiString; virtual;
Public function EncryptCFBblock(const Indata: AnsiString): AnsiString; virtual;
Public function DecryptCFBblock(const Indata: AnsiString): AnsiString; virtual;
Public function EncryptOFB(const Indata: AnsiString): AnsiString; virtual;
Public function DecryptOFB(const Indata: AnsiString): AnsiString; virtual;
Public function EncryptCTR(const Indata: AnsiString): AnsiString; virtual;
Public function DecryptCTR(const Indata: AnsiString): AnsiString; virtual;
Public constructor Create(Key: AnsiString);

Description

Methods

Public procedure SetIV(const Value: AnsiString); virtual;

Sets the IV to Value and performs a reset

Public function GetIV: AnsiString; virtual;

Returns the current chaining information, not the actual IV

Public procedure Reset; virtual;

Reset any stored chaining information

Public function EncryptECB(const InData: AnsiString): AnsiString; virtual;

Encrypt a 64-bit block of data using the ECB method of encryption

Public function DecryptECB(const InData: AnsiString): AnsiString; virtual;

Decrypt a 64-bit block of data using the ECB method of decryption

Public function EncryptCBC(const Indata: AnsiString): AnsiString; virtual;

Encrypt data using the CBC method of encryption

Public function DecryptCBC(const Indata: AnsiString): AnsiString; virtual;

Decrypt data using the CBC method of decryption

Public function EncryptCFB8bit(const Indata: AnsiString): AnsiString; virtual;

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

Public function DecryptCFB8bit(const Indata: AnsiString): AnsiString; virtual;

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

Public function EncryptCFBblock(const Indata: AnsiString): AnsiString; virtual;

Encrypt data using the CFB (block) method of encryption

Public function DecryptCFBblock(const Indata: AnsiString): AnsiString; virtual;

Decrypt data using the CFB (block) method of decryption

Public function EncryptOFB(const Indata: AnsiString): AnsiString; virtual;

Encrypt data using the OFB method of encryption

Public function DecryptOFB(const Indata: AnsiString): AnsiString; virtual;

Decrypt data using the OFB method of decryption

Public function EncryptCTR(const Indata: AnsiString): AnsiString; virtual;

Encrypt data using the CTR method of encryption

Public function DecryptCTR(const Indata: AnsiString): AnsiString; virtual;

Decrypt data using the CTR method of decryption

Public constructor Create(Key: AnsiString);

Create a encryptor/decryptor instance and initialize it by the Key.


Generated by PasDoc 0.9.0 on 2012-04-23 21:38:52