#include <Encapsulator.h>
Public Member Functions | |
Encapsulator (const ADDRESS &my_addr, const AGENT_VECTOR &agent_vector) | |
Encapsulator constructor. | |
~Encapsulator () | |
Encapsulator destructor. | |
RefCountBuffer | Encrypt (MESSAGE Body, UINT32 DestinationIndx, ADDRESS &SendTo) |
Message encryption function. | |
RefCountBuffer | Decrypt (RefCountBuffer EncMsg, ADDRESS &SendTo, UINT32 &RetMsgId) |
Message decryption function. | |
RefCountBuffer | EncryptReply (MESSAGE Body, UINT32 ReplyMsgId, ADDRESS &SendTo) |
Reply encryption function. | |
void | SetRouteLength (UINT32 rl) |
Set the encapsulated route length. | |
std::string | GetMyPublicKey () |
Get the encryption public key. | |
Private Attributes | |
std::vector< Msg > | MsgHistory |
std::string | MyPublicKey |
std::string | MyPrivateKey |
const AGENT_VECTOR & | AppGroupList |
ADDRESS | MyAddress |
UINT32 | RouteLength |
|
Encapsulator constructor.
|
|
Message decryption function.
|
|
Message encryption function.
|
|
Reply encryption function.
|