31 static std::size_t constructOutboundRandomSize();
43 std::string theirIdentityKey,
44 std::string theirOneTimeKey);
49 std::string theirIdentityKey,
61 bool matches(std::string message);
92 std::unique_ptr<SessionPrivate> m_d;
Definition session.hpp:27
std::size_t encryptRandomSize() const
Definition session.cpp:237
MaybeString decrypt(int type, std::string message)
Definition session.cpp:220
bool valid() const
Definition session.cpp:214
friend void from_json(const nlohmann::json &j, Session &s)
Definition session.cpp:269
Session()
Definition session.cpp:143
std::pair< int, std::string > encryptWithRandom(RandomData random, std::string plainText)
Encrypt plainText.
Definition session.cpp:242
friend void to_json(nlohmann::json &j, const Session &s)
Definition session.cpp:260
bool matches(std::string message)
Definition session.cpp:201
Session & operator=(const Session &that)
Definition session.cpp:188
Definition location.hpp:10
std::string RandomData
Definition crypto-util.hpp:35
nlohmann::json json
Definition jsonwrap.hpp:20
Definition crypto-p.hpp:26
Definition session.hpp:21
Definition session.hpp:22
The tag to indicate that a constructor should use user-provided random data.
Definition crypto-util.hpp:33
Definition session-p.hpp:16