C3DESEncryptor Class Reference

class C3DESEncryptor : public C3DES

Concrete class for triple-DES encryption.

Member Functions Documentation

DoSetKey(const TDesC8 &)

void DoSetKey ( const TDesC8 & aKey ) [protected, 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.

NewL(const TDesC8 &)

IMPORT_C C3DESEncryptor * NewL ( const TDesC8 & aKey ) [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 & aKey The key to be used for encryption. The key length must be K3DESKeySize = 24 bytes.

NewLC(const TDesC8 &)

IMPORT_C C3DESEncryptor * NewLC ( const TDesC8 & aKey ) [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 & aKey The key to be used for encryption. The key length must be K3DESKeySize = 24 bytes.