CDESEncryptor Class Reference

class CDESEncryptor : public CDES

Concrete class for DES encryption.

Inherits from

Constructor & Destructor Documentation

CDESEncryptor(void)

CDESEncryptor ( void ) [protected]

Parameters

void

Member Functions Documentation

NewL(const TDesC8 &, TBool)

IMPORT_C CDESEncryptor * NewL ( const TDesC8 & aKey,
TBool aCheckWeakKey = 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 & aKey The key to be used for encryption. The key length must be KDESKeySize = 8 bytes.
TBool aCheckWeakKey = ETrue Boolean determining whether to check the key against a set of known weak key values. Defaults to ETrue.

NewLC(const TDesC8 &, TBool)

IMPORT_C CDESEncryptor * NewLC ( const TDesC8 & aKey,
TBool aCheckWeakKey = 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 & aKey The key to be used for encryption. The key length must be KDESKeySize = 8 bytes.
TBool aCheckWeakKey = ETrue Boolean determining whether to check the resultant key against a set of known weak key values. Defaults to ETrue.