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));
 
 
  
 
  
  {
    
    encryptedSize = AES::CalcEncryptedDataSize(blockSize, 
length);
 
 
    
 
    
 
    
 
    AutoAlloc<AES> aes;
    if (aes && aes->Init(blockSize, keyLength))
    {
    }
  }
 
  
  {
    AutoAlloc<AES> aes;
    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
 
static MAXON_METHOD SecureRandomProvider GetDefaultProvider()
 
static MAXON_METHOD Bool GetRandomNumber(SecureRandomProvider provider, const Block< Byte > &buffer)
 
Definition: string.h:1287
 
#define NewMem(T, cnt)
Definition: defaultallocator.h:207
 
#define MAXON_SOURCE_LOCATION
Definition: memoryallocationbase.h:69
 
#define ApplicationOutput(formatString,...)
Definition: debugdiagnostics.h:204
 
#define DebugAssert(condition,...)
Definition: debugdiagnostics.h:242
 
PyWideStringList Py_ssize_t length
Definition: initconfig.h:448
 
maxon::UChar UChar
Definition: ge_sys_math.h:48
 
maxon::Char Char
Definition: ge_sys_math.h:47
 
maxon::Int32 Int32
Definition: ge_sys_math.h:51
 
maxon::Int Int
Definition: ge_sys_math.h:55
 
void CopyMem(const void *s, void *d, Int size)
Definition: c4d_memory.h:65
 
void DeleteMem(T *&p)
Definition: defaultallocator.h:269
 
PyObject * text
Definition: pycore_traceback.h:70
 
#define iferr_return
Definition: resultbase.h:1531