#include <cypher.h>
Inheritance diagram for PTEACypher:
Public Member Functions | |
PTEACypher (BlockChainMode chainMode=ElectronicCodebook) | |
PTEACypher (const Key &keyData, BlockChainMode chainMode=ElectronicCodebook) | |
void | SetKey (const Key &newKey) |
void | GetKey (Key &newKey) const |
Static Public Member Functions | |
static void | GenerateKey (Key &newKey) |
Protected Member Functions | |
virtual void | Initialise (BOOL encoding) |
virtual void | EncodeBlock (const void *in, void *out) |
virtual void | DecodeBlock (const void *in, void *out) |
Classes | |
struct | Key |
This is a simple algorithm using a 128 bit binary key and encrypts data in 64 bit blocks.
|
Create a new TEA encryption object instance. The parameterless version automatically generates a new, random, key.
|
|
|
|
Decode an n bit block of memory according to the encryption algorithm.
Implements PCypher. |
|
Encode an n bit block of memory according to the encryption algorithm.
Implements PCypher. |
|
Generate a new key suitable for use for encryption using random data.
|
|
Get the key used by this encryption method.
|
|
Initialise the encoding/decoding sequence.
Implements PCypher. |
|
Set the key used by this encryption method.
|