CPBDecryptor Class Reference

class CPBDecryptor : public CBase

Abstract class defining the interface required to allow the actual transformation of ciphertext to plaintext.

Generally this class' descendants are constructed using the functions CPBEncryptElement::NewDecryptLC() or CPBEncryptSet::NewDecryptLC().

Inherits from

Member Functions Documentation

MaxFinalOutputLength(TUint)

TInt MaxFinalOutputLength(TUintaMaxInputLength)const [pure virtual]

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

Parameters

TUint aMaxInputLengthThe maximum input length in bytes.

MaxOutputLength(TUint)

TInt MaxOutputLength(TUintaMaxInputLength)const [pure virtual]

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

Parameters

TUint aMaxInputLengthThe maximum input length in bytes.

Process(const TDesC8 &, TDes8 &)

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

Transforms aInput into its decrypted form, aOutput, and unpads.

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 & aOutputOn return, the plaintext.

ProcessFinalL(const TDesC8 &, TDes8 &)

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

Transforms aInput into its decrypted form, aOutput, and unpads.

Parameters

const TDesC8 & aInputThe ciphertext.
TDes8 & aOutputOn return, the plaintext.