GeCipher256 Class Reference

#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()

GeCipher256 ( )

Constructor.

◆  ~GeCipher256()

~ GeCipher256 ( )

Destructor.

成员函数文档编制

◆  Open()

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.
返回
true if successful, otherwise false .

◆  Close()

void Close ( )

Closes the cipher engine.

◆  Encrypt()

void Encrypt ( void *  mem ,
Int32   size  
)

Encrypts an array.

参数
[in] mem The array to encrypt.
[in] size The size of the array.

◆  Decrypt()

void Decrypt ( void *  mem ,
Int32   size  
)

Decrypts an array.

参数
[in] mem The array to decrypt.
[in] size The size of the array.

Member Data Documentation

◆  hnd

void* hnd private