ImagingTools Core SDK
CRsaKey.h
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ImtCore-Commercial
2#pragma once
3
4
5// Qt includes
6#include <QtCore/QByteArray>
7
8
9namespace imtcrypt
10{
11
12
13class CRsaKey
14{
15public:
16 void GenerateRsaKeys();
17 QByteArray GetPrivateKey() const;
18 QByteArray GetPublicKey() const;
19 void SetPrivateKey(const QByteArray &key);
20 void SetPublicKey(const QByteArray &key);
21
22protected:
23 QByteArray m_privateKey;
24 QByteArray m_publicKey;
25};
26
27
28} //namespace imtcrypt
29
30
Cryptography and Encryption Services Module.