Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: s32crypt.h
Link against: estor.lib

Class TEncryptFilter

TEncryptFilter

Support

Supported from 5.0

Description

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 encryption handling object, an instance of a class implementing the CSecurityEncryptBase interface.

Derivation

MStreamBufA stream buffer that provides a generic I/O interface for streamed data
TEncryptFilterAn encrypting filter
TSecureFilterBase class used in the derivation of TEncryptFilter and TDecryptFilter
TStreamFilterInterface to a stream filter

Defined in TEncryptFilter:
Set(), TEncryptFilter()

Inherited from MStreamBuf:
SeekL(), Close(), DoSeekL(), ERead, EWrite, PushL(), Read(), ReadL(), Release(), SeekL(), SizeL(), Synch(), SynchL(), TMark, TRead, TWrite, TellL(), Write(), WriteL()

Inherited from TStreamFilter:
Committed(), DoReadL(), DoRelease(), DoSynchL(), DoWriteL(), EmitL(), FilterL(), IsCommitted()

See also:


Construction


TEncryptFilter()

TEncryptFilter();

Description

Constructs an empty encrypting filter object.

The encrypting filter must be set up before use.

See also:

[Top]


Setting up the encrypting filter


Set()

void Set(MStreamBuf* aHost,CSecurityEncryptBase* aKey,TInt aMode=EWrite);

Description

Sets up the encrypting filter.

Parameters

MStreamBuf* aHost

The stream buffer that is the target for encrypted data.

CSecurityEncryptBase* aKey

An encryption handling object.

TInt aMode

The mode in which the stream buffer is to be used. By default, this is write mode as represented by EWrite.

See also: