RDecryptStream Class Reference

class RDecryptStream : public RReadStream

Supports the decrypting of a stream.

The stream to be decrypted is a stream represented by an existing RReadStream object. In effect, RDecryptStream forms a layer over the RReadStream object, either using its source stream buffer or taking complete ownership of the source stream buffer.

Decryption of streamed data is supported using the TDecryptFilter class derived from TStreamFilter. Decryption itself is performed by an instance of a class implementing the CPBEncryptionBase interface.

TDecryptFilter TStreamFilter CPBEncryptionBase

Inherits from

Constructor & Destructor Documentation

RDecryptStream()

RDecryptStream()[inline]

Constructs an empty decrypting stream object.

Call OpenL() or OpenLC() to use a source stream owned by an existing read stream interface object, a RReadStream.

Call AttachL() or AttachLC() to use and take ownership of a source stream owned by an existing read stream interface object.

Member Functions Documentation

AttachL(RReadStream &, const CPBEncryptionBase &)

IMPORT_C voidAttachL(RReadStream &aHost,
const CPBEncryptionBase &aKey
)
Attach a decrypting read stream to aHost. Takes ownership of the source stream owned by the specified read stream interface object, and prepares the stream for reading through a decrypting filter.
leave
KErrNoMemory

Parameters

RReadStream & aHostThe read stream interface object for the source stream.
const CPBEncryptionBase & aKeyA Password Based Encryption object for encryption handling.

AttachLC(RReadStream &, const CPBEncryptionBase &)

IMPORT_C voidAttachLC(RReadStream &aHost,
const CPBEncryptionBase &aKey
)
Attach a decrypting read stream to aHost. Takes ownership of the source stream owned by the specified read stream interface object, prepares the stream for reading through a decrypting filter, and puts a cleanup item onto the cleanup stack.
leave
KErrNoMemory

Parameters

RReadStream & aHostThe read stream interface object for the source stream.
const CPBEncryptionBase & aKeyA Password Based Encryption object for encryption handling.

OpenL(RReadStream &, const CPBEncryptionBase &)

IMPORT_C voidOpenL(RReadStream &aHost,
const CPBEncryptionBase &aKey
)
Open a decrypting read stream to aHost. Prepares the source stream owned by the specified read stream interface object for reading through a decrypting filter.
leave
KErrNoMemory

Parameters

RReadStream & aHostThe read stream interface object for the source stream. This function does not take ownership of the source stream.
const CPBEncryptionBase & aKeyA Password Based Encryption object for encryption handling.

OpenLC(RReadStream &, const CPBEncryptionBase &)

IMPORT_C voidOpenLC(RReadStream &aHost,
const CPBEncryptionBase &aKey
)
Open a decrypting read stream to aHost. Prepares the source stream owned by the specified read stream interface object for reading through a decrypting filter, and puts a cleanup item onto the cleanup stack.
leave
KErrNoMemory

Parameters

RReadStream & aHostThe read stream interface object for the source stream. This function does not take ownership of the source stream.
const CPBEncryptionBase & aKeyA Password Based Encryption object for encryption handling.

Member Data Documentation

TDecryptFilter iFilter

TDecryptFilter iFilter[private]