CPBEncryptorElement Class Reference

class CPBEncryptorElement : public CPBEncryptor

Implements the password based encryption of elements.

CPBEncryptElement
Since
v7.0s

Inherits from

Constructor & Destructor Documentation

CPBEncryptorElement()

CPBEncryptorElement()[protected]

~CPBEncryptorElement()

~CPBEncryptorElement()[virtual]

Destructor

Member Functions Documentation

ConstructL(TPBECipher, const TDesC8 &, const TDesC8 &)

voidConstructL(TPBECipheraCipher,
const TDesC8 &aKey,
const TDesC8 &aIV
)[protected]

Parameters

TPBECipher aCipher
const TDesC8 & aKey
const TDesC8 & aIV

MaxFinalOutputLength(TUint)

TInt MaxFinalOutputLength(TUintaMaxInputLength)const [virtual]

Gets the maximum size of the output resulting from calling ProcessFinalL() with a given input length.

Parameters

TUint aMaxInputLengthThe maximum input length in bytes.

MaxOutputLength(TUint)

TInt MaxOutputLength(TUintaMaxInputLength)const [virtual]

Gets the maximum size of the output resulting from calling Process() with a given input length.

Parameters

TUint aMaxInputLengthThe maximum input length in bytes.

NewL(TPBECipher, const TDesC8 &, const TDesC8 &)

IMPORT_C CPBEncryptorElement *NewL(TPBECipheraCipher,
const TDesC8 &aKey,
const TDesC8 &aIV
)[static]

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

Parameters

TPBECipher aCipherThe encryption cipher
const TDesC8 & aKeyThe encryption key
const TDesC8 & aIVThe Initialization Vector

NewLC(TPBECipher, const TDesC8 &, const TDesC8 &)

IMPORT_C CPBEncryptorElement *NewLC(TPBECipheraCipher,
const TDesC8 &aKey,
const TDesC8 &aIV
)[static]

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

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

Parameters

TPBECipher aCipherThe encryption cipher
const TDesC8 & aKeyThe encryption key
const TDesC8 & aIVThe Initialization Vector

Process(const TDesC8 &, TDes8 &)

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

Transforms aInput into its encrypted form, aOutput.

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

See the Cryptography api-guide documentation for an explanation of how buffering of data supplied to this function is handled.

Parameters

const TDesC8 & aInputThe plaintext.
TDes8 & aOutputThe ciphertext.

ProcessFinalL(const TDesC8 &, TDes8 &)

voidProcessFinalL(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 CPBEncryptorElement::MaxFinalOutputLength() empty bytes remaining in its length.

See the Cryptography api-guide documentation for an explanation of how buffering of data supplied to this function is handled.

Parameters

const TDesC8 & aInputThe plaintext.
TDes8 & aOutputThe ciphertext.

Member Data Documentation

CSymmetricCipher * iCipher

CSymmetricCipher *iCipher[private]