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

Gets the maximum length of the output resulting from calling ProcessFinalL() with a given 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 resulting from calling Process() with a given 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 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 & aInputThe plaintext.
TDes8 & aOutputOn return, the ciphertext.

ProcessFinalL(const TDesC8 &, TDes8 &)

voidProcessFinalL(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 & aInputThe plaintext.
TDes8 & aOutputOn return, the ciphertext.