code::TEAEncryption Class Reference

List of all members.

Detailed Description

Implements the 128-bit Tiny Encryption Algorithm (TEA) by Wheeler and Needham, 1994 instead of more complicated, but also more secure, alternatives.

Note that TEA is a symmetric algorithm -- the key for encryption and decryption is the same.

Author:
Lakshman
Version:
Id
code_TEAEncryption.h,v 1.5 2009/06/02 20:17:40 lakshman Exp


Public Member Functions

 TEAEncryption (const std::vector< int > &key)
 Construct the encryptor/decryptor using the key.
 TEAEncryption (const std::vector< std::string > &key)
 Each string is assumed to be number.
bool encrypt (std::vector< char > &data) const
 encrypt the input data.
bool decrypt (std::vector< char > &data) const
 return whether or not we suceeded.

Classes

class  FourByteValue
 FourByteValue maintains data in both the local machine format and in PC-native format, and provides bit manipulation operations.


Constructor & Destructor Documentation

code::TEAEncryption::TEAEncryption ( const std::vector< int > &  key  ) 

Construct the encryptor/decryptor using the key.

The key is 4 number each of 4-bytes (16-byte or 128-bit)

code::TEAEncryption::TEAEncryption ( const std::vector< std::string > &  key  ) 

Each string is assumed to be number.


Member Function Documentation

bool code::TEAEncryption::decrypt ( std::vector< char > &  data  )  const

return whether or not we suceeded.

bool code::TEAEncryption::encrypt ( std::vector< char > &  data  )  const

encrypt the input data.

The data may be longer because of padding. return whether or not we suceeded.

Note: this method has no effect in exported versions of the WDSS-II software -- it leaves the data unchanged and returns "false".


Generated on Fri May 4 13:40:13 2012 for WDSS-IIw2 by  doxygen 1.4.7