CPBDecryptorElement Class Reference

class CPBDecryptorElement : public CPBDecryptor

Implements the password based decryption of elements.

Since
v7.0s

Inherits from

Constructor & Destructor Documentation

CPBDecryptorElement()

CPBDecryptorElement ( ) [protected]

~CPBDecryptorElement()

~CPBDecryptorElement ( ) [virtual]

Destructor

Member Functions Documentation

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

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

Parameters

const TPBECipher aCipher
const TDesC8 & aKey
const TDesC8 & aIV

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 &, const TDesC8 &)

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

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

Parameters

const TPBECipher aCipher The decryption cipher
const TDesC8 & aKey The decryption key
const TDesC8 & aIV The Initialization Vector

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

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

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

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

Parameters

const TPBECipher aCipher The decryption cipher
const TDesC8 & aKey The decryption key
const TDesC8 & aIV The Initialization Vector

Process(const TDesC8 &, TDes8 &)

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

Transforms aInput into its decrypted form, aOutput.

aOutput must have CPBDecryptorElement::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 & aInput The ciphertext.
TDes8 & aOutput The plaintext.

ProcessFinalL(const TDesC8 &, TDes8 &)

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

Transforms aInput into its decrypted form, aOutput.

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

Parameters

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

Member Data Documentation

CSymmetricCipher * iCipher

CSymmetricCipher * iCipher [private]