CPBEncryptor Class Reference

class CPBEncryptor : public CBase

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

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

CPBEncryptorElement and CPBEncryptorSet

Inherits from

Member Functions Documentation

MaxFinalOutputLength(TUint)

TInt MaxFinalOutputLength ( TUint aMaxInputLength ) const [pure virtual]

Gets the maximum length of the output resulting from calling ProcessFinalL() with a given 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 resulting from calling Process() with a given 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 encrypted form, aOutput.

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 plaintext.
TDes8 & aOutput On return, the ciphertext.

ProcessFinalL(const TDesC8 &, TDes8 &)

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

Transforms aInput into its encrypted form, aOutput, and applies a padding scheme to ensure a block aligned result.

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 plaintext.
TDes8 & aOutput On return, the ciphertext.