12 #ifndef hifi_RSAKeypairGenerator_h
13 #define hifi_RSAKeypairGenerator_h
15 #include <QtCore/QObject>
16 #include <QtCore/QRunnable>
17 #include <QtCore/QUuid>
19 class RSAKeypairGenerator :
public QObject,
public QRunnable {
22 RSAKeypairGenerator(QObject* parent =
nullptr);
24 virtual void run()
override;
25 void generateKeypair();
28 void errorGeneratingKeypair();
29 void generatedKeypair(QByteArray publicKey, QByteArray privateKey);
33 QByteArray _publicKey;
34 QByteArray _privateKey;