Changeset View
Changeset View
Standalone View
Standalone View
native/cpp/CommonCpp/CryptoTools/CryptoModule.h
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | public: | ||||
void initializeInboundForReceivingSession( | void initializeInboundForReceivingSession( | ||||
const std::string &targetUserId, | const std::string &targetUserId, | ||||
const OlmBuffer &encryptedMessage, | const OlmBuffer &encryptedMessage, | ||||
const OlmBuffer &idKeys, | const OlmBuffer &idKeys, | ||||
const bool overwrite = false); | const bool overwrite = false); | ||||
void initializeOutboundForSendingSession( | void initializeOutboundForSendingSession( | ||||
const std::string &targetUserId, | const std::string &targetUserId, | ||||
const OlmBuffer &idKeys, | const OlmBuffer &idKeys, | ||||
const OlmBuffer &preKeys, | |||||
const OlmBuffer &oneTimeKeys, | const OlmBuffer &oneTimeKeys, | ||||
size_t keyIndex = 0); | size_t keyIndex = 0); | ||||
bool hasSessionFor(const std::string &targetUserId); | bool hasSessionFor(const std::string &targetUserId); | ||||
std::shared_ptr<Session> getSessionByUserId(const std::string &userId); | std::shared_ptr<Session> getSessionByUserId(const std::string &userId); | ||||
bool matchesInboundSession( | bool matchesInboundSession( | ||||
const std::string &targetUserId, | const std::string &targetUserId, | ||||
EncryptedData encryptedData, | EncryptedData encryptedData, | ||||
const OlmBuffer &theirIdentityKey) const; | const OlmBuffer &theirIdentityKey) const; | ||||
Show All 20 Lines |