aboutsummaryrefslogtreecommitdiff
path: root/lib/olm/utils.h
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2021-01-24 01:45:43 +0100
committerTobias Fella <fella@posteo.de>2021-12-01 21:34:52 +0100
commit8706c055e69b01097b702403aaa0d222e5ab0d29 (patch)
tree063534b589d598a14af2018c516ce5eb992399ff /lib/olm/utils.h
parentc8d67f737e84bbec98a54fc19a8aa56dbc39d542 (diff)
downloadlibquotient-8706c055e69b01097b702403aaa0d222e5ab0d29.tar.gz
libquotient-8706c055e69b01097b702403aaa0d222e5ab0d29.zip
Implement outboundsession
Diffstat (limited to 'lib/olm/utils.h')
-rw-r--r--lib/olm/utils.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/olm/utils.h b/lib/olm/utils.h
new file mode 100644
index 00000000..ec0da784
--- /dev/null
+++ b/lib/olm/utils.h
@@ -0,0 +1,13 @@
+// SPDX-FileCopyrightText: 2021 Carl Schwan <carlschwan@kde.org>
+//
+// SPDX-License-Identifier: LGPL-2.1-or-later
+
+#pragma once
+
+#include "olm/e2ee.h"
+
+namespace Quotient {
+// Convert PicklingMode to key
+QByteArray toKey(const PicklingMode &mode);
+QByteArray getRandom(size_t bufferSize);
+}