CRC2 Class Reference

class CRC2 : public CBlockTransformation

Abstract base class for RC2 encipherment.

Inherits from

Constructor & Destructor Documentation

CRC2(void)

CRC2(void)[protected]

Parameters

void

Member Functions Documentation

BlockSize()

TInt BlockSize()const [virtual]

Gets the block size in bytes.

KeySize()

TInt KeySize()const [virtual]

Gets the key size in bits.

Reset()

voidReset()[virtual]

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

SetKey(const TDesC8 &, TInt)

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

Parameters

const TDesC8 & aKey
TInt aEffectiveKeyLenBits

Member Data Documentation

TInt iEffectiveKeyLenBits

TInt iEffectiveKeyLenBits[protected]

The effective key length in bits

TUint16 iK

TUint16 iK[protected]

The expanded key buffer.

Each iK[i] is a 16-bit word.

TBuf8< KRC2MaxKeySizeBytes > iKey

TBuf8< KRC2MaxKeySizeBytes >iKey[protected]

The input key

The key length must fall between 1 and KRC2MaxKeySizeBytes (=128) bytes inclusive.