An Advanced Encryption Standard (AES, also known as Rijndael) class to encrypt/decrypt data.
const Char plainText[] =
"O brave new world / That has such people in't!";
const Int32 blockSize = 256;
const Char key[32] = {
'7',
'c',
'3',
'0',
'e',
'0',
'0',
'b',
'b',
'6',
'2',
'7',
'1',
'4',
'9',
'5' };
const Int32 keyLength =
sizeof(
key) * 8;
DebugAssert((keyLength == 128) || (keyLength == 192) || (keyLength == 256));
{
if (aes && aes->Init(blockSize, keyLength))
{
}
}
{
if (
buffer && aes && aes->Init(blockSize, keyLength))
{
if (aes->Decrypt(
buffer, encryptedSize,
key))
{
}
}
}
const char ** buffer
Definition: abstract.h:327
PyObject * key
Definition: abstract.h:289
void CopyMem(const void *s, void *d, Int size)
Definition: c4d_memory.h:66
static Int CalcEncryptedDataSize(Int32 lBlockLength, Int lDataLength)
Definition: ge_autoptr.h:37
static MAXON_METHOD SecureRandomProvider GetDefaultProvider()
static MAXON_METHOD Bool GetRandomNumber(SecureRandomProvider provider, const Block< Byte > &buffer)
Definition: string.h:1235
#define NewMem(T, cnt)
Definition: defaultallocator.h:195
maxon::UChar UChar
Definition: ge_sys_math.h:57
maxon::Char Char
Definition: ge_sys_math.h:56
maxon::Int32 Int32
Definition: ge_sys_math.h:60
maxon::Int Int
Definition: ge_sys_math.h:64
#define MAXON_SOURCE_LOCATION
Definition: memoryallocationbase.h:67
#define ApplicationOutput(formatString,...)
Definition: debugdiagnostics.h:210
#define DebugAssert(condition,...)
Definition: debugdiagnostics.h:248
PyWideStringList Py_ssize_t length
Definition: initconfig.h:448
void DeleteMem(T *&p)
Definition: defaultallocator.h:257
PyObject * text
Definition: pycore_traceback.h:70
#define iferr_return
Definition: resultbase.h:1465