class PTEACypher: public PCypher

Tiny Encryption Algorithm.

Inheritance:


Protected Methods

[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 )
Decode an n bit block of memory according to the encryption algorithm.


Inherited from PCypher:

Protected Fields

oPBYTEArray key
oPINDEX blockSize
oBlockChainMode chainMode


Inherited from PObject:

Public

Run Time Type functions

Comparison functions

I/O functions

Miscellaneous functions


Documentation

Tiny Encryption Algorithm. This class implements the Tiny Encryption Algorithm by David Wheeler and Roger Needham at Cambridge University.

This is a simple algorithm using a 128 bit binary key and encrypts data in 64 bit blocks.

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

ovirtual void EncodeBlock( const void * in, void * out )
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 )
Decode 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.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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