aboutsummaryrefslogtreecommitdiff
path: root/lib/e2ee/qolmutils.h
blob: 7a8511c358535497de03d7ee8c3000ab58ff742e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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);
}