libkazv
|
#include <outbound-group-session.hpp>
Public Member Functions | |
OutboundGroupSession () | |
OutboundGroupSession (RandomTag, RandomData random, Timestamp creationTime) | |
Constructs an OutboundGroupSession from custom random data. More... | |
OutboundGroupSession (const OutboundGroupSession &that) | |
OutboundGroupSession (OutboundGroupSession &&that) | |
OutboundGroupSession & | operator= (const OutboundGroupSession &that) |
OutboundGroupSession & | operator= (OutboundGroupSession &&that) |
~OutboundGroupSession () | |
std::string | encrypt (std::string plainText) |
bool | valid () const |
std::string | sessionKey () |
std::string | initialSessionKey () const |
std::string | sessionId () |
int | messageIndex () |
Timestamp | creationTimeMs () const |
Static Public Member Functions | |
static std::size_t | constructRandomSize () |
Friends | |
void | to_json (nlohmann::json &j, const OutboundGroupSession &s) |
void | from_json (const nlohmann::json &j, OutboundGroupSession &s) |
|
explicit |
Kazv::OutboundGroupSession::OutboundGroupSession | ( | RandomTag | , |
RandomData | random, | ||
Timestamp | creationTime | ||
) |
Constructs an OutboundGroupSession from custom random data.
random | The random data to use. Must be of at least size constructRandomSize() . |
creationTime | The creation time of this OutboundGroupSession. |
Kazv::OutboundGroupSession::OutboundGroupSession | ( | const OutboundGroupSession & | that | ) |
Kazv::OutboundGroupSession::OutboundGroupSession | ( | OutboundGroupSession && | that | ) |
|
default |
|
static |
Timestamp Kazv::OutboundGroupSession::creationTimeMs | ( | ) | const |
std::string Kazv::OutboundGroupSession::encrypt | ( | std::string | plainText | ) |
std::string Kazv::OutboundGroupSession::initialSessionKey | ( | ) | const |
int Kazv::OutboundGroupSession::messageIndex | ( | ) |
OutboundGroupSession & Kazv::OutboundGroupSession::operator= | ( | const OutboundGroupSession & | that | ) |
OutboundGroupSession & Kazv::OutboundGroupSession::operator= | ( | OutboundGroupSession && | that | ) |
std::string Kazv::OutboundGroupSession::sessionId | ( | ) |
std::string Kazv::OutboundGroupSession::sessionKey | ( | ) |
bool Kazv::OutboundGroupSession::valid | ( | ) | const |
|
friend |
|
friend |