CRC2Encryptor Class Reference

class CRC2Encryptor : public CRC2

Concrete class for RC2 encryption.

Inherits from

Constructor & Destructor Documentation

CRC2Encryptor(void)

CRC2Encryptor(void)[protected]

Parameters

void

Member Functions Documentation

NewL(const TDesC8 &, TInt)

IMPORT_C CRC2Encryptor *NewL(const TDesC8 &aKey,
TIntaEffectiveKeyLenBits =  KSSLCompatibilityBits
)[static]

Creates an instance of this class.

leave
KErrKeyNotWeakEnough If the key size is larger than that allowed by the cipher strength restrictions of the crypto library. See TCrypto::IsSymmetricWeakEnoughL()

Parameters

const TDesC8 & aKeyThe key to be used for encryption. The key length must fall between 1 and KRC2MaxKeySizeBytes (=128) bytes inclusive.
TInt aEffectiveKeyLenBits =  KSSLCompatibilityBits Effective key length bits (defaults KSSLCompatibilityBits = 1024).

NewLC(const TDesC8 &, TInt)

IMPORT_C CRC2Encryptor *NewLC(const TDesC8 &aKey,
TIntaEffectiveKeyLenBits =  KSSLCompatibilityBits
)[static]

Creates an instance of this class and leaves it on the cleanup stack.

leave
KErrKeyNotWeakEnough If the key size is larger than that allowed by the cipher strength restrictions of the crypto library. See TCrypto::IsSymmetricWeakEnoughL()

Parameters

const TDesC8 & aKeyThe key to be used for encryption. The key length must fall between 1 and KRC2MaxKeySizeBytes (=128) bytes inclusive.
TInt aEffectiveKeyLenBits =  KSSLCompatibilityBits Effective key length bits (defaults KSSLCompatibilityBits = 1024).

Transform(TDes8 &)

voidTransform(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 & aBlockOn input, the data to be transformed; on return, the data after transformation.