aboutsummaryrefslogtreecommitdiff
path: root/lib/events/filesourceinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/events/filesourceinfo.h')
-rw-r--r--lib/events/filesourceinfo.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/events/filesourceinfo.h b/lib/events/filesourceinfo.h
index 885601be..8f7e3cbe 100644
--- a/lib/events/filesourceinfo.h
+++ b/lib/events/filesourceinfo.h
@@ -45,12 +45,13 @@ public:
QString iv;
QHash<QString, QString> hashes;
QString v;
-
- static std::pair<EncryptedFileMetadata, QByteArray> encryptFile(
- const QByteArray& plainText);
- QByteArray decryptFile(const QByteArray& ciphertext) const;
};
+QUOTIENT_API std::pair<EncryptedFileMetadata, QByteArray> encryptFile(
+ const QByteArray& plainText);
+QUOTIENT_API QByteArray decryptFile(const QByteArray& ciphertext,
+ const EncryptedFileMetadata& metadata);
+
template <>
struct QUOTIENT_API JsonObjectConverter<EncryptedFileMetadata> {
static void dumpTo(QJsonObject& jo, const EncryptedFileMetadata& pod);