Changeset View
Changeset View
Standalone View
Standalone View
native/cpp/CommonCpp/CryptoTools/Session.h
Show All 18 Lines | Session(OlmAccount *account, std::uint8_t *ownerIdentityKeys) | ||||
: ownerUserAccount(account), ownerIdentityKeys(ownerIdentityKeys) { | : ownerUserAccount(account), ownerIdentityKeys(ownerIdentityKeys) { | ||||
} | } | ||||
public: | public: | ||||
static std::unique_ptr<Session> createSessionAsInitializer( | static std::unique_ptr<Session> createSessionAsInitializer( | ||||
OlmAccount *account, | OlmAccount *account, | ||||
std::uint8_t *ownerIdentityKeys, | std::uint8_t *ownerIdentityKeys, | ||||
const OlmBuffer &idKeys, | const OlmBuffer &idKeys, | ||||
const OlmBuffer &preKeys, | |||||
const OlmBuffer &oneTimeKeys, | const OlmBuffer &oneTimeKeys, | ||||
size_t keyIndex = 0); | size_t keyIndex = 0); | ||||
static std::unique_ptr<Session> createSessionAsResponder( | static std::unique_ptr<Session> createSessionAsResponder( | ||||
OlmAccount *account, | OlmAccount *account, | ||||
std::uint8_t *ownerIdentityKeys, | std::uint8_t *ownerIdentityKeys, | ||||
const OlmBuffer &encryptedMessage, | const OlmBuffer &encryptedMessage, | ||||
const OlmBuffer &idKeys); | const OlmBuffer &idKeys); | ||||
OlmBuffer storeAsB64(const std::string &secretKey); | OlmBuffer storeAsB64(const std::string &secretKey); | ||||
Show All 10 Lines |