Changeset View
Changeset View
Standalone View
Standalone View
native/cpp/CommonCpp/CryptoTools/CryptoModule.h
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | public: | ||||
void restoreFromB64(const std::string &secretKey, Persist persist); | void restoreFromB64(const std::string &secretKey, Persist persist); | ||||
EncryptedData | EncryptedData | ||||
encrypt(const std::string &targetUserId, const std::string &content); | encrypt(const std::string &targetUserId, const std::string &content); | ||||
std::string decrypt( | std::string decrypt( | ||||
const std::string &targetUserId, | const std::string &targetUserId, | ||||
EncryptedData encryptedData, | EncryptedData encryptedData, | ||||
const OlmBuffer &theirIdentityKey); | const OlmBuffer &theirIdentityKey); | ||||
std::string signMessage(const std::string &message); | |||||
static void verifySignature( | |||||
const std::string &publicKey, | |||||
const std::string &message, | |||||
const std::string &signature); | |||||
}; | }; | ||||
} // namespace crypto | } // namespace crypto | ||||
} // namespace comm | } // namespace comm |