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 ( TUint aMaxInputLength ) const [pure virtual]

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

Parameters

TUint aMaxInputLength The maximum input length in bytes.

MaxOutputLength(TUint)

TInt MaxOutputLength ( TUint aMaxInputLength ) const [pure virtual]

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

Parameters

TUint aMaxInputLength The maximum input length in bytes.

Process(const TDesC8 &, TDes8 &)

void Process ( 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 & aInput The ciphertext.
TDes8 & aOutput On return, the plaintext.

ProcessFinalL(const TDesC8 &, TDes8 &)

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

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

Parameters

const TDesC8 & aInput The ciphertext.
TDes8 & aOutput On return, the plaintext.