#include <c4d_tools.h>
A class that encrypts data using an insecure scrambling.
Public Member Functions | |
GeCipher256 () | |
~GeCipher256 () | |
Bool | Open (const void *key, Int32 klength, Bool stream) |
void | Close () |
void | Encrypt (void *mem, Int32 size) |
void | Decrypt (void *mem, Int32 size) |
Private Attributes | |
void * | hnd |
GeCipher256 | ( | ) |
Constructor.
~GeCipher256 | ( | ) |
Destructor.
Initializes the cipher engine with the specified key.
[in] | key | Key array. |
[in] | klength | Key length. Must be >1. |
[in] | stream | If true the encryption/decryption sequence has to take place in the exact same order, otherwise it will not work. If false all bytes are encrypted/decrypted independently. |
void Close | ( | ) |
Closes the cipher engine.
void Encrypt | ( | void * | mem, |
Int32 | size | ||
) |
Encrypts an array.
[in] | mem | The array to encrypt. |
[in] | size | The size of the array. |
void Decrypt | ( | void * | mem, |
Int32 | size | ||
) |
Decrypts an array.
[in] | mem | The array to decrypt. |
[in] | size | The size of the array. |
|
private |