31 static std::size_t constructOutboundRandomSize();
43 std::string theirIdentityKey,
44 std::string theirOneTimeKey);
49 std::string theirIdentityKey,
61 bool matches(std::string message);
91 std::unique_ptr<SessionPrivate> m_d;
Definition: crypto.hpp:36
Definition: session.hpp:27
std::size_t encryptRandomSize() const
Definition: session.cpp:214
MaybeString decrypt(int type, std::string message)
Definition: session.cpp:197
bool valid() const
Definition: session.cpp:191
friend void from_json(const nlohmann::json &j, Session &s)
Definition: session.cpp:245
Session()
Definition: session.cpp:120
std::pair< int, std::string > encryptWithRandom(RandomData random, std::string plainText)
Encrypt plainText.
Definition: session.cpp:219
friend void to_json(nlohmann::json &j, const Session &s)
Definition: session.cpp:236
bool matches(std::string message)
Definition: session.cpp:178
Session & operator=(const Session &that)
Definition: session.cpp:165
Definition: location.hpp:10
std::string RandomData
Definition: crypto-util.hpp:34
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:32
Definition: session-p.hpp:16