Easemob Windows SDK
|
#include <emencryptprovider_interface.h>
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... | |
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.
|
pure virtual |
Customized decrypt method.
input | Encrypted message to be decrypted |
input | Encrypted message length |
out | Plain message, implementation need allocate the memory, and assign to *out. |
outLen | Plain message length. |
toUserName | The message where is come from. |
|
pure virtual |
Customized encrypt method.
input | Plain message to be encrypted |
input | Plain message length |
out | Encrypted msg, implementation need allocate the memory, and assign to *out. |
outLen | Encrypted msg length. |
toUserName | The msg to be sent to. |