Note that TEA is a symmetric algorithm -- the key for encryption and decryption is the same.
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. |
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.
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".