CPBDecryptorSet Class Reference

class CPBDecryptorSet : public CPBDecryptor

Implements the password based decryption of multiple elements.

Since
v7.0s

Inherits from

Constructor & Destructor Documentation

CPBDecryptorSet()

CPBDecryptorSet()[protected]

~CPBDecryptorSet()

~CPBDecryptorSet()[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 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 &)

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

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

Parameters

const TPBECipher aCipherThe decryption cipher
const TDesC8 & aKeyThe decryption key

NewLC(const TPBECipher, const TDesC8 &)

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

Creates a new CPBDecryptorSet 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 aCipherThe decryption cipher
const TDesC8 & aKeyThe decryption key

Process(const TDesC8 &, TDes8 &)

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

Transforms aInput into its decrypted form, aOutput.

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

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, and applies a padding scheme to ensure a block aligned result.

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

Parameters

const TDesC8 & aInputThe ciphertext.
TDes8 & aOutputThe plaintext.

ProcessIV(const TDesC8 &)

TPtrC8 ProcessIV(const TDesC8 &aInput)[private]

Parameters

const TDesC8 & aInput

Reset(void)

IMPORT_C voidReset(void)

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

Parameters

void

Member Data Documentation

CSymmetricCipher * iCipher

CSymmetricCipher *iCipher[private]

HBufC8 * iIVBuf

HBufC8 *iIVBuf[private]

TBool iIVSent

TBool iIVSent[private]