#include <c4d_tools.h>
A class that encrypts data using an insecure scrambling.
公共成员函数 |
|
GeCipher256 () | |
~GeCipher256 () | |
Bool | Open (const void *key, Int32 klength, Bool stream) |
void | 关闭 () |
void | Encrypt (void *mem, Int32 size) |
void | Decrypt (void *mem, Int32 size) |
Private Attributes |
|
void * | hnd |
GeCipher256 | ( | ) |
Constructor.
~ GeCipher256 | ( | ) |
Destructor.
Bool Open | ( | const void * | key , |
Int32 | klength , | ||
Bool | stream | ||
) |
Initializes the cipher engine with the specified key .
[in] | key | Key array. |
[in] | klength | Key length. Must be > 1 . |
[in] | stream |
若
true
the encryption/decryption sequence has to take place in the exact same order, otherwise it will not work.
若 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. |
void* hnd | private |