CDESDecryptor Class Reference

class CDESDecryptor : public CDES

Concrete class for DES decryption.

Inherits from

Constructor & Destructor Documentation

CDESDecryptor(void)

CDESDecryptor(void)[protected]

Parameters

void

Member Functions Documentation

NewL(const TDesC8 &, TBool)

IMPORT_C CDESDecryptor *NewL(const TDesC8 &aKey,
TBoolaCheckWeakKey = ETrue
)[static]

Creates an instance of this class.

leave
KErrWeakKey If the key is a weak one, the function leaves having previously cleaned up any previously allocated memory.
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 decryption. The key length must be KDESKeySize = 8 bytes.
TBool aCheckWeakKey = ETrueBoolean determining whether to check the resultant key against a set of known weak key values. Defaults to ETrue.

NewLC(const TDesC8 &, TBool)

IMPORT_C CDESDecryptor *NewLC(const TDesC8 &aKey,
TBoolaCheckWeakKey = ETrue
)[static]

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

leave
KErrWeakKey If the key is a weak one, the function leaves having previously cleaned up any previously allocated memory.
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 decryption. The key length must be KDESKeySize = 8 bytes.
TBool aCheckWeakKey = ETrueBoolean determining whether to check the resultant key against a set of known weak key values. Defaults to ETrue.

SetKey(const TDesC8 &, TUint32 *)

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

Parameters

const TDesC8 & aKey
TUint32 * aKeyBuffer