CPBEncryptorSet Class Reference

class CPBEncryptorSet : public CPBEncryptor

Implements the password based encryption of multiple elements.

CPBEncryptSet
Since
v7.0s

Inherits from

Constructor & Destructor Documentation

CPBEncryptorSet()

CPBEncryptorSet ( ) [protected]

~CPBEncryptorSet()

~CPBEncryptorSet ( ) [virtual]

Destructor

Member Functions Documentation

ConstructL(TPBECipher, const TDesC8 &)

void ConstructL ( TPBECipher aCipher,
const TDesC8 & aKey
) [protected]

Parameters

TPBECipher aCipher
const TDesC8 & aKey

MaxFinalOutputLength(TUint)

TInt MaxFinalOutputLength ( TUint aMaxInputLength ) const [virtual]

Gets the maximum size of the output given a certain input length.

Parameters

TUint aMaxInputLength The maximum input length in bytes.

MaxOutputLength(TUint)

TInt MaxOutputLength ( TUint aMaxInputLength ) const [virtual]

Gets the maximum size of the output given a certain input length.

Parameters

TUint aMaxInputLength The maximum input length in bytes.

NewL(const TPBECipher, const TDesC8 &)

IMPORT_C CPBEncryptorSet * NewL ( const TPBECipher aCipher,
const TDesC8 & aKey
) [static]

Creates a new CPBEncryptorSet object from the specified cipher and key, and a random Initialization Vector (IV).

Parameters

const TPBECipher aCipher The encryption cipher
const TDesC8 & aKey The encryption key

NewLC(const TPBECipher, const TDesC8 &)

IMPORT_C CPBEncryptorSet * NewLC ( const TPBECipher aCipher,
const TDesC8 & aKey
) [static]

Creates a new CPBEncryptorSet object from the specified cipher and key, and a random IV.

Puts a pointer to the returned object onto the cleanup stack.

Parameters

const TPBECipher aCipher The encryption cipher
const TDesC8 & aKey The encryption key

Process(const TDesC8 &, TDes8 &)

void Process ( const TDesC8 & aInput,
TDes8 & aOutput
) [virtual]

Transforms aInput into its encrypted form, aOutput.

aOutput must have CPBEncryptorSet::MaxOutputLength() empty bytes remaining in its length.

Parameters

const TDesC8 & aInput The plaintext.
TDes8 & aOutput The ciphertext.

ProcessFinalL(const TDesC8 &, TDes8 &)

void ProcessFinalL ( const TDesC8 & aInput,
TDes8 & aOutput
) [virtual]

Transforms aInput into its encrypted form, aOutput, and applies a padding scheme to ensure a block aligned result.

aOutput must have CPBEncryptorSet::MaxFinalOutputLength() empty bytes remaining in its length.

Parameters

const TDesC8 & aInput The plaintext.
TDes8 & aOutput The ciphertext.

Reset(void)

IMPORT_C void Reset ( void )

Resets the CPBEncryptorSet object back to its original state and clears all its buffers.

Parameters

void

Member Data Documentation

CSymmetricCipher * iCipher

CSymmetricCipher * iCipher [private]

HBufC8 * iIV

HBufC8 * iIV [private]

TBool iIVSent

TBool iIVSent [private]