Easemob Windows SDK
Public Member Functions | List of all members
easemob::EMEncryptProviderInterface Class Referenceabstract

#include <emencryptprovider_interface.h>

Collaboration diagram for easemob::EMEncryptProviderInterface:
Collaboration graph

Public Member Functions

virtual ~EMEncryptProviderInterface ()
 Virtual destructor.
 
virtual void encrypt (const unsigned char *input, int inLen, unsigned char **out, int &outLen, std::string toUserName)=0
 Customized encrypt method. More...
 
virtual void decrypt (const unsigned char *input, int inLen, unsigned char **out, int &outLen, std::string fromUserName)=0
 Customized decrypt method. More...
 

Detailed Description

Application can customize encrypt method through EMEncryptProvider

Note: Virtual method encrypt & decrypt need allocate memroy for *out. Encrypt & decrypt caller take responsiblity to release the memory.

Member Function Documentation

§ decrypt()

virtual void easemob::EMEncryptProviderInterface::decrypt ( const unsigned char *  input,
int  inLen,
unsigned char **  out,
int &  outLen,
std::string  fromUserName 
)
pure virtual

Customized decrypt method.

Parameters
inputEncrypted message to be decrypted
inputEncrypted message length
outPlain message, implementation need allocate the memory, and assign to *out.
outLenPlain message length.
toUserNameThe message where is come from.

§ encrypt()

virtual void easemob::EMEncryptProviderInterface::encrypt ( const unsigned char *  input,
int  inLen,
unsigned char **  out,
int &  outLen,
std::string  toUserName 
)
pure virtual

Customized encrypt method.

Parameters
inputPlain message to be encrypted
inputPlain message length
outEncrypted msg, implementation need allocate the memory, and assign to *out.
outLenEncrypted msg length.
toUserNameThe msg to be sent to.

The documentation for this class was generated from the following file: