CRijndael Class Reference

class CRijndael : public CBlockTransformation

Abstract base class for Rijndael, implementing the parts of Rijndael common to both Rijndael encryption and decryption.

Inherits from

Constructor & Destructor Documentation

CRijndael(void)

IMPORT_CCRijndael(void)[protected]

Default constructor

Parameters

void

CRijndael(const CRijndael &)

CRijndael(const CRijndael &)[private]

Parameters

const CRijndael &

~CRijndael(void)

IMPORT_C~CRijndael(void)[virtual]

The destructor frees all resources owned by the object, prior to its destruction.

Parameters

void

Member Functions Documentation

ConstructL(const TDesC8 &)

voidConstructL(const TDesC8 &aKey)[protected, virtual]

Parameters

const TDesC8 & aKey

KeySize(void)

TInt KeySize(void)const [virtual]

Gets the key size in bits.

Parameters

void

Reset(void)

voidReset(void)[virtual]

Resets the transformation back to its original state. Clears all its buffers.

Parameters

void

SetKey(const TDesC8 &)

voidSetKey(const TDesC8 &aKey)[protected, virtual]

Parameters

const TDesC8 & aKey

operator=(const CRijndael &)

const CRijndael &operator=(const CRijndael &)[private]

Parameters

const CRijndael &

Member Data Documentation

TUint32 iK

TUint32 iK[protected]

The key schedule

The maximum size is (((KAESMaxBlockSize/4)+6)+1)*4

HBufC8 * iKey

HBufC8 *iKey[protected]

The input key

The key length (in bytes) must be one of the following:
  • KAESKeySize128 (=16)

  • KAESKeySize192 (=24)

  • KAESKeySize256 (=32).

TUint iRounds

TUint iRounds[protected]

The number of rounds