#include <c4d_file.h>
File operations for AES encrypted files.
Static Public Member Functions | |
static Bool | CheckEncryption (const Filename &encrypt, const Filename &decrypt, const char *key, Int32 keylen, Int32 blocksize) |
![]() | |
static BaseFile * | Alloc () |
static void | Free (BaseFile *&fl) |
Private Member Functions | |
AESFile () | |
~AESFile () | |
Alloc/Free | |
static AESFile * | Alloc () |
static void | Free (AESFile *&fl) |
|
private |
|
private |
|
static |
|
static |
Bool Open | ( | const Filename & | name, |
const char * | key, | ||
Int32 | keylen, | ||
Int32 | blocksize, | ||
UInt32 | aes_flags, | ||
FILEOPEN | mode = FILEOPEN::READ , |
||
FILEDIALOG | error_dialog = FILEDIALOG::IGNOREOPEN , |
||
BYTEORDER | order = BYTEORDER::V_MOTOROLA , |
||
Int32 | type = 'C4DC' , |
||
Int32 | creator = 'C4D1' |
||
) |
Opens a AES encrypted file.
[in] | name | The name of the file to open. |
[in] | key | The decryption key. The caller owns the pointed buffer. |
[in] | keylen | The key length. Must be 128, 192 or 256 (bits). |
[in] | blocksize | The block size. Must be 128, 192 or 256 (bits). |
[in] | aes_flags | Reserved for later use. Must be set to 0. |
[in] | mode | The file access mode: FILEOPEN |
[in] | error_dialog | Sets the type of error reporting that should happen during the file opening: FILEDIALOG |
[in] | order | The type of byte order in the AES file: BYTEORDER |
[in] | type | The type of file, only applies to Mac: MACTYPE_CINEMA. |
[in] | creator | The application that wrote the file, for example 'ttxt' (SimpleText) or 'C4D1' for Cinema 4D, only relevant to Mac: MACCREATOR_CINEMA. |
|
static |
Checks if the encrypted file is the encrypted version of the decrypted file.
[in] | encrypt | The filename of the encrypted file. |
[in] | decrypt | The filename of the decrypted file. |
[in] | key | The decryption key. The caller owns the pointed buffer. |
[in] | keylen | The key length. Must be 128, 192 or 256 (bits). |
[in] | blocksize | The block size. Must be 128, 192 or 256 (bits). |