C3DES Class Reference

class C3DES : public CDES

Abstract base class for triple-DES.

Implements features common to triple-DES encryption and decryption.

Constructor & Destructor Documentation

C3DES()

C3DES ( ) [protected]

Member Functions Documentation

BlockSize()

TInt BlockSize ( ) const [virtual]

Gets the block size in bytes.

ConstructL(const TDesC8 &)

void ConstructL ( const TDesC8 & aKey ) [protected, virtual]

Parameters

const TDesC8 & aKey

DoSetKey(const TDesC8 &)

void DoSetKey ( const TDesC8 & aKey ) [protected, pure virtual]

Initialises the three key schedule arrays from the specified key.

Parameters

const TDesC8 & aKey The key to be used for encryption. The key length must be K3DESKeySize = 24 bytes.

KeySize()

TInt KeySize ( ) const [virtual]

Gets the key size in bits.

Reset()

void Reset ( ) [virtual]

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

Transform(TDes8 &)

void Transform ( TDes8 & aBlock ) [virtual]

Transforms the supplied block, returning the new value using the same parameter. aBlock.Size() must be the same length as BlockSize() .

Parameters

TDes8 & aBlock On input, the data to be transformed; on return, the data after transformation.

Member Data Documentation

TUint32 iK2

TUint32 iK2 [protected]

The second key schedule array

TUint32 iK3

TUint32 iK3 [protected]

The third key schedule array