TNL::SymmetricCipher Class Reference
#include <tnlSymmetricCipher.h>
Inheritance diagram for TNL::SymmetricCipher:
Detailed Description
Class for symmetric encryption of data across a connection.
Internally it uses the libtomcrypt AES algorithm to encrypt the data.
Member Enumeration Documentation
Constructor & Destructor Documentation
TNL::SymmetricCipher::SymmetricCipher |
( |
const U8 |
symmetricKey[KeySize], |
|
|
const U8 |
initVector[BlockSize] |
|
) |
|
|
TNL::SymmetricCipher::SymmetricCipher |
( |
const ByteBuffer * |
theByteBuffer |
) |
|
|
Member Function Documentation
void TNL::SymmetricCipher::setupCounter |
( |
U32 |
counterValue1, |
|
|
U32 |
counterValue2, |
|
|
U32 |
counterValue3, |
|
|
U32 |
counterValue4 |
|
) |
|
|
void TNL::SymmetricCipher::encrypt |
( |
const U8 * |
plainText, |
|
|
U8 * |
cipherText, |
|
|
U32 |
len |
|
) |
|
|
void TNL::SymmetricCipher::decrypt |
( |
const U8 * |
cipherText, |
|
|
U8 * |
plainText, |
|
|
U32 |
len |
|
) |
|
|
Field Documentation