TEncryptFilter Class Reference

class TEncryptFilter : public TSecureFilter

An encrypting filter.

An object of this type is used by REncryptStream to encrypt stream data as it is written to a target stream.

Encryption itself is performed by an instance of a class implementing the CPBEncryptor interface.

REncryptStream CPBEncryptor

Inherits from

Public Member Functions
TEncryptFilter()
IMPORT_C voidSetL(MStreamBuf *, CPBEncryptor *, TInt)
Protected Member Functions
IMPORT_C voidDoRelease()
Private Member Functions
IMPORT_C voidCompleteL(TDes8 &, const TDesC8 &)
IMPORT_C TIntCryptL(TDes8 &, const TDesC8 &)
Inherited Functions
MStreamBuf::Close()
MStreamBuf::MStreamBuf()
MStreamBuf::PushL()
MStreamBuf::Read(TDes8 &,TInt,TRequestStatus &)
MStreamBuf::Read(TDes8 &,TRequestStatus &)
MStreamBuf::ReadL(MStreamInput &)
MStreamBuf::ReadL(MStreamInput &,TInt)
MStreamBuf::ReadL(MStreamInput &,TStreamTransfer)
MStreamBuf::ReadL(TAny *,TInt)
MStreamBuf::ReadL(TDes8 &,TInt,TRequestStatus &)
MStreamBuf::ReadL(TDes8 &,TRequestStatus &)
MStreamBuf::Release()
MStreamBuf::SeekL(TMark,TStreamLocation,TInt)
MStreamBuf::SeekL(TMark,TStreamPos)
MStreamBuf::SeekL(TRead,TInt)
MStreamBuf::SeekL(TRead,TStreamLocation,TInt)
MStreamBuf::SeekL(TWrite,TInt)
MStreamBuf::SeekL(TWrite,TStreamLocation,TInt)
MStreamBuf::SizeL()const
MStreamBuf::Synch()
MStreamBuf::SynchL()
MStreamBuf::TellL(TRead)const
MStreamBuf::TellL(TWrite)const
MStreamBuf::Write(const TDesC8 &,TInt,TRequestStatus &)
MStreamBuf::Write(const TDesC8 &,TRequestStatus &)
MStreamBuf::WriteL(MStreamOutput &)
MStreamBuf::WriteL(MStreamOutput &,TInt)
MStreamBuf::WriteL(MStreamOutput &,TStreamTransfer)
MStreamBuf::WriteL(const TAny *,TInt)
MStreamBuf::WriteL(const TDesC8 &,TInt,TRequestStatus &)
MStreamBuf::WriteL(const TDesC8 &,TRequestStatus &)
TSecureFilter::Capacity(TInt)
TSecureFilter::DoSynchL()
TSecureFilter::EmitL(const TDesC8 &)
TSecureFilter::FilterL(TAny *,TInt,const TUint8 *&,const TUint8 *)
TSecureFilter::Set(MStreamBuf *,TInt)
TSecureFilter::TSecureFilter()
TStreamFilter::Committed()
TStreamFilter::DoReadL(TAny *,TInt)
TStreamFilter::DoWriteL(const TAny *,TInt)
TStreamFilter::EmitL(const TAny *,TInt)
TStreamFilter::IsCommitted()const
TStreamFilter::TStreamFilter()
Inherited Enumerations
MStreamBuf:TRead
MStreamBuf:TWrite
TStreamFilter:@28
Private Attributes
CPBEncryptor *iKey

Constructor & Destructor Documentation

TEncryptFilter()

IMPORT_CTEncryptFilter()

Constructs an empty encrypting filter object.

The encrypting filter must be set up before use.

Set()

Member Functions Documentation

CompleteL(TDes8 &, const TDesC8 &)

IMPORT_C voidCompleteL(TDes8 &aTarget,
const TDesC8 &aSource
)[private, virtual]

Parameters

TDes8 & aTarget
const TDesC8 & aSource

CryptL(TDes8 &, const TDesC8 &)

IMPORT_C TIntCryptL(TDes8 &aTarget,
const TDesC8 &aSource
)[private, virtual]

Parameters

TDes8 & aTarget
const TDesC8 & aSource

DoRelease()

IMPORT_C voidDoRelease()[protected, virtual]

Frees the host stream's resources.

MStreamBuf::DoRelease()

SetL(MStreamBuf *, CPBEncryptor *, TInt)

IMPORT_C voidSetL(MStreamBuf *aHost,
CPBEncryptor *aKey,
TIntaMode = EWrite
)

Parameters

MStreamBuf * aHost
CPBEncryptor * aKey
TInt aMode = EWrite

Member Data Documentation

CPBEncryptor * iKey

CPBEncryptor *iKey[private]