OverSim
|
The CryptoModule contains several method needed for message authentication. More...
#include <CryptoModule.h>
Public Member Functions | |
CryptoModule () | |
virtual | ~CryptoModule () |
virtual void | signMessage (BaseRpcMessage *msg) |
Signs an RPC message. | |
virtual bool | verifyMessage (BaseRpcMessage *msg) |
Verifies the signature of an RPC message. |
Protected Member Functions | |
virtual void | initialize () |
virtual void | handleMessage (cMessage *msg) |
virtual void | finish () |
Private Attributes | |
GlobalStatistics * | globalStatistics |
pointer to GlobalStatistics module in this node | |
BaseOverlay * | overlay |
pointer to the overlay module in this node | |
cNetCommBuffer | commBuffer |
the buffer used to serialize messages | |
int | numSign |
message signature counter for statistics |
The CryptoModule contains several method needed for message authentication.
The CryptoModule contains several method needed for message authentication.
Definition at line 41 of file CryptoModule.h.
CryptoModule::CryptoModule | ( | ) |
Definition at line 34 of file CryptoModule.cc.
|
virtual |
Definition at line 40 of file CryptoModule.cc.
|
protectedvirtual |
Definition at line 122 of file CryptoModule.cc.
|
protectedvirtual |
Definition at line 117 of file CryptoModule.cc.
|
protectedvirtual |
Definition at line 44 of file CryptoModule.cc.
|
virtual |
Signs an RPC message.
This method signs the given BaseRpcMessage msg with the node private key.
msg | the message to sign |
Definition at line 57 of file CryptoModule.cc.
|
virtual |
Verifies the signature of an RPC message.
This method verifies the signature of the BaseRpcMessage msg and returns true, if the signature is valid.
msg | the message to verify |
Definition at line 86 of file CryptoModule.cc.
|
private |
the buffer used to serialize messages
Definition at line 84 of file CryptoModule.h.
|
private |
pointer to GlobalStatistics module in this node
Definition at line 81 of file CryptoModule.h.
|
private |
message signature counter for statistics
Definition at line 86 of file CryptoModule.h.
|
private |
pointer to the overlay module in this node
Definition at line 82 of file CryptoModule.h.