aboutsummaryrefslogtreecommitdiff
path: root/lib/olm/utils.h
diff options
context:
space:
mode:
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);
+}