aboutsummaryrefslogtreecommitdiff
path: root/lib/e2ee/qolmutils.h
blob: f218e6289cca6df4d95a1c42d5b2633734d25d2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// SPDX-FileCopyrightText: 2021 Carl Schwan <carlschwan@kde.org>
//
// SPDX-License-Identifier: LGPL-2.1-or-later

#pragma once

#include <QByteArray>

#include "e2ee/e2ee.h"

namespace Quotient {
// Convert PicklingMode to key
QUOTIENT_API QByteArray toKey(const PicklingMode &mode);
QUOTIENT_API QByteArray getRandom(size_t bufferSize);
}