diff options
author | Tobias Fella <fella@posteo.de> | 2021-09-08 16:07:45 +0200 |
---|---|---|
committer | Tobias Fella <fella@posteo.de> | 2021-12-01 21:56:11 +0100 |
commit | 9f08e5d865a5500d2926f10de85da2d5dcd063f7 (patch) | |
tree | 147491c1c6a2a849dcdde70e191f68d8a816bdeb /lib/encryptionmanager.h | |
parent | a30d457161fcaadfe944e4411d4b0e487e856178 (diff) | |
download | libquotient-9f08e5d865a5500d2926f10de85da2d5dcd063f7.tar.gz libquotient-9f08e5d865a5500d2926f10de85da2d5dcd063f7.zip |
Add a function for decrypting E2EE files/images
Diffstat (limited to 'lib/encryptionmanager.h')
-rw-r--r-- | lib/encryptionmanager.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/encryptionmanager.h b/lib/encryptionmanager.h index 17f4f853..96569980 100644 --- a/lib/encryptionmanager.h +++ b/lib/encryptionmanager.h @@ -12,6 +12,7 @@ namespace Quotient { class Connection; class QOlmAccount; +struct EncryptedFile; class EncryptionManager : public QObject { Q_OBJECT @@ -21,6 +22,7 @@ public: ~EncryptionManager(); QString sessionDecryptMessage(const QJsonObject& personalCipherObject, const QByteArray& senderKey, std::unique_ptr<QOlmAccount>& account); + static QByteArray decryptFile(const QByteArray &ciphertext, EncryptedFile* encryptedFile); private: class Private; |