diff options
author | Alexey Andreyev <aa13q@ya.ru> | 2019-07-14 03:54:19 +0300 |
---|---|---|
committer | Alexey Andreyev <aa13q@ya.ru> | 2019-07-27 13:33:27 +0300 |
commit | 2737dc00334ad3a56c1b311435dbe84453ee389e (patch) | |
tree | a2c53b90279728fa69cf5726ce8a1b39999a5b01 /lib/room.h | |
parent | f1546e894b2a7550bce3e8d84067968bf5cf7087 (diff) | |
download | libquotient-2737dc00334ad3a56c1b311435dbe84453ee389e.tar.gz libquotient-2737dc00334ad3a56c1b311435dbe84453ee389e.zip |
E2EE: introduce EncryptedEvent
Diffstat (limited to 'lib/room.h')
-rw-r--r-- | lib/room.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -24,8 +24,10 @@ #include "events/accountdataevents.h" #include "eventitem.h" #include "joinstate.h" +#include "events/encryptedevent.h" #include <QtGui/QImage> +#include <QtCore/QJsonObject> #include <memory> #include <deque> @@ -179,6 +181,10 @@ namespace QMatrixClient int memberCount() const; int timelineSize() const; bool usesEncryption() const; + const RoomEvent *decryptMessage(EncryptedEvent* encryptedEvent) const; + const QString decryptMessage(QJsonObject personalCipherObject, QByteArray senderKey) const; + const QString sessionKey(const QString &senderKey, const QString &deviceId, const QString &sessionId) const; + const QString decryptMessage(QByteArray cipher, const QString& senderKey, const QString& deviceId, const QString& sessionId) const; int joinedCount() const; int invitedCount() const; int totalMemberCount() const; |