10 #include <vodozemac.h>
12 #include <unordered_map>
32 std::optional<rust::Box<vodozemac::olm::Account>>
account;
42 std::string
pickle()
const;
60 std::string roomId, std::optional<MegOlmSessionRotateDesc> desc);
Definition: outbound-group-session.hpp:22
Definition: session.hpp:27
Definition: location.hpp:10
std::string RandomData
Definition: crypto-util.hpp:34
nlohmann::json json
Definition: jsonwrap.hpp:20
std::int_fast64_t Timestamp
Definition: event.hpp:18
std::vector< Session > SessionList
Definition: crypto-p.hpp:23
Definition: crypto-p.hpp:26
~CryptoPrivate()
Definition: crypto.cpp:46
MaybeString decryptOlm(nlohmann::json content)
Definition: crypto.cpp:91
std::unordered_map< std::string, OutboundGroupSession > outboundGroupSessions
Definition: crypto-p.hpp:38
std::unordered_map< KeyOfGroupSession, InboundGroupSession > inboundGroupSessions
Definition: crypto-p.hpp:36
bool reuseOrCreateOutboundGroupSession(RandomData random, Timestamp timeMs, std::string roomId, std::optional< MegOlmSessionRotateDesc > desc)
Definition: crypto.cpp:172
immer::map< std::string, int > uploadedOneTimeKeysCount
Definition: crypto-p.hpp:33
std::unordered_map< std::string, Session > knownSessions
Definition: crypto-p.hpp:35
std::string curve25519IdentityKey() const
Definition: crypto.cpp:264
bool unpickle(std::string data)
Definition: crypto.cpp:69
MaybeString decryptMegOlm(nlohmann::json eventJson)
Definition: crypto.cpp:137
std::string ed25519IdentityKey() const
Definition: crypto.cpp:258
bool unpickleFromLibolm(std::string data)
Definition: crypto.cpp:80
bool createInboundGroupSession(KeyOfGroupSession k, std::string sessionKey, std::string ed25519Key)
Definition: crypto.cpp:376
CryptoPrivate(RandomTag, RandomData data)
int numUnpublishedKeys
Definition: crypto-p.hpp:34
bool valid
Definition: crypto-p.hpp:40
std::optional< rust::Box< vodozemac::olm::Account > > account
Definition: crypto-p.hpp:32
bool createInboundSession(std::string theirCurve25519IdentityKey, std::string message)
returns whether the session is successfully established
Definition: crypto.cpp:158
CryptoPrivate()
Definition: crypto.cpp:32
std::string pickle() const
Definition: crypto.cpp:63
Definition: crypto-util.hpp:24
The tag to indicate that a constructor should use user-provided random data.
Definition: crypto-util.hpp:32