|
Public Types |
enum | Status {
None,
Negotiation1,
Reply1,
Negoatiation2,
Reply2,
Connected
} |
enum | {
IDENTITY,
SESSIONKEY,
RANDOMDATA,
RANDOMDATA2,
SESSIONKEY2,
CERTIFICATE,
MSG,
SIGNATURE
} |
Public Member Functions |
| CryptoSession (const string &pk) |
string | authenticate () |
void | setPeer (const Certificate &peer) |
void | setPrivkey (const string &key) |
void | setCert (const Certificate &mycert) |
void | parseAuthenticateReply (const string &msg) |
string | authenticate2 () |
void | parseAuthenticate2Reply (const string &msg) |
string | authenticate3 () |
void | parseAuthenticate3Reply (const string &msg) |
Public Attributes |
byte | random [16] |
byte | random2 [16] |
string | privKey |
byte * | sessionKey |
int | sessionKeyLen |
byte * | sessionKey2 |
int | sessionKey2Len |
byte * | finalKey |
int | finalKeyLen |
Status | status |
Certificate | peer |
Certificate | mycert |