class PCypher

This abstract class defines an encryption/decryption algortihm.

Inheritance:


Protected Fields

[more]PBYTEArray key
Key for the encryption/decryption
[more]PINDEX blockSize
Size of each encryption block in bytes
[more]BlockChainMode chainMode
Mode for sequential encryption each block

Protected Methods

[more] PCypher ( PINDEX blockSize, BlockChainMode chainMode )
Create a new encryption object instance.
[more]virtual void Initialise ( BOOL encoding )
Initialise the encoding/decoding sequence.
[more]virtual void EncodeBlock ( const void* in, void* out )
Encode an n bit block of memory according to the encryption algorithm.
[more]virtual void DecodeBlock ( const void* in, void* out )
Dencode an n bit block of memory according to the encryption algorithm.


Inherited from PObject:

Public Methods

Run Time Type functions

I/O functions

Public Members

Comparison functions


Documentation

This abstract class defines an encryption/decryption algortihm. A specific algorithm is implemented in a descendent class.
o PCypher( PINDEX blockSize, BlockChainMode chainMode )
Create a new encryption object instance.
Parameters:
- blockSize Size of encryption blocks (in bits)
- chainMode Block chain mode

ovirtual void Initialise( BOOL encoding ) = 0
Initialise the encoding/decoding sequence.
Parameters:
- encoding Flag for encoding/decoding sequence about to start.

ovirtual void EncodeBlock( const void* in, void* out ) = 0
Encode an n bit block of memory according to the encryption algorithm.
Parameters:
in - Pointer to clear n bit block.
out - Pointer to coded n bit block.

ovirtual void DecodeBlock( const void* in, void* out ) = 0
Dencode an n bit block of memory according to the encryption algorithm.
Parameters:
in - Pointer to coded n bit block.
out - Pointer to clear n bit block.

oPBYTEArray key
Key for the encryption/decryption

oPINDEX blockSize
Size of each encryption block in bytes

oBlockChainMode chainMode
Mode for sequential encryption each block


Direct child classes:
PTEACypher

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.