Go to the documentation of this file.
12 #include <unordered_map>
46 std::string
pickle()
const;
53 std::size_t
checkError(std::size_t code)
const;
66 std::string roomId, std::optional<MegOlmSessionRotateDesc> desc);
std::size_t checkUtilError(std::size_t code) const
Definition: crypto.cpp:95
ByteArray accountData
Definition: crypto-p.hpp:31
Definition: session.hpp:27
std::string RandomData
Definition: crypto-util.hpp:34
void unpickle(std::string data)
Definition: crypto.cpp:80
std::unordered_map< std::string, Session > knownSessions
Definition: crypto-p.hpp:35
Definition: location.hpp:10
std::int_fast64_t Timestamp
Definition: event.hpp:18
ByteArray identityKeys() const
Definition: crypto.cpp:274
bool createInboundSession(std::string theirCurve25519IdentityKey, std::string message)
returns whether the session is successfully established
Definition: crypto.cpp:167
Definition: crypto-util.hpp:23
int numUnpublishedKeys
Definition: crypto-p.hpp:34
~CryptoPrivate()
Definition: crypto.cpp:52
OlmAccount * account
Definition: crypto-p.hpp:32
nlohmann::json json
Definition: jsonwrap.hpp:20
Definition: outbound-group-session.hpp:21
Definition: crypto-p.hpp:24
std::string pickle() const
Definition: crypto.cpp:71
std::unordered_map< std::string, OutboundGroupSession > outboundGroupSessions
Definition: crypto-p.hpp:38
bool createInboundGroupSession(KeyOfGroupSession k, std::string sessionKey, std::string ed25519Key)
Definition: crypto.cpp:411
std::string ed25519IdentityKey() const
Definition: crypto.cpp:281
bool reuseOrCreateOutboundGroupSession(RandomData random, Timestamp timeMs, std::string roomId, std::optional< MegOlmSessionRotateDesc > desc)
Definition: crypto.cpp:182
std::string curve25519IdentityKey() const
Definition: crypto.cpp:289
std::vector< unsigned char > ByteArray
Definition: crypto-util.hpp:21
std::unordered_map< KeyOfGroupSession, InboundGroupSession > inboundGroupSessions
Definition: crypto-p.hpp:36
CryptoPrivate()
Definition: crypto.cpp:32
ByteArray utilityData
Definition: crypto-p.hpp:40
MaybeString decryptMegOlm(nlohmann::json eventJson)
Definition: crypto.cpp:146
OlmUtility * utility
Definition: crypto-p.hpp:41
bool valid
Definition: crypto-p.hpp:42
The tag to indicate that a constructor should use user-provided random data.
Definition: crypto-util.hpp:32
MaybeString decryptOlm(nlohmann::json content)
Definition: crypto.cpp:104
std::vector< Session > SessionList
Definition: crypto-p.hpp:22
immer::map< std::string, int > uploadedOneTimeKeysCount
Definition: crypto-p.hpp:33
std::size_t checkError(std::size_t code) const
Definition: crypto.cpp:87