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 &)

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

Parameters

const TPBECipher aCipher
const TDesC8 & aKey
const TDesC8 & aIV

MaxFinalOutputLength(TUint)

TInt MaxFinalOutputLength(TUintaMaxInputLength)const [virtual]

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

Parameters

TUint aMaxInputLengthThe maximum input length in bytes.

MaxOutputLength(TUint)

TInt MaxOutputLength(TUintaMaxInputLength)const [virtual]

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

Parameters

TUint aMaxInputLengthThe maximum input length in bytes.

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

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

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

Parameters

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

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

IMPORT_C CPBDecryptorElement *NewLC(const TPBECipheraCipher,
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 aCipherThe decryption cipher
const TDesC8 & aKeyThe decryption key
const TDesC8 & aIVThe Initialization Vector

Process(const TDesC8 &, TDes8 &)

voidProcess(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 & aInputThe ciphertext.
TDes8 & aOutputThe plaintext.

ProcessFinalL(const TDesC8 &, TDes8 &)

voidProcessFinalL(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 & aInputThe ciphertext.
TDes8 & aOutputThe plaintext.

Member Data Documentation

CSymmetricCipher * iCipher

CSymmetricCipher *iCipher[private]