Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Location: e32base.h
Link against: euser.lib

Class CSecurityEncryptBase

CSecurityEncryptBase

Support

Supported from 5.0

Description

Defines the interface to an encryption handler which encapsulates the algorithm for data encryption.

Objects of this type are constructed by the security model.

Derivation

CBaseBase class for all classes to be instantiated on the heap
CSecurityEncryptBaseDefines the interface to an encryption handler which encapsulates the algorithm for data encryption

Defined in CSecurityEncryptBase:
CompleteL(), EncryptL()

Inherited from CBase:
operator new()


Encryption


EncryptL()

virtual TInt EncryptL(TDes8& aOutput,const TDesC8& aInput) = 0;

Description

Encrypts data.

This is called when data needs to be encrypted. An implementation of this function should encrypt the raw data in aInput and present the results in aOutput. It should also return a value indicating how much of the input data was consumed.

Parameters

TDes8& aOutput

On return, the encrypted data.

const TDesC8& aInput

The raw data to be encrypted.

Return value

TInt

A value indicating how much of the input data was consumed.


CompleteL()

virtual TInt CompleteL(TDes8& aOutput,const TDesC8& aInput) = 0;

Description

Pads the last data block.

This is called when the the last data block needs padding. An implementation of this function should present the results in aOutput. It should also return a value indicating how much of the input data was consumed.

Parameters

TDes8& aOutput

A reference to a descriptor which contains the last data block.

const TDesC8& aInput

A reference to a descriptor containing input data.

Return value

TInt

A value indicating how much of the input data was consumed.